/* Strive Vineyards: see STRIVE_VINEYARDS_STYLE_GUIDE.md. Fonts are self-hosted (OFL). */
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/PlayfairDisplay-latin.ef05b30d6e5c.woff2") format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/Inter-latin.260c81a4759b.woff2") format('woff2');
}

:root {
  --color-burgundy: #80142e;
  --color-burgundy-dark: #591022;
  --color-burgundy-hover: #9a1e3c;
  --color-cream: #faf6f1;
  --color-paper: #fffdfa;
  --color-ink: #211d1b;
  --color-body: #4d4744;
  --color-muted: #6b6461;
  --color-border: #e8d9cf;
  --color-gold: #c59a61;
  --color-overlay: rgba(20, 12, 16, 0.48);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --container-width: 1200px;
  --section-spacing: clamp(64px, 8vw, 112px);
  --radius-small: 8px;
  --radius-medium: 16px;
  --header-h: 76px;
  --hero-photo-h: clamp(380px, 118vw, 560px);
  --wave-h: clamp(28px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--color-cream); color: var(--color-body);
  font: 400 17px/1.7 var(--font-body);
  --vs-font-family: var(--font-body);
  --vs-header-font-family: var(--font-display);
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--color-burgundy); text-underline-offset: 3px; }
a:hover { color: var(--color-burgundy-hover); }
h1, h2, h3 { font-family: var(--font-display); color: var(--color-ink); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5.4vw, 66px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 3px; }
.masthead :focus-visible, .site-footer :focus-visible, .invite :focus-visible { outline-color: #fff; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; color: var(--color-ink); padding: 12px 18px; border-radius: var(--radius-small); }
.skip-link:focus { top: 8px; }

.wrap { width: min(100% - 40px, var(--container-width)); margin-inline: auto; }
.center { text-align: center; }
.lede { font-size: 19px; max-width: 62ch; }
.center .lede, .prose.center .lede { margin-inline: auto; }
.prose { max-width: 760px; }
.prose.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: var(--radius-small);
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, transform .15s, color .15s;
}
.btn--primary { background: var(--color-burgundy); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--primary:hover { background: var(--color-burgundy-hover); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--color-burgundy); border-color: var(--color-burgundy); }
.btn--outline:hover { background: var(--color-burgundy); color: #fff; transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

.eyebrow { font: 600 13px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .24em; color: var(--color-burgundy); margin: 0 0 14px; }
.eyebrow--light { color: #fff; }
.eyebrow--rule { display: flex; align-items: center; gap: 14px; }
.eyebrow--rule::after { content: ''; width: 56px; height: 1px; background: var(--color-burgundy); }

/* ---------- Masthead: photo + header + hero ---------- */
.masthead { position: relative; isolation: isolate; color: #fff; background: var(--color-burgundy-dark); overflow: hidden; }
.masthead-photo, .masthead-photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.masthead-photo img { object-fit: cover; object-position: 78% 50%; }
.masthead-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 12, 16, .6), rgba(20, 12, 16, .35)); }
.masthead--home .masthead-shade {
  background: linear-gradient(180deg, rgba(20, 12, 16, .62) 0, rgba(20, 12, 16, .12) 240px, transparent 100%),
              linear-gradient(90deg, rgba(20, 12, 16, .6) 0, rgba(20, 12, 16, .25) 46%, transparent 72%);
}
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: var(--wave-h); fill: var(--color-cream); display: block; }

.site-header { position: relative; z-index: 20; }
.header-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: var(--header-h); gap: 16px; }
.logo { display: block; line-height: 0; }
.logo img { width: 88px; height: auto; }
.social { display: none; gap: 18px; align-items: center; }
.social a { color: #fff; display: inline-flex; padding: 10px; margin: -10px; }
.social a:hover { color: var(--color-gold); }
.header-cta { display: none; }
.nav-toggle {
  grid-column: 3; justify-self: end; min-height: 44px; min-width: 76px; padding: 0 18px; cursor: pointer;
  font: 600 15px/1 var(--font-body); color: #fff; background: rgba(20, 12, 16, .45);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius-small);
}
.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--color-burgundy-dark); padding: 8px 20px 20px; }
.main-nav.is-open { display: block; }
.main-nav a, .sub-toggle {
  display: flex; align-items: center; min-height: 48px; width: 100%; color: #fff; text-decoration: none;
  font: 500 17px/1.2 var(--font-body); background: none; border: 0; padding: 0; text-align: left; cursor: default;
}
.main-nav a:hover { color: var(--color-gold); }
.main-nav [aria-current="page"], .main-nav .is-current > .sub-toggle { color: var(--color-gold); }
.caret { display: none; }
.submenu { padding-left: 18px; }

.hero-copy, .page-hero .wrap { position: relative; }
.page-hero { padding: 36px 0 calc(var(--wave-h) + 40px); }
.page-hero h1 { color: #fff; max-width: 18ch; margin-bottom: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-sub { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; max-width: 34ch; }

/* Home hero, phone: photo on top, headline on a cream panel below it. */
.masthead--home { background: var(--color-cream); color: var(--color-ink); }
.masthead--home .masthead-photo, .masthead--home .masthead-shade { bottom: auto; height: var(--hero-photo-h); }
.masthead--home .wave { bottom: auto; top: calc(var(--hero-photo-h) - var(--wave-h)); }
.hero { padding: calc(var(--hero-photo-h) - var(--header-h) + 8px) 0 56px; }
.masthead--home h1 { color: var(--color-ink); }
.masthead--home .eyebrow--light { color: var(--color-burgundy); }
.masthead--home .hero-sub { color: var(--color-body); }

/* ---------- Sections ---------- */
.section { padding: var(--section-spacing) 0; }
.section--story {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300' fill='none' stroke='%23e8d9cf' stroke-width='1.2'%3E%3Cpath d='M-20 60C100 20 180 110 300 70S480 20 620 80'/%3E%3Cpath d='M-20 120C110 80 190 170 310 130S490 80 620 140'/%3E%3Cpath d='M-20 180C120 140 200 230 320 190S500 140 620 200'/%3E%3Cpath d='M-20 240C130 200 210 290 330 250S510 200 620 260'/%3E%3C/svg%3E");
  background-size: 600px 300px;
}
.section--pillars { background: var(--color-paper); border-block: 1px solid var(--color-border); padding-block: clamp(36px, 5vw, 56px); }
.section--wines, .section--mission { background: var(--color-paper); border-block: 1px solid var(--color-border); }

.split { display: grid; gap: 36px; align-items: center; }
.split-media { position: relative; }
.split-media .photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-medium); box-shadow: -7px 7px 0 var(--color-burgundy); }
.split-media--tall .photo { aspect-ratio: 3 / 4; max-height: 620px; }
.split-text p { max-width: 62ch; }
.split-text h2 { margin-top: .8em; }
.split-text .eyebrow + h2, .split-text > h2:first-child { margin-top: 0; }

.pillars { display: grid; gap: 28px; }
.pillar { display: flex; gap: 18px; align-items: flex-start; color: var(--color-burgundy); }
.pillar h2 { font-size: 22px; margin-bottom: .25em; }
.pillar p { margin: 0; font-size: 15.5px; color: var(--color-body); }

.prose-cols { display: grid; gap: 0 56px; }
.prose-cols h2 { margin-bottom: .6em; }
.prose-cols p { max-width: 60ch; }

.varietals { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; }
.varietals li { border: 1px solid var(--color-border); background: var(--color-cream); border-radius: 999px; padding: 8px 18px; font-weight: 500; color: var(--color-ink); }
.tagline { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); color: var(--color-burgundy); font-style: italic; margin-top: 1em; }

.invite { position: relative; isolation: isolate; color: #fff; padding: clamp(72px, 10vw, 140px) 0; overflow: hidden; background: var(--color-burgundy-dark); }
.invite-photo, .invite-photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.invite-photo img { object-fit: cover; }
.invite-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 12, 16, .8), rgba(20, 12, 16, .45) 70%, rgba(20, 12, 16, .35)); }
.invite h2 { color: #fff; }
.invite-copy p { max-width: 52ch; font-size: 18px; }

.shop { min-height: 50vh; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; gap: 48px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; color: var(--color-ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--color-ink);
  background: var(--color-paper); border: 1px solid #c9b8ab; border-radius: var(--radius-small);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--color-burgundy); outline-offset: 1px; border-color: var(--color-burgundy); }
.field-error { color: #9b1c1c; font-size: 15px; margin: 6px 0 0; }
.has-error input, .has-error textarea { border-color: #9b1c1c; }
.form-note { font-size: 14.5px; color: var(--color-muted); margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { background: var(--color-paper); border: 1px solid var(--color-border); border-radius: var(--radius-medium); padding: 28px; align-self: start; }
.contact-card address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-burgundy-dark); color: #efe4dc; padding-top: 64px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-gold); }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.footer-h { font: 600 13px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .22em; color: var(--color-gold); margin: 0 0 14px; }
.site-footer li { margin-bottom: 8px; }
.footer-contact { font-style: normal; }
.social--footer { display: flex; }
.social--footer a { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, .18); padding: 20px 0 28px; font-size: 14.5px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .pillar { padding: 4px 28px; }
  .pillar + .pillar { border-left: 1px solid var(--color-border); }
  .pillar:first-child { padding-left: 0; }
}
@media (min-width: 768px) {
  /* Desktop photo: header, headline and photo share one tall block. */
  .masthead--home { color: #fff; background: var(--color-burgundy-dark); }
  .masthead--home .masthead-photo, .masthead--home .masthead-shade { bottom: 0; height: auto; }
  .masthead--home .wave { bottom: -1px; top: auto; }
  .masthead-photo img { object-position: 70% 50%; }
  .hero { padding: clamp(48px, 7vw, 100px) 0 calc(var(--wave-h) + clamp(64px, 9vw, 130px)); }
  .masthead--home h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
  .masthead--home .eyebrow--light { color: #fff; }
  .masthead--home .hero-sub { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
  .hero-copy { max-width: 700px; margin-inline: auto 0; margin-left: max(20px, calc((100vw - var(--container-width)) / 2)); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; }
}
@media (min-width: 900px) {
  .split { grid-template-columns: 9fr 11fr; gap: 64px; }
  .split--text-first { grid-template-columns: 11fr 9fr; }
  .prose-cols { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 72px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 0px; }
  .header-top { grid-template-columns: 1fr auto 1fr; padding-top: 18px; }
  .logo img { width: 170px; }
  .social { display: flex; }
  .header-cta { display: inline-flex; justify-self: end; }
  .nav-toggle { display: none; }
  .main-nav { display: block; position: static; background: rgba(20, 12, 16, .55); backdrop-filter: blur(5px); padding: 0; margin-top: 8px; }
  .main-nav > ul { display: flex; justify-content: center; gap: 44px; width: min(100% - 40px, var(--container-width)); margin-inline: auto; }
  .main-nav > ul > li { position: relative; }
  .main-nav a, .sub-toggle { width: auto; min-height: 48px; font-size: 15.5px; cursor: pointer; border-bottom: 2px solid transparent; }
  .main-nav [aria-current="page"], .main-nav .is-current > .sub-toggle { color: #fff; border-bottom-color: var(--color-burgundy-hover); }
  .caret { display: inline-block; width: 7px; height: 7px; margin: -3px 0 0 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
  .submenu {
    display: none; position: absolute; left: -16px; top: 100%; min-width: 210px; padding: 8px 0;
    background: var(--color-burgundy-dark); border-radius: 0 0 var(--radius-small) var(--radius-small); z-index: 30;
  }
  .submenu a { padding: 0 20px; border-bottom: 0 !important; min-height: 44px; }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu { display: block; }
}
@media (min-width: 1440px) { :root { --container-width: 1240px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
