/* ========================================
   1892 Nutrition — Styles
   ======================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --terra-50:  #FFF8F4;
  --terra-100: #FDEEE4;
  --terra-200: #F9D5C0;
  --terra-300: #F0B08A;
  --terra-400: #E88960;
  --terra-500: #B8613C;
  --terra-600: #9A4E2F;
  --terra-700: #7D3F26;
  --terra-800: #5C2E1C;
  --terra-900: #3A1C10;

  --sand-50:  #FFFCF9;
  --sand-100: #FBF5ED;
  --sand-200: #F5E9D8;
  --sand-300: #EDD9BE;
  --sand-400: #E2C49C;
  --sand-500: #C9A878;
  --sand-600: #A88758;
  --sand-700: #7A6340;
  --sand-800: #4E3F2A;
  --sand-900: #2A2018;

  --ink-light: #3A2218;
  --ink-muted: #6B4C3B;
  --ink-faint: #9A7B6A;

  --white: #FFFAF6;
  --cream: #FFF8F0;

  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1200px;
  --gutter: 24px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-light);
  background-color: var(--sand-50);
}

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

a {
  color: var(--terra-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--terra-500);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- TYPOGRAPHY ---------- */
.section-eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-500);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  color: var(--ink-light);
  margin-bottom: 24px;
}

.section-heading--center {
  text-align: center;
}

.section-heading--light {
  color: var(--white);
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 245, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--terra-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
  color: var(--ink-light);
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--terra-600);
}

.logo-wordmark {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--terra-600);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--terra-500);
  color: var(--white);
  border-color: var(--terra-500);
}

.btn-primary:hover {
  background: var(--terra-600);
  border-color: var(--terra-600);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-light);
  border-color: var(--terra-300);
}

.btn-ghost:hover {
  background: var(--terra-50);
  color: var(--terra-700);
}

/* ---------- HERO ---------- */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--sand-100);
  border-bottom: 1px solid var(--terra-100);
}

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

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-500);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  color: var(--ink-light);
  margin-bottom: 24px;
  font-style: italic;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Floating stat cards */
.stat-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--terra-100);
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(184, 97, 60, 0.06);
}

.stat-number {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-400);
  min-width: 60px;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--terra-700);
}

.stat-label {
  font-size: 13px;
  color: var(--ink-muted);
  margin-left: auto;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 100px 0;
  background: var(--sand-50);
}

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

.about-photo-wrap {
  border-radius: 4px;
  overflow: hidden;
}

.about-photo-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-content .section-heading {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--ink-muted);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- DIVIDER ---------- */
.divider {
  padding: 0;
}

.divider-line {
  height: 1px;
  background: var(--terra-200);
}

/* ---------- PRODUCTS ---------- */
.products {
  padding: 100px 0;
  background: var(--sand-50);
}

.products .section-heading {
  margin-bottom: 48px;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--terra-100);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(184, 97, 60, 0.1);
  transform: translateY(-2px);
}

.product-card-img {
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  font-style: italic;
  color: var(--ink-light);
  padding: 20px 24px 0;
}

.product-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-muted);
  padding: 10px 24px 24px;
}

/* ---------- PHILOSOPHY ---------- */
.philosophy {
  padding: 100px 0;
  background: var(--terra-800);
}

.philosophy-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
}

.philosophy-eyebrow {
  color: var(--terra-300);
}

.philosophy-stats {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  justify-content: center;
}

.philosophy-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.philosophy-stat-number {
  font-family: var(--font-serif);
  font-size: 56px;
  font-style: italic;
  color: var(--terra-300);
  line-height: 1;
}

.philosophy-stat-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--terra-200);
}

/* ---------- VISIT ---------- */
.visit {
  padding: 100px 0;
  background: var(--sand-50);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit-info .section-heading {
  margin-bottom: 32px;
}

.visit-details {
  font-style: normal;
  margin-bottom: 32px;
}

.visit-details p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-muted);
}

.visit-details strong {
  color: var(--ink-light);
  font-weight: 500;
}

.visit-details a {
  color: var(--terra-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.hours-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 36px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--terra-100);
}

.hours-list li span:first-child {
  font-weight: 400;
}

.hours-list li span:last-child {
  font-weight: 400;
  color: var(--ink-light);
}

.visit-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.visit-map {
  border-radius: 4px;
  overflow: hidden;
}

.visit-map img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.map-caption {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  padding-top: 12px;
  letter-spacing: 0.04em;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--terra-900);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left p {
  font-size: 13px;
  color: var(--terra-300);
  margin-top: 6px;
}

.logo-footer {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--white);
}

.logo-footer span {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra-300);
  margin-left: 4px;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  font-size: 13px;
  color: var(--terra-400);
  margin-bottom: 4px;
}

.footer-right a {
  color: var(--terra-300);
}

.footer-right a:hover {
  color: var(--white);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- MOBILE NAV OVERLAY ---------- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(58, 34, 24, 0.5);
  z-index: 90;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 60px;
  }

  .hero-photo img {
    height: 280px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-stats {
    gap: 40px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sand-50);
    z-index: 95;
    padding: 40px var(--gutter);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .main-nav a {
    font-size: 18px;
    letter-spacing: 0.02em;
  }

  .main-nav .btn {
    margin-top: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    text-align: left;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 20px;
  }

  .hero-headline {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .stat-card {
    flex-wrap: wrap;
  }

  .stat-label {
    margin-left: 0;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid var(--terra-100);
    margin-top: 4px;
  }

  .philosophy-stat-number {
    font-size: 44px;
  }

  .visit-map img {
    height: 280px;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
