/* ══════════════════════════════════════════════════════
   VATER VENTURES LLC
   Palette: deep navy/slate + warm amber accent + off-white
   Fonts: Instrument Serif (display) + Plus Jakarta Sans (body)
   ══════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root, [data-theme="light"] {
  /* Surfaces */
  --bg:          #f6f5f2;
  --surface:     #ffffff;
  --surface-2:   #f0efe9;
  --surface-3:   #e8e7e0;
  --border:      #dddbd3;
  --divider:     #e4e2da;

  /* Text */
  --text:        #18171280;
  --text-full:   #181712;
  --text-muted:  #706e67;
  --text-faint:  #b0ada5;

  /* Primary — deep navy/teal */
  --primary:        #1a4f6e;
  --primary-h:      #13405c;
  --primary-a:      #0d3248;
  --primary-light:  #e8f2f7;
  --primary-mid:    #b3d0e0;

  /* Accent — warm amber */
  --accent:       #d4820a;
  --accent-h:     #b56b08;
  --accent-light: #fef3e2;

  /* Misc */
  --radius-sm:  0.375rem;
  --radius-md:  0.625rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgb(24 23 18 / 0.07);
  --shadow-md: 0 4px 18px rgb(24 23 18 / 0.09);
  --shadow-lg: 0 12px 40px rgb(24 23 18 / 0.12);
  --shadow-xl: 0 24px 64px rgb(24 23 18 / 0.14);

  --tr: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1080px;
  --header-h: 68px;

  /* Type */
  --xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --sm:   clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --lg:   clamp(1.125rem, 1rem    + 0.6vw,  1.375rem);
  --xl:   clamp(1.4rem,   1.1rem  + 1.5vw,  2.1rem);
  --2xl:  clamp(1.8rem,   1.1rem  + 3.5vw,  3.5rem);
  --hero: clamp(2.4rem,   1.2rem  + 6vw,    5.5rem);

  --font-d: 'Instrument Serif', Georgia, serif;
  --font-b: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
}

[data-theme="dark"] {
  --bg:         #111009;
  --surface:    #191814;
  --surface-2:  #1f1e19;
  --surface-3:  #252420;
  --border:     #35332c;
  --divider:    #2a2924;
  --text-full:  #e8e6df;
  --text-muted: #9b9890;
  --text-faint: #575550;
  --primary:        #4a9ec2;
  --primary-h:      #3588ac;
  --primary-a:      #267098;
  --primary-light:  #192832;
  --primary-mid:    #274556;
  --accent:       #f0a030;
  --accent-h:     #d48a1a;
  --accent-light: #2a1f08;
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 18px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 12px 40px rgb(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #111009; --surface: #191814; --surface-2: #1f1e19; --surface-3: #252420;
    --border: #35332c; --divider: #2a2924; --text-full: #e8e6df;
    --text-muted: #9b9890; --text-faint: #575550;
    --primary: #4a9ec2; --primary-h: #3588ac; --primary-a: #267098;
    --primary-light: #192832; --primary-mid: #274556;
    --accent: #f0a030; --accent-h: #d48a1a; --accent-light: #2a1f08;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}
body {
  font-family: var(--font-b);
  font-size: var(--base);
  color: var(--text-full);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100dvh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.15; font-family: var(--font-d); }
p { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }
::selection { background: color-mix(in srgb, var(--primary) 18%, transparent); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt { background: var(--surface-2); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-b); font-size: var(--sm); font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  transition: background var(--tr), color var(--tr), box-shadow var(--tr), transform var(--tr), border-color var(--tr);
  white-space: nowrap; letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--primary) 30%, transparent);
}
.btn-primary:hover { background: var(--primary-h); transform: translateY(-1px); box-shadow: 0 5px 20px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:active { transform: none; }
.btn-outline {
  background: transparent; color: var(--text-full);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--surface-2); border-color: var(--text-muted); }
.btn-full { width: 100%; justify-content: center; padding-block: 0.8rem; font-size: var(--base); }

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
  transition: box-shadow var(--tr);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 100%; gap: 1.5rem;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-b); font-weight: 700; font-size: var(--lg);
  color: var(--text-full); line-height: 1; letter-spacing: -0.01em;
}
.logo-llc {
  font-weight: 500; color: var(--text-muted);
  font-size: 0.8em; letter-spacing: 0.03em;
}
.logo-sm .logo-text { font-size: var(--base); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: var(--text-muted);
  transition: color var(--tr), background var(--tr);
}
.theme-toggle:hover { color: var(--text-full); background: var(--surface-2); }

.header-cta { display: inline-flex; }

.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; padding: 8px;
  border-radius: var(--radius-md);
  transition: background var(--tr);
}
.hamburger:hover { background: var(--surface-2); }
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text-full); border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr), width var(--tr);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 0.75rem 0;
  animation: slideDown 0.2s ease-out;
}
.mobile-menu.open { display: block; }
@keyframes slideDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.mobile-nav-list { list-style: none; }
.mobile-nav-link {
  display: block; padding: 0.7rem 1.5rem;
  font-size: var(--base); font-weight: 500; color: var(--text-full);
  transition: background var(--tr), color var(--tr);
}
.mobile-nav-link:hover { background: var(--surface-2); color: var(--primary); }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(88vh - var(--header-h));
  display: flex; align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.35;
}
.blob-1 { width: 700px; height: 700px; background: color-mix(in srgb, var(--primary) 22%, transparent); top: -200px; right: -150px; }
.blob-2 { width: 450px; height: 450px; background: color-mix(in srgb, var(--accent) 18%, transparent); bottom: -100px; left: 5%; }
.blob-3 { width: 300px; height: 300px; background: color-mix(in srgb, var(--primary) 12%, transparent); top: 40%; left: 40%; }

/* Decorative grid */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--divider) 1px, transparent 1px),
    linear-gradient(90deg, var(--divider) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 80%);
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }

/* Eyebrow tag */
.eyebrow-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-mid);
  padding: 0.3rem 0.9rem; border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
.dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--primary); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.7); } }

.hero-heading {
  font-family: var(--font-d);
  font-size: var(--hero);
  line-height: 1.06;
  color: var(--text-full);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-heading em { font-style: italic; color: var(--primary); }
.hero-sub {
  font-size: var(--lg); color: var(--text-muted);
  max-width: 58ch; margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ══════════════════════════════
   SHARED SECTION ELEMENTS
══════════════════════════════ */
.eyebrow {
  font-size: var(--xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 0.75rem;
}
.section-heading {
  font-family: var(--font-d); font-size: var(--2xl);
  color: var(--text-full); margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: var(--base); color: var(--text-muted);
  max-width: 52ch; line-height: 1.7;
}
.section-header { margin-bottom: 3.5rem; }
.body-text {
  font-size: var(--base); color: var(--text-muted);
  line-height: 1.75; margin-bottom: 1.25rem; max-width: 62ch;
}
.body-text:last-child { margin-bottom: 0; }

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* Info cards */
.about-cards { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-mid); }
.info-card-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); border-radius: var(--radius-md);
  color: var(--primary); border: 1px solid var(--primary-mid);
}
.info-card-title {
  font-family: var(--font-b); font-size: var(--sm); font-weight: 700;
  color: var(--text-full); margin-bottom: 0.3rem;
}
.info-card-text { font-size: var(--sm); color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════
   HOW IT WORKS — STEPS
══════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 2rem 2rem 1.75rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-mid); }
.step-number {
  font-family: var(--font-d);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-mid);
  line-height: 1;
  flex-shrink: 0;
  width: 2.8rem;
  letter-spacing: -0.02em;
}
.step-body { flex: 1; }
.step-title {
  font-family: var(--font-b); font-size: var(--base); font-weight: 700;
  color: var(--text-full); margin-bottom: 0.5rem;
}
.step-text { font-size: var(--sm); color: var(--text-muted); line-height: 1.65; }

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-card {
  margin-top: 2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.contact-person {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--divider);
}
.avatar {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: var(--sm); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
}
.contact-name { font-size: var(--base); font-weight: 700; color: var(--text-full); margin-bottom: 0.15rem; }
.contact-role { font-size: var(--xs); color: var(--text-muted); }

.contact-list { display: flex; flex-direction: column; gap: 1rem; list-style: none; }
.contact-item { display: flex; align-items: flex-start; gap: 0.875rem; }
.contact-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); border: 1px solid var(--primary-mid);
  border-radius: var(--radius-md); color: var(--primary);
}
.contact-label {
  font-size: var(--xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 0.15rem;
}
.contact-value { font-size: var(--base); font-weight: 500; color: var(--text-full); }
a.contact-value:hover { color: var(--primary); }

/* Contact form */
.contact-right {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form-title {
  font-family: var(--font-b); font-size: var(--lg); font-weight: 700;
  color: var(--text-full); margin-bottom: 1.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: var(--sm); font-weight: 600; color: var(--text-full); }
.form-label span { color: var(--accent); }
.form-input {
  width: 100%; padding: 0.65rem 0.9rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: var(--base);
  color: var(--text-full);
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
  outline: none;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.form-input.error { border-color: #c0392b; }
.form-textarea { resize: vertical; min-height: 125px; }
.form-error { font-size: var(--xs); color: #c0392b; font-weight: 500; min-height: 1.1em; }
.form-success {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px solid var(--primary-mid); border-radius: var(--radius-lg);
  color: var(--primary); font-size: var(--sm); font-weight: 600;
}
.form-success[hidden] { display: none; }
.form-success span { max-width: none; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: var(--surface-3);
  border-top: 1px solid var(--divider);
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.footer-inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-start;
  gap: 2rem;
}
.footer-left { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-sub { font-size: var(--xs); color: var(--text-faint); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; justify-content: flex-end; }
.footer-nav a { font-size: var(--sm); font-weight: 500; color: var(--text-muted); transition: color var(--tr); }
.footer-nav a:hover { color: var(--primary); }
.footer-copy { font-size: var(--xs); color: var(--text-faint); }

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1),
              transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ══════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════ */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-right { align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }
}

/* ══════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════ */
@media (max-width: 680px) {
  :root { --header-h: 60px; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: calc(75vh - var(--header-h)); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 0.75rem; padding: 1.5rem; }
  .step-number { font-size: 1.6rem; width: auto; }
  .footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; }
}
