/* ===== BIOOKA — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,500;6..12,600;6..12,700&display=swap');

:root {
  /* Palette */
  --cream:        #FDF6EE;
  --cream-dark:   #F5EBDD;
  --peach:        #F5C7A9;
  --peach-light:  #FAE0CC;
  --peach-pale:   #FFF0E3;
  --coral:        #E08B6D;
  --coral-deep:   #C96E52;
  --sage:         #8BAF7C;
  --sage-dark:    #6A8F5C;
  --olive:        #5C6B4A;
  --earth:        #7A6555;
  --earth-dark:   #5A4A3C;
  --charcoal:     #3A3632;
  --white:        #FFFFFF;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito Sans', 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-xxl: 6rem;

  /* Sizes */
  --max-width: 1200px;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(58,54,50,0.06);
  --shadow-md:  0 4px 20px rgba(58,54,50,0.08);
  --shadow-lg:  0 8px 40px rgba(58,54,50,0.10);
  --shadow-xl:  0 16px 60px rgba(58,54,50,0.12);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
ul { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p { max-width: 68ch; }

.subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--earth);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--space-sm);
  display: block;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xxl) 0;
}

/* ===== Grain Overlay ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253,246,238,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(224,139,109,0.1);
  transition: box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--coral-deep);
  letter-spacing: 0.04em;
}

.nav-logo span {
  color: var(--sage-dark);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--earth);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.3s var(--ease);
  border-radius: 1px;
}

.nav-links a:hover { color: var(--coral); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--coral-deep); }
.nav-links a.active::after { width: 100%; background: var(--coral-deep); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253,246,238,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-sm);
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease);
    border-bottom: 1px solid rgba(224,139,109,0.1);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links a { font-size: 1.05rem; padding: var(--space-xs) 0; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.35s var(--ease);
  border: none;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(224,139,109,0.3);
}

.btn-primary:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(224,139,109,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--coral-deep);
  border: 2px solid var(--coral);
}

.btn-secondary:hover {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sage {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(139,175,124,0.3);
}

.btn-sage:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139,175,124,0.35);
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(224,139,109,0.08);
  transition: all 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}

.card-icon.peach  { background: var(--peach-pale); }
.card-icon.sage   { background: rgba(139,175,124,0.15); }
.card-icon.coral  { background: rgba(224,139,109,0.12); }

/* ===== Hero ===== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, var(--peach-pale) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(139,175,124,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { animation: fadeUp 0.8s var(--ease) both; }

.hero-content h1 {
  margin-bottom: var(--space-sm);
}

.hero-content h1 em {
  font-style: italic;
  color: var(--coral);
}

.hero-content .subtitle {
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-image {
  animation: fadeUp 0.8s 0.2s var(--ease) both;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-image-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  border: 2px solid var(--peach);
  opacity: 0.4;
  z-index: -1;
}

.hero-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--sage);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: calc(72px + var(--space-xl)) 0 var(--space-xl); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content .subtitle { margin-left: auto; margin-right: auto; }
  .hero-image { order: -1; }
  .hero-image-wrapper { max-width: 300px; }
}

/* ===== Grid Layouts ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

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

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

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.section-header h2 { margin-bottom: var(--space-xs); }

.section-header p {
  margin: 0 auto;
  color: var(--earth);
}

/* ===== Leaf Divider ===== */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--sage);
  font-size: 0.9rem;
}

.leaf-divider::before,
.leaf-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--peach), transparent);
}

/* ===== Footer ===== */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.footer a {
  display: block;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease);
}

.footer a:hover { color: var(--peach); }

.footer-disclaimer {
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: var(--space-md);
}

.footer-disclaimer p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  max-width: 100%;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding: var(--space-sm) 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand p { margin: 0 auto; }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--white);
  box-shadow: 0 -4px 30px rgba(58,54,50,0.12);
  padding: var(--space-md) var(--space-lg);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  border-top: 2px solid var(--peach);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 0.88rem;
  color: var(--earth);
  flex: 1;
  min-width: 260px;
}

.cookie-inner p a {
  color: var(--coral);
  text-decoration: underline;
}

.cookie-btns {
  display: flex;
  gap: var(--space-xs);
}

.cookie-btns .btn { padding: 0.6rem 1.4rem; font-size: 0.85rem; }

/* ===== Forms ===== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--earth-dark);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(224,139,109,0.12);
}

.form-input::placeholder { color: rgba(122,101,85,0.5); }

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

/* ===== Page Header ===== */
.page-header {
  padding: calc(72px + var(--space-xl)) 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse at center top, var(--peach-pale) 0%, transparent 60%);
  pointer-events: none;
}

.page-header h1 { position: relative; margin-bottom: var(--space-xs); }
.page-header .subtitle { position: relative; }

/* ===== FAQ ===== */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(224,139,109,0.08);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}

.faq-item:hover { box-shadow: var(--shadow-md); }

.faq-question {
  width: 100%;
  background: none;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.faq-question:hover { color: var(--coral); }

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--peach-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  font-size: 1.1rem;
  color: var(--coral);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--coral);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--earth);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ===== Contact Info ===== */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(224,139,109,0.08);
  transition: all 0.3s var(--ease);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--peach-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--earth);
}

/* ===== Product Page ===== */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.product-image-container {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.product-image-container img {
  margin: 0 auto;
  max-height: 450px;
  object-fit: contain;
}

.product-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  background: var(--peach-pale);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin-top: var(--space-sm);
}

.product-price .amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--coral-deep);
}

.product-price .currency {
  font-size: 0.95rem;
  color: var(--earth);
  font-weight: 500;
}

@media (max-width: 768px) {
  .product-showcase { grid-template-columns: 1fr; }
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.bg-white { background: var(--white); }
.bg-peach-pale { background: var(--peach-pale); }

/* Success page */
.success-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 72px;
}

.success-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(139,175,124,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin: 0 auto var(--space-md);
  animation: fadeUp 0.6s var(--ease) both;
}

.success-hero h1 {
  animation: fadeUp 0.6s 0.15s var(--ease) both;
}

.success-hero p {
  animation: fadeUp 0.6s 0.3s var(--ease) both;
  margin: var(--space-sm) auto var(--space-lg);
}

.success-hero .btn {
  animation: fadeUp 0.6s 0.45s var(--ease) both;
}

/* Legal Pages */
.legal-content {
  padding: var(--space-xl) 0 var(--space-xxl);
}

.legal-content h2 {
  font-size: 1.6rem;
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: var(--space-md) 0 var(--space-xs);
}

.legal-content p {
  margin-bottom: var(--space-sm);
  color: var(--earth);
  max-width: 100%;
}

.legal-content ul {
  margin: var(--space-xs) 0 var(--space-sm) var(--space-md);
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.4rem;
  color: var(--earth);
  font-size: 0.95rem;
}
