/* ============================================================
   VentEcho — Global Stylesheet
   Aesthetic: Editorial authority. Refined, direct, trustworthy.
   Fonts: Freight Display (serif) + Söhne (sans)
   Fallbacks used via Google Fonts: Cormorant Garamond + DM Sans
   ============================================================ */

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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink:       #0d1c2e;
  --ink-mid:   #1e3352;
  --ink-light: #2e4a6e;
  --fog:       #f4f2ed;
  --fog-dark:  #e8e5de;
  --white:     #ffffff;
  --teal:      #1a8a68;
  --teal-dark: #0f5e47;
  --teal-pale: #e0f2eb;
  --amber:     #b8831a;
  --amber-pale:#fdf3dc;
  --muted:     #6b7a8d;
  --border:    rgba(13, 28, 46, 0.10);
  --border-md: rgba(13, 28, 46, 0.16);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --max-w: 1160px;
  --pad-x: clamp(24px, 5vw, 80px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ─────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(40px, 5.5vw, 72px); }
h2 { font-size: clamp(30px, 3.8vw, 50px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 2vw, 24px); }

.display { font-size: clamp(48px, 7vw, 88px); }

em { font-style: italic; }

p { color: var(--muted); line-height: 1.75; }

.lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.7;
  color: var(--muted);
}

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--teal);
}

strong { font-weight: 500; color: var(--ink); }

/* ── Layout ─────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: clamp(64px, 8vw, 120px) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-full {
  padding: clamp(64px, 8vw, 120px) var(--pad-x);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Navigation ─────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--ink); background: var(--fog); }
.nav-links a.active { color: var(--ink); }

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  margin-top: 1px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-md);
  padding: 8px;
  padding-top: 16px;
  min-width: 240px;
  box-shadow: 0 8px 32px rgba(13,28,46,0.1);
  list-style: none;
  z-index: 300;
}

/* Invisible bridge fills the gap between trigger and menu so hover stays active */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown-menu a:hover { color: var(--ink); background: var(--fog); }

.nav-dropdown-menu .ddm-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--teal);
  padding: 10px 14px 4px;
  display: block;
}

.btn-nav {
  background: var(--ink);
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.btn-nav:hover { background: var(--ink-mid) !important; color: var(--white) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ink-mid);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-md);
}

.btn-outline:hover {
  background: var(--fog);
  border-color: var(--ink);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover { color: var(--teal); }

.btn-ghost .arrow { transition: transform 0.2s; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ── Cards ─────────────────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(13,28,46,0.07);
  border-color: var(--border-md);
}

.card-sm {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* ── Pill / Badge ───────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

.pill-teal { background: var(--teal-pale); color: var(--teal-dark); }
.pill-amber { background: var(--amber-pale); color: var(--amber); }
.pill-ink { background: rgba(13,28,46,0.07); color: var(--ink-mid); }

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Dividers ───────────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

.divider-bold {
  border: none;
  border-top: 1px solid var(--border-md);
}

/* ── Utility ────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-teal   { color: var(--teal); }
.text-ink    { color: var(--ink); }

.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }

/* ── Backgrounds ────────────────────────────────────────── */

.bg-fog   { background: var(--fog); }
.bg-ink   { background: var(--ink); }
.bg-white { background: var(--white); }

.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--white); }
.bg-ink p, .bg-ink .lead { color: rgba(255,255,255,0.6); }
.bg-ink .label { color: #7ecdb3; }
.bg-ink strong { color: var(--white); }
.bg-ink .divider, .bg-ink .divider-bold { border-color: rgba(255,255,255,0.1); }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  padding: 64px var(--pad-x) 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-col h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom span {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ── Section background rhythm ──────────────────────────── */

.section-fog {
  background: var(--fog);
  padding: clamp(64px, 8vw, 120px) var(--pad-x);
}

.section-fog .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-ink {
  background: var(--ink);
  padding: clamp(64px, 8vw, 120px) var(--pad-x);
}

.section-ink .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: var(--white); }
.section-ink p, .section-ink .lead { color: rgba(255,255,255,0.6); }
.section-ink .label { color: #7ecdb3; }
.section-ink strong { color: var(--white); }

/* ── Display stat (large typographic number / phrase) ───── */

.display-stat {
  font-family: var(--serif);
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.display-stat-label {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 400;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.5;
  margin-top: 16px;
}

/* ── Pillar hero accent backgrounds ─────────────────────── */

.pillar-hero-band {
  padding: clamp(64px, 9vw, 110px) var(--pad-x) 0;
}

.pillar-hero-band .pillar-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: clamp(48px, 6vw, 80px);
}



@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up {
  animation: fadeUp 0.7s ease both;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }

/* ── Pillar nav strip ───────────────────────────────────── */

.pillar-strip {
  background: var(--fog);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad-x);
}

.pillar-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.pillar-strip-inner::-webkit-scrollbar { display: none; }

.pillar-strip a {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.pillar-strip a:hover { color: var(--ink); }
.pillar-strip a.active { color: var(--teal); border-bottom-color: var(--teal); }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px var(--pad-x) 24px;
    gap: 4px;
    z-index: 200;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--fog);
    display: block;
    margin-top: 4px;
  }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: 11px 22px; font-size: 14px; }
}
