/* ==========================================================================
   Casa Bacchus Consulting — design tokens (v2, matched to reference site)
   Display: Fraunces (bold serif headings)
   Body: Lora (elegant serif body copy)
   Utility: Work Sans (tracked uppercase labels & buttons)
   Palette: deep pine green (body sections) + dark wine-black (header)
            + muted gold + warm cream
   ========================================================================== */

@font-face {
  font-family: "Macedon SSi";
  src: url("fonts/MacedonSSi-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --header-bg: #241015;
  --pine: #13231b;
  --pine-soft: #1c3a2c;
  --hero-glow: #2f5440;
  --hero-mid: #1b3328;
  --hero-edge: #0d1912;
  --cream: #efe6d2;
  --cream-card: #ffffff;
  --cream-text: #f1e8d2;
  --cream-dim: #cfc7a9;
  --gold: #b8923f;
  --gold-soft: #cdae6a;
  --forest: #1f3b2c;
  --text-mute: #6e6a5d;

  --display: "Fraunces", Georgia, serif;
  --body: "Lora", Georgia, serif;
  --utility: "Work Sans", Helvetica, Arial, sans-serif;

  --max-w: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;
}

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

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-3); }

/* ---------- Eyebrows ---------- */
.eyebrow {
  font-family: var(--utility);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold-soft); display: inline-block; }
.on-light .eyebrow { color: var(--gold); }
.on-light .eyebrow::before { background: var(--gold); }
.center .eyebrow { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(184, 146, 63, 0.25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.08rem; color: var(--cream-text); }
.main-nav { display: flex; gap: var(--space-4); font-family: var(--utility); font-size: 0.84rem; letter-spacing: 0.05em; text-transform: uppercase; }
.main-nav a { color: var(--cream-dim); position: relative; padding-bottom: 4px; }
.main-nav a.active { color: var(--gold-soft); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold-soft); transform: scaleX(0); transition: transform 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* ---------- Hero (home) ---------- */
.hero {
  background: #000000;
  color: var(--cream-text);
  padding: var(--space-5) 0 var(--space-6);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(184,146,63,0.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.5; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.hero-logo {
  width: 380px; height: 380px; object-fit: cover; margin: 0 auto var(--space-4);
  border: 1px solid rgba(184, 146, 63, 0.5);
  box-shadow: 0 0 90px rgba(184, 146, 63, 0.18), 0 20px 70px rgba(0,0,0,0.6);
}
.hero-title {
  font-family: "Macedon SSi", var(--display); font-weight: 400; font-size: clamp(3.2rem, 7vw, 5.4rem);
  line-height: 1.15; margin: 0 0 0.5rem; letter-spacing: 0.01em; color: var(--cream-text);
}
.hero-subtitle {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem); color: var(--gold-soft); margin: 0 0 1.8rem;
}
.hero p.lede { font-size: 1.14rem; color: var(--cream-dim); max-width: 42ch; margin: 0 auto 2.4rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--utility);
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.95rem 1.8rem; border-radius: 2px; transition: transform 0.2s ease, background 0.2s ease;
}
.btn-gold { background: var(--gold); color: #1a120a; }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--gold); color: var(--gold-soft); }
.btn-outline:hover { background: rgba(184,146,63,0.12); }
.btn svg { width: 14px; height: 14px; }

/* ---------- Wavy dot divider ---------- */
.wavy-divider { display: block; width: 100%; height: 64px; }
.wavy-divider path { stroke: var(--gold); opacity: 0.55; fill: none; }
.wavy-divider circle { fill: var(--gold); opacity: 0.6; }

/* ---------- The House (about, no image) ---------- */
.house { background: var(--cream); padding-top: var(--space-4); }
.house-inner { max-width: 760px; }
.house h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.2vw, 2.7rem);
  color: var(--forest); margin: 0 0 1.3rem; line-height: 1.22;
}
.house p { color: var(--text-mute); font-size: 1.08rem; max-width: 64ch; margin: 0; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--utility);
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--forest); border-bottom: 1px solid var(--forest); padding-bottom: 0.2rem;
  margin-top: 1.5rem; transition: color 0.2s ease, border-color 0.2s ease;
}
.text-link svg { width: 13px; height: 13px; }
.text-link:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Meet the Consultant (home) ---------- */
.meet { background: var(--cream); padding: var(--space-5) 0 var(--space-6); }
.meet-grid { display: grid; grid-template-columns: 0.68fr 1.32fr; gap: 4rem; align-items: center; }
.meet-photo { width: 100%; }
.meet-photo img { width: 100%; height: auto; object-fit: cover; box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
.meet-text h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 2.9vw, 2.4rem);
  color: var(--forest); margin: 1rem 0 0.4rem; line-height: 1.2;
}
.meet-role {
  font-family: var(--utility); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 1.1rem;
}
.meet-text p { color: var(--text-mute); font-size: 1.04rem; max-width: 56ch; margin: 0; }

/* ---------- Services ---------- */
.services { background: var(--pine); color: var(--cream-text); padding: var(--space-5) 0 var(--space-6); }
.services h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: 1rem 0 3rem; max-width: 30ch;
}
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(184,146,63,0.3); border: 1px solid rgba(184,146,63,0.3);
}
.service-card { background: var(--pine); padding: 2.6rem 2.2rem; transition: background 0.25s ease; }
.service-card:hover { background: #182b21; }
.service-card .mark { width: 30px; height: 36px; margin-bottom: 1.5rem; }
.service-card .mark path, .service-card .mark line, .service-card .mark ellipse { stroke: var(--gold); fill: none; }
.service-card h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--gold-soft); margin: 0 0 0.7rem; }
.service-card p { color: var(--cream-dim); font-size: 0.97rem; margin: 0; line-height: 1.6; }

/* ---------- Vineyard quote banner ---------- */
.vineyard-banner { position: relative; height: 460px; overflow: hidden; }
.vineyard-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.vineyard-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,20,9,0) 55%, rgba(12,20,9,0.78) 100%);
}
.vineyard-quote {
  position: absolute; left: 0; right: 0; bottom: 2.4rem; z-index: 2;
  text-align: center; padding: 0 var(--space-3);
}
.vineyard-quote .wrap blockquote {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: #fbf6e8; margin: 0 auto;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45); max-width: 60ch;
}

/* ---------- CTA band (Tell us more) ---------- */
.cta-band {
  background: linear-gradient(170deg, var(--hero-mid), var(--hero-edge));
  color: var(--cream-text); padding: var(--space-6) 0; text-align: center;
}
.cta-band h2 {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem); margin: 0.8rem 0 1.1rem; color: var(--gold-soft);
}
.cta-band p { color: var(--cream-dim); margin: 0 0 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: var(--cream-dim); padding: var(--space-4) 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.6rem; }
.footer-inner .brand-name { font-size: 1rem; color: var(--cream-text); }
.footer-inner .brand img { width: 28px; height: 28px; }
.footer-inner nav { display: flex; gap: 2rem; font-family: var(--body); font-size: 0.95rem; }
.footer-inner .copyright { font-family: var(--utility); font-size: 0.8rem; letter-spacing: 0.02em; }
.footer-inner a:hover { color: var(--gold-soft); }

/* ---------- Contact page ---------- */
.contact-hero {
  background: radial-gradient(120% 140% at 80% -10%, var(--hero-glow) 0%, var(--hero-mid) 45%, var(--hero-edge) 100%);
  color: var(--cream-text); padding: var(--space-5) 0 var(--space-4);
}
.contact-hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  margin: 1rem 0 1.1rem; max-width: 22ch; line-height: 1.14;
}
.contact-hero p { color: var(--cream-dim); max-width: 50ch; font-size: 1.08rem; margin: 0; }

.contact-section { background: var(--cream); padding: var(--space-5) 0 var(--space-6); }
.contact-form-card { max-width: 640px; background: var(--cream-card); padding: 2.8rem; border: 1px solid rgba(31,59,44,0.1); }
.contact-form-card h2 { font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--forest); margin: 0 0 1.8rem; }

.field { margin-bottom: 1.5rem; }
.field label {
  display: block; font-family: var(--utility); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--forest); margin-bottom: 0.55rem;
}
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--forest);
  background: var(--cream); border: 1px solid rgba(31,59,44,0.3); padding: 0.85rem 1rem;
  border-radius: 1px; transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); background: #fff; outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.86rem; color: var(--text-mute); margin-top: 1rem; }
.required-mark { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .main-nav { gap: var(--space-3); }
  .meet-grid { grid-template-columns: 1fr; gap: 2rem; }
  .meet-photo { max-width: 360px; margin: 0 auto; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .vineyard-banner { height: 320px; }
}

@media (max-width: 540px) {
  .site-header .wrap { padding: 0.7rem 0; }
  .main-nav { font-size: 0.72rem; gap: var(--space-2); }
  .brand-name { font-size: 0.92rem; }
  .hero-logo { width: 230px; height: 230px; }
  :root { --space-5: 3.5rem; --space-6: 4.5rem; }
  .vineyard-banner { height: 260px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 1rem; }
  .brand { gap: 0.45rem; }
  .brand img { width: 30px; height: 30px; }
  .brand-name { font-size: 0.74rem; line-height: 1.15; }
  .main-nav { gap: 0.7rem; font-size: 0.62rem; }
}
