/* ============================================================
   Alex Craighead Wines — styles.css
   Edit colours, spacing and fonts in the :root variables below.
   ============================================================ */

:root {
  /* ---- Colour ---- */
  --bone:        #f4efe6;   /* page background — warm off-white / parchment */
  --bone-2:      #ece5d8;   /* slightly deeper panel tone */
  --ink:         #20201d;   /* soft black typography */
  --ink-soft:    #4a463f;   /* muted body text */
  --ink-faint:   #8a8377;   /* labels / meta */
  --clay:        #a85a3c;   /* terracotta accent */
  --olive:       #6d7350;   /* pale forest / olive accent */
  --line:        #d9d0c0;   /* hairline borders */

  /* ---- Type ---- */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* ---- Spacing ---- */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 150px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 760px; }
.section { padding-block: var(--section-y); }

/* ---- Type styles ---- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500; margin: 0 0 1.4em;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; }
.display { font-size: clamp(28px, 4vw, 50px); margin: 0 0 0.7em; text-wrap: balance; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 720px; }
p { text-wrap: pretty; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand-logo { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav a {
  text-decoration: none; font-size: 14px; letter-spacing: 0.04em;
  color: var(--ink-soft); transition: color .2s ease;
}
.nav a:hover { color: var(--clay); }
.nav-ig { display: inline-flex; align-items: center; color: var(--ink-soft); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 6px; background: none; border: 0;
  cursor: pointer; padding: 8px; margin-right: -8px;
}
.menu-toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 76px 0 auto 0; z-index: 40;
  background: var(--bone); border-bottom: 1px solid var(--line);
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.mobile-menu.open { max-height: 60vh; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 8px var(--pad) 24px; }
.mobile-menu a {
  text-decoration: none; padding: 16px 0; font-size: 18px; font-family: var(--serif);
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block; text-decoration: none; font-size: 14px; letter-spacing: 0.04em;
  padding: 14px 26px; border-radius: 0; transition: all .25s ease; cursor: pointer;
}
.btn-solid { background: var(--ink); color: var(--bone); border: 1px solid var(--ink); }
.btn-solid:hover { background: var(--clay); border-color: var(--clay); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(40px, 6vw, 70px); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 68px); margin: 0 0 0.5em; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); max-width: 30em; margin: 0 0 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-bottle { display: flex; justify-content: center; }
.hero-bottle img {
  height: clamp(380px, 52vw, 600px); width: auto; max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(40,30,20,0.16));
}

/* ============================================================
   IMAGE BREAKS
   ============================================================ */
.image-break {
  height: clamp(280px, 42vw, 520px);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.image-break.tall { height: clamp(320px, 48vw, 600px); margin-top: var(--section-y); }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement .display { font-size: clamp(26px, 3.4vw, 42px); }
.statement-body { display: grid; gap: 1.4em; max-width: 60ch; color: var(--ink-soft); margin-top: 2em; }

/* ============================================================
   WINES
   ============================================================ */
.wines { background: var(--bone-2); }
.wine-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px);
}
.wine-card {
  background: var(--bone); border: 1px solid var(--line);
  padding: 30px 22px 28px; display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.wine-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(40,30,20,0.35); }
.wine-bottle { height: 300px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 22px; }
.wine-bottle img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(40,30,20,0.12)); }
.wine-info h3 { font-size: 22px; margin: 0 0 6px; }
.wine-meta { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.wine-note { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 20px; flex: 1; }
.wines-cta { margin-top: clamp(40px, 6vw, 64px); text-align: center; }
.wines-cta p { font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-soft); max-width: 56ch; margin: 0 auto; }
.wines-cta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--clay); padding-bottom: 1px; transition: color .2s; }
.wines-cta a:hover { color: var(--clay); }

/* ============================================================
   VINEYARD
   ============================================================ */
.vineyard-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.vineyard-media { min-height: 460px; background-size: cover; background-position: center; }
.vineyard-copy p { color: var(--ink-soft); margin: 0 0 1.3em; }
.facts {
  list-style: none; padding: 0; margin: 2em 0; display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.facts li { background: var(--bone); padding: 16px 18px; font-size: 16px; color: var(--ink); }
.facts span { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.varieties-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.6em; }
.varieties { font-family: var(--serif); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; color: var(--ink); margin: 0; }

/* ============================================================
   ORGANIC
   ============================================================ */
.organic .display { color: var(--ink); }
.organic p { color: var(--ink-soft); margin: 0 0 1.3em; }

/* ============================================================
   STORY
   ============================================================ */
.story { background: var(--bone-2); }
.story p { color: var(--ink-soft); margin: 0 0 1.3em; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); }
.contact-intro p { color: var(--ink-soft); max-width: 36ch; }
.contact-details { list-style: none; padding: 0; margin: 2.4em 0 0; display: grid; gap: 1.5em; }
.contact-details li { font-size: 15px; line-height: 1.6; color: var(--ink); }
.contact-details span { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.contact-details a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-details a:hover { border-color: var(--clay); }

.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--bone); border: 1px solid var(--line); border-radius: 0;
  padding: 12px 14px; width: 100%; transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.form-fallback { font-size: 13px; color: var(--ink-faint); margin: 6px 0 0; }
.form-fallback a { color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--bone); padding-top: clamp(56px, 8vw, 90px); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { height: 24px; width: auto; filter: invert(1) brightness(1.6); margin-bottom: 18px; }
.footer-brand p { color: color-mix(in srgb, var(--bone) 70%, transparent); max-width: 24ch; font-size: 15px; margin: 0; }
.footer-col { font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--bone) 80%, transparent); }
.footer-col span { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--bone) 50%, transparent); margin-bottom: 12px; }
.footer-col a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--bone) 25%, transparent); }
.footer-col a:hover { border-color: var(--clay); }
.footer-base { border-top: 1px solid color-mix(in srgb, var(--bone) 16%, transparent); padding-block: 26px; }
.footer-base p { margin: 0; font-size: 13px; color: color-mix(in srgb, var(--bone) 55%, transparent); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 980px) {
  .wine-grid { grid-template-columns: repeat(3, 1fr); }
  .vineyard-grid { grid-template-columns: 1fr; }
  .vineyard-media { min-height: 340px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Large phone — switch to mobile menu */
@media (max-width: 760px) {
  :root { --section-y: clamp(56px, 13vw, 90px); }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .nav-inner { height: 64px; }
  .mobile-menu { inset: 64px 0 auto 0; }
  .brand-logo { height: 22px; }

  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero .lede { margin-inline: auto; }
  .hero-bottle { order: -1; }
  .hero-bottle img { height: clamp(300px, 64vw, 400px); }
  .hero-actions { width: 100%; max-width: 360px; }
  .hero-actions .btn { flex: 1; text-align: center; }

  .wine-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .wine-card { padding: 22px 16px 24px; text-align: center; }
  .wine-bottle { height: 220px; }
}

/* Small phone */
@media (max-width: 460px) {
  body { font-size: 16px; }
  .wine-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .wine-card { text-align: left; }
  .wine-bottle { height: 300px; }
  .facts { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
