/*
Theme Name: Ball Vineyards
Theme URI: https://ballvineyards.com
Author: Ball Vineyards
Author URI: https://ballvineyards.com
Description: Custom editorial theme for Ball Vineyards — a small-batch Finger Lakes winery in Interlaken, New York. Cinematic full-bleed photography, alternating dark/light section rhythm, and restrained editorial typography.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ball-vineyards
*/

:root{
  --bv-dark:#1A1F24;
  --bv-light:#EEF2EE;
  --bv-vine:#4A7C6F;
  --bv-slate:#7A9EAE;
  --bv-forest:#2D3B35;
  --bv-mist:#C8D8C0;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Inter',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:var(--bv-dark);background:#fff;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;line-height:1.55}
img{max-width:100%;height:auto;display:block}
a{color:inherit}

h1,h2,h3,h4,.serif{font-family:Georgia,'Times New Roman',serif;font-weight:300;letter-spacing:-.01em;line-height:1.1;margin:0}
p{margin:0 0 1em}
.tracked{letter-spacing:.22em;text-transform:uppercase;font-size:.72rem;font-weight:500}
.eyebrow{font-family:'Inter',sans-serif;letter-spacing:.3em;text-transform:uppercase;font-size:.7rem;opacity:.7;margin-bottom:1.5rem;display:inline-block;font-weight:500}

/* === Logo wordmark: condensed sans, BALL over VINEYARDS === */
.logo-wordmark{display:inline-block;text-decoration:none;color:inherit;font-family:'Inter','Helvetica Neue',sans-serif;line-height:.92;text-transform:uppercase;font-stretch:condensed}
.logo-wordmark .ball{display:block;font-size:1.75rem;font-weight:800;letter-spacing:.06em}
.logo-wordmark .vineyards{display:block;font-size:.6rem;letter-spacing:.32em;font-weight:500;margin-top:3px;opacity:.9}

/* === Header / Nav === */
.site-header{position:fixed;top:0;left:0;right:0;z-index:50;transition:background .35s ease,color .35s ease,border-color .35s ease,box-shadow .35s ease;background:transparent;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.site-header-inner{display:flex;align-items:center;justify-content:space-between;padding:1.35rem 6vw;gap:2rem}
.site-header.is-scrolled{background:#fff;color:var(--bv-dark);border-color:rgba(0,0,0,.06);box-shadow:0 1px 0 rgba(0,0,0,.04)}
.primary-nav .nav-list{display:flex;gap:2.5rem;list-style:none;margin:0;padding:0}
.primary-nav a{color:inherit;text-decoration:none;letter-spacing:.22em;text-transform:uppercase;font-size:.7rem;font-weight:500;transition:opacity .2s}
.primary-nav a:hover{opacity:.6}
.header-cta{color:inherit;text-decoration:none;letter-spacing:.22em;text-transform:uppercase;font-size:.7rem;font-weight:500}
.header-cta:hover{opacity:.7}
.nav-toggle{display:none;background:transparent;border:0;color:inherit;cursor:pointer;padding:.5rem;font-size:1rem}
@media(max-width:900px){
  .primary-nav{display:none;position:fixed;top:72px;left:0;right:0;background:#fff;color:var(--bv-dark);padding:2rem 6vw;border-top:1px solid rgba(0,0,0,.06)}
  .primary-nav.is-open{display:block}
  .primary-nav .nav-list{flex-direction:column;gap:1.25rem}
  .nav-toggle{display:block}
}

/* === Hero === */
.hero{position:relative;width:100%;height:100vh;min-height:640px;overflow:hidden;background:#0d1114;color:#fff}
.hero.sub{height:70vh;min-height:480px}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 1.6s ease}
.hero-slide.is-active{opacity:1}
.hero-slide img{width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.35) 0%,rgba(0,0,0,.12) 40%,rgba(0,0,0,.6) 100%);pointer-events:none;z-index:1}
.hero-copy{position:absolute;inset:auto 0 0 0;padding:0 6vw clamp(6rem,12vh,10rem);z-index:2}
.hero-copy .tracked{display:block;margin-bottom:1.5rem;opacity:.85}
.hero-copy h1{font-size:clamp(2.5rem,6vw,5.75rem);max-width:22ch}
.hero-dots{position:absolute;right:6vw;bottom:4vh;display:flex;gap:10px;z-index:3}
.hero-dot{width:32px;height:2px;background:rgba(255,255,255,.35);cursor:pointer;border:0;padding:0;transition:background .3s}
.hero-dot.is-active{background:#fff}

/* === Sections === */
.section{padding:clamp(5rem,12vw,10rem) 6vw}
.section.dark{background:var(--bv-dark);color:var(--bv-light)}
.section.forest{background:var(--bv-forest);color:var(--bv-mist)}
.section.light{background:#fff;color:var(--bv-dark)}
.section.mist{background:var(--bv-light);color:var(--bv-dark)}
.section h2{font-size:clamp(2rem,4.5vw,3.75rem);max-width:22ch}
.section-lead{max-width:68ch;margin:0 auto}
.section-center{text-align:center}
.section-center h2{margin-left:auto;margin-right:auto}

/* Split */
.split{display:grid;grid-template-columns:1fr;gap:0;min-height:80vh}
@media(min-width:900px){.split{grid-template-columns:1fr 1fr}}
.split .copy{padding:clamp(3rem,7vw,6rem);display:flex;flex-direction:column;justify-content:center}
.split .media{min-height:60vh}
.split .media img{width:100%;height:100%;object-fit:cover;min-height:60vh}
.split.dark{background:var(--bv-dark);color:var(--bv-light)}
.split.forest{background:var(--bv-forest);color:var(--bv-mist)}
.split.mist{background:var(--bv-light);color:var(--bv-dark)}

/* Full-bleed */
.fullbleed{width:100%;display:block;line-height:0}
.fullbleed img{width:100%;height:85vh;object-fit:cover;display:block}
.fullbleed.short img{height:60vh}

/* === Buttons === */
.btn{display:inline-block;padding:1rem 2.25rem;border:1px solid currentColor;letter-spacing:.24em;text-transform:uppercase;font-size:.72rem;font-weight:500;text-decoration:none;transition:background .3s,color .3s;cursor:pointer;background:transparent;color:inherit;font-family:inherit}
.btn:hover{background:currentColor}
.section.light .btn:hover,.section.mist .btn:hover{color:#fff}
.section.dark .btn:hover,.section.forest .btn:hover{color:var(--bv-dark)}
.btn.solid{background:var(--bv-vine);border-color:var(--bv-vine);color:#fff}
.btn.solid:hover{background:var(--bv-forest);border-color:var(--bv-forest);color:#fff}
.btn-row{margin-top:2.5rem;display:flex;flex-wrap:wrap;gap:1rem}
.btn-row.center{justify-content:center}

/* === Age gate === */
.age-gate{position:fixed;inset:0;background:rgba(10,14,17,.97);z-index:9999;display:flex;align-items:center;justify-content:center;padding:2rem;color:#fff;backdrop-filter:blur(8px)}
.age-gate[hidden]{display:none}
.age-gate .panel{max-width:460px;text-align:center}
.age-gate .logo-wordmark{margin:0 auto 2.5rem}
.age-gate h2{font-family:Georgia,serif;font-weight:300;font-size:2.25rem;margin:0 0 1rem}
.age-gate p{opacity:.7;margin:0 0 2.5rem;font-size:.9rem;line-height:1.7}
.age-gate .actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

/* === Footer === */
.site-footer{background:var(--bv-dark);color:var(--bv-light);padding:6rem 6vw 2rem;font-size:.9rem}
.site-footer a{color:var(--bv-mist);text-decoration:none;transition:color .2s}
.site-footer a:hover{color:#fff}
.site-footer .grid{display:grid;gap:3rem;grid-template-columns:1fr;margin-bottom:4rem}
@media(min-width:900px){.site-footer .grid{grid-template-columns:2fr 1fr 1fr 2fr}}
.site-footer h4{font-family:'Inter',sans-serif;letter-spacing:.3em;text-transform:uppercase;font-size:.7rem;font-weight:500;margin:0 0 1.25rem;opacity:.5;color:var(--bv-light)}
.site-footer .fine{border-top:1px solid rgba(255,255,255,.08);padding-top:2rem;display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;font-size:.72rem;opacity:.55;letter-spacing:.08em}
.footer-nav{list-style:none;padding:0;margin:0}
.footer-nav li{margin-bottom:.6rem}
.footer-intro{max-width:34ch;opacity:.75;line-height:1.7;margin:0}

/* === Events === */
.events-list{display:flex;flex-direction:column;border-top:1px solid rgba(0,0,0,.1);max-width:980px;margin:0 auto}
.events-list .event{display:grid;grid-template-columns:auto 1fr auto;gap:2.5rem;padding:2.5rem 0;border-bottom:1px solid rgba(0,0,0,.1);align-items:baseline}
@media(max-width:700px){.events-list .event{grid-template-columns:1fr;gap:.5rem}}
.events-list .event .event-date{font-family:Georgia,serif;font-size:1.6rem;font-weight:300;min-width:9ch}
.events-list .event h3{font-family:Georgia,serif;font-weight:300;font-size:1.65rem;margin:0 0 .35rem}
.events-list .event .event-meta{font-size:.72rem;letter-spacing:.24em;text-transform:uppercase;opacity:.55;font-weight:500}
.events-list .event .event-excerpt{margin-top:.75rem;opacity:.75;line-height:1.7;font-size:.95rem}
.events-list .event .event-cta{align-self:center;letter-spacing:.22em;text-transform:uppercase;font-size:.7rem;font-weight:500;text-decoration:none;white-space:nowrap;border-bottom:1px solid currentColor;padding-bottom:3px}

/* === CF7 overrides === */
.wpcf7-form p{margin-bottom:2rem}
.wpcf7 label{display:block;letter-spacing:.22em;text-transform:uppercase;font-size:.7rem;opacity:.6;margin-bottom:.5rem;font-weight:500}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],.wpcf7 input[type=url],.wpcf7 textarea,.wpcf7 select{width:100%;padding:.85rem 0;border:0;border-bottom:1px solid rgba(0,0,0,.2);background:transparent;font:inherit;color:inherit;outline:none;transition:border-color .2s;border-radius:0}
.wpcf7 textarea{min-height:140px;resize:vertical}
.wpcf7 input:focus,.wpcf7 textarea:focus,.wpcf7 select:focus{border-bottom-color:var(--bv-vine)}
.wpcf7 .wpcf7-submit{cursor:pointer;background:var(--bv-vine);color:#fff;border:0;padding:1.1rem 2.25rem;letter-spacing:.24em;text-transform:uppercase;font-size:.72rem;font-weight:500;margin-top:1rem;transition:background .25s}
.wpcf7 .wpcf7-submit:hover{background:var(--bv-forest)}
.wpcf7-response-output{border:0!important;border-left:2px solid var(--bv-vine)!important;padding:1rem 1.25rem!important;font-size:.9rem;margin-top:2rem!important}

/* === Mailchimp (MC4WP) === */
.mc4wp-form-fields{display:flex;flex-direction:column;gap:1rem}
.mc4wp-form input[type=email]{background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.3);color:#fff;padding:.85rem 0;width:100%;font:inherit;outline:none;border-radius:0;transition:border-color .2s}
.mc4wp-form input[type=email]::placeholder{color:rgba(255,255,255,.45)}
.mc4wp-form input[type=email]:focus{border-bottom-color:#fff}
.mc4wp-form input[type=submit]{align-self:flex-start;background:transparent;border:1px solid rgba(255,255,255,.6);color:#fff;padding:.85rem 1.75rem;letter-spacing:.24em;text-transform:uppercase;font-size:.7rem;font-weight:500;cursor:pointer;transition:background .25s,color .25s}
.mc4wp-form input[type=submit]:hover{background:#fff;color:var(--bv-dark)}

/* === Blog === */
.post-list{display:grid;gap:4rem;max-width:820px;margin:0 auto}
.post-card{border-bottom:1px solid rgba(0,0,0,.08);padding-bottom:3rem}
.post-card:last-child{border-bottom:0}
.post-card h2{font-size:2rem;margin-bottom:1rem}
.post-card h2 a{text-decoration:none}
.post-card h2 a:hover{color:var(--bv-vine)}
.post-meta{letter-spacing:.22em;text-transform:uppercase;font-size:.7rem;opacity:.6;margin-bottom:.75rem;font-weight:500}
.post-excerpt{line-height:1.8;opacity:.85}

.prose{max-width:68ch;margin:0 auto;font-size:1.05rem;line-height:1.9}
.prose p{margin-bottom:1.5em}
.prose h2{font-size:2.25rem;margin:2.5em 0 .75em}
.prose h3{font-size:1.5rem;margin:2em 0 .5em}
.prose img{margin:2em 0}
.prose blockquote{border-left:3px solid var(--bv-vine);padding-left:1.5rem;font-family:Georgia,serif;font-size:1.35rem;line-height:1.5;margin:2em 0;opacity:.9}

/* === Shop/Club widgets === */
.vs-wrap{max-width:1200px;margin:0 auto}
.vs-wrap .vs-product-list,.vs-wrap .vs-clubs{min-height:400px}

/* === Utilities === */
.lazy-fade{opacity:0;transform:translateY(24px);transition:opacity 1s ease,transform 1s ease}
.lazy-fade.is-visible{opacity:1;transform:none}
.center{text-align:center}
.divider{height:1px;background:currentColor;opacity:.12;margin:4rem 0;max-width:60ch;margin-left:auto;margin-right:auto}

/* === Screen-reader only === */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
