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

:root {
  --color-moss-green: #294936; /* Deep Moss Green */
  --color-moss-light: #3e6b51;
  --color-cream: #F5F2EB; /* Warm Cream */
  --color-off-white: #FCFBF9; /* Off-white */
  --color-text-dark: #1A261E;
  --color-text-light: #707A74;
  --color-gold: #B39B6D; /* Inspired by the gold text in the logo */
  
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  
  --spacing-section: 6rem;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-off-white);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-moss-green);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-moss-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(252, 251, 249, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(41, 73, 54, 0.1);
}

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

.logo-container {
  display: flex;
  flex-direction: column;
}

.logo-link {
  display: inline-block;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-moss-green);
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-gold);
  margin-top: -0.2rem;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-moss-green);
  transition: color 0.3s;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px; /* Offset for header */
  background-color: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  padding-right: 2rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-moss-green);
  color: var(--color-off-white);
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-moss-green);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-moss-green);
}

.hero-image-container {
  position: relative;
  height: 65vh;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

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

/* Section Common */
section {
  padding: var(--spacing-section) 0;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 4rem;
}

/* Story Section */
.story {
  background-color: var(--color-off-white);
  text-align: center;
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-content p {
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
  color: var(--color-text-dark);
}

.story-content p:last-child {
  font-size: 1.4rem;
  font-family: var(--font-serif);
  color: var(--color-moss-green);
  font-style: italic;
  margin-top: 3rem;
}

/* Featured Formula Section & Product Facts */
.formula {
  background-color: var(--color-cream);
}

.formula-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.formula-image {
  width: 100%;
  height: 700px;
  object-fit: cover;
  border-radius: 4px;
  position: sticky;
  top: 120px;
}

.formula-details h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.formula-certification {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 600;
}

/* Product Facts Styling */
.product-facts {
  background: white;
  border: 2px solid var(--color-moss-green);
  padding: 2rem;
  font-family: var(--font-sans);
  color: var(--color-text-dark);
}

.product-facts h4 {
  font-size: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 3px solid var(--color-moss-green);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.product-facts .per-serving {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  color: var(--color-text-light);
}

.active-ingredients {
  list-style: none;
  margin-bottom: 2rem;
}

.active-ingredients li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(41, 73, 54, 0.1);
  font-size: 0.95rem;
}

.active-ingredients li span:first-child {
  font-weight: 500;
}

.active-ingredients li .amount {
  font-weight: 600;
}

.inactive-ingredients {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
  padding-top: 1rem;
  border-top: 2px solid var(--color-moss-green);
}

.inactive-ingredients strong {
  color: var(--color-text-dark);
  font-weight: 600;
}

/* Quality Commitment Section */
.quality {
  background-color: var(--color-off-white);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  margin-bottom: 4rem;
}

.quality-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  color: var(--color-moss-green);
}

.badge-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.badge-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-moss-green);
}

.quality-partner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

/* Contact Section */
.contact-section {
  background-color: var(--color-cream);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid rgba(41, 73, 54, 0.05);
}

/* Footer Section */
footer {
  background-color: var(--color-moss-green);
  color: var(--color-cream);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(245, 242, 235, 0.2);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h2 {
  color: var(--color-cream);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(245, 242, 235, 0.8);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-contact-info h4 {
  color: var(--color-gold);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: rgba(245, 242, 235, 0.9);
  display: flex;
  align-items: flex-start;
}

.contact-info li strong {
  display: block;
  width: 140px;
  flex-shrink: 0;
  font-weight: 500;
  color: var(--color-gold);
}

.contact-info a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(245, 242, 235, 0.3);
  text-underline-offset: 3px;
}

.contact-info a:hover {
  color: var(--color-gold);
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 242, 235, 0.6);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content, .formula-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 4rem;
  }
  
  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .formula-image {
    position: relative;
    top: 0;
    height: 400px;
  }
}

/* Mobile Menu Button - Hidden by default securely */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--color-moss-green);
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: row; /* Keep logo and hamburger inline */
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Transform into X when active */
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Fullscreen mobile menu */
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-off-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease-in-out;
    padding: 2rem;
    z-index: 1000;
  }

  .main-nav.active {
    left: 0;
  }

  .main-nav a {
    font-size: 1.5rem;
    margin: 1.2rem 0;
  }
  
  header {
    padding: 1rem 0;
  }
  
  .hero {
    padding-top: 140px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2.2rem;
  }

  .product-facts h4 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
