/* =============================================
   SHARED STYLES — Changing Tree CDC
   ============================================= */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

:root {
  --blue:       #1b5ea0;
  --blue-mid:   #2472b8;
  --blue-dark:  #0b2a56;
  --blue-pale:  #e6f0fb;
  --green:      #2c9e5f;
  --green-dark: #1e7344;
  --green-pale: #e8f7ef;
  --brown:      #6b2d2d;
  --gold:       #e8a020;
  --gold-light: #fef3dc;
  --white:      #ffffff;
  --off:        #f5f8fc;
  --text:       #111827;
  --muted:      #6b7280;
  --border:     #cfe0f2;
  --shadow:     rgba(11,42,86,.10);
  --top-h:      42px;
  --nav-h:      80px;
}

body {
  font-family:'Plus Jakarta Sans',sans-serif;
  color:var(--text);
  background:var(--white);
  overflow-x:hidden;
}

/* ══════════════════════════════════════════
   TOP HEADER BAR
══════════════════════════════════════════ */
.top-header {
  background:var(--blue-dark);
  height:var(--top-h);
  display:flex; align-items:center;
  padding:0 6%;
  position:sticky; top:0; left:0; right:0; z-index:9100;
}
.top-header-inner {
  width:100%; max-width:1300px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.top-contact-items {
  display:flex; align-items:center; gap:24px;
}
.top-contact-item {
  display:flex; align-items:center; gap:7px;
  color:#ffffff; font-size:.75rem; font-weight:500;
  text-decoration:none;
}
.top-contact-item:hover { color:white; }
.top-contact-item .tc-icon { font-size:.9rem; }
.top-social {
  display:flex; align-items:center; gap:8px;
}
.ts-link {
  width:28px; height:28px; border-radius:6px;
  background:#ffffff; border:1px solid rgba(255,255,255,.4);
  color:var(--green-dark);
  display:flex; align-items:center; justify-content:center;
  font-size:.78rem; text-decoration:none;
  transition:all .2s;
}
.ts-link:hover { background:var(--green); color:white; border-color:var(--green); }
.top-reg-badge {
  display:flex; align-items:center; gap:6px;
  background:rgba(232,160,32,.18); border:1px solid rgba(232,160,32,.35);
  padding:3px 12px; border-radius:20px;
  color:var(--gold); font-size:.68rem; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position:sticky; top:var(--top-h); left:0; right:0; z-index:9000;
  height:var(--nav-h);
  background:rgba(255,255,255,.98);
  backdrop-filter:blur(16px);
  border-bottom:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 6%;
  box-shadow:0 3px 24px var(--shadow);
}
.nav-brand {
  display:flex; align-items:center; gap:15px;
  text-decoration:none; flex-shrink:0;
}
.nav-brand img {
  height:62px; width:62px; border-radius:50%;
  object-fit:cover; border:2.5px solid var(--border);
  box-shadow:0 2px 12px var(--shadow);
}
.nav-brand-txt strong {
  display:block;
  font-family:'Cormorant Garamond',serif;
  font-size:1.15rem; font-weight:700;
  color:var(--blue-dark); line-height:1.2;
}
.nav-brand-txt em {
  font-style:normal; font-size:.65rem;
  color:var(--green); letter-spacing:.1em;
  text-transform:uppercase; font-weight:700;
}
.nav-links {
  display:flex; align-items:center; gap:2px; list-style:none;
}
.nav-links li a {
  display:block; padding:8px 16px;
  text-decoration:none; color:var(--text);
  font-size:.875rem; font-weight:500;
  border-radius:8px; transition:all .2s;
}
.nav-links li a:hover { color:var(--blue); background:var(--blue-pale); }
.nav-links li a.active { color:var(--blue); background:var(--blue-pale); font-weight:700; }
.nav-cta {
  background:var(--blue) !important;
  color:white !important;
  border-radius:24px !important;
  font-weight:700 !important;
  padding:9px 24px !important;
  margin-left:8px;
  box-shadow:0 4px 14px rgba(27,94,160,.35);
}
.nav-cta:hover {
  background:var(--blue-dark) !important;
  transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(27,94,160,.45) !important;
}
.hamburger {
  display:none; flex-direction:column; gap:5px;
  cursor:pointer; padding:6px;
}
.hamburger span {
  width:24px; height:2px; border-radius:2px;
  background:var(--text); display:block; transition:all .3s;
}

/* Headers are sticky, no body padding needed */
body { padding-top:0; }

/* ══════════════════════════════════════════
   LAYOUT UTILS
══════════════════════════════════════════ */
.section { padding:90px 6%; }
.container { max-width:1200px; margin:0 auto; }
.text-center { text-align:center; }

/* ── TAGS ── */
.tag {
  display:inline-block;
  background:var(--green-pale); color:var(--green-dark);
  font-size:.7rem; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase;
  padding:5px 14px; border-radius:20px; margin-bottom:14px;
}
.tag-blue  { background:var(--blue-pale); color:var(--blue); }
.tag-gold  { background:var(--gold-light); color:var(--gold); }
.tag-white { background:rgba(255,255,255,.15); color:white; }

/* ── TYPOGRAPHY ── */
.heading {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(2rem,3.8vw,3.1rem);
  font-weight:700; line-height:1.15;
  color:var(--blue-dark);
}
.heading span { color:var(--green); }
.heading .gold { color:var(--gold); }
.subtext {
  font-size:1rem; color:var(--muted);
  line-height:1.82; margin-top:14px;
}

/* ── BUTTONS ── */
.btn {
  display:inline-block; text-decoration:none;
  font-weight:600; font-size:.9rem;
  padding:13px 30px; border-radius:30px;
  transition:all .22s; cursor:pointer; border:none;
  font-family:'Plus Jakarta Sans',sans-serif;
}
.btn-blue  { background:var(--blue); color:white; box-shadow:0 4px 18px rgba(27,94,160,.35); }
.btn-blue:hover  { background:var(--blue-dark); transform:translateY(-2px); }
.btn-gold  { background:var(--gold); color:white; box-shadow:0 4px 18px rgba(232,160,32,.35); }
.btn-gold:hover  { background:#c8870e; transform:translateY(-2px); }
.btn-outline-white { border:2px solid rgba(255,255,255,.5); color:white; background:transparent; }
.btn-outline-white:hover { background:rgba(255,255,255,.12); border-color:white; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding:80px 6% 72px;
  position:relative; overflow:hidden;
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.18) 100%);
  pointer-events:none;
}

/* ── CLEAN HERO (inner pages — no photo, geometric pattern) ── */
.clean-hero {
  position:relative; overflow:hidden;
}
.clean-hero::before { display:none; }
.clean-hero::after {
  content:'';
  position:absolute; inset:0; z-index:0;
  /* subtle fine dot grid over the gradient */
  background-image:
    radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events:none;
}
.clean-hero .page-hero-inner { position:relative; z-index:1; }

/* Per-page gradient colours */
.about-hero.clean-hero   { background:linear-gradient(140deg,#0b2a56 0%,#1b5ea0 55%,#1e7344 100%); }
.training-hero.clean-hero{ background:linear-gradient(140deg,#3d1515 0%,#6b2d2d 42%,#0b2a56 100%); }
.cdc-hero.clean-hero     { background:linear-gradient(140deg,#1e7344 0%,#2c9e5f 48%,#0b2a56 100%); }
.gallery-hero.clean-hero { background:linear-gradient(140deg,#0b2a56 0%,#1b5ea0 50%,#2c9e5f 100%); }
.contact-hero.clean-hero { background:linear-gradient(140deg,#1e4d2b 0%,#1b5ea0 50%,#0b2a56 100%); }

/* Decorative diagonal stripe accent */
.clean-hero .page-hero-inner::before {
  content:'';
  position:absolute;
  right:-120px; top:-80px;
  width:440px; height:440px;
  border-radius:50%;
  background:rgba(255,255,255,.05);
  pointer-events:none;
}
.clean-hero .page-hero-inner::after {
  content:'';
  position:absolute;
  right:40px; top:30px;
  width:240px; height:240px;
  border-radius:50%;
  border:1.5px solid rgba(255,255,255,.12);
  pointer-events:none;
}
.page-hero-inner { position:relative; z-index:1; max-width:700px; }
.page-hero h1 {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(2.5rem,5vw,4rem);
  color:white; font-weight:700; line-height:1.08; margin-bottom:18px;
}
.page-hero h1 em { font-style:normal; color:var(--gold); }
.page-hero p { color:rgba(255,255,255,.84); font-size:1rem; line-height:1.78; max-width:540px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display:flex; align-items:center; gap:8px;
  font-size:.8rem; font-weight:600;
  background:rgba(255,255,255,.15); backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.25);
  padding:6px 16px; border-radius:30px;
  color:rgba(255,255,255,.9); margin-bottom:22px;
  width:fit-content;
}
.breadcrumb a { color:rgba(255,255,255,.8); text-decoration:none; transition:color .2s; }
.breadcrumb a:hover { color:white; }
.breadcrumb .sep { opacity:.6; margin:0 2px; }
.breadcrumb span:last-child { color:var(--gold); font-weight:700; }

/* ── SCROLL REVEAL ── */
.reveal   { opacity:0; transform:translateY(28px); transition:opacity .65s ease,transform .65s ease; }
.reveal-l { opacity:0; transform:translateX(-28px); transition:opacity .65s ease,transform .65s ease; }
.reveal-r { opacity:0; transform:translateX(28px); transition:opacity .65s ease,transform .65s ease; }
.reveal.up, .reveal-l.up, .reveal-r.up { opacity:1; transform:none; }

/* ══════════════════════════════════════════
   FOOTER — 4 columns
══════════════════════════════════════════ */
.footer {
  background:var(--blue-dark);
  padding:64px 6% 28px;
}
.footer-grid {
  display:grid;
  grid-template-columns:1.8fr 1fr 1fr 1fr;
  gap:44px;
  padding-bottom:44px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-brand .fb-logo {
  display:flex; align-items:center; gap:12px; margin-bottom:16px;
}
.footer-brand .fb-logo img {
  width:52px; height:52px; border-radius:50%;
  object-fit:cover; border:2px solid rgba(255,255,255,.18);
}
.footer-brand .fb-logo strong {
  display:block; font-family:'Cormorant Garamond',serif;
  font-size:1.1rem; color:white; line-height:1.2;
}
.footer-brand .fb-logo em {
  font-style:normal; font-size:.62rem;
  color:rgba(255,255,255,.5); letter-spacing:.1em; text-transform:uppercase;
}
.footer-brand p { color:#ffffff; font-size:.83rem; line-height:1.75; max-width:280px; }
.footer-brand .reg { color:rgba(255,255,255,.35); font-size:.7rem; margin-top:12px; }
.footer-brand .footer-social-row {
  display:flex; gap:8px; margin-top:18px;
}
.footer-brand .footer-social-row a {
  width:34px; height:34px; border-radius:8px;
  background:#ffffff; border:1px solid rgba(255,255,255,.3);
  color:var(--green-dark);
  display:flex; align-items:center; justify-content:center;
  font-size:.9rem; text-decoration:none; transition:all .2s;
}
.footer-brand .footer-social-row a:hover { background:var(--green); color:white; border-color:var(--green); }

.footer-col h4 {
  color:white; font-size:.78rem; font-weight:700;
  letter-spacing:.09em; text-transform:uppercase; margin-bottom:18px;
  padding-bottom:8px; border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:11px; }
.footer-col ul li a {
  color:#ffffff; text-decoration:none;
  font-size:.82rem; transition:color .2s;
  display:flex; align-items:center; gap:6px;
  text-transform:none; letter-spacing:0;
  font-weight:400;
}
.footer-col ul li a:hover { color:var(--green); }
.footer-col ul li a .fa { font-size:.75rem; }

.footer-bottom {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:24px; flex-wrap:wrap; gap:12px;
}
.footer-bottom p { color:rgba(255,255,255,.38); font-size:.74rem; }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp  { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes float   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes spin-slow { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width:900px) {
  /* ── Top bar ── */
  .top-header { height:auto; padding:6px 4%; }
  .top-header-inner { flex-wrap:wrap; gap:6px; justify-content:space-between; }
  .top-reg-badge { display:none; }
  .top-contact-items { flex-wrap:wrap; gap:6px; flex:1; }
  .top-contact-item { font-size:.67rem; }
  :root { --top-h:56px; }   /* measured height of wrapped top-bar on tablet */

  /* ── Navbar ── */
  .navbar { padding:0 4%; }
  .nav-brand img { height:48px; width:48px; }
  .nav-brand-txt strong { font-size:1rem; }
  .nav-links {
    display:none; position:absolute;
    top:100%; left:0; right:0;
    flex-direction:column; background:white; padding:14px 5%;
    border-bottom:1.5px solid var(--border);
    box-shadow:0 12px 24px var(--shadow); gap:0; z-index:8999;
  }
  .nav-links.open { display:flex; }
  .nav-links li a { padding:12px 0; border-bottom:1px solid var(--border); border-radius:0; }
  .nav-links li:last-child a { border-bottom:none; }
  .nav-cta { margin-left:0 !important; margin-top:10px; text-align:center; border-radius:12px !important; }
  .hamburger { display:flex; }

  /* ── Sections ── */
  .section { padding:60px 4%; }
  .page-hero { padding:60px 4% 52px; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .footer { padding:44px 4% 20px; }
}

@media (max-width:600px) {
  /* ── Top bar: 2 rows — contacts row, then social row ── */
  :root { --top-h:70px; }   /* two-row top bar height on small screens */
  .top-header { padding:6px 4%; }
  .top-header-inner {
    flex-direction:column;
    align-items:stretch;
    gap:5px;
  }
  /* Left side wrapper (reg badge hidden, so this is just contacts + social) */
  .top-header-inner > div:last-child {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
  }
  .top-reg-badge { display:none; }
  .top-contact-items {
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    gap:6px 14px;
    align-items:center;
  }
  .top-contact-item { font-size:.62rem; white-space:nowrap; }
  .top-social { gap:5px; }
  .ts-link { width:22px; height:22px; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns:1fr; }

  /* ── Section padding ── */
  .section { padding:48px 4%; }
  .page-hero { padding:48px 4% 40px; }
  .page-hero h1 { font-size:2.2rem; }
}
