/* Brand Color Variables */
:root {
  --color-brand-teal: #3E6E73;
  --color-bg-oatmeal: #F3EFE7;
  --color-bg-bone: #FCFCFA;
  --color-text-main: #2D3237;
  --color-border: #D1D1D1;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Ubuntu', sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-bg-bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.logo-container {
  background-color: var(--color-bg-oatmeal);
  padding: 3rem 4rem;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
}

.logo-image {
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-script {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  font-size: 3.5rem;
  color: var(--color-brand-teal);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.logo-divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-text-main);
  margin: 0.5rem 0;
}

.logo-tagline {
  font-size: 0.9rem;
  color: var(--color-text-main);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 300;
}

/* Main Navigation */
.main-nav {
  background-color: var(--color-bg-oatmeal);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 999;
}

.main-nav-link {
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.main-nav-link:hover,
.main-nav-link.active {
  color: var(--color-brand-teal);
}

.main-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--color-brand-teal);
}

/* Main Content */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.content-section {
  padding: 4rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 2rem;
  text-align: left;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  background-color: var(--color-bg-bone);
  padding: 2rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.owner-name {
  font-weight: 600;
  margin-top: 1rem;
}

.about-image {
  width: 100%;
}

.owner-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* Products Section */
.products-section {
  background-color: var(--color-bg-bone);
  position: relative;
}

.section-container {
  position: relative;
}

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

.product-card {
  background-color: var(--color-bg-bone);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card.selected {
  border-color: var(--color-brand-teal);
  border-width: 2px;
}

.product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: var(--color-bg-oatmeal);
}

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

.product-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-main);
  padding: 1rem 1rem 0.5rem;
  margin: 0;
}

.product-price {
  font-size: 1rem;
  color: var(--color-text-main);
  padding: 0 1rem 1rem;
  margin: 0;
  font-weight: 400;
}

/* Product Overlay */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(62, 110, 115, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.product-card.selected .product-overlay {
  display: flex;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--color-bg-bone);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quantity-btn {
  background-color: var(--color-brand-teal);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  line-height: 1;
}

.quantity-btn:hover {
  background-color: #2d5257;
  transform: scale(1.1);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-btn:disabled {
  background-color: var(--color-border);
  cursor: not-allowed;
  transform: none;
}

.quantity-display {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-main);
  min-width: 40px;
  text-align: center;
}

/* Sticky Checkout Bar */
.sticky-checkout-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg-oatmeal);
  border-top: 2px solid var(--color-brand-teal);
  padding: 1rem 2rem;
  display: none;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.sticky-checkout-bar.visible {
  display: block;
}

.checkout-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.checkout-summary {
  display: flex;
  align-items: center;
}

.items-count {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.buy-now-button {
  background-color: var(--color-brand-teal);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.buy-now-button:hover {
  background-color: #2d5257;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.buy-now-button:active {
  transform: translateY(0);
}

/* Recipes Section */
.recipes-content {
  max-width: 800px;
}

.recipes-content > p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

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

.recipe-card {
  background-color: var(--color-bg-bone);
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.recipe-card h3 {
  color: var(--color-brand-teal);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.recipe-card p {
  color: var(--color-text-main);
  line-height: 1.8;
}

/* Owner Section */
.owner-section {
  background-color: var(--color-bg-oatmeal);
}

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

.owner-image-large {
  width: 100%;
}

.owner-image-large img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.owner-text {
  padding: 2rem;
}

.owner-text p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* Contact Section */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content > p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-bg-bone);
  color: var(--color-text-main);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-brand-teal);
}

.submit-button {
  padding: 1rem 2rem;
  background-color: transparent;
  border: 2px solid var(--color-brand-teal);
  color: var(--color-brand-teal);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.submit-button:hover {
  background-color: var(--color-brand-teal);
  color: white;
}

/* Footer */
.footer {
  background-color: var(--color-bg-oatmeal);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-main);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-content,
  .owner-content {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 50vh;
    min-height: 400px;
  }

  .logo-container {
    padding: 2rem 2.5rem;
    max-width: 90%;
  }

  .logo-script {
    font-size: 2.5rem;
  }

  .main-nav {
    padding: 0.75rem 1rem;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    top: 0;
  }

  .main-nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .content-section {
    padding: 3rem 1.5rem;
  }

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

  .about-content,
  .owner-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .logo-image {
    max-width: 150px;
  }

  .sticky-checkout-bar {
    padding: 0.75rem 1.5rem;
  }

  .checkout-bar-content {
    flex-direction: column;
    gap: 1rem;
  }

  .buy-now-button {
    width: 100%;
    padding: 0.875rem 2rem;
  }

  .quantity-controls {
    gap: 1rem;
    padding: 0.75rem 1.25rem;
  }

  .quantity-btn {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .quantity-display {
    font-size: 1.25rem;
    min-width: 36px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 40vh;
    min-height: 300px;
  }

  .logo-container {
    padding: 1.5rem 1.5rem;
  }

  .logo-script {
    font-size: 2rem;
  }

  .logo-tagline {
    font-size: 0.75rem;
  }

  .main-nav {
    gap: 1rem;
  }

  .main-nav-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }

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

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

  .content-section {
    padding: 2rem 1rem;
  }

  .sticky-checkout-bar {
    padding: 0.625rem 1rem;
  }

  .checkout-bar-content {
    flex-direction: column;
    gap: 0.75rem;
  }

  .items-count {
    font-size: 1rem;
  }

  .buy-now-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .quantity-controls {
    gap: 0.75rem;
    padding: 0.625rem 1rem;
  }

  .quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .quantity-display {
    font-size: 1.1rem;
    min-width: 32px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

