/* ==========================================================================
   British Institute Of Spoken English — styles.css
   Design tokens extracted from inspiration image: purple/lilac/amber system,
   pill + soft-panel shapes, blob-masked media, hairline orbit rings.
   ========================================================================== */

:root {
  /* Colour palette — matched to the institute's certificate: deep red
     wordmark, medium blue decorative accent, off-white paper background. */
  --c-primary: #A6192E;
  --c-primary-dark: #7A0F22;
  --c-primary-tint: #FBEAEC;
  --c-lilac: #3D66A6;
  --c-lilac-soft: #E6ECF6;
  --c-accent: #1F4C88;
  --c-accent-dark: #123761;
  --c-surface: #FFFFFF;
  --c-wash: #EFF6FA;
  --c-text: #241F1D;
  --c-muted: #6B645F;
  --c-border: #E6ECF6;
  --c-success: #2E8B57;
  --c-error: #C4362E;

  /* Type */
  --f-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-telugu: "Noto Sans Telugu", "Nirmala UI", sans-serif;
  --f-brand: Georgia, "Times New Roman", serif; /* institutional serif, used by the logo mark */

  /* Radii */
  --r-pill: 999px;
  --r-panel: 26px;
  --r-panel-sm: 16px;
  --r-blob: 48% 52% 44% 56% / 52% 44% 56% 48%;

  /* Shadow — neutral, low-blur elevation (no colored "glow") */
  --sh-soft: 0 1px 2px rgba(36, 31, 29, 0.06), 0 8px 20px -12px rgba(36, 31, 29, 0.16);
  --sh-hover: 0 2px 4px rgba(36, 31, 29, 0.07), 0 14px 28px -14px rgba(36, 31, 29, 0.2);

  /* Spacing scale (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 96px;

  --container: 1140px;
  --gutter: 20px;
  --section-pad: clamp(56px, 9vw, 120px);

  --dur-fast: 160ms;
  --dur-med: 320ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Defensive: the off-canvas nav drawer sits at translateX(100%) while
     closed — visibility:hidden keeps it unseen but it still occupies layout
     geometry, so without this a 100vw-wide drawer can add horizontal
     scroll room past the right edge on narrow viewports. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: var(--c-wash);
  background-image: url("assets/flourish-bg.svg");
  background-repeat: repeat;
  background-size: 480px 480px;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

body.has-mobile-bar { padding-bottom: 78px; }

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

h1, h2, h3 {
  font-family: var(--f-heading);
  color: var(--c-text);
  margin: 0 0 var(--s-4);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }

p { margin: 0 0 var(--s-4); color: var(--c-muted); }

a { color: var(--c-primary); text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

.telugu { font-family: var(--f-telugu); }

/* Focus visibility (AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -60px;
  background: var(--c-primary);
  color: #fff;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  z-index: 999;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--s-4); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

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

.section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.section--tint { background: var(--c-primary-tint); }
.section--wash {
  background-color: var(--c-wash);
  background-image: url("assets/flourish-bg.svg");
  background-repeat: repeat;
  background-size: 480px 480px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 var(--s-10);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-primary-dark);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--c-primary);
  flex-shrink: 0;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.section-head p { max-width: 46ch; }

.measure { max-width: 44ch; }

/* ==========================================================================
   Buttons & pills
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-pill);
  border: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--sh-soft);
}
.btn--primary:hover { background: var(--c-primary-dark); box-shadow: var(--sh-hover); transform: translateY(-2px); }

.btn--outline {
  background: #fff;
  color: var(--c-primary);
  border: 1.5px solid var(--c-lilac-soft);
}
.btn--outline:hover { border-color: var(--c-primary); transform: translateY(-2px); }

.btn--whatsapp {
  background: #fff;
  color: #21883f;
  border: 1.5px solid #cdeedb;
}
.btn--whatsapp:hover { background: #eafcf1; transform: translateY(-2px); }

.btn--ghost {
  background: var(--c-lilac-soft);
  color: var(--c-primary-dark);
}
.btn--ghost:hover { background: var(--c-lilac); color: #fff; }

.btn--sm { padding: var(--s-2) var(--s-5); font-size: 0.85rem; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 0.78rem;
  font-weight: 500;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--c-lilac-soft);
  color: var(--c-primary-dark);
}

/* Data-to-confirm hook: dashed accent outline toggled by demo mode */
body.demo-tbc .tbc {
  outline: 2px dashed var(--c-accent);
  outline-offset: 3px;
  border-radius: 6px;
  background: rgba(31, 76, 136, 0.08);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 8px 24px -18px rgba(36, 31, 29, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.brand img { height: 40px; width: auto; }

.brand-telugu {
  font-size: 0.72rem;
  color: var(--c-muted);
  border-left: 1px solid var(--c-border);
  padding-left: var(--s-3);
  line-height: 1.3;
  max-width: 150px;
}

.main-nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-6); }
.main-nav a {
  color: var(--c-text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: var(--s-1) 0;
  position: relative;
}
.main-nav a:hover { color: var(--c-primary); }

.header-actions { display: flex; align-items: center; gap: var(--s-3); }

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--c-primary-dark);
  background: var(--c-lilac-soft);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
}
.phone-pill svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  background: var(--c-lilac-soft);
  border-radius: var(--r-pill);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--c-primary-dark); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease);
  visibility: hidden;
}
.nav-drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-10); }
.drawer-close { background: var(--c-lilac-soft); border-radius: var(--r-pill); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: none; }
.drawer-close svg { width: 20px; height: 20px; color: var(--c-primary-dark); }

.drawer-nav { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-10); }
.drawer-nav a {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 1.3rem;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-pill);
  color: var(--c-text);
}
.drawer-nav a:hover { background: var(--c-lilac-soft); color: var(--c-primary-dark); }

.drawer-actions { display: flex; flex-direction: column; gap: var(--s-3); margin-top: auto; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-top: clamp(40px, 7vw, 88px); }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-12);
  align-items: center;
}

/* Grid items default to min-width:auto, which lets an unbreakable child
   (a flex row of nowrap pills/buttons) force the track — and the whole
   page — wider than the viewport. min-width:0 lets it wrap instead. */
.hero-copy { min-width: 0; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.badge-since {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 0.82rem;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
}

.badge-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: #fff;
  border: 1px solid var(--c-lilac-soft);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--sh-soft);
}
.badge-rating .stars { display: inline-flex; gap: 2px; }
.badge-rating svg { width: 15px; height: 15px; color: var(--c-accent); }

.hero h1 {
  font-size: clamp(2.15rem, 6.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero-sub { font-size: 1.02rem; max-width: 44ch; margin-bottom: var(--s-8); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-8);
}

.orbit-ring {
  position: absolute;
  inset: 6% 8%;
  border: 1px solid var(--c-lilac);
  border-radius: 50%;
  opacity: 0.55;
}

.hero-blob {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: var(--r-blob);
  background: linear-gradient(155deg, var(--c-lilac) 0%, var(--c-primary) 100%);
  box-shadow: var(--sh-soft);
  overflow: hidden;
}
.hero-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.orbit-badge {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-lilac-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-soft);
}
.orbit-badge svg { width: 20px; height: 20px; }
.orbit-badge--star { top: 2%; left: 18%; color: var(--c-accent); }
.orbit-badge--dot { top: 12%; right: 6%; background: var(--c-accent); border: none; }
.orbit-badge--dot svg { color: #fff; }
.orbit-badge--ielts {
  bottom: 4%; left: 4%;
  width: auto; height: auto;
  border-radius: var(--r-pill);
  padding: var(--s-2) var(--s-4);
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--c-primary-dark);
}

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 0.85fr 1fr; gap: var(--s-16); }
}

/* orbit slow drift */
@media (prefers-reduced-motion: no-preference) {
  .orbit-ring { animation: spin 60s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Why us
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-item { display: flex; gap: var(--s-4); align-items: flex-start; }

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--r-panel-sm);
  background: var(--c-lilac-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-item:nth-child(even) .why-icon { background: var(--c-lilac-soft); }
.why-icon svg { width: 22px; height: 22px; color: var(--c-primary); }
.why-item:nth-child(even) .why-icon svg { color: var(--c-accent-dark); }

.why-item h3 { font-size: 1rem; margin-bottom: var(--s-1); }
.why-item p { font-size: 0.9rem; margin: 0; }

/* ==========================================================================
   Courses
   ========================================================================== */

.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 640px) { .course-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }

.course-card {
  background: var(--c-surface);
  border-radius: var(--r-panel-sm);
  border: 1px solid var(--c-border);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.course-card:hover { border-color: var(--c-lilac); transform: translateY(-3px); }

.course-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--c-lilac);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
}
.course-icon svg { width: 21px; height: 21px; color: var(--c-primary); }

.course-card h3 { font-size: 1.15rem; }
.course-card .covers { font-size: 0.88rem; margin-bottom: var(--s-4); flex-grow: 1; }

.course-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.meta-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--c-wash);
  color: var(--c-primary-dark);
  border: 1px solid var(--c-border);
}

/* ==========================================================================
   Trainers
   ========================================================================== */

.trainer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
}
@media (min-width: 720px) { .trainer-grid { grid-template-columns: repeat(3, 1fr); } }

.trainer-card { text-align: center; }

.trainer-avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  background: var(--c-primary-tint);
  border: 1.5px solid var(--c-primary);
  outline: 1px solid var(--c-border);
  outline-offset: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--c-primary);
}

.trainer-card h3 { margin-bottom: var(--s-1); font-size: 1.1rem; }
.trainer-card .focus { font-size: 0.88rem; margin: var(--s-2) 0 0; }

/* ==========================================================================
   Results / stats
   ========================================================================== */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-10);
}

.stat-tile {
  background: var(--c-surface);
  border-radius: var(--r-panel-sm);
  padding: var(--s-6) var(--s-4);
  text-align: center;
  border-bottom: 3px solid var(--c-primary);
}
.stat-num {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--c-primary);
  display: block;
}
.stat-label { font-size: 0.85rem; color: var(--c-muted); }

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 720px) { .result-grid { grid-template-columns: repeat(3, 1fr); } }

.result-card {
  background: var(--c-primary-tint);
  border-radius: var(--r-panel);
  padding: var(--s-6);
}
.result-card svg { width: 30px; height: 30px; color: var(--c-primary); margin-bottom: var(--s-3); }
.result-card p { color: var(--c-text); font-size: 0.95rem; margin: 0; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-columns {
  columns: 1;
  gap: var(--s-6);
}
@media (min-width: 640px) { .testimonial-columns { columns: 2; } }
@media (min-width: 980px) { .testimonial-columns { columns: 3; } }

.testimonial-card {
  background: var(--c-surface);
  border-radius: var(--r-panel-sm);
  padding: var(--s-6);
  margin-bottom: var(--s-6);
  break-inside: avoid;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-lilac);
}
.quote-mark { font-family: var(--f-heading); font-size: 2.6rem; color: var(--c-lilac); line-height: 1; margin-bottom: var(--s-2); }
.testimonial-card p.quote { color: var(--c-text); font-size: 0.95rem; margin-bottom: var(--s-4); }
.testimonial-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.testimonial-stars { display: flex; gap: 2px; }
.testimonial-stars svg { width: 14px; height: 14px; color: var(--c-accent); }
.testimonial-name { font-weight: 600; font-size: 0.88rem; color: var(--c-text); }
.google-chip { display: inline-flex; align-items: center; gap: var(--s-1); font-size: 0.72rem; color: var(--c-muted); }
.google-chip svg { width: 13px; height: 13px; }

/* ==========================================================================
   Timings & fee policy
   ========================================================================== */

.timing-pills { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-10); }
.timing-pill {
  background: #fff;
  border: 1px solid var(--c-border);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.timing-pill svg { width: 16px; height: 16px; color: var(--c-primary); }

.policy-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-lilac-soft);
  border-radius: var(--r-panel);
  padding: var(--s-8);
}
.policy-panel h3 { font-size: 1.2rem; }
.policy-list { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 720px) { .policy-list { grid-template-columns: 1fr 1fr; } }
.policy-item { display: flex; gap: var(--s-3); align-items: flex-start; }
.policy-item svg { width: 22px; height: 22px; color: var(--c-success); flex-shrink: 0; margin-top: 2px; }
.policy-item p { margin: 0; font-size: 0.92rem; color: var(--c-text); }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-panel);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--s-4);
  isolation: isolate;
}
.gallery-tile svg.icon { position: absolute; inset: 0; margin: auto; width: 34%; height: 34%; color: rgba(255,255,255,0.85); z-index: 0; }
.gallery-tile .cap {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.gallery-tile:nth-child(1) { background: linear-gradient(155deg, var(--c-lilac), var(--c-primary)); }
.gallery-tile:nth-child(2) { background: linear-gradient(155deg, var(--c-primary), var(--c-primary-dark)); }
.gallery-tile:nth-child(3) { background: linear-gradient(155deg, var(--c-accent), var(--c-accent-dark)); }
.gallery-tile:nth-child(4) { background: linear-gradient(155deg, var(--c-primary-dark), var(--c-primary)); }
.gallery-tile:nth-child(5) { background: linear-gradient(155deg, var(--c-lilac), var(--c-primary-dark)); }
.gallery-tile:nth-child(6) { background: linear-gradient(155deg, var(--c-accent-dark), var(--c-primary)); }

/* ==========================================================================
   Visit us
   ========================================================================== */

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-10);
}
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr; } }
.visit-grid > .reveal { min-width: 0; }

.visit-list { display: flex; flex-direction: column; gap: var(--s-5); margin-bottom: var(--s-6); }
.visit-row { display: flex; gap: var(--s-4); align-items: flex-start; }
.visit-row svg { width: 22px; height: 22px; color: var(--c-primary); flex-shrink: 0; margin-top: 2px; }
.visit-row strong { display: block; color: var(--c-text); font-size: 0.95rem; margin-bottom: 2px; }
.visit-row p { margin: 0; font-size: 0.9rem; }

.visit-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.map-card {
  background: var(--c-surface);
  border-radius: var(--r-panel);
  padding: var(--s-8);
  text-align: center;
  box-shadow: var(--sh-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.map-card svg.pin { width: 48px; height: 48px; color: var(--c-primary); margin-bottom: var(--s-4); }
.map-card .pluscode { font-size: 0.8rem; color: var(--c-muted); margin-bottom: var(--s-5); }

.map-embed-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: var(--sh-soft);
  aspect-ratio: 4 / 3;
}
.map-embed-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Booking form
   ========================================================================== */

.book-panel {
  background: var(--c-surface);
  border-radius: var(--r-panel);
  padding: var(--s-8);
  box-shadow: var(--sh-soft);
  max-width: 640px;
  margin: 0 auto;
}

.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 600px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-weight: 600; font-size: 0.88rem; color: var(--c-text); }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-panel-sm);
  border: 1.5px solid var(--c-border);
  background: var(--c-wash);
  color: var(--c-text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px var(--c-lilac-soft);
}
.field select.flash { animation: flashRing 900ms var(--ease); }
@keyframes flashRing { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 5px var(--c-lilac-soft); } }

.field textarea { resize: vertical; min-height: 90px; }

.field-error {
  font-size: 0.8rem;
  color: var(--c-error);
  display: none;
}
.field.has-error input,
.field.has-error select { border-color: var(--c-error); }
.field.has-error .field-error { display: block; }

.form-note { font-size: 0.8rem; color: var(--c-muted); margin-top: var(--s-2); }

.form-success {
  display: none;
  text-align: center;
  padding: var(--s-10) var(--s-4);
}
.form-success.is-visible { display: block; }
.form-success svg { width: 56px; height: 56px; color: var(--c-success); margin: 0 auto var(--s-4); }
.form-success h3 { font-size: 1.3rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--c-primary-dark);
  color: #F5DEE3;
  padding: var(--s-16) 0 var(--s-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-10);
  margin-bottom: var(--s-10);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-brand { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); }
.footer-telugu { font-size: 0.85rem; color: #E8C6CC; margin-bottom: var(--s-3); }
.footer-col h4 { font-family: var(--f-heading); font-size: 0.95rem; color: #fff; margin-bottom: var(--s-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a, .footer-col p { color: #E8C6CC; font-size: 0.88rem; margin: 0; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 18px; height: 18px; color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 0.8rem;
  color: #D6AFB6;
}

/* ==========================================================================
   Sticky mobile action bar
   ========================================================================== */

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -8px 20px -14px rgba(36,31,29,0.2);
  display: none;
  grid-template-columns: repeat(3, 1fr);
  padding: var(--s-2) var(--s-3);
  padding-bottom: calc(var(--s-2) + env(safe-area-inset-bottom));
  gap: var(--s-2);
  transform: translateY(100%);
  transition: transform var(--dur-med) var(--ease);
}
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar a, .mobile-bar button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 0.68rem; font-weight: 600; color: var(--c-primary-dark);
  background: none; border: none; padding: var(--s-1);
}
.mobile-bar svg { width: 20px; height: 20px; }
.mobile-bar .is-primary { color: var(--c-primary); }

@media (max-width: 860px) {
  .mobile-bar { display: grid; }
}

/* ==========================================================================
   Demo-mode toggle (button markup removed from the page; kept for reuse)
   ========================================================================== */

.demo-toggle {
  position: fixed;
  left: var(--s-4);
  bottom: var(--s-4);
  z-index: 450;
  background: var(--c-text);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: var(--s-3) var(--s-5);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.45);
}
.demo-toggle svg { width: 15px; height: 15px; }
.demo-toggle[aria-pressed="true"] { background: var(--c-accent-dark); }
.demo-toggle .count {
  background: rgba(255,255,255,0.2);
  border-radius: var(--r-pill);
  padding: 1px 7px;
  font-size: 0.7rem;
}

@media (max-width: 860px) {
  .demo-toggle { bottom: calc(78px + var(--s-3)); }
}

/* ==========================================================================
   Responsive: header collapse
   ========================================================================== */

@media (max-width: 900px) {
  .main-nav, .header-actions .phone-pill, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .brand-telugu { display: none; }
  .header-actions { margin-left: auto; }
}
@media (min-width: 901px) {
  .nav-drawer { display: none; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Stagger grid items instead of revealing every card in lockstep */
:is(.why-grid, .course-grid, .trainer-grid, .stats-row, .result-grid, .testimonial-columns, .gallery-grid) > .reveal:nth-child(2) { transition-delay: 70ms; }
:is(.why-grid, .course-grid, .trainer-grid, .stats-row, .result-grid, .testimonial-columns, .gallery-grid) > .reveal:nth-child(3) { transition-delay: 140ms; }
:is(.why-grid, .course-grid, .trainer-grid, .stats-row, .result-grid, .testimonial-columns, .gallery-grid) > .reveal:nth-child(4) { transition-delay: 210ms; }
:is(.why-grid, .course-grid, .trainer-grid, .stats-row, .result-grid, .testimonial-columns, .gallery-grid) > .reveal:nth-child(5) { transition-delay: 280ms; }
:is(.why-grid, .course-grid, .trainer-grid, .stats-row, .result-grid, .testimonial-columns, .gallery-grid) > .reveal:nth-child(6) { transition-delay: 350ms; }
:is(.why-grid, .course-grid, .trainer-grid, .stats-row, .result-grid, .testimonial-columns, .gallery-grid) > .reveal:nth-child(7) { transition-delay: 420ms; }
:is(.why-grid, .course-grid, .trainer-grid, .stats-row, .result-grid, .testimonial-columns, .gallery-grid) > .reveal:nth-child(8) { transition-delay: 490ms; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .orbit-ring { animation: none; }
}

/* No-JS fallback: never hide content behind JS-only reveal */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .nav-drawer { display: none; }
.no-js .form-success { display: none !important; }
