/* ===== Saltwind Farm — Global Styles ===== */

:root {
  --green-dark: #2B3C2F;
  --green-mid: #3D5A42;
  --green-soft: #6B8F71;
  --cream: #F7F4EE;
  --cream-dark: #EDE8DF;
  --tan: #C4A96A;
  --tan-light: #D4BE8A;
  --brown: #3D2B1F;
  --text: #2B3C2F;
  --text-light: #5A6B5E;
  --lavender-soft: #D6CDE0;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-mid);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--tan);
}

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

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  margin: 5px 0;
  transition: 0.3s;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--tan);
  color: var(--green-mid);
}

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

.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: var(--cream);
}

.hero-logo {
  max-width: 360px;
  margin: 0 auto 1.5rem;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-light);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ===== Section basics ===== */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-alt {
  background: var(--cream-dark);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.section-rule {
  width: 60px;
  height: 2px;
  background: var(--tan);
  border: none;
  margin-bottom: 1.5rem;
}

.section-text {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* ===== Product cards (Home) ===== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(43, 60, 47, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(43, 60, 47, 0.12);
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: var(--cream);
  padding: 1rem;
}

.product-card-body {
  padding: 1.25rem;
}

.product-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
}

.product-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== About page ===== */

.about-content {
  max-width: 720px;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-details {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.detail-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(43, 60, 47, 0.06);
}

.detail-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.detail-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ===== Contact page ===== */

.contact-section {
  text-align: center;
  padding: 6rem 1.5rem;
}

.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--green-dark);
  border-bottom: 2px solid var(--tan);
  padding-bottom: 0.15rem;
  transition: color 0.2s;
}
.contact-email:hover {
  color: var(--tan);
}

.contact-note {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

.site-footer {
  background: var(--green-dark);
  color: var(--cream-dark);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer p {
  font-size: 0.85rem;
  color: rgba(247, 244, 238, 0.7);
  letter-spacing: 0.04em;
}

.site-footer a {
  color: var(--tan-light);
}
.site-footer a:hover {
  color: #fff;
}

/* ===== Mobile ===== */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    padding: 1rem 1.5rem;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }

  .hero-logo {
    max-width: 260px;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .contact-email {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}
