/* ===================================================================
   Fox Wine Box — design tokens
   Palette pulled straight from the logo: cream, fox-orange, deep wine
   maroon, cardboard tan, and a wink of Hawaiian-shirt mint. The brand
   is "wine is fun, and I'm your guy for it" — not hushed luxury.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color */
  --cream: #F6EEE1;
  --cream-dim: #EFE3CD;
  --ink: #2B2118;
  --ink-soft: #4D4032;
  --stone: #8C7C63;
  --stone-line: #E0D2B8;
  --fox: #D9711F;
  --fox-deep: #B85A14;
  --fox-tint: #FBE7D4;
  --maroon: #5C1F26;
  --maroon-deep: #441419;
  --maroon-tint: #F1E0DF;
  --mint: #C3D9C6;
  --mint-deep: #3F5F45;
  --tan: #E3C49A;
  --card: #FFFFFF;

  /* Back-compat aliases (used by earlier markup) */
  --paper: var(--cream);
  --paper-dim: var(--cream-dim);
  --wine: var(--maroon);
  --wine-deep: var(--maroon-deep);
  --wine-tint: var(--maroon-tint);

  /* Type */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max: 1120px;
  --measure: 640px;
  --radius: 6px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--fox-deep);
  text-decoration: none;
}
a:hover { text-decoration: underline; text-decoration-color: var(--stone-line); text-underline-offset: 3px; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fox-deep);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- Layout shells ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 inline-auto;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure { max-width: var(--measure); }

section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-border-top {
  border-top: 1px solid var(--stone-line);
}

.tint {
  background: var(--paper-dim);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 238, 225, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--stone-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand:hover { text-decoration: none; }
.brand .mark { color: var(--fox-deep); }
.brand .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand .mark { color: var(--wine); }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

nav.primary-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
nav.primary-nav a:hover { color: var(--wine); text-decoration: none; }
nav.primary-nav a.is-active { color: var(--wine); }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--fox);
  color: #fff;
  border-color: var(--fox);
}
.btn-primary:hover { background: var(--fox-deep); border-color: var(--fox-deep); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 9vw, 6rem) clamp(3rem, 8vw, 6rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.1rem);
  max-width: 15ch;
  letter-spacing: -0.01em;
}

.hero .lede {
  margin-top: 1.5rem;
}

.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--stone-line);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -16px rgba(43, 33, 24, 0.35);
}

.list-clean {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.list-clean li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-soft);
}
.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fox);
}

/* ---------- Pull quote / signature element ---------- */
.letter-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 720px;
  margin: 0;
}

.signature-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.signature-line .sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--fox-deep);
}
.signature-line .role {
  font-size: 0.85rem;
  color: var(--stone);
  border-left: 1px solid var(--stone-line);
  padding-left: 1rem;
}

/* ---------- Badge / tag ---------- */
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fox-deep);
  background: var(--fox-tint);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
}
.tag-maroon {
  color: var(--maroon);
  background: var(--maroon-tint);
}
.tag-mint {
  color: var(--mint-deep);
  background: var(--mint);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--stone-line);
  padding-block: 3rem;
  background: var(--paper-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.9rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-grid a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.footer-grid a:hover { color: var(--wine); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stone-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--stone);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom a { color: var(--stone); }

/* ---------- Social link ---------- */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.social-link:hover { color: var(--fox-deep); text-decoration: none; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--stone-line);
  color: var(--ink-soft);
}
.footer-social a:hover {
  background: var(--fox);
  border-color: var(--fox);
  color: #fff;
}
.footer-social svg { width: 17px; height: 17px; }

.linkedin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--stone-line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--card);
}
.linkedin-badge svg { width: 18px; height: 18px; color: #0A66C2; flex-shrink: 0; }
.linkedin-badge:hover { border-color: var(--fox); text-decoration: none; background: var(--fox-tint); }

/* ---------- Coming soon strip ---------- */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.coming-soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stone);
}

/* ---------- Page intro (sub-pages) ---------- */
.page-intro {
  padding-block: clamp(3rem, 8vw, 5rem) clamp(2rem, 5vw, 3rem);
}
.page-intro h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  max-width: 18ch;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--stone-line);
  padding-block: 1.5rem;
}
.faq-item:first-child { border-top: 1px solid var(--stone-line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
}
.faq-q .chev {
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s ease;
  color: var(--stone);
}
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a-inner {
  padding-top: 1rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- Form ---------- */
.form-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px var(--wine-tint);
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-note {
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 0.5rem;
}
.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.ok { color: #3F6B3F; }
.form-status.err { color: var(--wine); }

/* ---------- honeypot (security) ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ---------- Divider label ---------- */
.divider-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--stone);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2rem;
}
.divider-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stone-line);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { max-width: none; margin-inline: auto; }
  .hero .lede { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 300px; }
}

@media (max-width: 720px) {
  nav.primary-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    height: calc(100vh - 76px);
    background: var(--cream-dim, #ede8df);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    z-index: 50;
    border-top: 1px solid var(--stone-line, #d4cdc3);
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  }
  nav.primary-nav.is-open { transform: translateX(0); }
  nav.primary-nav a { font-size: 1.1rem; }
  .menu-toggle { display: block; }
  .nav-cta { margin-top: 0.5rem; }
}

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