/* ============================================
   VINTELIER — CELLAR BEACON
   style.css
   ============================================ */


/* --------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------- */
:root {
  /* Light mode: limestone/stone */
  --bg:           #ece8df;
  --bg-alt:       #e2ddd3;
  --surface:      #f5f2ec;
  --ink:          #1a1c1e;
  --ink-mid:      #2e3238;
  --ink-faint:    #626560;
  --accent:       #3f6352;   /* verdigris — aged copper */
  --accent-lt:    #547d68;
  --gold:         #a07840;   /* antique brass */
  --border:       rgba(26, 28, 30, 0.11);
  --border-mid:   rgba(26, 28, 30, 0.22);

  /* Monitor widget is always dark regardless of theme */
  --mon-bg:       #0c0e10;
  --mon-ink:      #c4c4bc;
  --mon-green:    #4a8a6a;
  --mon-border:   rgba(196, 196, 188, 0.10);

  /* Typography */
  --f-display:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-body:       'Jost', 'Helvetica Neue', Arial, sans-serif;
  --f-mono:       'Courier New', Courier, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0e1012;
    --bg-alt:     #141618;
    --surface:    #1c2022;
    --ink:        #e2ddd4;
    --ink-mid:    #9a9d98;
    --ink-faint:  #585c58;
    --accent:     #5a8a72;
    --accent-lt:  #72a48a;
    --gold:       #c0a060;
    --border:     rgba(226, 221, 212, 0.09);
    --border-mid: rgba(226, 221, 212, 0.18);
  }
}

:root[data-theme="light"] {
  --bg:           #ece8df;
  --bg-alt:       #e2ddd3;
  --surface:      #f5f2ec;
  --ink:          #1a1c1e;
  --ink-mid:      #2e3238;
  --ink-faint:    #626560;
  --accent:       #3f6352;
  --accent-lt:    #547d68;
  --gold:         #a07840;
  --border:       rgba(26, 28, 30, 0.11);
  --border-mid:   rgba(26, 28, 30, 0.22);
}

:root[data-theme="dark"] {
  --bg:         #0e1012;
  --bg-alt:     #141618;
  --surface:    #1c2022;
  --ink:        #e2ddd4;
  --ink-mid:    #9a9d98;
  --ink-faint:  #585c58;
  --accent:     #5a8a72;
  --accent-lt:  #72a48a;
  --gold:       #c0a060;
  --border:     rgba(226, 221, 212, 0.09);
  --border-mid: rgba(226, 221, 212, 0.18);
}


/* --------------------------------------------
   2. RESET & BASE
   -------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 66px;
  font-size: 16px;
}

section[id] {
  scroll-margin-top: 66px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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


/* --------------------------------------------
   3. LAYOUT
   -------------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left:  clamp(24px, 5vw, 72px);
  padding-right: clamp(24px, 5vw, 72px);
}


/* --------------------------------------------
   4. TYPOGRAPHY UTILITIES
   -------------------------------------------- */
.eyebrow {
  font-family: var(--f-body);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.eyebrow--hero {
  color: rgba(180, 165, 115, 0.85);
}

.section-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.10;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 1.4rem;
}

.section-lead {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-mid);
  max-width: 580px;
  line-height: 1.85;
}


/* --------------------------------------------
   5. BUTTONS
   -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.18s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 15px 32px;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-lt);
  border-color: var(--accent-lt);
}

.btn-ghost {
  color: rgba(228, 222, 210, 0.82);
  padding: 15px 0;
  border-bottom: 1px solid rgba(228, 222, 210, 0.28);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(228, 222, 210, 0.65);
}

.btn-full {
  width: 100%;
  justify-content: center;
}


/* --------------------------------------------
   6. NAVIGATION
   -------------------------------------------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

#site-header.scrolled {
  background: var(--bg);
  border-color: var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 clamp(24px, 5vw, 72px);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.nav-logo:hover { opacity: 0.65; }

.logo-name {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.35s;
}

.logo-sep {
  font-size: 0.7rem;
  color: var(--ink-faint);
  transition: color 0.35s;
}

.logo-product {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink-mid);
  transition: color 0.35s;
}

/* Over hero: lighten logo */
#site-header.at-top .logo-name,
#site-header.at-top .logo-sep,
#site-header.at-top .logo-product {
  color: rgba(236, 230, 218, 0.88);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.nav-links a {
  font-size: 0.70rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.2s;
}

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

#site-header.at-top .nav-links a {
  color: rgba(218, 212, 200, 0.72);
}

#site-header.at-top .nav-links a:hover {
  color: rgba(236, 230, 218, 1);
}

.nav-cta {
  padding: 8px 18px !important;
  border: 1px solid var(--border-mid) !important;
  color: var(--ink) !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

.nav-cta:hover {
  background: var(--ink) !important;
  color: var(--bg) !important;
  border-color: var(--ink) !important;
}

#site-header.at-top .nav-cta {
  border-color: rgba(218, 212, 200, 0.38) !important;
  color: rgba(236, 230, 218, 0.88) !important;
}

#site-header.at-top .nav-cta:hover {
  background: rgba(236, 230, 218, 0.12) !important;
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

#site-header.at-top .hamburger span {
  background: rgba(236, 230, 218, 0.9);
}

.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav dropdown — positioned absolutely so it never adds height to the header */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4px 0 16px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav a {
  display: block;
  padding: 13px clamp(24px, 5vw, 72px);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

.mobile-nav a:last-child {
  border-bottom: none;
  padding-top: 18px;
  color: var(--accent);
  font-weight: 500;
}

.mobile-nav a:hover { color: var(--ink); }
.mobile-nav a:last-child:hover { color: var(--accent-lt); }


/* --------------------------------------------
   7. HERO
   -------------------------------------------- */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #181c1e;   /* fallback if image fails to load */
  background-size: cover;
  background-position: center 55%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 10, 12, 0.90)  0%,
    rgba(8, 10, 12, 0.52)  45%,
    rgba(8, 10, 12, 0.18) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 clamp(24px, 5vw, 72px) clamp(64px, 12vh, 130px);
  max-width: 700px;
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 1.04;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 1.3rem;
}

.hero-sub {
  font-size: 0.98rem;
  font-weight: 300;
  color: rgba(222, 216, 204, 0.78);
  max-width: 460px;
  line-height: 1.82;
  margin-bottom: 2.6rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  flex-wrap: wrap;
}


/* --------------------------------------------
   8. CELLAR BEACON
   -------------------------------------------- */
#cellar-beacon {
  background: var(--bg);
}

.section-intro {
  padding-top:    clamp(72px, 11vw, 130px);
  padding-bottom: clamp(48px, 7vw,  90px);
  max-width: 680px;
}

/* Editorial pair */
.editorial-pair {
  display: grid;
  grid-template-columns: 3fr 2fr;
  border-top: 1px solid var(--border);
}

.editorial-pair--reverse {
  grid-template-columns: 2fr 3fr;
}

/* Swap image to right on reverse pair */
.editorial-pair--reverse .editorial-image {
  order: 2;
}

.editorial-pair--reverse .editorial-copy {
  order: 1;
}

.editorial-image {
  overflow: hidden;
  background: var(--bg-alt);  /* fallback if image fails */
  aspect-ratio: 4 / 3;
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.editorial-pair:hover .editorial-image img {
  transform: scale(1.04);
}

.editorial-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 7vw, 96px) clamp(36px, 5.5vw, 80px);
}

.editorial-eyebrow {
  color: var(--gold);
  margin-bottom: 1rem;
}

.editorial-copy h3 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 1.2rem;
}

.editorial-copy p {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 1.6rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 1px solid var(--border-mid);
  padding-left: 1.1rem;
}

.feature-list li {
  font-size: 0.80rem;
  font-weight: 400;
  color: var(--ink-faint);
  line-height: 1.6;
}

.feature-list li::before {
  content: '— ';
  color: var(--accent);
  opacity: 0.7;
}


/* --------------------------------------------
   9. TECHNOLOGY & RESILIENCE
   -------------------------------------------- */
#technology {
  background: var(--bg-alt);
}

/* Banner image */
.tech-banner {
  position: relative;
  height: clamp(360px, 52vh, 620px);
  background-color: #0a0c0e;
  background-size: cover;
  background-position: center;
}

.tech-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(6, 8, 10, 0.90) 35%,
    rgba(6, 8, 10, 0.35) 100%
  );
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(40px, 8vh, 88px);
}

.tech-banner-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.09;
  color: rgba(232, 226, 214, 0.95);
  text-wrap: balance;
  margin-top: 1.1rem;
}

/* Pillars grid */
.tech-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  margin: clamp(40px, 6vw, 80px) 0;
}

.tech-pillar {
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 38px);
  border-right: 1px solid var(--border);
}

.tech-pillar:last-child {
  border-right: none;
}

.pillar-glyph {
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.45;
  margin-bottom: 1rem;
  line-height: 1;
}

.tech-pillar h3 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.tech-pillar p {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.80;
}

/* Monitor widget — always dark */
.monitor {
  background: var(--mon-bg);
  border: 1px solid var(--mon-border);
  margin-bottom: clamp(60px, 9vw, 120px);
  font-family: var(--f-mono);
}

.monitor__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 24px;
  border-bottom: 1px solid var(--mon-border);
}

.monitor__label {
  font-size: 0.68rem;
  color: var(--mon-ink);
  letter-spacing: 0.15em;
}

.monitor__live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  color: var(--mon-green);
  letter-spacing: 0.14em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mon-green);
  flex-shrink: 0;
  animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.monitor__body {
  padding: 18px 0;
}

.monitor__row {
  display: grid;
  grid-template-columns: 9rem 7rem 1fr;
  gap: 0.6rem;
  padding: 9px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  font-size: 0.70rem;
  letter-spacing: 0.08em;
  align-items: center;
}

.monitor__row:last-child {
  border-bottom: none;
}

.monitor__key {
  color: rgba(196, 196, 188, 0.45);
}

.monitor__val {
  color: var(--mon-ink);
  font-variant-numeric: tabular-nums;
}

.monitor__status--ok {
  color: var(--mon-green);
}

.monitor__footer {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 11px 24px;
  border-top: 1px solid var(--mon-border);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(196, 196, 188, 0.30);
  flex-wrap: wrap;
}

.monitor__heartbeat {
  color: rgba(196, 196, 188, 0.55);
  font-variant-numeric: tabular-nums;
}

.monitor__sep {
  opacity: 0.3;
}


/* --------------------------------------------
   10. PRIVATE CLIENT SERVICE
   -------------------------------------------- */
#private-client {
  background: var(--bg);
}

.pc-intro {
  padding-top:    clamp(72px, 11vw, 130px);
  padding-bottom: clamp(48px, 6vw,  80px);
  max-width: 660px;
}

.pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
  padding-bottom: clamp(40px, 7vw, 90px);
  border-bottom: 1px solid var(--border);
}

/* Service pillars */
.pc-pillars {
  display: flex;
  flex-direction: column;
}

.pc-pillar {
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--border);
}

.pc-pillar:first-child { padding-top: 0; }
.pc-pillar:last-child  { border-bottom: none; }

.pc-pillar h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.pc-pillar p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.82;
}

/* Inquiry form */
.pc-form-wrap {
  padding-top: 0;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-heading {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.1rem;
}

.form-note {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}

.form-optional {
  font-size: 0.70rem;
  color: var(--ink-faint);
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.form-field label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.form-field input,
.form-field textarea {
  font-family: var(--f-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.18s;
  resize: vertical;
  width: 100%;
  border-radius: 0;  /* no rounded corners — architectural */
  appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-faint);
  opacity: 0.7;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

/* Closing statement */
.pc-closing {
  padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 11vw, 130px);
  text-align: center;
}

.closing-rule {
  font-family: var(--f-display);
  font-size: 1.8rem;
  color: var(--border-mid);
  margin-bottom: 1.4rem;
  line-height: 1;
}

.closing-statement {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.08rem;
  color: var(--ink-faint);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.75;
}


/* --------------------------------------------
   11. FOOTER
   -------------------------------------------- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-brand {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.footer-links {
  display: flex;
  gap: 1.6rem;
}

.footer-links a {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.18s;
}

.footer-links a:hover { color: var(--ink); }


/* --------------------------------------------
   12. RESPONSIVE
   -------------------------------------------- */

/* Tablet — 2-column pillar grid breaks to 2×2 */
@media (max-width: 1020px) {
  .tech-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-pillar:nth-child(2) { border-right: none; }
  .tech-pillar:nth-child(3) { border-top: 1px solid var(--border); }
  .tech-pillar:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

/* Tablet — stacked editorial pairs */
@media (max-width: 860px) {
  .editorial-pair,
  .editorial-pair--reverse {
    grid-template-columns: 1fr;
  }

  /* Reset order on mobile — image always above copy */
  .editorial-pair--reverse .editorial-image,
  .editorial-pair--reverse .editorial-copy {
    order: unset;
  }

  .editorial-image {
    aspect-ratio: 16 / 9;
  }

  .editorial-copy {
    padding: 36px clamp(24px, 5vw, 72px);
  }
}

/* Mobile */
@media (max-width: 720px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .mobile-nav { display: flex; }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .pc-grid {
    grid-template-columns: 1fr;
  }

  .tech-pillars {
    grid-template-columns: 1fr;
  }

  .tech-pillar {
    border-right: none !important;
    border-top: 1px solid var(--border);
  }

  .tech-pillar:first-child {
    border-top: none;
  }

  .monitor__row {
    grid-template-columns: 1fr 1fr;
  }

  .monitor__status--ok {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .monitor__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .monitor__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .monitor__sep { display: none; }
}
