/* ============================================
   WONDERTRUST — SHARED STYLES v2
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --wt-navy:       #0D1B2A;
  --wt-navy-mid:   #1C3045;
  --wt-navy-light: #2B4A6F;
  --wt-gold:       #C8963E;
  --wt-gold-light: #E8B96A;
  --wt-gold-pale:  #F5E9D3;
  --wt-cream:      #FAF7F2;
  --wt-white:      #FFFFFF;
  --wt-gray-100:   #F0EDE8;
  --wt-gray-300:   #C9C4BB;
  --wt-gray-500:   #8C8880;
  --wt-gray-700:   #4A4740;
  --wt-text:       #1A1714;
  --wt-text-muted: #6B665F;
  --wt-red-alert:  #8B2020;

  --wt-font-display: 'Libre Baskerville', Georgia, serif;
  --wt-font-body:    'DM Sans', sans-serif;

  --wt-radius-sm:  4px;
  --wt-radius-md:  8px;
  --wt-radius-lg:  14px;

  --wt-shadow-card: 0 1px 3px rgba(13,27,42,0.08), 0 4px 16px rgba(13,27,42,0.06);
  --wt-shadow-nav:  0 1px 0 rgba(13,27,42,0.10);

  --wt-max-width: 1080px;
  --wt-section-v: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--wt-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--wt-text);
  background: var(--wt-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Nav ---- */
.wt-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wt-white);
  border-bottom: 1px solid var(--wt-gray-100);
  box-shadow: var(--wt-shadow-nav);
}
.wt-nav__inner {
  max-width: var(--wt-max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.wt-logo {
  font-family: var(--wt-font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--wt-navy);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.wt-logo span { font-style: italic; color: var(--wt-gold); }

.wt-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.wt-nav__links > li > a {
  font-size: 14px;
  font-weight: 400;
  color: var(--wt-gray-700);
  padding: 6px 12px;
  border-radius: var(--wt-radius-sm);
  transition: color 0.15s, background 0.15s;
  display: block;
}
.wt-nav__links > li > a:hover { color: var(--wt-navy); background: var(--wt-gray-100); }
.wt-nav__links > li > a.active { color: var(--wt-navy); font-weight: 500; }

/* ---- Dropdown — HOVER FIX ----
   Key: the <li> is the hover target, not the <a>.
   A transparent pseudo-element bridges the gap between the trigger
   and the menu so moving the cursor diagonally doesn't close it.
   padding-top on the menu itself also helps.
--------------------------------------- */
.wt-nav__dropdown {
  position: relative;
}
/* The dropdown trigger gets a small indicator */
.wt-nav__dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.6;
}
/* Hidden by default */
.wt-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--wt-white);
  border: 1px solid var(--wt-gray-100);
  border-radius: var(--wt-radius-lg);
  box-shadow: 0 8px 32px rgba(13,27,42,0.13);
  overflow: hidden;
  /* Bridge gap between nav bar and menu so hover doesn't drop */
  padding-top: 6px;
  margin-top: -6px;
}
/* Show on hover of the <li> */
.wt-nav__dropdown:hover .wt-dropdown-menu {
  display: block;
}
/* Keep visible while cursor is over the menu itself */
.wt-dropdown-menu:hover {
  display: block;
}
.wt-dropdown-item {
  display: block;
  padding: 13px 18px;
  border-bottom: 1px solid var(--wt-gray-100);
  transition: background 0.12s;
  cursor: pointer;
}
.wt-dropdown-item:last-child { border-bottom: none; }
.wt-dropdown-item:hover { background: var(--wt-cream); }
.wt-dropdown-item__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--wt-navy);
  display: block;
}
.wt-dropdown-item__sub {
  font-size: 12px;
  color: var(--wt-gray-500);
  display: block;
  margin-top: 2px;
}

.wt-nav__cta {
  background: var(--wt-navy);
  color: var(--wt-white) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--wt-radius-md);
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.wt-nav__cta:hover { background: var(--wt-navy-mid) !important; }

/* ---- Buttons ---- */
.wt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--wt-font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--wt-radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}
.wt-btn--primary { background: var(--wt-navy); color: var(--wt-white); }
.wt-btn--primary:hover { background: var(--wt-navy-mid); }
.wt-btn--gold { background: var(--wt-gold); color: var(--wt-white); }
.wt-btn--gold:hover { background: var(--wt-gold-light); }
.wt-btn--outline { background: transparent; color: var(--wt-navy); border: 1.5px solid var(--wt-navy); }
.wt-btn--outline:hover { background: var(--wt-navy); color: var(--wt-white); }
.wt-btn--outline-white { background: transparent; color: var(--wt-white); border: 1.5px solid rgba(255,255,255,0.5); }
.wt-btn--outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--wt-white); }
.wt-btn--lg { font-size: 15px; padding: 14px 32px; }

/* ---- Layout ---- */
.wt-container { max-width: var(--wt-max-width); margin: 0 auto; padding: 0 32px; }
.wt-section { padding: var(--wt-section-v) 0; }
.wt-section--cream { background: var(--wt-cream); }
.wt-section--navy { background: var(--wt-navy); }
.wt-section--navy-mid { background: var(--wt-navy-mid); }

/* ---- Badge ---- */
.wt-badge { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }
.wt-badge--blue { background: #E6EEF6; color: #1C3045; }
.wt-badge--gold { background: var(--wt-gold-pale); color: #7A5520; }

/* ---- Cards ---- */
.wt-card { background: var(--wt-white); border: 1px solid var(--wt-gray-100); border-radius: var(--wt-radius-lg); padding: 28px; box-shadow: var(--wt-shadow-card); }
.wt-card--cream { background: var(--wt-cream); border-color: transparent; box-shadow: none; }

/* ---- Typography ---- */
.wt-eyebrow { font-family: var(--wt-font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wt-gold); margin-bottom: 12px; display: block; }
.wt-h1 { font-family: var(--wt-font-display); font-size: clamp(32px, 4.5vw, 52px); font-weight: 400; line-height: 1.18; color: var(--wt-navy); letter-spacing: -0.02em; }
.wt-h2 { font-family: var(--wt-font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 400; line-height: 1.25; color: var(--wt-navy); letter-spacing: -0.02em; }
.wt-h3 { font-family: var(--wt-font-display); font-size: 20px; font-weight: 400; color: var(--wt-navy); letter-spacing: -0.01em; }
.wt-lead { font-size: 17px; line-height: 1.75; color: var(--wt-text-muted); max-width: 640px; }
.wt-body { font-size: 15px; line-height: 1.75; color: var(--wt-text-muted); }

/* ---- Divider ---- */
.wt-divider { height: 1px; background: var(--wt-gray-100); border: none; margin: 0; }

/* ---- Deadline Bar ---- */
.wt-deadline-bar { background: linear-gradient(135deg, #7A2020 0%, #A83030 100%); color: var(--wt-white); text-align: center; padding: 10px 32px; font-size: 13px; }
.wt-deadline-bar strong { font-weight: 600; }

/* ---- Checklist ---- */
.wt-check-list { display: flex; flex-direction: column; gap: 12px; }
.wt-check-item { display: flex; gap: 14px; align-items: flex-start; background: var(--wt-cream); border-radius: var(--wt-radius-md); padding: 14px 16px; }
.wt-check-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--wt-navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.wt-check-icon svg { width: 11px; height: 11px; stroke: var(--wt-white); fill: none; stroke-width: 2.5; }
.wt-check-text { font-size: 14px; color: var(--wt-text); line-height: 1.55; }
.wt-check-text strong { font-weight: 500; color: var(--wt-navy); }

/* ---- Stat Grid ---- */
.wt-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border: 1px solid var(--wt-gray-100); border-radius: var(--wt-radius-lg); overflow: hidden; }
.wt-stat-cell { background: var(--wt-white); padding: 28px 24px; text-align: center; }
.wt-stat-cell + .wt-stat-cell { border-left: 1px solid var(--wt-gray-100); }
.wt-stat-num { font-family: var(--wt-font-display); font-size: 32px; font-weight: 700; color: var(--wt-navy); display: block; margin-bottom: 6px; }
.wt-stat-label { font-size: 13px; color: var(--wt-gray-500); line-height: 1.4; }

/* ---- Timeline ---- */
.wt-timeline { display: flex; flex-direction: column; }
.wt-tl-item { display: flex; gap: 20px; position: relative; }
.wt-tl-item:not(:last-child) { padding-bottom: 28px; }
.wt-tl-item:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: var(--wt-gray-300); }
.wt-tl-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--wt-navy); color: var(--wt-white); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.wt-tl-dot--gold { background: var(--wt-gold); }
.wt-tl-date { font-size: 11px; color: var(--wt-gold); font-weight: 500; letter-spacing: 0.03em; margin-bottom: 2px; }
.wt-tl-title { font-size: 14px; font-weight: 500; color: var(--wt-navy); margin-bottom: 3px; }
.wt-tl-desc { font-size: 13px; color: var(--wt-text-muted); line-height: 1.55; }

/* ---- CTA Block ---- */
.wt-cta-block { background: var(--wt-navy); border-radius: var(--wt-radius-lg); padding: 56px 48px; text-align: center; }
.wt-cta-block .wt-h2 { color: var(--wt-white); margin-bottom: 16px; }
.wt-cta-block .wt-lead { color: rgba(255,255,255,0.65); margin: 0 auto 32px; }

/* ---- Footer ---- */
.wt-footer { background: var(--wt-navy); color: rgba(255,255,255,0.7); padding: 56px 0 32px; }
.wt-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.wt-footer__logo { font-family: var(--wt-font-display); font-size: 20px; color: var(--wt-white); margin-bottom: 12px; }
.wt-footer__logo span { font-style: italic; color: var(--wt-gold-light); }
.wt-footer__tagline { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; }
.wt-footer__col-title { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.wt-footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.wt-footer__links a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.12s; }
.wt-footer__links a:hover { color: var(--wt-white); }
.wt-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.wt-footer__copy { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.6; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .wt-nav__links { display: none; }
  .wt-container { padding: 0 20px; }
  .wt-stat-grid { grid-template-columns: 1fr; }
  .wt-stat-cell + .wt-stat-cell { border-left: none; border-top: 1px solid var(--wt-gray-100); }
  .wt-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  :root { --wt-section-v: 52px; }
}
