/* Tattva Global Consulting — single-page site
   Colours come from the logo: navy for the emblem and wordmark, warm taupe for "Global Consulting". */

:root {
  --navy: #12355F;
  --navy-deep: #0B2545;
  --navy-ink: #081A33;
  --blue: #2B5FA0;
  --taupe: #B5955A;      /* the gold of "Global Consulting" in the logo */
  --taupe-deep: #8A6F3E; /* darker gold for small text, keeps 4.5:1 contrast on white */
  --taupe-tint: #F3EDE0;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --ink: #1B2430;
  --muted: #5F6977;
  --line: #E4DFD5;
  --line-dark: rgba(255, 255, 255, 0.14);
  --wa: #25D366;
  --wa-dark: #1DA851;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
  --header-h: 76px;
}

/* ---------- 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(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; color: var(--navy-ink); letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe-deep);
  margin: 0 0 18px;
}
.eyebrow .num { color: var(--taupe); margin-right: 10px; font-weight: 500; }
.eyebrow .num::after { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--taupe); vertical-align: middle; margin-left: 10px; }
.eyebrow-light { color: #E6D9C2; }
.eyebrow-light .num { color: #C8B38E; }
.eyebrow-light .num::after { background: #C8B38E; }

h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: 1.04; }
h1 em { font-style: italic; color: var(--taupe-deep); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); max-width: 22ch; }
h3 { font-size: 1.35rem; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 52ch; margin-top: 24px; }
.section-intro { color: var(--muted); max-width: 60ch; margin-top: 18px; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-block { width: 100%; }
.btn-whatsapp { background: var(--wa-dark); color: #fff; border-color: var(--wa-dark); width: 100%; padding: 15px 26px; }
.btn-whatsapp:hover { background: #178A43; border-color: #178A43; color: #fff; }

.link-arrow { font-weight: 600; text-decoration: none; color: var(--navy); white-space: nowrap; }
.link-arrow::after { content: "→"; display: inline-block; margin-left: 7px; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* No backdrop-filter here: it would make the header the containing block for the fixed mobile menu, collapsing it. */
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(8, 26, 51, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 46px; height: auto; }
/* Logo whose globe turns (js/globe.js): the land canvas sits under the letters image */
.globe-logo { position: relative; display: block; width: fit-content; flex: none; }
.globe-logo img { position: relative; }
.globe-logo canvas { position: absolute; pointer-events: none; }
/* TATTVA / GLOBAL CONSULTING wordmark (inline SVG, header and footer) */
.wordmark { display: block; overflow: visible; }
.wordmark-name { fill: var(--navy); }
.wordmark-dash, .wordmark-sub { fill: var(--taupe); }
.wordmark-sub { font-family: "Montserrat", var(--sans); font-weight: 500; font-size: 31.4px; }
.brand-word { width: auto; height: 32px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.98rem; color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--navy); border-bottom-color: var(--taupe); }
.nav-cta { padding: 11px 20px; font-size: 0.95rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle-bars { top: 20px; }
.nav-toggle-bars::before { left: 0; top: -6px; }
.nav-toggle-bars::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero .eyebrow { font-size: 0.9rem; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.hero-facts strong { color: var(--navy-ink); font-weight: 600; }

.hero-media { margin: 0; position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 1px solid var(--taupe); border-radius: var(--radius); z-index: 0; opacity: .8;
}
.hero-media picture { display: block; width: 100%; }
.hero-media img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 11 / 13; }
.hero-media figcaption {
  position: absolute; z-index: 2; left: -18px; bottom: 36px;
  background: var(--white); padding: 12px 18px;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--navy);
  border-left: 3px solid var(--taupe); box-shadow: 0 10px 30px rgba(8, 26, 51, 0.12);
}
/* the headline number, on a white card at the photo's top-left corner (mirrors the caption below) */
.hero-stat {
  position: absolute; z-index: 2; left: -18px; top: 36px; margin: 0;
  display: flex; align-items: center; gap: 14px;
  background: var(--white); padding: 14px 22px 14px 18px;
  border-left: 3px solid var(--taupe); box-shadow: 0 10px 30px rgba(8, 26, 51, 0.12);
}
.hero-stat strong { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; color: var(--navy); }
.hero-stat span { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; line-height: 1.45; color: var(--taupe-deep); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy-deep); color: #D9E0EA; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-foot { margin-top: 40px; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy p { font-size: 1.12rem; max-width: 60ch; }
.about-copy em { color: var(--taupe-deep); font-style: italic; }
.mission { margin: 36px 0 0; padding: 26px 0 0 28px; border-left: 2px solid var(--taupe); }
.mission p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; color: var(--navy); margin: 0; max-width: 34ch; }
.mission .mission-sub { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--muted); margin-top: 12px; max-width: 52ch; }

.photo-frame { margin: 0; position: relative; }
.photo-frame picture { display: block; width: 100%; }
.photo-frame img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 6px 0 0; font-family: var(--serif); font-size: 1.25rem; color: var(--navy-ink); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 5vw, 72px); counter-reset: none; }
.services > li { position: relative; padding: 30px 0 30px 64px; border-top: 1px solid var(--line); }
.services > li:nth-child(-n+2) { border-top: 1px solid var(--navy-ink); }
.services > li.service-wide { grid-column: 1 / -1; }
.service-wide p { max-width: 78ch; }
.visa-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.visa-tags li { padding: 4px 13px; border: 1px solid var(--taupe); border-radius: 999px; background: var(--white); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--navy); }
.service-num { position: absolute; left: 0; top: 34px; font-family: var(--serif); font-size: 1.2rem; color: var(--taupe); }
.services h3 { font-size: 1.4rem; margin-bottom: 10px; }
.services p { margin: 0; color: var(--muted); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.why-lead h2 { max-width: 18ch; }
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.why-list li { padding: 26px 0; border-top: 1px solid var(--line-dark); }
.why-list h3 { font-size: 1.3rem; margin-bottom: 10px; }
.why-list p { margin: 0; color: #B9C4D4; }
/* ---------- Destinations ---------- */
.banner { margin: 0 0 clamp(32px, 4vw, 56px); position: relative; }
.banner picture { display: block; width: 100%; }
.banner img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; border-radius: var(--radius); }
.banner figcaption {
  position: absolute; left: 0; bottom: 0; max-width: 520px;
  background: var(--navy-deep); color: #E8EDF4; padding: 18px 24px;
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.4;
}
.destinations { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.destinations > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.destinations h3 { font-size: 1.35rem; margin-bottom: 10px; }
.destinations p { margin: 0 0 14px; color: var(--muted); font-size: 0.98rem; }
.destinations .meta { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--taupe-deep); font-weight: 600; }
.destinations-more { padding: 26px 22px 28px; background: var(--taupe-tint) !important; }
.destinations-more h3 { color: var(--taupe-deep); }
.dest-hint { display: none; margin: -12px 0 18px; font-size: 0.9rem; color: var(--muted); }
@media (hover: none) { .dest-hint { display: block; } }

/* Country cards: the flag side turns over to a navy side with the details. Both sides share one grid
   cell, so the card is as tall as the taller side. Hover turns it on devices that can hover; on touch
   screens js/main.js turns it on a tap (.is-flipped); keyboard focus turns it too. */
.dest { display: grid; perspective: 1100px; cursor: pointer; }
.dest-inner { display: grid; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.dest-front, .dest-back { grid-area: 1 / 1; padding: 28px 22px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.dest-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; background: var(--white); transform: rotateY(0deg); }
.dest-front h3 { margin: 0; }
.dest-flag { width: 104px; height: 78px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(8, 26, 51, 0.08), 0 8px 18px rgba(8, 26, 51, 0.16); }
.dest-back { display: flex; flex-direction: column; justify-content: center; background: var(--navy-deep); transform: rotateY(180deg); }
.dest-back .dest-name { margin: 0 0 10px; font-family: var(--serif); font-size: 1.35rem; color: #fff; }
.dest-back p { color: #D9E0EA; }
.dest-back .dest-unis { font-size: 0.9rem; line-height: 1.5; }
.dest-unis span { display: block; margin-bottom: 2px; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: #C8B38E; }
.dest-back .meta { color: #E6D9C2; }
.dest:focus-visible { outline: 2px solid var(--taupe); outline-offset: -2px; }
.dest:focus-visible .dest-inner, .dest.is-flipped .dest-inner { transform: rotateY(180deg); }
@media (hover: hover) { .dest:hover .dest-inner { transform: rotateY(180deg); } }

/* ---------- Journey ---------- */
/* Six numbered steps joined by a line; three per row on tablets; a vertical line on phones */
.journey { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.journey::before { content: ""; position: absolute; top: 22px; left: 22px; right: calc((100% - 5 * 28px) / 6 - 22px); height: 1px; background: linear-gradient(90deg, var(--navy), var(--taupe)); }
.journey li { position: relative; }
.journey-step { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-size: 1.2rem; box-shadow: 0 0 0 6px var(--white); }
.journey li:last-child .journey-step { background: var(--taupe); }
.journey-when { display: block; margin: 18px 0 6px; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--taupe-deep); }
.journey h3 { margin: 0 0 8px; font-size: 1.25rem; }
.journey p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- Team ---------- */
/* the photo stretches to the height of the text beside it, from the name down to the links */
.founder { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; max-width: 1040px; }
.founder-portrait { border-radius: var(--radius); background: var(--navy-deep); overflow: hidden; }
.founder-portrait picture { display: block; width: 100%; height: 100%; }
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.founder h3 { font-size: 1.8rem; }
.founder .role { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--taupe-deep); font-weight: 600; margin: 8px 0 18px; max-width: none; }
/* the three titles sit on one line with dividers, and stack when the column is too narrow for that */
.founder-copy { container-type: inline-size; }
.founder .role span { display: inline-block; }
.founder .role span:not(:last-child)::after { content: "|"; margin: 0 0.45em 0 0.7em; color: var(--taupe); font-weight: 400; }
@container (max-width: 700px) {
  .founder .role span { display: block; margin-bottom: 4px; }
  .founder .role span:not(:last-child)::after { content: none; }
}
.founder-copy p { max-width: 58ch; font-size: 1.08rem; }
.founder-links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 0; }
.founder-links a { font-weight: 600; }

/* ---------- Testimonials ---------- */
/* Two full-width rows of white review cards on the navy band. js/main.js moves both rows right to
   left in an endless loop (the second a little slower, starting half a card along); without JS, or
   when the visitor prefers less motion, each row stays still and scrolls sideways by hand. */
.reviews { display: grid; gap: clamp(16px, 2vw, 22px); }
.reviews-row { overflow-x: auto; scroll-snap-type: x mandatory; }
.reviews-track { display: flex; gap: clamp(16px, 2vw, 22px); width: max-content; margin: 0; padding: 0; list-style: none; }
.review { flex: none; display: flex; width: min(340px, 78vw); scroll-snap-align: start; }
.review figure { position: relative; display: flex; flex-direction: column; width: 100%; margin: 0; padding: 24px 24px 20px; background: var(--white); border-radius: 14px; }
.review figure::after { content: "”"; position: absolute; top: 8px; right: 20px; font-family: var(--serif); font-size: 4.6rem; line-height: 1; color: var(--taupe); opacity: .3; }
.review-stars { margin: 0 0 12px; font-size: 0.95rem; letter-spacing: 0.14em; color: #D2A548; }
.review blockquote { flex: 1; margin: 0; }
.review blockquote p { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; color: var(--navy-ink); }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.review-avatar.a1 { background: var(--navy); }
.review-avatar.a2 { background: var(--taupe); }
.review-avatar.a3 { background: var(--blue); }
.review-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.review-who strong { font-size: 0.95rem; font-weight: 600; color: var(--navy-ink); }
.review-who span { font-size: 0.82rem; color: var(--muted); }
.reviews.is-moving .reviews-row { overflow: hidden; scroll-snap-type: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.reviews.is-moving .reviews-track { animation: reviews-scroll var(--reviews-time, 60s) linear var(--reviews-delay, 0s) infinite; }
.reviews.is-moving:hover .reviews-track,
.reviews.is-moving:focus-visible .reviews-track,
.reviews.is-paused .reviews-track { animation-play-state: paused; }
@keyframes reviews-scroll { to { transform: translateX(var(--reviews-shift, -50%)); } }
.reviews:focus-visible { outline: 2px solid var(--taupe); outline-offset: 6px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.32rem; color: var(--navy-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.5rem; color: var(--taupe); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }
.faq details[open] p { animation: faq-open .3s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-item { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-item h3 { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.contact-item p, .contact-item address { margin: 0; font-size: 1.08rem; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

.wa-card { background: var(--paper); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); }
.wa-card .eyebrow { margin-bottom: 12px; }
.wa-card h3 { font-size: 1.6rem; margin-bottom: 14px; }
.wa-card > p { color: var(--muted); }
/* the admission-plan form inside the card: name, phone, country and intake, sent to WhatsApp by js/main.js */
.enquiry-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin: 24px 0 22px; }
.enquiry-field { display: grid; gap: 6px; min-width: 0; }
.enquiry-label { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.enquiry-intake { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.enquiry input, .enquiry select { width: 100%; min-width: 0; height: 48px; padding: 0 12px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid #CFC7B8; border-radius: var(--radius); }
.enquiry input:focus, .enquiry select:focus { outline: 2px solid var(--taupe); outline-offset: 1px; border-color: var(--taupe); }
.enquiry .btn-whatsapp { font-family: inherit; }
.wa-note { font-size: 0.9rem; color: var(--muted); margin: 16px 0 0; }

/* ---------- Admission-plan popup (opened by js/main.js) ---------- */
/* The dialog itself has no padding, so a click that lands on it rather than the card is a backdrop click. */
.plan-popup { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.plan-popup::backdrop { background: rgba(8, 26, 51, 0.62); }
.plan-popup .wa-card { position: relative; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; border-top: 4px solid var(--taupe); box-shadow: 0 24px 60px rgba(8, 26, 51, 0.35); }
.plan-popup .wa-card h3 { padding-right: 40px; }
.plan-popup-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--navy); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.plan-popup-close:hover { background: var(--taupe-tint); }
.plan-popup-close:focus-visible { outline: 2px solid var(--taupe); outline-offset: 1px; }
.plan-popup[open] { animation: popup-in .35s cubic-bezier(.2, .7, .2, 1); }
.plan-popup[open]::backdrop { animation: popup-fade .35s ease; }
@keyframes popup-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes popup-fade { from { opacity: 0; } }
body.popup-open { overflow: hidden; }

.map { margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map iframe { display: block; filter: saturate(0.85); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: #B9C4D4; padding: clamp(48px, 6vw, 80px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.8fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { width: 200px; }
/* the wordmark fills the band between the emblem and the flags in footer-logo.png */
.footer-word { position: absolute; left: 15%; top: 65.4%; width: 70%; height: auto; }
.footer-word .wordmark-name { fill: #fff; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: #E6D9C2; margin: 18px 0 0; }
.footer-col h3 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8FA0B8; font-weight: 600; margin-bottom: 14px; }
.footer-col p, .footer-col address { margin: 0; line-height: 1.7; }
.site-footer a { color: #E8EDF4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 0.9rem; color: #8FA0B8; }
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform .18s ease, background-color .18s ease;
}
.wa-float:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px); }

/* ---------- Reveal on scroll (JS only) ---------- */
/* Blocks rise into place each time they scroll into view, and reset once fully off screen (js/main.js).
   A block that left past the top (.is-above) comes back down from above instead. Variants: -left /
   -right slide in from that side, -zoom grows in slightly, and -stagger leaves the list itself still
   while its items arrive one after another (js/main.js numbers them in --i, out of --n), top first when
   scrolling down and bottom first when scrolling up. main clips sideways so slides never add a scrollbar. */
main { overflow-x: clip; }
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-above { transform: translateY(-40px); }
.js .reveal.reveal-left { transform: translateX(-48px); }
.js .reveal.reveal-right { transform: translateX(48px); }
.js .reveal.reveal-zoom { transform: scale(.94); }
.js .reveal.reveal-stagger { opacity: 1; transform: none; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal-stagger.is-above > * { transform: translateY(-32px); transition-delay: calc((var(--n, 1) - 1 - var(--i, 0)) * 90ms); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
/* the short gold line after each section number draws itself in */
.js .section-head.reveal .eyebrow .num::after { width: 0; transition: width .8s ease .35s; }
.js .section-head.reveal.is-visible .eyebrow .num::after { width: 22px; }

/* Thin gold bar under the header that fills as the page is scrolled (js/main.js sets the scale) */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--taupe), #D9B970); transform: scaleX(0); transform-origin: left center; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .js .section-head.reveal .eyebrow .num::after { width: 22px; transition: none; }
  .btn, .link-arrow::after, .wa-float, .dest-inner { transition: none; }
  .faq details[open] p { animation: none; }
  .plan-popup[open], .plan-popup[open]::backdrop { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .destinations { grid-template-columns: repeat(3, 1fr); }
  .journey { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .journey::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 24px var(--gutter) 40px; gap: 24px; overflow-y: auto;
    /* Fade and drop in, rather than slide from the right: an off-screen panel to the right would make the page scroll sideways. */
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-nav { overscroll-behavior: contain; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  body.nav-open .wa-float { opacity: 0; visibility: hidden; }
  .site-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .site-nav ul a:not(.btn) { display: block; padding: 14px 0; font-family: var(--serif); font-size: 1.5rem; border-bottom: 1px solid var(--line); }
  .nav-cta { width: 100%; padding: 14px; }
  body.nav-open { overflow: hidden; }

  .hero { padding-top: 40px; }
  .hero-grid, .about-grid, .why-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { margin-top: 12px; }
  .hero-media::before { inset: 14px -14px -14px 14px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-media figcaption { left: 12px; bottom: 16px; font-size: 0.7rem; padding: 10px 14px; }
  .hero-stat { left: 12px; top: 16px; gap: 10px; padding: 10px 16px 10px 14px; }
  .hero-stat strong { font-size: 2rem; }
  .hero-stat span { font-size: 0.66rem; }
  .services, .why-list { grid-template-columns: 1fr; }
  .services > li:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .services > li:first-child { border-top-color: var(--navy-ink); }
  .faq-grid .section-head { position: static; margin-bottom: 8px; }
  .destinations { grid-template-columns: repeat(2, 1fr); }
  .banner figcaption { position: static; max-width: none; }
  .founder { grid-template-columns: 1fr; }
  .founder-portrait { width: 180px; aspect-ratio: 4 / 5; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .enquiry-fields { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; row-gap: 26px; }
  .journey::before { display: block; top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--navy), var(--taupe)); }
  .journey li { padding-left: 64px; }
  .journey-step { position: absolute; left: 0; top: 0; }
  .journey-when { margin-top: 10px; }
  .brand img { width: 40px; }
  .brand-word { height: 28px; }
  .hero-actions { gap: 18px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: 8px 20px; }
  .banner img { aspect-ratio: 16 / 10; }
  .destinations { grid-template-columns: 1fr; }
  .dest-front, .dest-back { padding: 22px 20px; }
  .dest-flag { width: 88px; height: 66px; }
  .facts { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  /* room under the footer so the floating WhatsApp button never covers "Back to top" */
  .site-footer { padding-bottom: 92px; }
  /* the floating button shrinks to just the WhatsApp icon (its aria-label still names it) */
  .wa-float { right: 14px; bottom: 14px; padding: 14px; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .map iframe { height: 300px; }
}

/* Touch screens: standalone links get a finger-sized (about 44px) tap area */
@media (pointer: coarse) {
  .link-arrow, .contact-item a, .footer-col a, .founder-links a, .footer-bottom a { display: inline-block; padding: 8px 0; }
  .footer-links li { margin-bottom: 0; }
}
