/* ============================================================
   365 Gurbani Words — Design System
   Light parchment base + dark navy hero/stats bands
   ============================================================ */

:root {
  /* Palette — Maroon & Gold on parchment (matches the logo, reverent feel).
     --navy is the primary dark. */
  --navy:       #471320;
  --navy-md:    #6A2230;
  --maroon:     #2C0912;
  --sky:        #A8475D;
  --gold:       #8A6820;
  --gold-lt:    #B89040;
  --gold-dk:    #6D5212;
  --gold-pale:  #F8F0DC;
  --yellow:     #E8C547;
  --rule:       #D9C496;

  /* Light theme tokens */
  --bg:         #FBF6E9;
  --bg-card:    #FFFFFF;
  --bg-soft:    #F3EAD3;
  --ink:        #2A1419;
  --ink-soft:   #574048;
  --line:       #E4D9BC;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-gur:     'Noto Sans Gurmukhi', 'EB Garamond', sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(44, 9, 18, 0.13);
  --shadow-lg: 0 18px 60px rgba(44, 9, 18, 0.22);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--maroon); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: .005em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1rem; }
.gur { font-family: var(--font-gur); }

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 8px 0; font-family: var(--font-body);
}
.skip-link:focus { left: 0; }

/* Visually hidden — visible to screen readers, off-screen for everyone else */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .82rem;
  font-weight: 700;
  color: #6d5212; /* darker than --gold for WCAG AA contrast against parchment */
  margin-bottom: .6rem;
}
.section-head p { color: var(--ink-soft); font-size: 1.18rem; }

.gold-rule {
  width: 64px; height: 3px; margin: 1.1rem auto;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
  border: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
  padding: .85rem 1.7rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 8px 22px rgba(138,104,32,.32); }
.btn--gold:hover { background: var(--gold-dk); color: #fff; }
.btn--ghost { background: transparent; color: var(--gold-pale); border-color: rgba(248,240,220,.55); }
.btn--ghost:hover { background: rgba(248,240,220,.12); color: #fff; }
.btn--navy { background: var(--navy); color: var(--gold-pale); }
.btn--navy:hover { background: var(--navy-md); color: #fff; }
.btn--sm { font-size: .92rem; padding: .55rem 1.1rem; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,246,233,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 38px; height: 38px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.32rem; color: var(--navy); line-height: 1;
}
.brand-name small {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; }
.nav-links a {
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  color: var(--ink); padding: .55rem .85rem; border-radius: 8px;
}
/* Exclude the CTA button — it keeps its own gold background on hover */
.nav-links a:not(.btn):hover, .nav-links a:not(.btn)[aria-current="page"] {
  color: var(--navy); background: var(--bg-soft);
}
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }

/* ---- Submenu groups (Learn / Frame / About) ---- */
.nav-links .has-submenu { position: relative; }
.nav-toggle-btn {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  color: var(--ink);
  padding: .55rem .85rem; border-radius: 8px;
  display: inline-flex; align-items: center; gap: .3rem;
  white-space: nowrap;
}
.nav-toggle-btn::after {
  content: '▾'; font-size: .68em; opacity: .7;
  transition: transform .15s ease;
}
.nav-toggle-btn:hover,
.has-submenu:focus-within > .nav-toggle-btn,
.has-submenu.nav-current-group > .nav-toggle-btn {
  color: var(--navy); background: var(--bg-soft);
}
.has-submenu:focus-within > .nav-toggle-btn::after,
.has-submenu:hover > .nav-toggle-btn::after { transform: rotate(180deg); }

.nav-links .submenu {
  position: absolute; top: calc(100% + 6px); left: 0;
  list-style: none; margin: 0; padding: .4rem;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 50;
  display: none;
}
.nav-links .has-submenu:hover > .submenu,
.nav-links .has-submenu:focus-within > .submenu {
  display: block;
}
/* Invisible bridge across the 6px gap so the dropdown stays open while the
   pointer travels from the parent button down to the submenu items */
.nav-links .submenu::before {
  content: ""; position: absolute;
  top: -6px; left: 0; right: 0; height: 6px;
}
.nav-links .submenu li { margin: 0; }
.nav-links .submenu a {
  display: block;
  padding: .55rem .85rem; border-radius: 8px;
  white-space: nowrap; font-size: .98rem;
}
/* When the submenu has more space-needing items, allow it to grow */
.nav-links .submenu.submenu--wide { min-width: 260px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 8px;
}
.nav-toggle span {
  display: block; height: 3px; background: var(--navy);
  border-radius: 2px; margin: 5px 0; transition: .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .75rem 1.5rem 1.5rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem .5rem; border-radius: 6px; }
  .nav-links li:last-child { margin-top: .6rem; }
  .nav-links .btn { justify-content: center; }

  /* Flatten submenus inside the mobile menu */
  .nav-toggle-btn {
    width: 100%; text-align: left;
    padding: .85rem .5rem; border-radius: 6px;
    justify-content: space-between;
  }
  .nav-toggle-btn::after { display: inline; }
  .has-submenu[aria-expanded="false"] > .submenu { display: none; }
  .nav-links .submenu {
    position: static;
    display: block;
    background: transparent; border: 0; box-shadow: none;
    padding: .1rem 0 .4rem 1rem; min-width: 0;
  }
  .nav-links .submenu a { font-size: .96rem; padding: .55rem .5rem; }
  .has-submenu[aria-expanded="false"] > .nav-toggle-btn::after {
    transform: none;
  }
  .has-submenu[aria-expanded="true"] > .nav-toggle-btn::after {
    transform: rotate(180deg);
  }
}

/* ============================================================
   HERO  (dark navy band)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: var(--gold-pale);
  text-align: center;
  padding: clamp(4rem, 11vw, 8rem) 0 clamp(3.5rem, 9vw, 6.5rem);
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  top: -120px; left: -90px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(74,127,192,.20) 0%, transparent 70%);
}
.hero::after {
  bottom: -140px; right: -110px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(184,144,64,.16) 0%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .gur-mark {
  font-family: var(--font-gur); font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--yellow); margin-bottom: .6rem; opacity: .95;
}
.hero h1 { color: #fff; max-width: 16ch; margin: 0 auto .4rem; }
.hero .tagline {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--gold-lt);
  margin-bottom: 2rem;
}
.hero .cta-row {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.hero .hero-note {
  margin-top: 1.6rem; font-size: 1rem; color: rgba(248,240,220,.7);
}

/* ============================================================
   CARDS / GRID
   ============================================================ */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .tag {
  align-self: flex-start;
  font-family: var(--font-body); font-weight: 600; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold); background: var(--gold-pale);
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card .meta {
  font-family: var(--font-body); font-size: .92rem; color: var(--ink-soft);
  letter-spacing: .04em; margin-bottom: .9rem;
}
.card p { color: var(--ink-soft); font-size: 1.02rem; flex: 1; }
.card .card-links {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem;
  list-style: none;
}
.card .card-links a {
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  color: var(--navy); background: var(--bg-soft);
  padding: .45rem .85rem; border-radius: 999px;
}
.card .card-links a:hover { background: var(--gold); color: #fff; }
/* Not-yet-available resource — a muted label, not a clickable link */
.card .card-links .coming-soon {
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  color: var(--ink-soft); background: var(--bg-soft); opacity: .75;
  padding: .45rem .85rem; border-radius: 999px;
}
.card .card-links .coming-soon em { font-style: normal; opacity: .85; }

/* Invite-us highlighted banner (Sessions page) */
.invite-banner {
  display: flex; gap: 1.8rem; align-items: center;
  background: linear-gradient(135deg, var(--gold-pale), #FBEFCF);
  border: 1px solid var(--gold-lt);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius); padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow);
}
.invite-banner__icon { font-size: 3.4rem; line-height: 1; flex: 0 0 auto; }
.invite-banner__body { flex: 1 1 auto; }
.invite-banner__body h2 { margin: .2rem 0 .6rem; }
.invite-banner__body p { color: var(--ink-soft); margin: 0; }
.invite-banner .cta-row {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.3rem;
}
@media (max-width: 640px) {
  .invite-banner { flex-direction: column; text-align: center; padding: 1.8rem 1.4rem; }
  .invite-banner .cta-row { justify-content: center; }
}

/* "What it is" feature row */
.feature { text-align: center; padding: 1rem; }
.feature .num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.feature h3 { margin: .6rem 0 .4rem; }
.feature p { color: var(--ink-soft); }

/* ============================================================
   STATS BAND  (dark navy)
   ============================================================ */
.stats-band {
  background: var(--navy); color: var(--gold-pale);
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative; overflow: hidden;
}
.stats-band::after {
  content: ''; position: absolute; top: -100px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,197,71,.10) 0%, transparent 70%);
}
.stats-band h2 { color: #fff; }
.stats-band .gold-rule { background: linear-gradient(90deg, transparent, var(--gold-lt), transparent); }
.stats-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem; margin-top: 2.4rem; position: relative; z-index: 1;
}
.stat .n {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--yellow);
}
.stat .l {
  font-size: .9rem; color: rgba(248,240,220,.78);
  letter-spacing: .04em; margin-top: .25rem;
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quote {
  background: var(--bg-card); border: 1px solid var(--line);
  border-left: 4px solid var(--gold-lt);
  border-radius: var(--radius); padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow);
}
.quote p {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.18rem; color: var(--ink); margin-bottom: .9rem;
}
.quote cite {
  font-family: var(--font-body); font-style: normal; font-weight: 600;
  font-size: .92rem; color: var(--gold);
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: linear-gradient(135deg, var(--maroon), var(--navy));
  color: var(--gold-pale); text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta-strip h2 { color: #fff; margin-bottom: .6rem; }
.cta-strip p { color: rgba(248,240,220,.82); font-size: 1.15rem; margin-bottom: 1.8rem; }
.cta-strip .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   LINKS HUB (links.html)
   ============================================================ */
.hub {
  max-width: 600px; margin: 0 auto;
  padding: clamp(2.5rem,6vw,4rem) 1.5rem 4rem; text-align: center;
}
.hub .avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem;
  border: 3px solid var(--gold-lt); background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.hub .avatar img { width: 60px; height: 60px; }
.hub h1 { font-size: 2rem; }
.hub .bio { color: var(--ink-soft); margin: .3rem 0 1.6rem; }
.hub-group { margin: 2rem 0 .8rem; text-align: left; }
.hub-group h2 {
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--gold); font-family: var(--font-body); font-weight: 700;
  margin-bottom: .8rem;
}
.hub-link {
  display: flex; align-items: center; gap: .9rem;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 999px; padding: 1rem 1.4rem; margin-bottom: .85rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1.05rem;
  color: var(--navy); box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.hub-link:hover {
  transform: translateY(-2px); border-color: var(--gold-lt);
  background: #fff; color: var(--maroon);
}
.hub-link .ico { font-size: 1.25rem; width: 1.5rem; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy); color: rgba(248,240,220,.78);
  padding: 3.5rem 0 2rem; font-size: 1rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2.5rem;
}
.site-footer h3 {
  color: var(--gold-lt); font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .82rem; font-weight: 700; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(248,240,220,.78); }
.site-footer a:hover { color: var(--yellow); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: .8rem; max-width: 30ch; color: rgba(248,240,220,.62); }
.footer-social { display: flex; gap: .7rem; margin-top: 1.1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(248,240,220,.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(248,240,220,.16);
  padding-top: 1.5rem; text-align: center;
  font-size: .9rem; color: rgba(248,240,220,.55);
}
.footer-bottom a {
  color: rgba(248,240,220,.85);
  text-decoration: underline; /* avoid "links rely on color" a11y warning */
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   FORMS (contact.html)
   ============================================================ */
.form-card {
  max-width: 620px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow);
}
.form-card label {
  display: block; font-weight: 600; margin: 1.1rem 0 .4rem;
  font-family: var(--font-body); color: var(--navy);
}
.form-card input, .form-card textarea, .form-card select {
  width: 100%; padding: .8rem 1rem; font-family: var(--font-body);
  font-size: 1.05rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.form-card textarea { min-height: 140px; resize: vertical; }
.form-card .btn { margin-top: 1.6rem; }
.form-alt {
  text-align: center; margin-top: 2rem; color: var(--ink-soft);
}

/* ---- Breadcrumb ---- */
.crumb {
  font-family: var(--font-body); font-size: .92rem;
  color: var(--ink-soft); padding: 1.2rem 0 0;
}
.crumb a { color: var(--gold); }

/* ---- Page header (subpages) ---- */
.page-hero {
  background: var(--navy); color: var(--gold-pale);
  text-align: center; padding: clamp(3rem,7vw,5rem) 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content:''; position:absolute; top:-100px; left:-80px;
  width:300px; height:300px; border-radius:50%;
  background: radial-gradient(circle, rgba(74,127,192,.18) 0%, transparent 70%);
}
.page-hero::after {
  content:''; position:absolute; bottom:-120px; right:-90px;
  width:360px; height:360px; border-radius:50%;
  background: radial-gradient(circle, rgba(184,144,64,.14) 0%, transparent 70%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .gur-mark {
  font-family: var(--font-gur); font-size: clamp(2rem, 5vw, 3rem);
  color: var(--yellow); margin-bottom: .4rem;
}
.page-hero .eyebrow {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .22em; font-size: .8rem; font-weight: 600;
  color: var(--gold-lt); margin-bottom: .5rem;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--gold-lt); font-size: 1.2rem; max-width: 60ch; margin: .6rem auto 0; }

/* ============================================================
   DIGITAL FRAME PAGE
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
.split-media { text-align: center; }
.split-media img {
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-width: 340px; width: 100%; margin: 0 auto;
}
.split-text .eyebrow {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .22em; font-size: .82rem; font-weight: 600;
  color: var(--gold); margin-bottom: .6rem;
}
.split-text h2 { margin-bottom: 0; }
.split-text .gold-rule { margin: 1.1rem 0; }
.split-text p { color: var(--ink-soft); font-size: 1.08rem; }
.split-text .cta-row {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem;
}
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
  .split-text .cta-row { justify-content: center; }
  .split-text { text-align: center; }
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; list-style: none; counter-reset: step;
  margin-top: 3rem;
}
.steps li {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.6rem 1.6rem;
  box-shadow: var(--shadow); position: relative;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; top: -22px; left: 1.6rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #fff;
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(138,104,32,.34);
}
.steps li h3 { font-size: 1.18rem; margin: .2rem 0 .5rem; }
.steps li p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.steps li .step-tag {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold); background: var(--gold-pale);
  padding: .2rem .6rem; border-radius: 999px;
  margin-bottom: .6rem;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.frame-banner {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; margin: 2.5rem 0 0;
  box-shadow: var(--shadow); text-align: center;
}
.frame-banner img {
  margin: 0 auto; max-width: 100%; height: auto;
  border-radius: 8px;
}

.note {
  background: var(--bg-soft); border-left: 4px solid var(--gold-lt);
  padding: 1.1rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem auto 0; max-width: 820px;
  color: var(--ink-soft); font-size: 1.02rem;
}
.note strong { color: var(--navy); }
.note + .note { margin-top: 1rem; }

/* ---- Country picker / price tracker ---- */
.country-picker {
  display: flex; flex-wrap: wrap; gap: .55rem;
  justify-content: center; margin: 0 auto 2.5rem;
}
.country-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  background: var(--bg-card); border: 2px solid var(--line);
  color: var(--navy);
  padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease,
              color .15s ease, transform .15s ease;
}
.country-btn:hover { transform: translateY(-1px); border-color: var(--gold-lt); }
.country-btn[aria-pressed="true"] {
  background: var(--navy); color: var(--gold-pale); border-color: var(--navy);
}
.country-btn[aria-pressed="true"]:hover {
  background: var(--navy-md); border-color: var(--navy-md); color: #fff;
}
.country-btn .flag { font-size: 1.15rem; line-height: 1; }

.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.price-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.price-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; margin-bottom: .5rem;
}
.price-card-head h3 { font-size: 1.4rem; margin: 0; }
.price-card-size {
  font-family: var(--font-body); font-weight: 700; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold); background: var(--gold-pale);
  padding: .3rem .7rem; border-radius: 999px; white-space: nowrap;
}
.price-card-meta {
  font-family: var(--font-body); font-size: .96rem;
  color: var(--ink-soft); margin-bottom: 1.3rem; flex: 1;
}
.price-link { align-self: flex-start; }
.amazon-domain { font-weight: 700; opacity: .92; margin: 0 .15rem; }

.price-disclaimer {
  text-align: center; margin-top: 2.2rem;
  color: var(--ink-soft); font-size: .95rem;
}

@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SPONSOR A FRAME PAGE
   ============================================================ */
.locate-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  max-width: 760px; margin: 0 auto;
}
.locate-controls {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
}
.locate-sep {
  color: var(--ink-soft); font-family: var(--font-display);
  font-style: italic; font-size: 1.05rem;
}
.locate-form {
  display: flex; gap: .5rem; align-items: stretch; flex: 1; min-width: 240px;
}
.locate-form input {
  flex: 1; padding: .7rem 1rem; font-family: var(--font-body);
  font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px;
}
.locate-form input:focus-visible { border-color: var(--gold-lt); outline-offset: 1px; }
.locate-privacy {
  text-align: center; margin: 1.2rem 0 0;
  color: var(--ink-soft); font-size: .9rem;
}

.sponsor-status {
  max-width: 760px; margin: 1.6rem auto 0; text-align: center;
  font-size: 1rem; padding: 1rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--navy);
}
.sponsor-status--warning {
  background: #FFF5DF; border-color: #F0DAA0; color: var(--maroon);
}
.sponsor-status--error {
  background: #FBE6E0; border-color: #ECC2B5; color: var(--maroon);
}

.sponsor-results { margin-top: 2.5rem; }
.results-heading { text-align: center; margin-bottom: .3rem; }
.results-sub {
  text-align: center; color: var(--ink-soft); margin-bottom: 1.8rem;
}
.gurdwara-list {
  list-style: none; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.gurdwara-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .7rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gurdwara-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gurdwara-card__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .8rem;
}
.gurdwara-card__name {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  color: var(--navy); margin: 0; line-height: 1.25;
}
.gurdwara-card__distance {
  font-family: var(--font-body); font-weight: 700; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold); background: var(--gold-pale);
  padding: .3rem .65rem; border-radius: 999px; white-space: nowrap;
}
.gurdwara-card__addr {
  color: var(--ink-soft); font-size: .94rem; margin: 0;
}
.gurdwara-card__actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: auto; padding-top: .4rem;
}
.gurdwara-card__map {
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  color: var(--navy); margin-left: auto;
}
.gurdwara-card__map:hover { color: var(--maroon); }

.fallback-card {
  margin: 3rem auto 0; max-width: 720px;
  background: var(--gold-pale); border: 1px solid var(--gold-lt);
  border-radius: var(--radius); padding: 2rem 1.8rem;
  text-align: center;
}
.fallback-card h3 { margin-bottom: .4rem; }
.fallback-card p { color: var(--ink-soft); margin-bottom: 1.2rem; }

@media (max-width: 740px) {
  .gurdwara-list { grid-template-columns: 1fr; }
  .locate-sep { display: none; }
  .locate-controls { flex-direction: column; align-items: stretch; }
  .locate-form { width: 100%; }
  #geo-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   LONG-FORM PROSE  (about page, etc.)
   ============================================================ */
.prose {
  max-width: 680px; margin: 0 auto;
  font-size: 1.12rem; line-height: 1.78;
}
.prose p { margin-bottom: 1.2rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--navy); }
.prose em { color: var(--ink); }

.pull-quote {
  text-align: center; margin: 2.4rem auto;
  border: 0; padding: 1.6rem 1rem;
}
.pull-quote::before,
.pull-quote::after {
  content: ''; display: block; width: 80px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
  margin: 0 auto;
}
.pull-quote::before { margin-bottom: 1.2rem; }
.pull-quote::after  { margin-top: 1.2rem; }
.pull-quote p {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy); line-height: 1.35;
  max-width: 30ch; margin: 0 auto;
}

/* ============================================================
   TESTIMONIALS MARQUEE  (auto-scrolling carousel)
   ============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: .5rem 0 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 1.5rem; width: max-content;
  animation: marquee-scroll 50s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
.marquee .quote {
  flex: 0 0 min(86vw, 360px);
  margin: 0;
}
.marquee-wrap { position: relative; }
/* Carousel arrows — only shown when the marquee is manually scrollable (reduced motion) */
.marquee-nav {
  display: none;
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-card); color: var(--ink);
  font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
  align-items: center; justify-content: center;
}
.marquee-nav:hover { background: var(--gold-lt); }
.marquee-prev { left: .3rem; }
.marquee-next { right: .3rem; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  /* No auto-scroll — fall back to an arrow-driven snap carousel */
  .marquee-track { animation: none; }
  .marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none; mask-image: none;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 3rem;
    padding: .5rem 3rem 1.5rem; /* gutters leave room for the arrow controls */
    scrollbar-width: none; /* hide the raw scrollbar — arrows are the affordance */
  }
  .marquee::-webkit-scrollbar { display: none; }
  /* The duplicate set exists only for the seamless loop — drop it so quotes don't repeat */
  .marquee-track .quote[aria-hidden="true"] { display: none; }
  .marquee .quote { scroll-snap-align: start; }
  .marquee-nav { display: inline-flex; }
}
