/* =========================================================
   Edulateral Foundation – shared base styles
   Edit the variables below to change the look of every page.
   ========================================================= */
:root {
  --navy: #17304f;
  --navy-dark: #0e2038;
  --gold: #ffc414;
  --gold-dark: #ffbf0f;
  --gold-fill: #ffbf0f;
  --gold-fill-dark: #f0a800;
  --accent: #ffc414;
  --accent-dark: #f0ab00;
  --cream: #f7f5ef;
  --white: #ffffff;
  --ink: #1b2a3d;
  --muted: #55606f;
  --line: #e6e1d2;

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(14, 32, 56, 0.18);
  --header-h: 84px;

  /* Unified typography (matches the "Who We Are" section) */
  --h2-size: clamp(1.8rem, 3vw, 2.6rem);
  --h2-line: 1.2;
  --p-size: .97rem;
  --p-line: 1.8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* stops off-screen reveal animations / decorative frames causing sideways scroll on phones */
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section--white { background: var(--white); }
.section-title { font-size: var(--h2-size); line-height: var(--h2-line); }
p strong, li strong { color: var(--navy); font-weight: 700; }
.section-title::after {
  content: ""; display: block; width: 64px; height: 3px; margin-top: 12px;
  background: linear-gradient(90deg, var(--gold) 0 70%, var(--navy) 70% 100%); border-radius: 3px;
}
.text-center { text-align: center; }
.text-center .section-title::after { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; border: 2px solid transparent;
  cursor: pointer; transition: all .2s ease; font-family: var(--font-body);
}
.btn--gold { background: var(--gold-fill); color: var(--navy-dark); box-shadow: 0 6px 18px rgba(255,191,15,.45); }
.btn--gold:hover { background: var(--gold-fill-dark); color: var(--navy-dark); transform: translateY(-2px); }
.btn--outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); color: var(--white); transform: translateY(-2px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* =========================================================
   Header + navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 2px 14px rgba(14, 32, 56, 0.1);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 20px;
}
.brand img { height: 64px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 26px; height: 3px; background: var(--navy);
  border-radius: 2px; position: relative; transition: .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 10px 12px; font-size: .93rem; font-weight: 600;
  color: var(--navy); border-radius: 6px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-dark); }
.main-nav a.active { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }

/* Dropdown support: add class "has-dropdown" to an <li> and put a nested <ul class="dropdown"> inside */
.main-nav .has-dropdown > a::after { content: " ▾"; font-size: .75em; }
.main-nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--white); border-top: 3px solid var(--gold);
  box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
  display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0; z-index: 50;
}
.main-nav .dropdown a { padding: 10px 18px; font-weight: 500; }
.main-nav .dropdown a:hover { background: var(--cream); }
.main-nav .has-dropdown:hover > .dropdown,
.main-nav .has-dropdown:focus-within > .dropdown,
.main-nav .has-dropdown.open > .dropdown { display: flex; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    border-bottom: 3px solid var(--gold); box-shadow: var(--shadow);
    display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a.active { box-shadow: none; color: var(--gold-dark); }
  .main-nav .dropdown { position: static; display: none; box-shadow: none; border-top: 0; padding: 0 0 0 14px; }
  .main-nav .has-dropdown.open > .dropdown { display: flex; }
  .main-nav .has-dropdown:hover > .dropdown { display: none; }
  .main-nav .has-dropdown.open:hover > .dropdown { display: flex; }
}
@media (max-width: 600px) {
  .brand img { height: 52px; }
  :root { --header-h: 72px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-dark); color: #d7deec; padding-top: 56px; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-brand img { height: 64px; background: var(--white); padding: 8px 12px; border-radius: 8px; margin-bottom: 16px; }
.footer-brand p { margin: 0; font-size: .92rem; max-width: 320px; }
.site-footer h4 { color: var(--gold); font-size: 1.05rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.site-footer a { color: #d7deec; }
.site-footer a:hover { color: var(--gold); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.social a:hover { background: var(--gold-fill); color: var(--navy-dark); border-color: var(--gold-fill); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; font-size: .85rem;
  text-align: center; color: #aab5cc;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }


/* =========================================================
   Scroll-reveal  (Learnly-style)
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
[data-reveal="fade-up"]    { transform: translateY(44px); }
[data-reveal="fade-down"]  { transform: translateY(-44px); }
[data-reveal="fade-left"]  { transform: translateX(44px); }
[data-reveal="fade-right"] { transform: translateX(-44px); }
[data-reveal="zoom"]       { transform: scale(.92); }
[data-reveal="fade"]       { transform: none; }

[data-reveal].reveal--in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Warmer, richer page feel ---- */
.main-nav a { font-family: var(--font-body); }
.section--white { background: var(--white); }

.btn--accent { background: var(--gold-fill); color: var(--navy-dark); box-shadow: 0 8px 20px rgba(255,191,15,.5); display: inline-flex; align-items: center; gap: 10px; }
.btn--accent:hover { background: var(--gold-fill-dark); color: var(--white); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

/* ---- Home page: header floats transparently over the hero ---- */
.home .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; border-bottom: 1px solid rgba(255,255,255,.22); box-shadow: none;
  transition: background .3s, box-shadow .3s;
}
.home .site-header .brand img { background: var(--white); padding: 5px 10px; border-radius: 10px; height: 48px; }
.home .site-header:not(.is-solid) .main-nav > ul > li > a { color: var(--white); }
.home .site-header:not(.is-solid) .main-nav > ul > li > a:hover { color: var(--gold); }
.home .site-header:not(.is-solid) .main-nav a.active { box-shadow: inset 0 -3px 0 var(--gold); color: var(--gold); }
.home .site-header:not(.is-solid) .nav-toggle span,
.home .site-header:not(.is-solid) .nav-toggle span::before,
.home .site-header:not(.is-solid) .nav-toggle span::after { background: var(--white); }
.home .site-header:not(.is-solid) .nav-toggle[aria-expanded="true"] span { background: transparent; }
.home .site-header.is-solid { background: var(--white); border-bottom: 4px solid var(--gold); box-shadow: 0 2px 14px rgba(14,32,56,.12); }
@media (max-width: 1180px) {
  .home .site-header:not(.is-solid) .main-nav > ul > li > a { color: var(--navy); }
  .home .site-header:not(.is-solid) .main-nav a.active { color: var(--gold-dark); }
}

/* Footer contact list: icons + WhatsApp button */
.site-footer .fc-item { display: flex; align-items: flex-start; gap: 12px; }
.site-footer .fc-icon { flex: 0 0 18px; margin-top: 3px; color: var(--gold); display: inline-flex; }
.site-footer .fc-wa {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 18px; border-radius: 999px;
  background: #25D366; color: #06210f; font-weight: 700; font-size: .9rem; transition: transform .2s, background .2s, box-shadow .2s;
}
.site-footer .fc-wa:hover { background: #3be07b; color: #06210f; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,.35); }
