/* =============================================================
   AHS ZONE — style.css
   Premium design system for a holding-company / education consultancy.
   Plain CSS3 with custom properties. No frameworks.
   Structure:
     1. Design tokens (CSS variables)
     2. Reset & base
     3. Layout helpers
     4. Buttons & links
     5. Header / navigation
     6. Hero
     7. Section scaffold
     8. Companies (portfolio)
     9. Sub-brand (UniBridge)
    10. About & stats
    11. Services (clauses)
    12. Contact (form)
    13. Footer
    14. Animations (scroll reveal, logo)
   Responsive rules live in css/responsive.css
   ============================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Palette */
  --bg:            #F4F0E3;   /* warm cream background */
  --bg-alt:        #ECE6D5;   /* slightly deeper cream for banded sections */
  --bg-card:       #FBF8F0;   /* near-white card surface */
  --navy:          #16284A;   /* deep navy — primary */
  --navy-soft:     #2C3E60;   /* lighter navy for hover / secondary text */
  --brass:         #A88B5B;   /* muted brass — accent */
  --brass-light:   #C2A978;   /* lighter brass for hovers */
  --ink:           #16284A;   /* default text (navy) */
  --ink-muted:     #4A5568;   /* muted body text */
  --ink-faint:     rgba(22, 40, 74, 0.55);
  --rule:          rgba(22, 40, 74, 0.16);  /* hairline divider */
  --rule-strong:   rgba(22, 40, 74, 0.30);  /* emphasized divider */

  /* Typography */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:  'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Spacing scale (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 128px;

  /* Radii & shadows */
  --radius:    4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 40, 74, 0.06);
  --shadow-md: 0 10px 30px rgba(22, 40, 74, 0.08);
  --shadow-lg: 0 24px 60px rgba(22, 40, 74, 0.12);

  /* Layout */
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.4s;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Subtle paper texture: faint horizontal ruling, very low contrast */
  background-image:
    linear-gradient(var(--bg), var(--bg)),
    repeating-linear-gradient(0deg, transparent, transparent 33px, rgba(22,40,74,0.025) 34px);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; color: var(--navy); }

::selection { background: var(--brass); color: var(--bg); }

/* Accessible focus state for keyboard users */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Respect users who prefer 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;
  }
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.wrap   { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-3); }
.wrap-narrow { max-width: var(--maxw-narrow); }
.section { padding: var(--space-6) 0; }
.band    { background: var(--bg-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- 4. BUTTONS & LINKS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(4px); }

.btn-primary { background: var(--navy); color: var(--bg); }
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-2px); }

.btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--bg); }

.link-underline {
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-underline:hover { color: var(--brass); border-color: var(--brass-light); }

/* ---------- 5. HEADER / NAVIGATION ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 227, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.brandmark { display: flex; align-items: center; }
.brandmark-logo {
  height: 46px;
  width: auto;
  animation: logoIn 0.8s var(--ease) both;
  transition: transform var(--dur) var(--ease);
}
.brandmark:hover .brandmark-logo { transform: scale(1.04); }

.nav-links { display: flex; align-items: center; gap: var(--space-4); }
.nav-list { display: flex; align-items: center; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-muted);
  padding: 6px 0;
  transition: color var(--dur) var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-list a:hover { color: var(--navy); }
.nav-list a:hover::after { transform: scaleX(1); }

/* Dropdown */
.nav-item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 0;
  min-width: 264px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.dropdown-inner {
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 8px;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 0.95rem;
}
.dropdown a:hover { background: var(--bg-alt); }
.dropdown a::after { display: none; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--navy-soft);
  white-space: nowrap;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--navy);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  background: var(--bg);
  padding: var(--space-2) var(--space-3) var(--space-3);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 4px;
  border-bottom: 1px solid var(--rule);
  color: var(--navy);
  font-size: 1rem;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ---------- 6. HERO ---------- */
.hero { padding: var(--space-6) 0 var(--space-6); border-bottom: 1px solid var(--rule-strong); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
}
.hero-meta span { display: block; color: var(--ink-faint); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.015em;
  margin: 0;
}
.hero-title em { font-style: italic; font-weight: 450; color: var(--brass); }
.hero-lede {
  margin-top: var(--space-3);
  max-width: 54ch;
  font-size: 1.1rem;
  color: var(--ink-muted);
}
.hero-actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* Rotating seal badge — circular frame retained, logo fitted inside the circle */
.seal {
  width: 190px; height: 190px;
  position: relative;
  display: grid; place-items: center;
  justify-self: end;
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 44s linear infinite; }
.seal-logo {
  position: relative;
  width: 122px; height: auto;
}

/* Hero trust strip — social proof under the primary CTA */
.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin-top: var(--space-3);
  list-style: none; padding: 0;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted);
}
.hero-trust li { display: flex; align-items: baseline; gap: 6px; }
.hero-trust strong { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--navy); }

/* ---------- 7. SECTION SCAFFOLD ---------- */
.section-head {
  display: flex; align-items: baseline; gap: var(--space-3);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--rule);
}
.clause-no {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brass);
  white-space: nowrap;
}
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-muted);
  max-width: 64ch;
  margin: calc(var(--space-5) * -0.6) 0 var(--space-5);
}

/* ---------- 8. COMPANIES (PORTFOLIO) ---------- */
.company-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.company-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brass); }
.company-card.active { border-left: 3px solid var(--brass); }
.company-card.pending { border-style: dashed; opacity: 0.7; }
.company-seal {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; color: var(--navy);
}
.company-card.pending .company-seal { border-style: dashed; border-color: var(--ink-faint); color: var(--ink-faint); }
.company-info h3 { font-size: 1.4rem; margin: 0 0 6px; }
.company-info p { margin: 0; color: var(--ink-muted); max-width: 54ch; font-size: 0.95rem; }
.company-status { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--brass); display: inline-block; margin-top: 10px; }
.company-card.pending .company-status { color: var(--ink-faint); }
.company-link {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--navy);
  border-bottom: 1px solid var(--brass); padding-bottom: 2px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.company-link .icon { width: 15px; height: 15px; }

/* ---------- 9. SUB-BRAND (UniBridge) ---------- */
.subbrand-banner {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background: var(--bg-alt);
  padding: var(--space-3) 0;
}
.subbrand-inner { display: flex; align-items: center; gap: var(--space-2); }
.subbrand-seal {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--navy); border-radius: 50%;
  font-family: var(--font-serif); font-weight: 600; font-size: 0.85rem; color: var(--navy);
}
.subbrand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; color: var(--navy); }
.subbrand-eyebrow { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ink-muted); }

/* ---------- 10. ABOUT & STATS ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: start;
}
.about-text p { margin: 0 0 var(--space-2); max-width: 54ch; color: var(--ink-muted); }
.about-text p:last-child { margin-bottom: 0; }
.stat-block {
  border-left: 1px solid var(--rule-strong);
  padding-left: var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.stat-num { font-family: var(--font-serif); font-weight: 600; font-size: 2.6rem; color: var(--navy); line-height: 1; }
.stat-label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-muted); margin-top: 6px; }

/* ---------- 11. SERVICES (CLAUSES) ---------- */
.clause {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}
.clause:first-of-type { border-top: 1px solid var(--rule); }
.clause-tag { font-family: var(--font-mono); font-size: 0.95rem; color: var(--brass); font-weight: 500; padding-top: 4px; }
.clause h3 { font-size: 1.35rem; margin: 0 0 10px; }
.clause p { margin: 0; color: var(--ink-muted); max-width: 60ch; }
.clause .deliverable {
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

/* ---------- 12. CONTACT (FORM) ---------- */
.contact-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}
.contact-panel::before {
  content: "§ 4";
  position: absolute; top: -14px; left: var(--space-4);
  background: var(--bg);
  padding: 2px 12px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--brass);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { margin-bottom: var(--space-3); display: flex; flex-direction: column; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 10px 2px;
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  transition: border-color var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-signoff { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.contact-direct { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-muted); }
.contact-direct a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.form-note { font-family: var(--font-mono); font-size: 0.82rem; color: var(--brass); margin: var(--space-2) 0 0; min-height: 1.2em; }

/* ---------- 13a. SOCIAL LINKS (WhatsApp + Facebook) ---------- */
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.social-links .social-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-right: 2px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  color: var(--navy);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social-link .icon { width: 18px; height: 18px; }
.social-link:hover { transform: translateY(-2px); }
.social-link.whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.social-link.facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }

/* WhatsApp chat bubble (floating, optional) */
.wa-float {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease);
}
.wa-float .icon { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.wa-float:hover { transform: translateY(-2px); }


.site-footer {
  border-top: 1px solid var(--rule-strong);
  padding: var(--space-4) 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-2);
}
.footer-logo { height: 64px; width: auto; }
.footer-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-muted); max-width: 48ch; }

/* Floating "back to AHS Zone" button — fixed, always reachable (even at page bottom) */
.floating-back {
  position: fixed;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--brass);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.floating-back .icon { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.floating-back:hover { background: var(--navy-soft); transform: translateY(-2px); }


/* Destination country cards */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.dest-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.dest-card:hover { transform: translateY(-3px); border-color: var(--brass); box-shadow: var(--shadow-md); }
.dest-flag { font-size: 1.6rem; line-height: 1; display: block; margin-bottom: 10px; }
.dest-card h3 { font-size: 1.05rem; margin: 0 0 4px; color: var(--navy); }
.dest-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-muted); margin: 0; }

/* Process list (reuses .stat-block) */
.stat-block .stat + .stat { margin-top: var(--space-2); }
.stat-block .stat-num { font-size: 1.8rem; }

/* Testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.testi {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.testi blockquote { margin: 0 0 var(--space-2); font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.testi figcaption { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); }
.testi figcaption strong { color: var(--navy); }

/* ---------- 14. ANIMATIONS ---------- */
@keyframes logoIn { from { opacity: 0; transform: translateY(-8px) scale(0.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll-reveal: hidden only when JS is available (.js on <html>).
   Without JS the content stays fully visible (graceful degradation). */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
