/* ============================================
   BILVITA — Global Styles
   ============================================ */

:root {
  /* Colors */
  --white: #ffffff;
  --bg: #fafaf7;
  --bg-warm: #f5f3ed;
  --text-primary: #2c2c2c;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;
  --yellow: #e8b631;
  --yellow-light: #fdf5dc;
  --yellow-hover: #d4a22a;
  --yellow-dark: #c49520;
  --border: #e8e5de;
  --border-light: #f0ede6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: 80px 0;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--yellow-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

/* Container */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow .3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width .25s ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: .3s;
}

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

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 0;
    gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform .35s ease;
    z-index: 99;
  }

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

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .nav-links a::after { display: none; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--yellow);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,182,49,0.3);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--text-primary);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--yellow-light) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--yellow-light);
  color: var(--yellow-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image img {
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
  animation: float 4s ease-in-out infinite;
}

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

.hero-price {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--yellow);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { max-height: 300px; }
}

/* ============================================
   Section common
   ============================================ */
.section {
  padding: var(--section-pad);
}

.section-alt {
  background: var(--white);
}

.section-warm {
  background: var(--bg-warm);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  color: var(--yellow-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ============================================
   Features / Info cards
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--yellow-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

/* ============================================
   Ingredients
   ============================================ */
.ingredients-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ingredient-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform .2s;
}

.ingredient-item:hover {
  transform: translateY(-2px);
}

.ingredient-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  background: var(--yellow);
  border-radius: 50%;
  margin-top: 7px;
}

.ingredient-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 4px;
}

.ingredient-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--yellow);
  transition: transform .3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================
   Reviews
   ============================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.review-stars {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  font-weight: 700;
  font-size: 0.9rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* ============================================
   Contact form
   ============================================ */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-primary);
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.form-consent input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--yellow);
}

.form-consent label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   Disclaimer bar
   ============================================ */
.disclaimer-bar {
  background: var(--yellow-light);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
}

.disclaimer-bar p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}

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

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}

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

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color .2s;
}

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

.footer-medical {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-medical p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links a:hover {
  color: var(--yellow);
}

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Cookie banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform .4s ease;
}

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

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

.cookie-inner p a {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-buttons .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* ============================================
   Page header (inner pages)
   ============================================ */
.page-header {
  padding: 48px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   Content blocks (privacy, terms)
   ============================================ */
.content-block {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.content-block h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
}

.content-block h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.content-block ul {
  margin-bottom: 14px;
  padding-left: 24px;
}

.content-block li {
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ============================================
   About page
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

/* ============================================
   Contact page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--yellow-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-info-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* ============================================
   Product page
   ============================================ */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-image-wrap {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image-wrap img {
  max-height: 360px;
  object-fit: contain;
}

.product-price-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow-dark);
  margin-bottom: 20px;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.product-meta-icon {
  color: var(--yellow);
}

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

/* ============================================
   Success page
   ============================================ */
.success-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.success-box {
  max-width: 480px;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--yellow-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.success-box h1 {
  margin-bottom: 12px;
}

.success-box p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }

/* Fade-in animation */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

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