/* VenSignal design tokens + shared component styles (Tailwind CDN handles utilities; this file covers what Tailwind can't) */

:root {
  --vs-cream: #F7F0E6;
  --vs-cream-2: #E3D5CA;
  --vs-tan: #D1AB83;
  --vs-brown: #A48565;
  --vs-espresso: #2E2117;
  --vs-espresso-soft: #4A3527;
  --vs-gold: #B5741C;
  --vs-gold-soft: #DDA85C;
  --vs-gold-text: #8A5518; /* AA-safe accent text color on cream/white backgrounds */
  --vs-white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--vs-cream);
  color: var(--vs-espresso);
  font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Sora', system-ui, sans-serif;
}

/* Visible focus ring everywhere -- never remove this */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--vs-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Signal-bar accent divider used between sections */
.signal-divider {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 22px;
}
.signal-divider span {
  display: block;
  width: 6px;
  background: var(--vs-gold);
  border-radius: 2px;
}
.signal-divider span:nth-child(1) { height: 8px; }
.signal-divider span:nth-child(2) { height: 14px; }
.signal-divider span:nth-child(3) { height: 20px; }
.signal-divider span:nth-child(4) { height: 14px; opacity: .55; }
.signal-divider span:nth-child(5) { height: 8px; opacity: .3; }

/* FAQ accordion */
.faq-item > button[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}
.faq-chevron {
  transition: transform 200ms ease;
}
.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease;
}

/* Mobile nav */
#mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}
#mobile-nav.open {
  max-height: 480px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--vs-espresso);
  color: var(--vs-white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Subtle texture on dark sections to avoid flat blocks of color */
.texture-dark {
  background-image: radial-gradient(circle at 20% 20%, rgba(213, 168, 92, 0.08), transparent 40%),
                     radial-gradient(circle at 85% 60%, rgba(213, 168, 92, 0.06), transparent 45%);
}

/* Scroll-triggered reveal: fade + rise into place, once, as content enters the viewport.
   Elements are fully visible by default -- JS opts them into the hidden starting state,
   so anything going wrong with JS/observers never leaves content stuck invisible. */
.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.reveal-armed.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax imagery: drifts slower than scroll (hero background or content photos) */
.parallax-bg {
  will-change: transform;
}

/* Header tightens and deepens its shadow once the page has scrolled */
#site-header {
  transition: box-shadow 300ms ease, height 300ms ease;
}
#site-header.is-scrolled {
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.45);
}
#site-header.is-scrolled .site-header-row {
  height: 68px;
}


/* Portrait phones/tablets: no header bar until the menu button is tapped.
   The header floats over the page with only the menu button showing; opening
   the menu restores the full bar (logo + links). Landscape keeps the sticky bar. */
@media (orientation: portrait) and (max-width: 1023.98px) {
  #site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: background-color 300ms ease, box-shadow 300ms ease;
  }
  #site-header:not(.nav-open) {
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    pointer-events: none;
  }
  #site-header:not(.nav-open) .site-header-row > a {
    visibility: hidden;
  }
  #site-header:not(.nav-open) #mobile-nav {
    border-top-color: transparent;
  }
  #site-header #nav-toggle {
    pointer-events: auto;
    margin-right: 0;
    padding: 10px;
    border-radius: 9999px;
    background-color: var(--vs-espresso);
    border: 1px solid rgba(227, 213, 202, 0.25);
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  }
  #site-header.nav-open #mobile-nav {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
}
