/* ============================================
   SMALL TOWN NUTRITION — Brand Styles
   Palette: Emerald Green + Cream
   Fonts: Playfair Display + Inter
   ============================================ */

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

:root {
  --emerald-900: #042f23;
  --emerald-800: #064e3b;
  --emerald-700: #065f46;
  --emerald-600: #047857;
  --emerald-500: #059669;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;
  --cream:       #faf8f0;
  --cream-dark:  #f0ebe0;
  --cream-mid:   #f5f0e6;
  --text-dark:   #1a1a1a;
  --text-mid:    #3a3a3a;
  --text-light:  #6b6b6b;
  --text-on-emerald: #f0fdf4;
  --white:       #ffffff;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width:   1280px;
  --nav-height:  72px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6, 95, 70, 0.08);
  height: var(--nav-height);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--emerald-800);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-logo-text {
  display: none;
}

@media (min-width: 640px) {
  .nav-logo-text {
    display: block;
  }
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--emerald-600);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--emerald-700) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--emerald-800) !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--emerald-800);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile menu */
.nav-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--cream);
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 80px 40px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

.nav-links.open {
  right: 0;
}

.nav-links a {
  font-size: 1.1rem;
  color: var(--text-dark);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

@media (min-width: 900px) {
  .nav-overlay {
    display: none;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  background: var(--emerald-900);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(4, 47, 35, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(6, 120, 87, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1.2fr 0.9fr;
    padding: 80px 24px;
  }
}

/* Floating stat cards */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  order: 2;
}

@media (min-width: 1024px) {
  .hero-stats {
    order: 1;
    justify-content: center;
    gap: 20px;
  }
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-100);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(240, 253, 244, 0.65);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .stat-card--top    { transform: translateY(-30px); }
  .stat-card--mid    { transform: translateY(0); }
  .stat-card--bot    { transform: translateY(30px); }
  .stat-card:hover   { transform: translateY(-33px) !important; }
}

/* Hero content */
.hero-content {
  order: 1;
}

@media (min-width: 1024px) {
  .hero-content {
    order: 2;
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-500);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 24px;
}

.hero-em {
  font-style: italic;
  color: var(--emerald-300, #6ee7b7);
  font-weight: 600;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(240, 253, 244, 0.7);
  max-width: 500px;
  margin-bottom: 36px;
}

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

/* Hero image stack */
.hero-image-stack {
  position: relative;
  order: 3;
  height: 400px;
}

@media (min-width: 1024px) {
  .hero-image-stack {
    order: 3;
    height: 520px;
  }
}

.hero-img {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.hero-img--main {
  width: 75%;
  height: 85%;
  top: 0;
  right: 0;
}

.hero-img--accent {
  width: 55%;
  height: 50%;
  bottom: 0;
  left: 0;
  border: 4px solid rgba(250, 248, 240, 0.2);
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--emerald-700);
  color: var(--white);
  border-color: var(--emerald-700);
}

.btn-primary:hover {
  background: var(--emerald-800);
  border-color: var(--emerald-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 95, 70, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 248, 240, 0.4);
}

.btn-secondary:hover {
  background: rgba(250, 248, 240, 0.1);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--emerald-700);
  border-color: var(--emerald-700);
}

.btn-ghost:hover {
  background: var(--emerald-700);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 14px;
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
}

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

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

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

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(6, 78, 59, 0.12);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 6/5;
}

.about-content .section-headline {
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 22px;
  height: 22px;
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-feature span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
  padding: 100px 0;
  background: var(--cream-dark);
}

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

.section-header .section-sub {
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(6, 78, 59, 0.12);
}

.product-card-img {
  overflow: hidden;
  aspect-ratio: 5/4;
}

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

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

.product-card-body {
  padding: 24px;
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

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

/* ============================================
   PROCESS
   ============================================ */
.process {
  padding: 100px 0;
  background: var(--emerald-900);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(4, 47, 35, 0.8) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 10%, rgba(6, 120, 87, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.process-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.process .section-eyebrow {
  color: var(--emerald-500);
}

.process-headline {
  color: var(--cream);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.process-step {
  padding: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.process-step-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 800;
  color: var(--emerald-500);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.process-step-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 14px;
}

.process-step-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(240, 253, 244, 0.6);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(6, 78, 59, 0.1);
}

.testimonial-quote {
  width: 36px;
  height: 36px;
  color: var(--emerald-200, #a7f3d0);
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald-700);
  letter-spacing: 0.02em;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 100px 0;
  background: var(--emerald-800);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(4, 120, 87, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-eyebrow {
  color: var(--emerald-400, #34d399);
}

.cta-headline {
  color: var(--cream);
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(240, 253, 244, 0.7);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn-ghost {
  color: var(--emerald-100);
  border-color: var(--emerald-500);
}

.btn-ghost:hover {
  background: var(--emerald-500);
  color: var(--white);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--cream-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.contact-info .section-headline {
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-mid);
}

.contact-detail a {
  color: var(--text-mid);
  transition: color 0.2s ease;
}

.contact-detail a:hover {
  color: var(--emerald-700);
}

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.contact-form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--emerald-800);
  font-weight: 500;
}

.form-success.show {
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--emerald-900);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(240, 253, 244, 0.55);
  margin-top: 16px;
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cream);
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links strong,
.footer-contact strong {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-500);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact li {
  font-size: 0.9rem;
  color: rgba(240, 253, 244, 0.6);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover,
.footer-contact li:hover {
  color: var(--cream);
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--emerald-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(240, 253, 244, 0.4);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

/* Default visible state for no-JS */
.reveal {
  opacity: 1;
  transform: none;
}
