/* ============================================
   CSS VARIABLES
   Earthy color palette for handcrafted feel
   ============================================ */
:root {
  --sage: #9aaa8d;
  --sage-dark: #6f7f63;
  --clay: #c98254;
  --cream: #f8efe4;
  --white: #fffaf4;
  --brown: #4a3328;
  --soft-brown: #7a5a49;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6%;
  background: var(--sage);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

.nav-logo-link {
  display: block;
  line-height: 0;
}

.nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s ease;
  padding: 8px 4px;
}

nav a:hover,
nav a:focus {
  opacity: 0.8;
  text-decoration: underline;
  outline: none;
}

/* Cart icon in navbar */
.cart-icon {
  position: relative;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  padding: 8px;
  background: transparent;
  border: none;
  transition: transform 0.2s ease;
}

.cart-icon:hover,
.cart-icon:focus {
  transform: scale(1.1);
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--clay);
  color: white;
  font-size: 10px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 6%;
  background: linear-gradient(rgba(74, 51, 40, 0.25), rgba(74, 51, 40, 0.25)),
    var(--clay);
  position: relative;
  overflow: hidden;
}

/* Floating leaves container */
.floating-leaves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* Individual floating leaf */
.floating-leaf {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0.35;
  animation: floatLeaf 18s infinite linear;
}

.floating-leaf::before {
  content: "🍃";
  font-size: 20px;
}

@keyframes floatLeaf {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.35;
  }
  90% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(-80px) rotate(360deg);
    opacity: 0;
  }
}

.hero-card {
  background: rgba(255, 250, 244, 0.94);
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  max-width: 720px;
  box-shadow: 0 20px 60px rgba(74, 51, 40, 0.2);
  position: relative;
  z-index: 10;
}

.hero-logo {
  width: 240px;
  max-width: 85%;
  margin-bottom: 20px;
  border-radius: 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 12px;
  font-weight: bold;
  color: var(--sage-dark);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--brown);
}

.hero-text {
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 26px;
  color: var(--soft-brown);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 15px;
}

.btn.primary {
  background: var(--sage-dark);
  color: white;
}

.btn.secondary {
  background: var(--white);
  color: var(--brown);
  border: 1px solid var(--sage);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* Add to cart button specific */
.add-to-cart-btn {
  background: var(--sage);
  color: white;
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  font-size: 14px;
}

.add-to-cart-btn:hover,
.add-to-cart-btn:focus {
  background: var(--sage-dark);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 60px 6%;
  text-align: center;
}

.section h2,
.about h2 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-text {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 16px;
  color: var(--soft-brown);
}

/* ============================================
   PRODUCT CAROUSEL
   ============================================ */
.shop-section {
  background: var(--white);
}

.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  padding: 16px 0;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  padding: 12px 0;
}

.product-card {
  min-width: 240px;
  max-width: 240px;
  background: var(--cream);
  border-radius: 20px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(74, 51, 40, 0.08);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(154, 170, 141, 0.15);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(74, 51, 40, 0.12);
}

.product-image {
  height: 160px;
  border-radius: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.product-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--brown);
}

.product-card p {
  color: var(--soft-brown);
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.product-card .price {
  font-weight: bold;
  color: var(--sage-dark);
  font-size: 16px;
  display: block;
}

/* Carousel arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 2px solid var(--sage);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  color: var(--sage-dark);
}

.carousel-arrow:hover,
.carousel-arrow:focus {
  background: var(--sage);
  color: white;
  outline: none;
}

.carousel-arrow:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.carousel-arrow-left {
  left: 8px;
}

.carousel-arrow-right {
  right: 8px;
}

/* Carousel indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.4;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.indicator:hover,
.indicator:focus {
  opacity: 0.7;
  outline: none;
}

.indicator.active {
  opacity: 1;
  background: var(--sage-dark);
  transform: scale(1.2);
}

/* Product card buttons */
.product-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.view-details-btn {
  background: transparent;
  color: var(--sage-dark);
  border: 1px solid var(--sage);
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
}

.view-details-btn:hover,
.view-details-btn:focus {
  background: var(--sage);
  color: white;
  border-color: var(--sage);
}

/* Demo notice */
.demo-notice {
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(154, 170, 141, 0.12);
  border-radius: 12px;
  font-size: 14px;
  color: var(--soft-brown);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.demo-notice a {
  color: var(--sage-dark);
  font-weight: 600;
}

.demo-notice a:hover,
.demo-notice a:focus {
  text-decoration: underline;
}

/* ============================================
   MEET THE FOUNDER SECTION
   ============================================ */
.founder-section {
  padding: 80px 6%;
  background: var(--cream);
}

.founder-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.founder-image-wrapper {
  display: flex;
  justify-content: center;
}

.founder-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(74, 51, 40, 0.2);
  position: relative;
}

.founder-image::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid var(--sage);
  opacity: 0.4;
}

.founder-image-placeholder {
  color: rgba(255, 255, 255, 0.95);
  font-size: 24px;
  font-weight: bold;
  font-family: Georgia, serif;
}

.founder-content {
  padding: 20px 0;
}

.founder-content .eyebrow {
  color: var(--sage-dark);
  margin-bottom: 8px;
}

.founder-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--brown);
  margin-bottom: 20px;
}

.about-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--soft-brown);
  margin-bottom: 28px;
  max-width: 520px;
}

/* Founder Card */
.founder-card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(74, 51, 40, 0.1);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.founder-card-image {
  flex-shrink: 0;
}

.founder-card .founder-image {
  width: 120px;
  height: 120px;
  box-shadow: 0 4px 16px rgba(74, 51, 40, 0.15);
}

.founder-card .founder-image::before {
  inset: -6px;
}

.founder-card .founder-image-placeholder {
  font-size: 16px;
}

.founder-card-content {
  padding: 0;
}

.founder-card-content h3 {
  font-size: 20px;
  color: var(--brown);
  margin-bottom: 12px;
}

.founder-card-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--soft-brown);
  margin-bottom: 16px;
}

.founder-quote {
  margin: 0;
  padding: 14px 18px;
  background: var(--cream);
  border-left: 3px solid var(--sage);
  border-radius: 0 8px 8px 0;
  position: relative;
}

.founder-quote p {
  font-size: 14px;
  font-style: italic;
  color: var(--brown);
  line-height: 1.5;
  margin: 0;
}

.founder-quote::before {
  content: '"';
  position: absolute;
  top: 2px;
  left: 8px;
  font-size: 32px;
  color: var(--sage);
  opacity: 0.4;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ============================================
   ORDER SECTION
   ============================================ */
.order {
  background: var(--cream);
}

/* ============================================
   CART TOAST NOTIFICATION
   ============================================ */
.cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--brown);
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transition: all 0.35s ease;
}

.cart-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  background: var(--sage);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.toast-message {
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 51, 40, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  color: var(--brown);
}

.modal-close:hover,
.modal-close:focus {
  background: var(--sage);
  color: white;
  outline: none;
}

.modal-content {
  padding: 0;
}

.modal-image {
  height: 180px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image .placeholder-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.modal-details {
  padding: 24px;
}

.modal-details h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--brown);
}

.modal-description {
  color: var(--soft-brown);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-ingredients {
  background: var(--cream);
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.modal-ingredients h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sage-dark);
  margin-bottom: 6px;
}

.modal-ingredients p {
  font-size: 14px;
  color: var(--soft-brown);
  line-height: 1.5;
}

.modal-price {
  font-size: 22px;
  font-weight: bold;
  color: var(--sage-dark);
  display: block;
  margin-bottom: 16px;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-buttons .btn {
  width: 100%;
  text-align: center;
}

.order-inquiry-btn {
  text-align: center;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--brown);
  color: white;
  text-align: center;
  padding: 24px;
  font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 5%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-logo {
    height: 42px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    gap: 16px;
  }

  nav a {
    font-size: 14px;
  }

  .cart-icon {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Smaller navbar on mobile */
  .navbar {
    padding: 10px 5%;
  }

  .nav-logo {
    height: 38px;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 13px;
    padding: 6px 2px;
  }

  .cart-icon {
    padding: 6px;
  }

  .cart-count {
    font-size: 9px;
    min-width: 16px;
    height: 16px;
  }

  .hero {
    padding: 50px 5%;
    min-height: 80vh;
  }

  .hero-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .hero-logo {
    width: 180px;
  }

  h1 {
    font-size: clamp(26px, 7vw, 38px);
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 260px;
  }

  .section {
    padding: 48px 5%;
  }

  .section h2 {
    font-size: clamp(24px, 7vw, 36px);
  }

  .section-text {
    font-size: 15px;
  }

  /* Carousel */
  .product-card {
    min-width: 200px;
    max-width: 200px;
    padding: 16px;
  }

  .product-image {
    height: 130px;
  }

  .product-card h3 {
    font-size: 17px;
  }

  .product-card p {
    font-size: 13px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .carousel-arrow-left {
    left: 4px;
  }

  .carousel-arrow-right {
    right: 4px;
  }

  .demo-notice {
    font-size: 13px;
    padding: 14px 16px;
  }

  .about {
    padding: 56px 5%;
  }

  .about p {
    font-size: 15px;
  }

  /* Founder section */
  .founder-section {
    padding: 56px 5%;
  }

  .founder-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .founder-image {
    width: 200px;
    height: 200px;
  }

  .founder-image-placeholder {
    font-size: 18px;
  }

  .founder-content {
    padding: 0;
  }

  .founder-content h2 {
    margin-bottom: 16px;
  }

  .about-intro {
    font-size: 15px;
    margin-bottom: 24px;
    max-width: none;
  }

  /* Founder card - stack on tablet */
  .founder-card {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    padding: 20px;
  }

  .founder-card-image {
    display: flex;
    justify-content: center;
  }

  .founder-card .founder-image {
    width: 100px;
    height: 100px;
  }

  .founder-card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .founder-card-content p {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .founder-quote {
    text-align: left;
  }

  .cart-toast {
    bottom: 16px;
    padding: 12px 18px;
    width: 90%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 4%;
  }

  .nav-logo {
    height: 36px;
  }

  nav a {
    font-size: 13px;
    margin: 0 6px;
  }

  .hero {
    padding: 40px 4%;
  }

  .hero-card {
    padding: 24px 16px;
  }

  .hero-logo {
    width: 150px;
    margin-bottom: 16px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }

  h1 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .hero-text {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .product-card {
    min-width: 170px;
    max-width: 170px;
    padding: 14px;
  }

  .product-image {
    height: 110px;
  }

  .product-card h3 {
    font-size: 15px;
  }

  .product-card p {
    font-size: 12px;
  }

  .product-card .price {
    font-size: 14px;
  }

  .add-to-cart-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .carousel-arrow {
    display: none;
  }

  /* Mobile carousel - show one card at a time */
  .carousel-container {
    padding: 12px 32px;
  }

  .carousel-track {
    gap: 0;
  }

  .product-card {
    min-width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  .product-image {
    height: 140px;
  }

  .product-card h3 {
    font-size: 18px;
  }

  .product-card p {
    font-size: 14px;
  }

  .product-card .price {
    font-size: 16px;
  }

  .product-card-buttons {
    flex-direction: row;
    gap: 8px;
  }

  .product-card-buttons .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
  }

  .view-details-btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Modal styles for mobile */
  .modal-overlay {
    padding: 12px;
  }

  .modal-container {
    border-radius: 16px;
    max-height: 85vh;
  }

  .modal-image {
    height: 140px;
  }

  .modal-details {
    padding: 20px;
  }

  .modal-details h2 {
    font-size: 20px;
  }

  .modal-description {
    font-size: 14px;
  }

  .modal-ingredients {
    padding: 12px 14px;
  }

  .modal-ingredients h3 {
    font-size: 12px;
  }

  .modal-ingredients p {
    font-size: 13px;
  }

  .modal-price {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .modal-buttons {
    flex-direction: row;
    gap: 8px;
  }

  .modal-buttons .btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 13px;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }

  /* Founder section mobile */
  .founder-section {
    padding: 48px 5%;
  }

  .founder-container {
    gap: 24px;
  }

  .founder-image {
    width: 160px;
    height: 160px;
  }

  .founder-image-placeholder {
    font-size: 16px;
  }

  .founder-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .founder-story {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  .founder-quote {
    margin: 20px 0 16px;
    padding: 14px 18px;
  }

  .founder-quote p {
    font-size: 14px;
  }

  .founder-quote::before {
    font-size: 36px;
    top: 4px;
    left: 8px;
  }

  footer {
    padding: 20px;
    font-size: 13px;
  }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .floating-leaf {
    display: none;
  }
}
