/* ============================================
   Vine & Branch Home — Luxury Candle Brand
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  /* Palette — warm, editorial, luxury */
  --bg:        #f5f2ed;
  --bg-dark:   #1a1815;
  --cream:     #ebe5db;
  --warm-white:#faf8f4;
  --gold:      #b8a88a;
  --gold-light:#c9bda3;
  --charcoal:  #2a2622;
  --muted:     #8c8478;
  --border:    rgba(184, 168, 138, 0.25);
  --shadow:    0 10px 40px rgba(26, 24, 21, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 24, 21, 0.12);

  /* Type */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--gold);
  font-weight: 400;
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 120px 0; }

/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 242, 237, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}

.site-header.scrolled {
  background: rgba(245, 242, 237, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--charcoal);
}

.nav-brand span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--charcoal);
  font-weight: 400;
}

.nav-links a:hover { color: var(--gold); }

.nav-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  color: var(--charcoal);
}

.nav-cart:hover { color: var(--gold); }

.nav-cart svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.nav-toggle { display: none; }

/* ============================================
   Hero
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--warm-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(26,24,21,0.5) 0%, rgba(26,24,21,0.2) 40%, rgba(26,24,21,0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-content .eyebrow {
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--warm-white);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(250, 248, 244, 0.8);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(250, 248, 244, 0.5);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(250, 248, 244, 0.3);
}

/* ============================================
   Products
   ============================================ */

.products {
  padding: 140px 0 100px;
}

.products-header {
  text-align: center;
  margin-bottom: 80px;
}

.products-header .eyebrow { margin-bottom: 1rem; }
.products-header h2 { margin-bottom: 1rem; }
.products-header p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 300;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.product-card {
  text-align: center;
}

.product-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 32px;
  background: var(--cream);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.product-number {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 8px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.product-notes {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 380px;
  margin: 0 auto 24px;
  font-weight: 300;
  line-height: 1.7;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 24px;
}

/* ============================================
   Button
   ============================================ */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 16px 36px;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
}

.btn:hover {
  background: var(--charcoal);
  color: var(--warm-white);
}

.btn-gold {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--warm-white);
}

.btn-light {
  border-color: rgba(250, 248, 244, 0.5);
  color: var(--warm-white);
}

.btn-light:hover {
  background: var(--warm-white);
  color: var(--charcoal);
  border-color: var(--warm-white);
}

/* ============================================
   Story / About Section
   ============================================ */

.story {
  background: var(--bg-dark);
  color: var(--warm-white);
  padding: 140px 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-text .eyebrow {
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.story-text h2 {
  color: var(--warm-white);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.story-text p {
  color: rgba(250, 248, 244, 0.7);
  margin-bottom: 1.25rem;
  font-weight: 300;
  line-height: 1.9;
}

/* ============================================
   Values / Ingredients
   ============================================ */

.values {
  padding: 120px 0;
  text-align: center;
}

.values-header {
  margin-bottom: 80px;
}

.values-header .eyebrow { margin-bottom: 1rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.value-item {
  padding: 0 20px;
}

.value-item .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  color: var(--gold);
}

.value-item .icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-item h3 {
  margin-bottom: 12px;
  font-weight: 400;
}

.value-item p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ============================================
   Gallery
   ============================================ */

.gallery {
  padding: 100px 0;
  background: var(--cream);
}

.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--bg-dark);
  color: rgba(250, 248, 244, 0.6);
  padding: 80px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--warm-white);
  margin-bottom: 8px;
  font-weight: 400;
}

.footer-brand span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 20px;
  max-width: 300px;
  font-weight: 300;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 400;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 0.85rem;
  color: rgba(250, 248, 244, 0.5);
}
.footer-col a:hover { color: var(--warm-white); }

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 244, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(250, 248, 244, 0.3);
}

/* ============================================
   Snipcart overrides
   ============================================ */

.snipcart-modal__container {
  font-family: var(--font-sans) !important;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .product-grid, .story-grid { grid-template-columns: 1fr; gap: 60px; }
  .values-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
  }
  .nav-toggle span {
    width: 24px; height: 1px;
    background: var(--charcoal);
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--bg);
    padding: 30px;
    gap: 25px;
    border-bottom: 1px solid var(--border);
  }
  section { padding: 80px 0; }
  .hero { min-height: 90vh; }
}

@media (max-width: 480px) {
  .product-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}