/* Adamjee Coaching Centre — core stylesheet */

:root {
  --navy: #0F2A5C;
  --navy-deep: #081A3D;
  --blue: #1B5FD6;
  --blue-light: #EAF1FF;
  --gold: #F0B429;
  --gold-deep: #C6890F;
  --white: #FFFFFF;
  --ink: #12181F;
  --ink-soft: #4A5568;
  --line: #DDE3EE;
  --paper: #F7F9FC;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Radius scale — small controls stay tight, larger contained surfaces get
     progressively softer corners instead of one flat value everywhere. */
  --radius-xs: 3px;   /* gazette/document panels — stays deliberately small */
  --radius-sm: 6px;   /* buttons, inputs, nav-dropdown-menu */
  --radius-md: 14px;  /* mv-card, leader-card, method-item, contact-method, policy-note */
  --radius-lg: 20px;  /* campus/post/event/related/quick cards, locator-bar, map-embed, gallery items */
  --radius-xl: 28px;  /* page-hero contained panels, featured-image containers, cta-panel-navy, featured-post */
  --radius: var(--radius-sm); /* back-compat alias */

  --shadow: 0 4px 20px rgba(15, 42, 92, 0.08);
  --shadow-lift: 0 12px 32px rgba(15, 42, 92, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@font-face {
    font-family: 'Rockwell Extra Bold';
    src: url('../assets/fonts/rockwell-extra-bold-regular-2_ufonts.com.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.logo-text {
    font-family: 'Rockwell Extra Bold', serif;
    font-size: 17px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.section-tight { padding: 48px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-block;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn:active { transform: scale(0.97); transition: transform 0.08s ease; }

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

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

.btn-block { width: 100%; justify-content: center; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}
.brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 160px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
}
.nav-dropdown-menu a { padding: 8px 12px; border-radius: var(--radius-sm); }
.nav-dropdown-menu a:hover { background: var(--paper); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }

.nav-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--navy); }

@media (max-width: 860px) {
  .nav-links { 
    position: fixed; top: 68px; left: 0; right: 0; 
    background: var(--white); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav-dropdown-menu {
    position: static; display: flex; box-shadow: none; border: none;
    padding: 0; min-width: 0;
  }
  .nav-dropdown-menu a { padding-left: 40px; }
  .nav-toggle { display: block; }
  .nav-cta .btn span.long { display: none; }
  .whatsapp-btn {
    display: none;
  }
  .logo-text {
    font-family: 'Rockwell Extra Bold', serif;
    font-size: 15px;
  }
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid a { color: rgba(255,255,255,0.75); display: block; margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 44px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.1rem; }
.footer-brand .logo-text {font-family: 'Rockwell Extra Bold', serif; font-size: 17px; color: var(--white);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Page hero — shared full-bleed band used by every interior page. CSS-only
   texture (soft gold/blue glows + a faint SVG grain overlay) replaces a flat
   var(--navy) fill; no new image assets. */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 56px 0 48px;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(240,180,41,0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 120%, rgba(27,95,214,0.18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.page-hero::before,
.cta-panel-navy::before,
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; }
.page-hero--compact { padding: 48px 0 40px; }

/* Shared navy gradient+grain recipe reused by .cta-panel-navy (about.php)
   and .stats-band (index.php) — CSS custom properties have no mixins, so
   this exact background is repeated at each page-local call site. */
.cta-panel-navy,
.stats-band {
  position: relative;
  overflow: hidden;
}

/* Scroll-reveal: default state is fully visible (no-JS / reduced-motion /
   unsupported-browser fallback). js/main.js adds .reveal-armed to <html>
   only once it has confirmed it can safely run the animation. */
.reveal { opacity: 1; transform: none; }
html.reveal-armed .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--reveal-delay, 0s);
}
html.reveal-armed .reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
