/* ============================================================
   Cullen Consulting Group — Shared Design System
   Editorial / advisory direction — calm, professional, inviting
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&family=Libre+Franklin:wght@400;500;600;700&display=swap');

:root {
  /* ---- Brand (calmer, editorial) ---- */
  --navy:        #14263A;   /* deep ink-navy — dark sections + headings */
  --navy-2:      #1C3550;   /* cards on dark */
  --navy-3:      #25415F;
  --electric:    #2C5AA0;   /* calm professional blue (primary accent) */
  --electric-d:  #21487F;
  --sky:         #6E92C4;   /* muted sky for on-dark accents */
  --gold:        #A4823B;   /* muted editorial warm accent */
  --green:       #3E7C63;   /* muted */
  --bg:          #F7F5F0;   /* warm ivory page background */
  --bg-blue:     #EEEAE1;   /* warm stone section band */
  --bg-tint:     #ECF1F8;   /* soft blue tint for small accents */
  --white:       #FFFFFF;
  --ink:         #18293C;
  --muted:       #586172;
  --line:        #E4E0D7;   /* warm hairline */
  --line-2:      #EDEAE2;
  --line-dark:   rgba(255,255,255,0.12);

  /* ---- Type ---- */
  --f-head: 'Spectral', Georgia, 'Times New Roman', serif;
  --f-body: 'Libre Franklin', system-ui, -apple-system, sans-serif;
  --f-mono: 'Libre Franklin', system-ui, sans-serif; /* mono retired — neutralized */
  --f-label: 'Libre Franklin', system-ui, sans-serif;

  /* ---- Layout ---- */
  --maxw: 1220px;
  --pad:  clamp(20px, 5vw, 64px);
  --nav-h: 76px;

  /* ---- Shadows (soft, neutral) ---- */
  --sh-card:  0 1px 2px rgba(20,38,58,0.04), 0 10px 26px rgba(20,38,58,0.05);
  --sh-hover: 0 14px 34px rgba(20,38,58,0.10);
  --sh-blue:  0 16px 40px rgba(44,90,160,0.16);

  --r: 5px;
  --r-sm: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { position: relative; }

/* ---------- Section scaffolding ---------- */
.sec { padding: clamp(76px, 9vw, 132px) 0; }
.sec-tight { padding: clamp(56px, 7vw, 96px) 0; }

/* ---------- Eyebrow (tracked small-caps, replaces mono) ---------- */
.eyebrow {
  font-family: var(--f-label);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: 0.7;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--sky); }

.h-sec {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 600;
  line-height: 1.1;
  max-width: 18ch;
}
.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  max-width: 60ch;
  margin-top: 22px;
}

/* ---------- Buttons (rectangular, editorial) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--electric); color: #fff; }
.btn-primary:hover { background: var(--electric-d); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--electric); }

.btn-ghost { background: transparent; color: var(--ink); border-color: #CFC9BC; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(20,38,58,0.04); }

.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #F2EFE8; }

.btn-lg { padding: 17px 32px; font-size: 16.5px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247,245,240,0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.nav.scrolled {
  box-shadow: 0 1px 0 rgba(20,38,58,0.06), 0 6px 22px rgba(20,38,58,0.06);
  border-bottom-color: var(--line);
  background: rgba(247,245,240,0.94);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.wordmark {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--navy);
  white-space: nowrap;
}
@media (max-width: 420px) { .wordmark { font-size: 17px; } }
.wordmark .dot { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.link {
  padding: 9px 14px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: color .18s ease;
}
.nav-links a.link:hover { color: var(--electric); }
.nav-cta { margin-left: 12px; }

.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: rgba(247,245,240,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--pad) 28px;
  display: none;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu.show { display: flex; opacity: 1; transform: translateY(0); }
.mobile-menu a {
  padding: 14px 8px; font-size: 18px; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 16px; justify-content: center; }

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 15px 8px 13px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--muted);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--electric);
  position: relative;
  flex: none;
}
.pulse-dot::after { display: none; }

.tag-mono {
  display: inline-block;
  font-family: var(--f-label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
  background: var(--bg-tint);
  color: var(--electric);
}

/* ---------- Image placeholder (drop real photography here) ---------- */
.imgph {
  position: relative;
  background: linear-gradient(150deg, #ECE9E1, #E0DCD1);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.imgph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(20,38,58,0.035) 0 1px, transparent 1px 13px);
  pointer-events: none;
}
.imgph .imgph-label {
  position: relative; z-index: 1;
  font-family: var(--f-label);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #948D7C; text-align: center; line-height: 1.7;
  padding: 0 18px;
}
.imgph .imgph-label b { color: #6E6757; display:block; font-weight:600; }

/* ---------- Dark sections ---------- */
.dark { background: var(--navy); color: #fff; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead { color: rgba(255,255,255,0.68); }
.grid-tex { display: none; }   /* grid textures retired */
.hero-grid, .glow { display: none; }   /* hero grid + glow orbs retired */

/* ---------- Generic card ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #CFC9BC;
  box-shadow: var(--sh-hover);
}
.card.on-dark {
  background: var(--navy-2);
  border-color: var(--line-dark);
}
.card.on-dark:hover { border-color: rgba(255,255,255,0.28); }

/* ---------- Marquee (retired) ---------- */
.marquee { display: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .04s; }
.stagger.in > *:nth-child(2) { transition-delay: .11s; }
.stagger.in > *:nth-child(3) { transition-delay: .18s; }
.stagger.in > *:nth-child(4) { transition-delay: .25s; }
.stagger.in > *:nth-child(5) { transition-delay: .32s; }
.stagger.in > *:nth-child(6) { transition-delay: .39s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .pulse-dot::after { animation: none; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 34px 0;
  border-top: 1px solid var(--line-dark);
}
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .wordmark { color: #fff; font-size: 19px; }
.footer .wordmark .dot { color: rgba(255,255,255,0.55); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14.5px; color: rgba(255,255,255,0.72); transition: color .18s ease; }
.footer-links a:hover { color: #fff; }
.footer .copy { font-family: var(--f-label); font-size: 12.5px; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); }

/* ---------- Utility ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.lead.center { margin-left: auto; margin-right: auto; }
.form-note.is-error { color: #C0563B !important; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .h-sec { font-size: clamp(27px, 8vw, 38px); }
}
