:root {
  --bg: #faf8f4;
  --ink: #1f1d1a;
  --muted: #6b665e;
  --accent: #b5654a;
  --line: #e4dfd6;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

/* ---------- Header ---------- */
header.site {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5vw;
  color: #fff;
}
header.site .brand {
  font-family: var(--serif);
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
header.site nav a {
  margin-left: 26px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
header.site nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #3b3631;
  overflow: hidden;
}
.hero video, .hero .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,0) 24%),
    linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.05) 55%);
}
.hero-text {
  position: relative;
  z-index: 2;
  padding: 0 5vw 9vh;
  max-width: 900px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
}
.hero p {
  margin-top: 16px;
  font-size: 1.1rem;
  opacity: .92;
}
.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 30px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { filter: brightness(1.08); }

/* ---------- Sections ---------- */
section { padding: 96px 5vw; }
.wrap { max-width: 1080px; margin: 0 auto; }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  margin-bottom: 22px;
}
.lead { max-width: 640px; color: var(--muted); }

/* ---------- Method ---------- */
.branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 52px;
}
.branch img, .branch .ph { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.branch h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.8rem;
  margin: 18px 0 6px;
}
.branch p { color: var(--muted); }

/* ---------- Instructors ---------- */
#place { background: #f1ece3; }
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  margin-top: 52px;
}
.person img, .person .ph { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.person h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  margin: 18px 0 2px;
}
.person .role {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.person p { color: var(--muted); }

/* Placeholder boxes shown until real photos are added */
.ph {
  background: repeating-linear-gradient(45deg, #e9e3d8, #e9e3d8 14px, #efe9df 14px, #efe9df 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

/* ---------- Contact ---------- */
form {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin-top: 36px;
}
label { display: grid; gap: 6px; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }
input, textarea, select {
  font: inherit;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
textarea { min-height: 140px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer ---------- */
footer {
  padding: 40px 5vw;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
footer p + p { margin-top: 6px; }
footer .legal { font-family: "Times New Roman", Times, serif; font-size: 0.9rem; }

/* Trademarked names: capital letters in Times New Roman */
.tm { font-family: "Times New Roman", Times, serif; text-transform: uppercase; }

/* Nosara section: text beside a photo on wide screens */
.place { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 800px) { .place { grid-template-columns: 1fr; gap: 32px; } }

/* Cards that link to their own page (method branches and instructors) */
a.branch, a.person { display: block; color: inherit; text-decoration: none; }
a.branch figure, a.person figure { transition: opacity .2s; }
a.branch:hover figure, a.person:hover figure { opacity: .88; }
.more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.more::after { content: " \2192"; }
a.branch:hover .more, a.person:hover .more { text-decoration: underline; text-underline-offset: 5px; }

/* Detail pages (method branches and instructors) */
header.site.solid {
  position: static;
  color: var(--ink);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
header.site.solid nav a.lang { border-color: var(--ink); }
header.site.solid nav a.lang:hover { background: rgba(0, 0, 0, .06); }
h1.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  margin-bottom: 22px;
}
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; gap: 32px; } }
.detail p + p { margin-top: 16px; }
.detail .role {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.detail .btn { margin-top: 32px; }
.teaches { margin-top: 20px; font-size: 0.95rem; }
.teaches a, .also a { color: var(--accent); text-underline-offset: 4px; }
/* Two matching photo/video panels under the top section of a detail page */
#media { padding-top: 0; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.panels figure { width: 100%; aspect-ratio: 4 / 5; }
.panels.p34 figure { aspect-ratio: 3 / 4; }
@media (max-width: 800px) { .panels { grid-template-columns: 1fr; gap: 32px; } }
#cta { background: #f1ece3; text-align: center; }
#cta .lead { margin: 0 auto; }
#cta .btn { margin-top: 28px; }
.also { margin-top: 26px; font-size: 0.95rem; }

/* Language switch (EN / ES) in the header menu */
header.site nav a.lang {
  border: 1px solid rgba(255, 255, 255, .75);
  padding: 4px 10px;
  letter-spacing: 0.1em;
}
header.site nav a.lang:hover { background: rgba(255, 255, 255, .15); text-decoration: none; }

/* Header: wrap nicely on small screens */
@media (max-width: 640px) {
  header.site { flex-wrap: wrap; gap: 10px 20px; }
  header.site nav a { margin-left: 0; margin-right: 18px; font-size: 0.75rem; }
}

/* Logo under the site name (add images/logo.png; it stays hidden until the file exists) */
header.site .brand { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.brand-logo { height: 52px; width: auto; max-width: 240px; object-fit: contain; }
@media (max-width: 640px) { .brand-logo { height: 36px; } }

/* Pricing */
#pricing { background: #f1ece3; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 44px; max-width: 860px; }
.price-card { background: #fff; border: 1px solid var(--line); padding: 34px 32px 22px; }
.price-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.1; }
.price-card .for { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.price-card ul { list-style: none; margin-top: 22px; }
.price-card li { display: flex; justify-content: space-between; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--line); }
.price-card li span { color: var(--muted); }
.price-card li strong { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; color: var(--ink); }
#pricing .note { margin-top: 28px; }
#pricing .btn { margin-top: 18px; }

/* Session formats line on the method pages */
.formats { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.formats a { color: var(--accent); text-underline-offset: 4px; }

/* Benefits list (Gyrokinesis Cardiovascular Breathing page) */
.benefits { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 32px; max-width: 940px; }
.benefits li { position: relative; padding: 16px 0 16px 34px; border-top: 1px solid var(--line); }
.benefits li::before { content: "\2713"; position: absolute; left: 0; top: 16px; color: var(--accent); }
@media (max-width: 700px) { .benefits { grid-template-columns: 1fr; } }
#benefits .note { margin-top: 28px; }

/* Subtitle (descriptive title) under a method name */
.subtitle { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; color: var(--accent); margin: -6px 0 22px; }
.branch .subtitle { font-size: 1.2rem; margin: 0 0 8px; }

/* Instagram link on the instructor pages */
.social { margin-top: 12px; font-size: 0.95rem; }
.social a { color: var(--accent); text-underline-offset: 4px; }

/* Nosara section: a photo on each side of the text */
.place.place-3 { grid-template-columns: 1fr 1.3fr 1fr; gap: 40px; }
.place-3 figure { aspect-ratio: 3 / 4 !important; }
@media (max-width: 800px) { .place.place-3 { grid-template-columns: 1fr 1fr; gap: 12px; } .place-3 > div { grid-column: 1 / -1; order: -1; margin-bottom: 20px; } }

/* Gyrotonic tagline (main page only): Monotype Corsiva, bold */
.tagline { font-family: "Monotype Corsiva", "Apple Chancery", "URW Chancery L", "Z003", "Lucida Calligraphy", cursive; font-weight: 700; font-size: 1.7rem; line-height: 1.2; color: var(--accent); margin: -6px 0 22px; }
