:root {
  /* Colors */
  --primary: #722F37;
  --primary-dark: #4A1C23;
  --secondary: #C9A96E;
  --bg-main: #FAF7F2;
  --bg-alt: #F0EDE8;
  --text-primary: #2D2D2D;
  --text-secondary: #6B6560;
  --white: #FFFFFF;
  --accent-hover: #8B3A42;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
}

/* Reset & Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* Typographic Scale */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary-dark); line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 56px; font-weight: 700; }
h2 { font-size: 36px; font-weight: 600; }
h3 { font-size: 24px; font-weight: 600; }
p { margin-bottom: 1rem; }
.text-small { font-size: 14px; font-weight: 300; }
.text-cream { color: var(--bg-main); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* Layout & Grid Helpers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
section {
  padding: 80px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 32px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  border: none;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
}
.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}
.btn-gold {
  background-color: var(--secondary);
  color: var(--text-primary);
}
.btn-gold:hover {
  filter: brightness(1.1);
}

/* Global Navbar */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo-area a {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-tidecrest {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
}
.logo-vineyards {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 2px;
}
.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

/* Global Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: var(--bg-main);
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--secondary);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--bg-main);
}
.footer-links a:hover {
  color: var(--secondary);
}
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-icons svg {
  width: 24px;
  height: 24px;
  fill: var(--bg-main);
  transition: fill 0.3s;
}
.social-icons a:hover svg {
  fill: var(--secondary);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: rgba(250, 247, 242, 0.7);
}

/* Page Spacing for fixed header */
main {
  margin-top: 80px;
}

/* Responsive Utilities */
@media (max-width: 1024px) {
  h1 { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header { height: 60px; }
  main { margin-top: 60px; }
  .main-nav {
    display: none; /* hidden on mobile until toggled */
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .main-nav.nav-open {
    display: flex;
  }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-icons { justify-content: center; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}

@media (max-width: 480px) {
  section { padding: 40px 0; }
}
