/* ═══════════════════════════════════════════════
   CRDF — base.css
   Shared foundation: loaded by every page.
   Contains: reset, tokens, typography, animations,
   navbar, footer, buttons, tags, utility classes.
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: #1a1a1a;
  background: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
button { cursor: pointer; border: none; outline: none; font-family: 'DM Sans', sans-serif; }
input, textarea, select { font-family: 'DM Sans', sans-serif; }
.pf { font-family: 'Playfair Display', serif; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #1e6f5c; border-radius: 3px; }

/* ── Design Tokens ── */
:root {
  --navy:        #0f2d52;
  --green:       #1e6f5c;
  --green-light: #2a9478;
  --navy-light:  #1a3f6f;
  --cream:       #f7f5f0;
  --grey:        #f0f2ef;
  --text:        #1a1a1a;
  --muted:       #5a6a7a;
  --white:       #ffffff;
  --orange:      #e8821a;
}

/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fu { animation: fadeUp  .65s ease both; }
.fi { animation: fadeIn  .6s  ease both; }
.d1 { animation-delay: .10s; }
.d2 { animation-delay: .25s; }
.d3 { animation-delay: .40s; }
.d4 { animation-delay: .55s; }
.d5 { animation-delay: .70s; }

/* Scroll-reveal (JS adds .visible) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: all .3s;
}
.navbar.scrolled {
  border-bottom: 1px solid #e2e8e4;
  box-shadow: 0 2px 20px rgba(15,45,82,.08);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.logo-svg-wrap { display: flex; align-items: center; }
.logo-text     { line-height: 1.2; }
.logo-name  { font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.logo-sub   { font-size: 11px; color: var(--muted); }
.logo-crdf  { font-size: 12px; font-weight: 800; color: var(--green); letter-spacing: .12em; margin-top: 1px; }

/* Desktop links */
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-link {
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  border-radius: 0;
  background: none;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active { color: var(--green); border-bottom: 2px solid var(--green); }

.nav-cta {
  margin-left: 8px;
  background: var(--green);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav-cta:hover     { background: #166052; transform: translateY(-1px); }
.active-cta        { background: var(--navy) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile drawer */
.mobile-drawer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 10px 20px 18px;
  display: none;
}
.mobile-drawer.open { display: block; }
.mobile-link {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
}
.mobile-link:hover { color: var(--green); }

/* ══════════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════════ */
.section    { padding: 90px 24px; }
.bg-white   { background: #fff; }
.bg-grey    { background: var(--grey); }
.bg-navy    { background: var(--navy); }
.bg-green   { background: var(--green); }
.bg-cream   { background: var(--cream); }
.text-center { text-align: center; }
.container  { max-width: 1100px; margin: 0 auto; }

/* Grid helpers */
.two-col   { display: grid; grid-template-columns: 1fr 1fr;       gap: 60px; align-items: center; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr;   gap: 32px; }
.vm-grid   { display: grid; grid-template-columns: 1fr 1fr;       gap: 20px; }

/* ══════════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════════ */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-label-light { color: #7ab3a0; }
.section-h2       { font-size: clamp(24px,3vw,38px); color: var(--navy); line-height: 1.3; margin-bottom: 20px; }
.section-h2-white { color: #fff; }
.section-p        { font-size: 15px; color: var(--muted); line-height: 1.85; margin-bottom: 16px; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn-primary {
  background: var(--green);
  color: #fff;
  padding: 12px 28px;
  border-radius: 32px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  letter-spacing: .02em;
  display: inline-block;
  cursor: pointer;
  border: none;
}
.btn-primary:hover      { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn-navy               { background: var(--navy); }
.btn-white              { background: #fff; color: var(--green); }
.btn-outline-white      { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-full               { width: 100%; text-align: center; }

/* ══════════════════════════════════════════════
   TAGS & CHIPS
══════════════════════════════════════════════ */
.tag {
  display: inline-block;
  background: rgba(30,111,92,.1);
  color: var(--green);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════
   PAGE HERO (inner pages — not home)
══════════════════════════════════════════════ */
.page-hero {
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 60%, #0d3d2e 100%);
}
.hero-green    { background: linear-gradient(135deg, var(--green) 50%, var(--navy) 100%); }
.hero-circle {
  position: absolute;
  right: -60px; top: -60px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
  width: 100%;
}
.breadcrumb       { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.breadcrumb a     { opacity: .7; }
.breadcrumb a:hover { opacity: 1; }
.hero-title       { font-size: clamp(32px,5vw,58px); color: #fff; font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.hero-sub         { font-size: clamp(15px,2vw,18px); color: rgba(255,255,255,.72); max-width: 580px; line-height: 1.6; }

/* ══════════════════════════════════════════════
   CARDS (shared across pages)
══════════════════════════════════════════════ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 20px; }
.card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid #e4ebe7;
  transition: all .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(30,111,92,.12); border-color: var(--green); }
.card-icon {
  width: 48px; height: 48px;
  background: rgba(30,111,92,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 14px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-h3  { font-size: 17px; color: var(--navy); margin-bottom: 8px; font-weight: 600; }
.card-p   { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ══════════════════════════════════════════════
   CTA SECTION (used on every page)
══════════════════════════════════════════════ */
.cta-section { background: var(--green); padding: 90px 24px; text-align: center; }
.cta-inner   { max-width: 720px; margin: 0 auto; }
.cta-h2      { font-size: clamp(22px,3.5vw,38px); color: #fff; margin-bottom: 16px; line-height: 1.3; }
.cta-p       { font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 36px; line-height: 1.7; }
.cta-btns    { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   CHECKLIST (shared — used in about, work, careers)
══════════════════════════════════════════════ */
.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.check-icon {
  width: 20px; height: 20px; min-width: 20px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-icon svg { width: 12px; height: 12px; stroke: #fff; }
.check-text { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer { background: var(--navy); color: #fff; padding-top: 60px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 48px;
}
.footer-logo    { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-contact { font-size: 13px; color: #94afc7; line-height: 2; margin-bottom: 14px; }
.footer-tags    { display: flex; flex-wrap: wrap; gap: 6px; }
.ftag           { font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.ftag.green     { background: rgba(30,111,92,.25);  color: #7dd3b9; }
.ftag.orange    { background: rgba(232,130,26,.25); color: #f5a84a; }
.footer-heading { font-weight: 600; margin-bottom: 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #94afc7; }
.footer-link    { display: block; font-size: 13px; margin-bottom: 9px; color: #ccd8e4; cursor: pointer; transition: color .2s; }
.footer-link:hover { color: #fff; }
.footer-focus   { font-size: 13px; margin-bottom: 8px; color: #ccd8e4; }
.footer-focus span { color: var(--green-light); font-size: 10px; margin-right: 6px; }
.footer-legal   { font-size: 12px; color: #6a8aaa; line-height: 1.9; }
.footer-cta {
  display: inline-block;
  margin-top: 20px;
  background: var(--green);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.footer-cta:hover { background: #166052; }
.footer-bar {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bar span { font-size: 12px; color: #6a8aaa; }

/* ══════════════════════════════════════════════
   RESPONSIVE — shared breakpoints
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
}

@media (max-width: 768px) {
  .two-col, .vm-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .three-col { grid-template-columns: 1fr !important; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .cta-btns     { flex-direction: column; align-items: center; }
}
