/* ==========================================================================
   Vannah Technologies — marketing site stylesheet
   Structure and spacing rhythm ported from the LiveStack homepage
   (livestack repo: apps/web/public/assets/css/livestack-v2.css), re-themed
   to Vannah's own navy / gold / rust identity.
   ========================================================================== */

:root {
  --white: #ffffff;
  --cream: #faf6ef;
  --tan-100: #f6e9d2;
  --rust: #b05a2b;
  --gold: #d9a441;
  --gold-dark: #c1912f;
  --navy: #1e2d3d;
  --navy-2: #14212e;
  --ink: #1c1a17;
  --muted: #5c6470;
  --muted-on-dark: #b7c2cc;
  --border: rgba(20, 18, 15, 0.1);
  --border-on-dark: rgba(255, 255, 255, 0.14);
  --hairline-cream: #e4decf;

  --font-head: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-lead: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

* {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}
p {
  margin: 0 0 1em;
  color: var(--muted);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

section {
  padding: 64px 0;
}
@media (min-width: 900px) {
  section {
    padding: 96px 0;
  }
}

.center {
  text-align: center;
}

/* ---- Eyebrow pills ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  background: var(--tan-100);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
}
.eyebrow.on-dark {
  color: var(--gold);
  background: rgba(217, 164, 65, 0.16);
}
.eyebrow.on-dark::before {
  background: var(--gold);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-dark);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-2);
}
.btn-outline-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn-outline-light {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline-light:hover {
  background: rgba(20, 18, 15, 0.04);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}
.btn-row.center {
  justify-content: center;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.header {
  position: relative;
  z-index: 40;
  background: var(--cream);
}
.header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  width: 168px;
}
.brand img {
  width: 100%;
  height: auto;
}
.nav-links {
  display: flex;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  background: var(--cream);
  padding: 28px 20px 32px;
  overflow-y: auto;
  z-index: 45;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.28s ease,
    visibility 0s linear 0.35s;
}
.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.nav-links a:not(.btn):hover {
  color: var(--rust);
}
.nav-actions {
  display: none;
  align-items: center;
  gap: 16px;
}
.nav-toggle {
  display: flex;
  position: relative;
  background: none;
  border: none;
  color: var(--ink);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  z-index: 46;
  cursor: pointer;
}
.nav-toggle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%) rotate(0deg);
  transition:
    opacity 0.25s ease,
    transform 0.3s ease;
}
.nav-toggle .icon-close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}
body.nav-open .nav-toggle .icon-burger {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
body.nav-open .nav-toggle .icon-close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}
body.nav-open {
  overflow: hidden;
}
.nav-links.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    visibility 0s;
}
.nav-links.open a:not(.btn) {
  width: 100%;
  max-width: 320px;
  padding: 12px 0;
  text-align: center;
}
.nav-links.open .btn {
  margin-top: 12px;
  width: 100%;
  max-width: 320px;
  justify-content: center;
}
@media (min-width: 1024px) {
  .nav-cta-mobile {
    display: none;
  }
  .nav-links {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    background: none;
    padding: 0;
    overflow: visible;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .nav-actions {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ==========================================================================
   HERO (home)
   ========================================================================== */
.hero {
  position: relative;
  background: var(--cream);
  padding-bottom: 88px;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero-content h1 {
  color: var(--ink);
}
.hero-content .lead {
  font-family: var(--font-lead);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   MISSION (dark navy section, e.g. "What We Do")
   ========================================================================== */
.mission {
  background: var(--navy);
  color: var(--cream);
  text-align: left;
}
.mission h2 {
  color: var(--cream);
  max-width: 760px;
  margin: 16px 0;
}
.mission h2 .dim {
  color: var(--muted-on-dark);
}
.mission p {
  color: var(--muted-on-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0;
}

/* ==========================================================================
   PRODUCT SECTION
   ========================================================================== */
.product-head {
  max-width: 780px;
}
.product-head h2 {
  color: var(--ink);
  margin: 16px 0 12px;
}
.product-head p {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 16px;
  max-width: 700px;
}
.product-head p:last-child {
  margin-bottom: 0;
}

/* ---- Feature checklist (products page) ---- */
.feature-list {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--tan-100);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.feature-list li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--rust);
}

/* ==========================================================================
   PRINCIPLE CARDS (about page — same card mechanics as LiveStack's
   systems-grid/system-card)
   ========================================================================== */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 700px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.principle-card {
  background: var(--tan-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  justify-content: flex-end;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}
.principle-card h4 {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  color: var(--rust);
  margin: 0;
}
.principle-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--ink);
}

/* ==========================================================================
   PAGE HEADER (about / products / contact top-of-page)
   ========================================================================== */
.page-header {
  background: var(--cream);
  padding-bottom: 40px;
  text-align: center;
}
.page-header .container {
  max-width: 780px;
}
.page-header p {
  font-family: var(--font-lead);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--muted);
  margin: 16px 0 0;
}

/* ==========================================================================
   ABOUT BODY COPY
   ========================================================================== */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose p {
  font-size: 1.05rem;
  color: var(--ink);
}
.prose p + p {
  margin-top: 1.2em;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  background: var(--navy);
  color: var(--white);
}
.contact-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-head h1 {
  color: var(--white);
}
.contact-head p {
  color: var(--muted-on-dark);
  margin-top: 12px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--cream);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #d4d4d4;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form .btn-primary {
  padding: 12px 20px;
  font-size: 1rem;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  font-size: 0.82rem;
  margin: 0;
  min-height: 1.2em;
}
.form-note.success {
  color: var(--gold);
}
.form-note.error {
  color: #e08585;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}
.contact-info-ic {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(217, 164, 65, 0.18);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  margin: 0 0 2px;
}
.contact-info-item p {
  color: var(--muted-on-dark);
  margin: 0;
  font-size: 0.9rem;
}

/* ==========================================================================
   FOOTER CTA + FOOTER
   ========================================================================== */
.footer-cta {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.footer-cta h2 {
  color: var(--cream);
  max-width: 700px;
  margin: 0 auto 12px;
}
.footer-cta p {
  color: var(--muted-on-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 28px;
}

.site-footer {
  background: var(--navy-2);
  color: var(--muted-on-dark);
  padding: 48px 0 24px;
  border-top: 1px solid var(--border-on-dark);
}
.site-footer p {
  color: var(--muted-on-dark);
}
.footer-brand-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-on-dark);
}
@media (min-width: 700px) {
  .footer-brand-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-brand img {
  width: 150px;
  height: auto;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted-on-dark);
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  font-size: 0.82rem;
}
@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---- reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
