@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;500;600&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Base Colors */
  --bg-primary: #f4efe6;
  --bg-secondary: #e7dccb;
  --surface-card: rgba(255, 255, 255, 0.65);
  --surface-card-hover: rgba(255, 255, 255, 0.85);
  
  /* Accent Colors */
  --accent-primary: #8b5e3c;
  --accent-secondary: #c08a5b;
  --accent-highlight: #d4a373;
  
  /* Text Colors */
  --text-primary: #2f2a25;
  --text-secondary: #6b645c;
  --text-light: #f4efe6;
  
  /* Structure & Layout */
  --container-max-width: 1320px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(47, 42, 37, 0.05);
  --shadow-md: 0 8px 24px rgba(47, 42, 37, 0.08);
  --shadow-lg: 0 16px 40px rgba(47, 42, 37, 0.12);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Optional Grain Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('images/subtle-noise-texture.png'); /* Descriptive name */
  opacity: 0.2;
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-normal);
}

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

ul {
  list-style: none;
}

/* Layout System */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 100px 0;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive Adjustments */
@media (max-width: 991px) {
  .container { padding: 0 24px; }
  .section { padding: 70px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .section { padding: 50px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 94, 60, 0.1);
  z-index: 1000;
  transition: var(--transition-normal);
}

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

.logo {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: -0.5px;
}

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

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent-secondary);
  transition: var(--transition-normal);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

@media (max-width: 767px) {
  .nav-links {
    display: none; /* In a real app, this would toggle via JS */
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(139, 94, 60, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 94, 60, 0.3);
  color: var(--text-light);
}

.btn-secondary {
  background: var(--surface-card);
  color: var(--accent-primary);
  border: 1px solid rgba(139, 94, 60, 0.2);
}

.btn-secondary:hover {
  background: var(--surface-card-hover);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, transparent, var(--bg-secondary));
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 480px;
}

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

.hero-visual {
  flex: 1;
  position: relative;
  animation: fadeIn 1s ease forwards;
}

.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

@media (max-width: 991px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text p {
    margin: 0 auto 32px auto;
  }
  .hero-actions {
    justify-content: center;
  }
}

/* Product Cards */
.product-card {
  background: var(--surface-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--surface-card-hover);
}

.product-image-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 1/1;
}

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

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

.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.product-price {
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 0.875rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-card .btn {
  width: 100%;
}

/* Features / Story Section */
.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px auto;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

/* Split Story Section */
.split-section {
  display: flex;
  align-items: center;
  gap: 60px;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.split-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.split-text {
  flex: 1;
}

@media (max-width: 991px) {
  .split-section, .split-section.reverse {
    flex-direction: column;
  }
}

/* Testimonials */
.testimonial-card {
  background: var(--surface-card);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '“';
  font-family: 'Lora', serif;
  font-size: 4rem;
  color: var(--accent-highlight);
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
  opacity: 0.5;
}

.testimonial-text {
  font-style: italic;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  font-size: 1rem;
}

.author-info p {
  margin: 0;
  font-size: 0.875rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  padding: 80px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  color: var(--text-light);
  margin: 0 32px;
}

.cta-banner h2 {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(244, 239, 230, 0.9);
  margin-bottom: 32px;
  font-size: 1.125rem;
}

.cta-banner .btn {
  background: var(--bg-primary);
  color: var(--accent-primary);
}

@media (max-width: 767px) {
  .cta-banner { margin: 0 16px; padding: 60px 16px; }
}

/* Footer */
.footer {
  background-color: #dfd3c3; /* slightly darker warm tone */
  padding: 80px 0 40px 0;
  border-top: 1px solid rgba(139, 94, 60, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
}

.footer-title {
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(139, 94, 60, 0.1);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(139, 94, 60, 0.2);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  font-family: inherit;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(192, 138, 91, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* Page Headers */
.page-header {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-secondary), transparent);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface-card);
  padding: 48px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 { margin-top: 32px; }
@media (max-width: 767px) { .legal-content { padding: 24px; } }