/* ============================================================
   Iyengar Yoga with Andrew — Style System
   Palette + type derived from the brand poster (botanical / watercolour, earthy teal + coral + olive)
   ============================================================ */

:root {
  --forest: #34432C;
  --forest-dark: #232D1C;
  --teal: #2F8577;
  --teal-deep: #1F5F55;
  --teal-light: #8FC9BE;
  --coral: #E1917A;
  --orange: #D97A3F;
  --cream: #F6F1E6;
  --cream-deep: #EDE4D2;
  --duckegg: #D6E7E3;
  --white: #FFFFFF;
  --ink: #33402C;
  --ink-soft: #55624B;
  --border: #E1D9C7;

  /* Refreshed brand palette, sampled from the new logo + poster */
  --mocha: #4B3621;
  --mocha-accent: #A96846;
  --sage: #647053;
  --sage-dark: #3E4A32;
  --turquoise: #6FA8A0;
  --marble: #E2D6CA;
  --marble-vein: #C9BFAE;
  --beige: #EDE4D3;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(35, 45, 28, 0.25);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--marble);
  background-image: url('../assets/img/marble-texture.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.1em; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 0.6em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.bg-white { background: rgba(243, 236, 224, 0.55); }
.bg-duckegg { background: rgba(143, 201, 190, 0.16); }
.bg-cream-deep { background: rgba(201, 191, 174, 0.4); }
.bg-forest { background: var(--forest); color: #E9E4D4; }
.bg-forest h2, .bg-forest h3 { color: #F3EFE1; }
.bg-marble { background: rgba(226, 214, 202, 0.3); }
.bg-beige { background: rgba(237, 228, 211, 0.45); }
.bg-sage { background: linear-gradient(120deg, var(--sage), var(--sage-dark)); color: #fff; }
.bg-sage h2, .bg-sage h3 { color: #fff; }
.text-mocha, .text-mocha h2, .text-mocha h3 { color: var(--mocha); }
.text-mocha .eyebrow { color: var(--mocha-accent); }
.text-mocha p { color: var(--mocha); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -8px rgba(47,133,119,0.6); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--cream); }
.btn-turquoise { background: var(--turquoise); color: #fff; box-shadow: 0 8px 20px -8px rgba(111,168,160,0.6); }
.btn-turquoise:hover { background: #5C8F88; }
.btn-mocha { background: var(--mocha); color: #fff; }
.btn-mocha:hover { background: #3A2A19; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(226, 214, 202, 0.78);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  max-width: 1400px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: 52px; }
.brand-text { font-family: var(--font-display); line-height: 1.05; }
.brand-text .name { font-size: 1.3rem; font-weight: 700; color: var(--sage); display: block; }
.brand-text .tag { font-size: 0.82rem; font-family: var(--font-body); color: #875338; letter-spacing: 0.03em; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  color: var(--mocha);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
}
.main-nav a:hover { color: var(--sage); }
.main-nav a.current { color: var(--sage); border-bottom: 2px solid var(--mocha); padding-bottom: 4px; }
.nav-cta {
  background: var(--sage);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--sage-dark); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--forest); cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px 20px; }
  .main-nav li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { display: inline-block; margin-top: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center 30%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(24,30,18,0.82) 5%, rgba(24,30,18,0.35) 55%, rgba(24,30,18,0.15) 100%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: 70px; max-width: 720px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.2rem; color: #EFEADA; max-width: 560px; }
.hero .eyebrow { color: var(--teal-light); }

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(24,30,18,0.86) 30%, rgba(24,30,18,0.45) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 0.2em; }
.page-hero p { color: #EFEADA; max-width: 620px; font-size: 1.1rem; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--forest);
  color: #EDE9DA;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  justify-content: center;
  padding: 22px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}
.trust-bar span { display: flex; align-items: center; gap: 8px; }
.trust-bar .dot { color: var(--orange); }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--duckegg);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Class / pricing card ---------- */
.class-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 880px) { .class-card { grid-template-columns: 1fr; } }
.class-card .photo { min-height: 260px; }
.class-card .details { padding: 40px; }
.class-meta { list-style: none; margin: 0 0 24px; padding: 0; }
.class-meta li { display: flex; gap: 12px; margin-bottom: 12px; font-size: 1.02rem; }
.class-meta strong { color: var(--forest); min-width: 92px; display: inline-block; }

.price-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; }
.price-table td { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
.price-table td:last-child { text-align: right; font-family: var(--font-display); font-weight: 700; color: var(--teal-deep); font-size: 1.25rem; }

/* ---------- Badge / certification placeholder ---------- */
.badge-placeholder {
  border: 2px dashed var(--teal-light);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--ink-soft);
  background: rgba(143, 201, 190, 0.12);
  font-size: 0.92rem;
}
.badge-placeholder strong { display: block; color: var(--forest); margin-bottom: 6px; font-family: var(--font-body); }

/* ---------- Map ---------- */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 0;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Form ---------- */
.form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--forest); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--cream);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-light); border-color: var(--teal); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.form-success {
  display: none;
  background: var(--duckegg);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--forest-dark);
  font-weight: 500;
  margin-top: 18px;
}

/* ---------- Contact strip ---------- */
.contact-strip { display: flex; flex-wrap: wrap; gap: 24px; }
.contact-strip a { color: var(--forest); font-weight: 600; }
.contact-strip .card { flex: 1 1 220px; text-align: center; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--sage), var(--sage-dark));
  color: #fff;
  border-radius: 22px;
  padding: 56px 44px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #E4EFE9; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-dark); color: #E4E7DC; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #F3EFE1; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 16px; }
.site-footer a { color: #CFC9B4; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 44px; width: 44px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.2rem; color: #F3EFE1; }
.footer-logo-full { display: block; height: 128px; width: auto; margin-bottom: 18px; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #E4E7DC;
  transition: background 0.15s ease, color 0.15s ease;
}
.social-links a:hover { background: var(--mocha-accent); color: #fff; text-decoration: none; }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Press clipping / lightbox ---------- */
.press-clip {
  display: inline-block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  border: 1px solid var(--border);
  background: none;
  padding: 0;
}
.press-clip img { display: block; width: 100%; transition: transform 0.2s ease; }
.press-clip:hover img { transform: scale(1.02); }
.press-caption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 16, 10, 0.88);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Misc ---------- */
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.list-check li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--teal);
  font-weight: 700;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.max-620 { max-width: 620px; }
.max-720 { max-width: 720px; }
.divider {
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}
