:root{
  --bg: #F5F1E8; /* warm off-white with beige */
  --bg-pattern: #F0EBDE; /* slightly darker for texture */
  --muted: #6B5D4F; /* warm brown-gray */
  --accent: #8B3A3A; /* deeper rustic burgundy */
  --accent-light: #A85A5A; /* lighter burgundy for hover */
  --green: #5A6B5A; /* earthy green */
  --brown: #4A3A2A; /* dark brown */
  --gold: #C9A961; /* warm gold accent */
  --max-width: 1100px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Crimson Text', 'Georgia', serif;
  font-size:1.25rem;
  background:var(--bg);
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 58, 58, 0.01) 2px, rgba(139, 58, 58, 0.01) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(74, 58, 42, 0.01) 2px, rgba(74, 58, 42, 0.01) 4px);
  color:#2A2419;
  -webkit-font-smoothing:antialiased;
  line-height:1.2;
}
.container{max-width:var(--max-width);margin:0 auto;padding:1rem}

.site-header{
  border-bottom:2px solid rgba(139, 58, 58, 0.15);
  background:rgba(245, 241, 232, 0.95);
  backdrop-filter:blur(8px);
  box-shadow:0 2px 8px rgba(74, 58, 42, 0.08);
  position:relative;
  z-index:1002;
}
.site-header::before{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(139, 58, 58, 0.2), transparent);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:1rem 0;position:relative}
.brand{
  font-family:'Playfair Display', serif;
  text-decoration:none;
  color:var(--brown);
  font-weight:700;
  font-size:1.75rem;
  letter-spacing:0.5px;
  text-shadow:1px 1px 2px rgba(74, 58, 42, 0.1);
  position:relative;
}

.main-nav{display:flex;gap:0.5rem;align-items:center}
.main-nav a{
  color:var(--muted);
  text-decoration:none;
  padding:0.4rem 0.75rem;
  border-radius:4px;
  font-size:1.2rem;
  transition:all 0.2s ease;
  position:relative;
}
.main-nav a:hover{
  color:var(--accent);
  background:rgba(139, 58, 58, 0.08);
}
.accent-btn{
  background:var(--accent);
  color:#fff;
  padding:0.5rem 1rem;
  border-radius:4px;
  text-decoration:none;
  font-weight:600;
  box-shadow:0 2px 6px rgba(139, 58, 58, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  transition:all 0.2s ease;
  border:1px solid rgba(139, 58, 58, 0.3);
}
.accent-btn:hover{
  background:var(--accent-light);
  box-shadow:0 3px 8px rgba(139, 58, 58, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transform:translateY(-1px);
}
.accent-btn.small{padding:0.35rem 0.7rem;font-size:1.2rem}

.nav-toggle{
  display:none;
  background:rgba(139, 58, 58, 0.1);
  border:1px solid rgba(139, 58, 58, 0.2);
  padding:0.45rem 0.6rem;
  border-radius:4px;
  color:var(--brown);
  cursor:pointer;
  transition:all 0.2s ease;
  z-index:1001;
  position:relative;
}
.nav-toggle:hover{
  background:rgba(139, 58, 58, 0.15);
  border-color:rgba(139, 58, 58, 0.3);
}

.hero{
  display:grid;
  place-items:center;
  gap:0;
  min-height:62vh;
  padding:0 1rem 0 1rem;
  margin-bottom:0;
  background:linear-gradient(135deg, rgba(139, 58, 58, 0.03) 0%, rgba(90, 107, 90, 0.03) 100%);
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background-image:radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(139, 58, 58, 0.05) 0%, transparent 50%);
  pointer-events:none;
}
.hero-inner{
  text-align:center;
  position:relative;
  z-index:1;
  max-width:800px;
  width:100%;
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}
.hero h1{
  font-family:'Playfair Display', serif;
  font-weight:700;
  font-size:1.625rem;
  margin:1rem 0 1rem;
  color:var(--brown);
  text-shadow:2px 2px 4px rgba(74, 58, 42, 0.1);
  letter-spacing:0.5px;
  position:relative;
  display:inline-block;
}
.hero h1::after{
  display:none;
}
.tagline{
  color:#3A3429;
  max-width:700px;
  margin:0.5rem auto 0 auto;
  margin-bottom:0 !important;
  padding-bottom:0 !important;
  font-size:1.375rem;
  font-style:normal;
  line-height:1.2;
}
.hero-image{
  margin-top:0 !important;
  margin-bottom:0 !important;
  padding-top:0 !important;
  width:91.27%;
  max-width:1093px;
  margin-left:auto;
  margin-right:auto;
  padding:0 1rem 0 1rem;
  box-sizing:border-box;
}
.hero-image.container{
  padding:0 1rem;
}
.hero-image img{
  width:100%;
  height:auto;
  max-height:638px;
  object-fit:cover;
  border-radius:8px;
  border:2px solid rgba(139, 58, 58, 0.15);
  box-shadow:0 6px 20px rgba(74, 58, 42, 0.15);
  display:block;
  margin-bottom:0;
  filter:sepia(8%) brightness(0.97);
}
.link-ghost{
  color:var(--accent);
  text-decoration:none;
  border-bottom:2px solid transparent;
  padding-bottom:3px;
  font-weight:500;
  transition:all 0.2s ease;
  position:relative;
}
.link-ghost:hover{
  border-color:var(--accent);
  color:var(--accent-light);
}

.intro{
  padding-top:0;
  padding-bottom:1rem;
  padding-left:1rem;
  padding-right:1rem;
  margin-top:0;
  text-align:center;
  position:relative;
}
.intro p{
  line-height:1.2;
  color:#3A3429;
  font-size:1.3125rem;
}
.intro::before{
  display:none;
}
.muted{color:var(--muted);font-style:normal}

.page-break{
  border:none;
  border-top:2px solid rgba(139, 58, 58, 0.2);
  margin:3rem auto;
  max-width:var(--max-width);
  width:calc(100% - 2rem);
}

.join-section{
  text-align:center;
  padding:2rem 1rem;
}

.join-wine-club-btn{
  font-size:1.5rem;
  padding:0.75rem 2rem;
  display:inline-block;
}

.our-story-section{
  padding-top:0.6rem;
}

.content{
  padding:2.5rem 1rem;
  padding-top:0;
  position:relative;
}
.content h2{
  font-family:'Playfair Display',serif;
  font-size:1.625rem;
  color:var(--brown);
  margin-top:1rem;
  margin-bottom:1rem;
  text-shadow:1px 1px 2px rgba(74, 58, 42, 0.1);
  position:relative;
  padding-bottom:0;
  display:inline-block;
}
.content h2::after{
  display:none;
}
.content p{
  line-height:1.2;
  color:#3A3429;
  font-size:1.3125rem;
  margin-bottom:1.25rem;
  margin-top:0;
}
.content ul{
  margin:1.25rem 0;
  padding-left:2rem;
  color:#3A3429;
  font-size:1.3125rem;
  line-height:1.2;
}
.content li{
  margin-bottom:0.75rem;
}
.story p{
  line-height:1.2;
  color:#3A3429;
  font-size:1.3125rem;
  margin-bottom:1.25rem;
}
.placeholder{
  background:rgba(139, 58, 58, 0.03);
  padding:1.25rem 1.5rem;
  margin-bottom:1.25rem;
  border-left:4px solid var(--gold);
  color:#3A3429;
  border-radius:0 4px 4px 0;
  box-shadow:0 2px 4px rgba(74, 58, 42, 0.05);
  position:relative;
}
.placeholder::before{
  content:'"';
  position:absolute;
  left:0.5rem;
  top:0.25rem;
  font-size:2rem;
  color:rgba(139, 58, 58, 0.2);
  font-family:'Playfair Display', serif;
}

.collage{
  margin-top:2.5rem;
  padding-top:0;
  border-top:none;
  position:relative;
}
.collage h3{
  font-family:'Playfair Display',serif;
  color:var(--brown);
  margin-top:0;
  margin-bottom:1rem;
  font-size:1.5rem;
}
.collage-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.collage-grid img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:6px;
  border:2px solid rgba(139, 58, 58, 0.15);
  box-shadow:0 3px 8px rgba(74, 58, 42, 0.12);
  transition:all 0.3s ease;
  filter:sepia(10%) brightness(0.98);
}
.collage-grid img:hover{
  transform:translateY(-2px);
  box-shadow:0 5px 12px rgba(74, 58, 42, 0.2);
  border-color:rgba(139, 58, 58, 0.3);
  filter:sepia(5%) brightness(1);
}

.products-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
  margin-top:2rem;
}
.products-grid.products-grid-single,
section.products-grid.products-grid-single{
  grid-template-columns:1fr !important;
  max-width:520px;
  margin-left:auto;
  margin-right:auto;
}
.product-card{
  background:rgba(255, 255, 255, 0.7);
  padding:1.5rem;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(74, 58, 42, 0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  text-align:center;
  border:1px solid rgba(139, 58, 58, 0.1);
  transition:all 0.3s ease;
  position:relative;
  overflow:hidden;
}
.product-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:linear-gradient(90deg, var(--gold), var(--accent));
  transform:scaleX(0);
  transition:transform 0.3s ease;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 20px rgba(74, 58, 42, 0.15), inset 0 1px 0 rgba(255,255,255,0.9);
  border-color:rgba(139, 58, 58, 0.2);
}
.product-card:hover::before{
  transform:scaleX(1);
}
.product-img{
  height:120px;
  width:420px;
  max-width:100%;
  margin:0 auto 1rem;
  display:block;
  filter:drop-shadow(0 4px 8px rgba(74, 58, 42, 0.15));
  transition:transform 0.3s ease;
  object-fit:contain;
}
.product-card:hover .product-img{
  transform:scale(1.05);
}
.product-card h4{
  font-family:'Playfair Display',serif;
  margin:0 0 0.5rem;
  color:var(--brown);
  font-size:1.3rem;
}
.product-card h4.product-title-spaced{
  margin-top:1rem;
  margin-bottom:1rem;
}
.product-card .muted{
  margin-bottom:1rem;
  font-size:1.1875rem;
  line-height:1.2;
}
.wine-backstory{
  margin-top:3rem;
  padding-top:0;
  border-top:none;
  text-align:left;
}
.wine-backstory h3{
  font-family:'Playfair Display', serif;
  font-size:1.75rem;
  color:var(--brown);
  margin:0 0 1rem;
  font-weight:600;
}
.wine-backstory p{
  font-size:1.3125rem;
  line-height:1.2;
  color:#3A3429;
  margin:0;
}

.site-footer{
  border-top:2px solid rgba(139, 58, 58, 0.15);
  padding:1.5rem 0;
  margin-top:3rem;
  text-align:center;
  color:var(--muted);
  background:rgba(240, 235, 222, 0.5);
  position:relative;
}
.site-footer::before{
  content:'';
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:150px;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(139, 58, 58, 0.2), transparent);
}

/* Lightbox styles */
.lightbox{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0, 0, 0, 0.9);
  z-index:10000;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.lightbox.active{
  display:flex;
}
.lightbox-image{
  max-width:90%;
  max-height:90%;
  object-fit:contain;
  border-radius:8px;
  box-shadow:0 8px 32px rgba(0, 0, 0, 0.5);
  cursor:default;
}
.lightbox-close{
  position:absolute;
  top:20px;
  right:40px;
  color:#fff;
  font-size:40px;
  font-weight:300;
  cursor:pointer;
  line-height:1;
  transition:color 0.2s ease;
  z-index:10001;
}
.lightbox-close:hover{
  color:#ccc;
}

/* Responsive */
@media (min-width:1200px){
  .hero{padding:0 2rem 0 2rem}
  .hero-image{max-width:1275px}
  .hero-image img{max-height:728px}
}
@media (max-width:900px){
  .collage-grid{grid-template-columns:repeat(2,1fr)}
  .products-grid:not(.products-grid-single){grid-template-columns:repeat(2,1fr)}
  .products-grid-single{grid-template-columns:1fr !important}
  .hero-image img{max-height:547px}
}
@media (max-width:640px){
  .hero{padding:0 1rem 0 1rem;overflow:hidden}
  .hero h1{font-size:1.625rem}
  .hero h1::after{width:60px}
  .tagline{font-size:1.25rem}
  .hero-image{width:94.3%;max-width:100%}
  .hero-image img{max-height:566px}
  .header-inner{gap:1rem}
  .main-nav{
    display:none;
    flex-direction:column;
    position:absolute;
    right:1rem;
    top:64px;
    background:rgba(245, 241, 232, 0.98);
    padding:1rem;
    border-radius:8px;
    box-shadow:0 8px 24px rgba(74, 58, 42, 0.15);
    border:1px solid rgba(139, 58, 58, 0.2);
    gap:0.25rem;
    z-index:1003;
    pointer-events:auto;
  }
  .main-nav.open{display:flex !important}
  .main-nav a{
    pointer-events:auto;
    position:relative;
    z-index:1004;
  }
  .nav-toggle{display:inline-block}
  .collage-grid img{height:120px}
  .products-grid:not(.products-grid-single){grid-template-columns:1fr}
  .products-grid.products-grid-single,
  section.products-grid.products-grid-single{grid-template-columns:1fr !important}
  .content h2{font-size:1.625rem}
}
