/* =========================================================================
   Islamic Teaching Academy, core stylesheet
   Design system per brief §4: warm cream canvas, white cards, deep emerald,
   gold accents, Playfair headings, Inter body, Amiri Arabic, arch/ornament motifs.
   ========================================================================= */

/* ---- Design tokens (exact palette §4.2) ---- */
:root {
  --emerald:      #1B5E20;
  --emerald-700:  #164a1a;
  --emerald-900:  #0f3512;
  --gold:         #D4A843;
  --gold-600:     #bd9333;
  --white:        #FFFFFF;
  --charcoal:     #1A1A1A;
  --cream:        #FFF8E7;
  --sage:         #E8F5E9;
  --sage-deep:    #d7ecd9;

  --text:         var(--charcoal);
  --muted:        #5b6660;
  --line:         #ece3cd;

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 24px;
  --shadow:    0 10px 30px rgba(27, 94, 32, .08);
  --shadow-lg: 0 20px 50px rgba(27, 94, 32, .14);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .06);

  --ff-head: "Playfair Display", Georgia, serif;
  --ff-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-ar:   "Amiri", "Scheherazade New", serif;

  --wrap: 1300px;
  --gap:  clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); text-decoration: none; }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--charcoal); line-height: 1.15; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.gold-word { color: var(--gold); }
.arabic { font-family: var(--ff-ar); }

/* ---- Layout ---- */
.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--sage { background: var(--sage); }
.section--cream { background: var(--cream); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.grid { display: grid; gap: var(--gap); }
.center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}

/* ---- Ornaments (§4.5) ---- */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--gold); margin: .6rem 0 1.2rem;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: 46px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.ornament span { font-size: 12px; transform: rotate(45deg); }        /* diamond ◆ */
.ornament--start { justify-content: flex-start; }

.eyebrow {
  font-family: var(--ff-body); text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; font-weight: 600; color: var(--gold-600);
}

.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: 2.5rem; }
.section-head.align-start { margin-inline: 0; text-align: left; }
.section-head p { color: var(--muted); }

/* Islamic geometric pattern texture (subtle, low opacity) */
.pattern-bg { position: relative; }
.pattern-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("../img/pattern-star.svg");
  background-size: 260px; opacity: .05; z-index: 0;
}
.pattern-bg > * { position: relative; z-index: 1; }

/* Arabic calligraphy watermark accent */
.watermark {
  position: absolute; font-family: var(--ff-ar); color: var(--sage);
  font-size: clamp(6rem, 18vw, 14rem); line-height: 1; opacity: .5;
  pointer-events: none; user-select: none; z-index: 0;
}

/* ---- Buttons (§4.7 three tiers, pill) ---- */
.btn {
  --btn-bg: var(--emerald); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-body); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.6rem; border-radius: 999px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn--primary { --btn-bg: var(--emerald); --btn-fg:#fff; }
.btn--primary:hover { --btn-bg: var(--emerald-700); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #2a2000; }
.btn--gold:hover { --btn-bg: var(--gold-600); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--emerald); --btn-bd: #d9cfb2; }
.btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--emerald); }
.btn--on-dark.btn--ghost { --btn-fg:#fff; --btn-bd: rgba(255,255,255,.5); }
.btn--on-dark.btn--ghost:hover { --btn-bg: rgba(255,255,255,.12); --btn-fg:#fff; }
.btn--sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row.center { justify-content: center; }

/* ---- Cards ---- */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1.6rem; border: 1px solid var(--line);
}
.card--pad-lg { padding: 2rem; }
.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tag {
  display: inline-block; background: var(--sage); color: var(--emerald);
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.tag--gold { background: #f7eccf; color: var(--gold-600); }

/* Icon chips (thin-line icons in emerald with gold accent bg) */
.icon-chip {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sage); color: var(--emerald); margin-bottom: .9rem;
}
.icon-chip svg { width: 26px; height: 26px; }
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; vertical-align: middle; }

/* ---- Top bar ---- */
.topbar {
  background: var(--emerald-900); color: #e7f0e8; font-size: .84rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.topbar a { color: #e7f0e8; }
.topbar a:hover { color: var(--gold); }
.topbar-info { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-social { display: flex; gap: .9rem; }
.topbar-social a { display: inline-flex; }
.topbar-social svg { width: 16px; height: 16px; }

/* ---- Header / nav (§4.7 emerald bar, sticky, shrink) ---- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--emerald); color: #fff;
  background-image: url("../img/pattern-star.svg"); background-size: 220px;
  background-blend-mode: soft-light;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  transition: padding .2s ease;
}
.site-header .nav-wrap { width: min(1360px, 95%); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; }
.site-header.shrink .nav-wrap { padding-block: .6rem; }
/* Left group: logo at the far left, the menu immediately beside it. CTA sits on the far right. */
.nav-left { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.2rem); flex: 1 1 auto; }
.brand-lockup { display: flex; align-items: center; gap: .7rem; color: #fff; flex: none; }
.brand-lockup:hover { color: #fff; }
.brand-lockup .arch-icon { width: 48px; height: 48px; flex: none; transition: width .2s, height .2s; }
.site-header.shrink .brand-lockup .arch-icon { width: 40px; height: 40px; }
.brand-lockup .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-lockup .b1 { font-family: var(--ff-head); font-size: 1.3rem; font-weight: 700; }
.brand-lockup .b2 { font-size: .66rem; letter-spacing: .26em; color: var(--gold); text-transform: uppercase; margin-top: 4px; }

.main-nav { display: flex; align-items: center; margin-left: auto; }
.main-nav > ul { display: flex; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; gap: .12rem; }
.main-nav a { color: #eaf3ea; font-weight: 600; padding: .5rem .68rem; border-radius: 8px; display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.main-nav a:hover, .main-nav .is-active > a { color: #fff; background: rgba(255,255,255,.12); }
.main-nav .has-sub { position: relative; }
.main-nav .caret { width: 13px; height: 13px; opacity: .75; }

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: .5rem; list-style: none; margin: .4rem 0 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 210;
}
.main-nav .has-sub:hover > .submenu,
.main-nav .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { color: var(--charcoal); display: block; padding: .55rem .8rem; border-radius: 8px; font-size: .92rem; font-weight: 500; text-transform: none; letter-spacing: 0; white-space: normal; }
.submenu a:hover { background: var(--sage); color: var(--emerald); }
.submenu .group-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-600); padding: .5rem .8rem .2rem; font-weight: 700; }

/* Mega menu for courses */
.mega { min-width: min(760px, 90vw); display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem 1.4rem; }
@media (max-width: 900px){ .mega { grid-template-columns: 1fr; } }

.header-cta { display: flex; align-items: center; gap: 1.1rem; flex: none; }
.login-link { color: #eaf3ea; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.login-link:hover { color: var(--gold); }
.mobile-only-cta { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: .4rem; }
.nav-toggle svg { width: 28px; height: 28px; }

/* Mobile / tablet nav, switch to the drawer while the full menu still fits comfortably */
@media (max-width: 1200px) {
  .mobile-only-cta { display: block; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88%);
    background: var(--emerald-900); flex-direction: column; align-items: stretch;
    padding: 5rem 1.2rem 2rem; gap: 0; transform: translateX(100%);
    transition: transform .25s ease; overflow-y: auto; z-index: 260;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: .8rem .6rem; font-size: 1.02rem; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,.06); margin: 0 0 .4rem;
    max-height: 0; overflow: hidden; padding: 0 .5rem; transition: max-height .25s ease;
  }
  .submenu a { color: #eaf3ea; }
  .submenu a:hover { background: rgba(255,255,255,.1); color:#fff; }
  .submenu .group-label { color: var(--gold); }
  .has-sub.expanded > .submenu { max-height: 900px; padding: .3rem .5rem; }
  .mega { grid-template-columns: 1fr; min-width: 0; }
  .header-cta .btn { display: none; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 250; opacity: 0; visibility: hidden; transition: opacity .2s; }
  .nav-scrim.show { opacity: 1; visibility: visible; }
}

/* ---- Hero (§4.7 arch-framed golden-hour card) ---- */
.hero { background: var(--cream); overflow: hidden; }
.hero .wrap { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 920px){ .hero-inner { grid-template-columns: 1fr; text-align: center; } .hero-inner .ornament { justify-content: center; } .hero-inner .btn-row { justify-content: center; } .hero-inner .hero-support { margin-inline: auto; } }
.hero-copy h1 { margin-bottom: .3rem; }
.hero-support { color: var(--muted); font-size: 1.12rem; max-width: 46ch; }
@media (max-width: 920px){ .hero-support { margin-inline: auto; } }

/* Arch-framed image card */
.arch-card {
  position: relative; border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 8px solid #fff;
  aspect-ratio: 4/5; background: var(--sage);
}
.arch-card img { width: 100%; height: 100%; object-fit: cover; }
.arch-card::after {
  content:""; position:absolute; inset:0; border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(212,168,67,.5); pointer-events:none;
}

/* Hero slider (Swiper), legacy, kept for reuse */
.hero-slider .swiper-slide { height: auto; }
.hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { color: var(--emerald); }
.hero-slider .swiper-pagination-bullet-active { background: var(--gold); }

/* ---- Full-width image hero (§4.7 arch-framed golden-hour, edge-to-edge) ---- */
.hero-full { position: relative; min-height: min(82vh, 680px); display: flex; align-items: center; overflow: hidden; background: var(--emerald-900); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,53,18,.94) 0%, rgba(15,53,18,.78) 34%, rgba(15,53,18,.35) 66%, rgba(15,53,18,.08) 100%); }
.hero-content { position: relative; z-index: 1; width: min(1340px, 92%); margin-inline: auto; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero-full .hero-copy { max-width: 640px; color: #fff; }
.hero-full h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin-bottom: .3rem; }
.hero-full .eyebrow { color: var(--gold); }
.hero-full .hero-support { color: rgba(255,255,255,.92); font-size: 1.16rem; max-width: 54ch; }
.hero-full .ornament::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-full .ornament::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.7rem;
  background: rgba(255,255,255,.14); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.22);
  padding: .55rem 1.05rem; border-radius: 999px; color: #fff; font-size: .92rem; }
.hero-badge strong, .hero-badge .icon { color: var(--gold); }
.hero-badge .placeholder-note { color: rgba(255,255,255,.6); }
/* Mobile: stack the image ABOVE the text so the Green Dome is never cropped out */
@media (max-width: 640px){
  .hero-full { flex-direction: column; align-items: stretch; min-height: 0; background: var(--emerald-900); }
  .hero-bg { position: static; order: -1; }
  .hero-bg img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
  .hero-scrim { display: none; }
  .hero-content { padding-block: 2rem; }
}

/* ---- Value props strip (§4.7 single card, 4 cols, dividers) ---- */
.valueprops { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.valueprops-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.valueprops-grid > div { padding: 1.8rem 1.4rem; border-left: 1px solid var(--line); }
.valueprops-grid > div:first-child { border-left: 0; }
.valueprops-grid h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.valueprops-grid p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 860px){ .valueprops-grid { grid-template-columns: repeat(2,1fr); } .valueprops-grid > div:nth-child(3){ border-left:0; } .valueprops-grid > div { border-top: 1px solid var(--line); } .valueprops-grid > div:nth-child(-n+2){border-top:0;} }
@media (max-width: 480px){ .valueprops-grid { grid-template-columns: 1fr; } .valueprops-grid > div { border-left:0; } }

/* ---- Course / feature grids ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.course-card .thumb { aspect-ratio: 16/10; background: var(--sage); position: relative; }
.course-card .thumb img { width:100%; height:100%; object-fit: cover; }
.course-card .body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.course-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.course-card .card-foot { display:flex; align-items:center; justify-content: space-between; margin-top: .8rem; }

/* ---- Benefit / why-us items ---- */
.benefit { display: flex; gap: 1rem; }
.benefit .icon-chip { flex: none; margin: 0; }
.benefit h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.benefit p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---- Stats counters ---- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); text-align: center; }
@media (max-width: 700px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stat .num { font-family: var(--ff-head); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--emerald); font-weight: 800; line-height: 1; }
.stat .num .suffix { color: var(--gold); }
.stat .label { color: var(--muted); font-weight: 500; margin-top: .3rem; }

/* ---- How it works (4 steps) ---- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); counter-reset: step; }
@media (max-width: 860px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .steps { grid-template-columns: 1fr; } }
.step { text-align: center; position: relative; }
.step .num-badge {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto .9rem; background: var(--emerald); color: #fff; font-family: var(--ff-head);
  font-size: 1.4rem; font-weight: 700; box-shadow: 0 0 0 6px var(--sage);
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .9rem; color: var(--muted); }

/* ---- Hadith / quote band (emerald card, gold quotes) ---- */
.quote-card {
  background: var(--emerald); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center; position: relative; overflow: hidden;
  background-image: url("../img/pattern-star.svg"); background-size: 300px; background-blend-mode: soft-light;
}
.quote-card .qmark { font-family: var(--ff-head); color: var(--gold); font-size: 5rem; line-height: .5; height: 2.2rem; }
.quote-card blockquote { font-family: var(--ff-head); font-size: clamp(1.3rem, 3vw, 2rem); margin: 1rem auto; max-width: 40ch; }
.quote-card .attr { color: var(--gold); font-weight: 600; letter-spacing: .04em; }
.quote-card .arabic { font-size: 1.6rem; color: rgba(255,255,255,.85); margin-bottom: .5rem; }

/* ---- Testimonials ---- */
.testi-card { display: flex; flex-direction: column; gap: .6rem; height: auto; }
.testi-card .qmark { font-family: var(--ff-head); color: var(--gold); font-size: 3rem; line-height: .4; height: 1.4rem; }
.stars { color: var(--gold); letter-spacing: 2px; }
.testi-card .who { display: flex; align-items: center; gap: .7rem; margin-top: .4rem; }
.testi-card .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--sage); object-fit: cover; flex:none; }
.testi-card .name { font-weight: 700; }
.testi-card .loc { font-size: .84rem; color: var(--muted); }
.testi-slider .swiper-pagination-bullet-active { background: var(--gold); }

/* ---- Trust marquee ---- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: .5rem; color: var(--emerald); font-weight: 600; white-space: nowrap; }
.marquee-item svg { width: 20px; height: 20px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ---- Global reach band ---- */
.reach-flags { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; font-size: 1.8rem; }

/* ---- Promo countdown ---- */
.promo-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: center; }
@media (max-width: 760px){ .promo-card { grid-template-columns: 1fr; text-align: center; } }
.promo-badge { display:inline-block; background: var(--gold); color:#2a2000; font-weight:700; padding:.4rem .9rem; border-radius:999px; letter-spacing:.03em; }
.promo-prices { display: flex; align-items: baseline; gap: .8rem; margin: .6rem 0; flex-wrap: wrap; }
.promo-prices .was { text-decoration: line-through; color: #c0392b; font-size: 1.1rem; }
.promo-prices .now { color: var(--emerald); font-family: var(--ff-head); font-size: 2.4rem; font-weight: 800; }
.promo-prices .save { color: var(--gold-600); font-weight: 700; }
.countdown { display: flex; gap: .7rem; justify-content: center; }
.countdown .unit { background: var(--emerald); color:#fff; border-radius: 12px; padding: .7rem .5rem; min-width: 66px; text-align: center; }
.countdown .unit b { display:block; font-family: var(--ff-head); font-size: 1.8rem; line-height:1; }
.countdown .unit span { font-size:.7rem; text-transform: uppercase; letter-spacing:.08em; opacity:.85; }

/* ---- Accordion (FAQ) ---- */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-btn { width:100%; text-align:left; background:none; border:0; padding:1.1rem 0; font-family: var(--ff-head); font-size:1.12rem; color: var(--charcoal); cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.accordion-btn .plus { color: var(--gold); font-size:1.5rem; flex:none; transition: transform .2s; }
.accordion-item.open .plus { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-panel-inner { padding-bottom: 1.1rem; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band { background: var(--emerald); color:#fff; text-align:center; border-radius: var(--radius-lg); padding: clamp(2rem,5vw,3.5rem); background-image: url("../img/pattern-star.svg"); background-size: 280px; background-blend-mode: soft-light; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin-inline:auto; }

/* ---- Forms ---- */
.form-grid { display: grid; gap: 1rem; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px){ .form-grid.cols-2 { grid-template-columns: 1fr; } }
.field label { display:block; font-weight:600; font-size:.9rem; margin-bottom:.35rem; }
.field .req { color:#c0392b; }
.input, .field input, .field select, .field textarea {
  width:100%; padding:.8rem 1rem; border:1.5px solid var(--line); border-radius: 12px;
  font: inherit; background:#fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--sage);
}
.field textarea { min-height: 120px; resize: vertical; }
.hp-field { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-note { font-size:.86rem; color: var(--muted); }
.alert { padding:1rem 1.2rem; border-radius:12px; margin-bottom:1rem; }
.alert--ok { background: var(--sage); color: var(--emerald-700); border:1px solid var(--sage-deep); }
.alert--err { background:#fdecea; color:#a33; border:1px solid #f5c6c0; }

/* ---- Breadcrumbs ---- */
.crumbs { font-size:.86rem; color: var(--muted); padding: 1rem 0; }
.crumbs a { color: var(--emerald); }
.crumbs .sep { margin: 0 .4rem; color: var(--gold); }

/* ---- Page hero (inner pages) ---- */
.page-hero { background: var(--emerald); color:#fff; padding: clamp(2.5rem,6vw,4rem) 0 clamp(2rem,5vw,3rem); position:relative; overflow:hidden; background-image:url("../img/pattern-star.svg"); background-size:280px; background-blend-mode: soft-light; }
.page-hero h1 { color:#fff; }
.page-hero .ornament { color: var(--gold); }
.page-hero p { color: rgba(255,255,255,.88); max-width: 60ch; }

/* ---- Footer ---- */
.site-footer { background: var(--emerald-900); color:#d7e5d8; margin-top: 0; background-image:url("../img/pattern-star.svg"); background-size:260px; background-blend-mode: soft-light; }
.site-footer a { color:#d7e5d8; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding-block: clamp(2.5rem,5vw,3.5rem); }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color:#fff; font-family: var(--ff-body); text-transform:uppercase; letter-spacing:.1em; font-size:.82rem; margin-bottom:1rem; }
.footer-grid ul { list-style:none; margin:0; padding:0; display:grid; gap:.5rem; }
.footer-brand .brand-lockup { margin-bottom: 1rem; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); padding-block:1.2rem; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; font-size:.85rem; color:#9fb5a2; }
.pay-logos { display:flex; gap:.5rem; align-items:center; }
.pay-logos span { background: rgba(255,255,255,.1); border-radius:6px; padding:.25rem .6rem; font-size:.72rem; }
.newsletter-mini { display:flex; gap:.5rem; flex-wrap:wrap; }
.newsletter-mini input { flex:1; min-width:0; padding:.6rem .8rem; border-radius:10px; border:0; }

/* ---- Floating WhatsApp ---- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  color:#fff; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color:#fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---- Reveal animation (light), only hide when JS is present ---- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .js .reveal { opacity:1 !important; transform:none !important; transition:none; } }

/* ---- Utilities ---- */
.two-col { display:grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items:center; }
@media (max-width: 820px){ .two-col { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.pill-list { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem; }
.pill-list li { background: var(--sage); color: var(--emerald); border-radius:999px; padding:.35rem .8rem; font-size:.85rem; font-weight:500; }
.check-list { list-style:none; margin:0; padding:0; display:grid; gap:.6rem; }
.check-list li { display:flex; gap:.6rem; align-items:flex-start; }
.check-list li::before { content:"✦"; color: var(--gold); font-size:1rem; line-height:1.5; }
.skip-link { position:absolute; left:-9999px; top:0; background:#fff; padding:.6rem 1rem; z-index:400; }
.skip-link:focus { left:8px; top:8px; }
.placeholder-note { font-size:.8rem; color: var(--gold-600); font-style: italic; }

/* ---- Video lightbox ---- */
.video-modal { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 500; display: grid; place-items: center; padding: 1rem; }
.video-modal-inner { position: relative; width: min(900px, 100%); }
.video-frame { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-close { position: absolute; top: -42px; right: 0; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* ---- Play button overlay ---- */
.play-wrap { position: relative; }
.play-btn { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: var(--gold); color: #2a2000; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s; }
.play-btn:hover { transform: scale(1.08); }
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
