/* ============================================================
   8 West Ventures, LLC — Brand stylesheet
   Palette sourced from the Interstate-8 logo:
   navy field, interstate red, ocean-wave blue, white.
   ============================================================ */

:root {
  --navy-900: #0a1a3c;   /* deepest background */
  --navy-800: #0d2149;   /* logo field */
  --navy-700: #122a5a;   /* raised surfaces */
  --navy-600: #1b3a73;   /* borders / hover */
  --red:      #c41e2a;   /* interstate banner red */
  --red-dark: #a3141f;
  --blue:     #1f8fd6;   /* ocean wave / VENTURES */
  --blue-light: #4db4ec;
  --white:    #ffffff;
  --ink:      #0c1830;   /* text on light */
  --slate:    #5a6b85;   /* muted text on light */
  --mist:     #c9d6e8;   /* muted text on dark */
  --bg-light: #f4f7fc;   /* light section bg */
  --line:     #e2e8f3;

  --maxw: 1180px;
  --radius: 16px;
  --shadow: 0 18px 50px -20px rgba(10, 26, 60, 0.45);
  --shadow-sm: 0 8px 24px -12px rgba(10, 26, 60, 0.35);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-light); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: .9rem 1.8rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(196,30,42,.7); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(196,30,42,.8); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 10px 0; background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px -10px rgba(10,26,60,.3);
  transition: box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  padding: 6px 0;
  box-shadow: 0 10px 28px -16px rgba(10,26,60,.5);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { height: 50px; width: auto; transition: height .3s ease; }
.site-header.scrolled .brand-logo { height: 44px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--ink); letter-spacing: .01em;
}
.nav a:hover { color: var(--blue); }
.nav .nav-cta {
  padding: .55rem 1.3rem; background: var(--red); color: #fff; border-radius: 999px;
  box-shadow: 0 8px 20px -10px rgba(196,30,42,.8);
}
.nav .nav-cta:hover { background: var(--red-dark); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy-800); border-radius: 2px; transition: transform .3s ease, opacity .3s ease, background .3s ease; }
.nav-toggle.open span { background: #fff; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #14306a 0%, var(--navy-900) 60%, #06122c 100%);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .42;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,26,60,.55) 0%, rgba(10,26,60,.35) 40%, rgba(6,18,44,.92) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 60px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; margin-bottom: 1.2rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero-title .accent { color: var(--blue-light); }
.hero-sub { max-width: 720px; margin: 0 auto 2.2rem; font-size: clamp(1.02rem, 2vw, 1.22rem);
  color: var(--mist); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 50% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-light); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: .8rem;
}
.eyebrow-light { color: var(--blue-light); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; color: var(--ink); }
.section-navy .section-head h2 { color: #fff; }
.section-intro { margin-top: 1rem; color: var(--slate); font-size: 1.08rem; }
.section-navy .section-intro { color: var(--mist); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
.about-copy .lead { font-size: 1.3rem; font-weight: 500; color: var(--ink); margin-bottom: 1.2rem; line-height: 1.45; }
.about-copy p { color: var(--slate); }
.stats { display: grid; gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--red), var(--blue)); }
.stat-num { display: block; font-family: var(--font-head); font-weight: 900; font-size: 2.4rem;
  color: var(--navy-800); line-height: 1; }
.stat-label { color: var(--slate); font-size: .95rem; }

/* ---------- Leadership ---------- */
.leader-grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.leader-photo { position: relative; }
.leader-photo img { border-radius: var(--radius); box-shadow: var(--shadow);
  border: 4px solid #fff; outline: 1px solid var(--line); }
.leader-photo::after { content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: var(--radius); background: linear-gradient(135deg, var(--blue), var(--navy-800));
  z-index: -1; opacity: .25; }
.leader-bio h3 { font-size: 2rem; font-weight: 800; color: var(--ink); }
.leader-role { font-family: var(--font-head); font-weight: 600; color: var(--red);
  letter-spacing: .04em; margin-bottom: 1.2rem; }
.leader-bio p { color: var(--slate); margin-bottom: 1rem; }
.leader-quote { margin-top: 1.6rem; padding: 1.2rem 1.6rem; border-left: 4px solid var(--blue);
  background: #fff; border-radius: 0 12px 12px 0; font-family: var(--font-head);
  font-style: italic; font-weight: 500; color: var(--navy-800); box-shadow: var(--shadow-sm); }

/* ---------- Portfolio cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.card-icon { width: 60px; height: 60px; display: grid; place-items: center; font-size: 1.7rem;
  border-radius: 14px; margin-bottom: 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--blue)); }
.card h3 { font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.card p { color: var(--slate); font-size: .98rem; }
.portfolio-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; color: inherit; text-decoration: none; }
.portfolio-card:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 4px; }
.portfolio-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--line); }
.portfolio-card-body { padding: 26px 26px 30px; }
.portfolio-kicker { display: inline-block; margin-bottom: .55rem; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.card-link { display: inline-block; margin-top: 1rem; font-weight: 800; color: var(--blue); }

/* ---------- Intranet ---------- */
.section-navy { background:
  radial-gradient(120% 140% at 100% 0%, #16356f 0%, var(--navy-900) 55%, #06122c 100%); }
.intranet-wrap { display: grid; grid-template-columns: 1.4fr .6fr; gap: 48px; align-items: center; }
.intranet-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: #fff; margin-bottom: 1rem; }
.intranet-copy p { color: var(--mist); margin-bottom: 1rem; max-width: 620px; }
.intranet-note { font-size: .95rem; color: var(--blue-light); }
.intranet-badge { display: grid; place-items: center; }
.intranet-badge img { width: 170px; filter: drop-shadow(0 16px 40px rgba(0,0,0,.5)); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  color: var(--ink); margin-bottom: .5rem; }
.field .optional { color: var(--slate); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; font-family: var(--font-body); font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe;
  color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31,143,214,.14); background: #fff;
}
.field textarea { resize: vertical; }
.form-status { margin-top: 1rem; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.success { color: #157a4a; }
.form-status.error { color: var(--red); }

.contact-aside { background: var(--navy-800); color: #fff; border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow); }
.contact-aside h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.2rem; color: #fff; }
.contact-list { list-style: none; display: grid; gap: 1.2rem; }
.contact-list li { display: grid; gap: .25rem; }
.contact-label { font-family: var(--font-head); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-light); }
.contact-list a { color: #fff; font-weight: 500; word-break: break-word; }
.contact-list a:hover { color: var(--blue-light); }
.aside-tag { margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14); }
.aside-tag img { width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.7); }

/* ---------- Footer ---------- */
.site-footer { background: #06122c; color: #fff; }
.footer-wrap { display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 44px 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--mist); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: var(--blue-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-wrap { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 20px 24px; flex-wrap: wrap; }
.footer-bottom p { color: #8295b4; font-size: .9rem; }
.footer-tag { font-family: var(--font-head); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 80vw);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    background: rgba(10,26,60,.98); backdrop-filter: blur(12px); padding: 40px;
    transform: translateX(100%); transition: transform .35s ease; box-shadow: -20px 0 60px rgba(0,0,0,.5);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.2rem; color: #fff; }
  .nav a:hover { color: var(--blue-light); }
  .about-grid, .leader-grid, .intranet-wrap, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .leader-grid { max-width: 560px; margin: 0 auto; }
  .leader-photo { max-width: 340px; margin: 0 auto; }
  .leader-photo::after { display: none; }
  .cards { grid-template-columns: 1fr; }
  .intranet-badge { display: none; }
  .footer-wrap { flex-direction: column; text-align: center; }
}
@media (max-width: 540px) {
  .section { padding: 70px 0; }
  .hero-logo { height: 140px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form, .contact-aside { padding: 26px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .hero-video { display: none; }
}
