/* ============================================
   GLOWDEX — Clinical & Professional Style
   Palette: White / Sage Green / Warm Brown
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --white: #ffffff;
  --off-white: #faf9f7;
  --cream: #f5f0eb;
  --sage: #8a9a7b;
  --sage-light: #c5d1bc;
  --sage-pale: #e8ede4;
  --sage-dark: #6b7d5e;
  --brown: #8b6f47;
  --brown-light: #c4a882;
  --brown-dark: #5e4a2f;
  --text-primary: #2c2c2c;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;
  --border: #e0dcd6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; }

h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--text-primary); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--text-primary); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); color: var(--text-primary); }
h4 { font-size: 1.1rem; }

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

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brown-dark);
  letter-spacing: -0.5px;
}

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

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

.nav-desktop a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
  position: relative;
}

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

.nav-desktop a:hover { color: var(--sage-dark); }
.nav-desktop a:hover::after { width: 100%; }
.nav-desktop a.active { color: var(--sage-dark); }
.nav-desktop a.active::after { width: 100%; }

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: var(--white);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  transition: color 0.2s;
}

.nav-mobile a:hover { color: var(--sage); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--sage-dark);
  border: 1.5px solid var(--sage);
}

.btn-outline:hover {
  background: var(--sage-pale);
}

.btn-brown {
  background: var(--brown);
  color: var(--white);
}

.btn-brown:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(170deg, var(--off-white) 0%, var(--cream) 50%, var(--sage-pale) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(138,154,123,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

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

.hero-content { z-index: 1; }

.hero-content h1 {
  margin-bottom: 20px;
}

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

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

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

.hero-image img {
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
  animation: floatProduct 6s ease-in-out infinite;
}

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

/* ---------- Trust Blocks ---------- */
.trust-section {
  padding: 60px 0;
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-pale);
  border-radius: 50%;
  color: var(--sage-dark);
}

.trust-icon svg { width: 26px; height: 26px; }

.trust-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.trust-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Date Banner ---------- */
.date-banner {
  background: var(--cream);
  padding: 14px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Product Page ---------- */
.product-section {
  padding: 80px 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.gallery {
  position: sticky;
  top: 100px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.gallery-main img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--sage);
}

.gallery-thumb img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-info h1 { margin-bottom: 12px; }

.product-price {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 24px;
}

.product-desc { margin-bottom: 32px; }
.product-desc p { font-size: 0.95rem; }

.info-block {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.info-block h3 {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-block ul {
  padding-left: 0;
}

.info-block li {
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.info-block li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--sage);
}

/* ---------- Order Form ---------- */
.order-form-section {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 40px;
  border: 1px solid var(--border);
}

.order-form-section h3 { margin-bottom: 20px; }

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(138,154,123,0.15);
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* ---------- Ingredients Page ---------- */
.ingredients-hero {
  padding: 80px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--sage-pale) 0%, var(--off-white) 100%);
}

.ingredients-hero p {
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 1.05rem;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 60px 0;
}

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

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

.ingredient-icon {
  width: 48px;
  height: 48px;
  background: var(--sage-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.ingredient-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.ingredient-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- About Page ---------- */
.about-hero {
  padding: 80px 0 40px;
  text-align: center;
  background: linear-gradient(170deg, var(--cream) 0%, var(--off-white) 100%);
}

.about-content {
  padding: 60px 0;
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-block:nth-child(even) .about-text { order: -1; }

.about-visual {
  background: var(--sage-pale);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--sage);
}

.about-text h2 { margin-bottom: 16px; }
.about-text p { font-size: 0.95rem; }

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

.value-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--cream);
  border-radius: var(--radius-lg);
}

.value-card .value-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--sage);
  margin-bottom: 12px;
}

.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-section { padding: 80px 0; }

.faq-list {
  max-width: 780px;
  margin: 40px auto 0;
}

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

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

.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--sage);
  transition: transform 0.3s;
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

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

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

.faq-answer p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-section { padding: 80px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-info-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--sage-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-detail h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-primary);
}

.contact-detail a { color: var(--sage-dark); text-decoration: underline; }

.contact-form {
  padding: 40px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-form h3 { margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

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

.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); max-width: 320px; }

.footer-links h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  padding: 5px 0;
  transition: color 0.2s;
}

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

.medical-disclaimer {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  text-align: center;
}

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

.footer-legal a {
  color: rgba(255,255,255,0.4);
  margin-left: 20px;
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ---------- Cookie Modal ---------- */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  z-index: 9999;
  padding: 24px 0;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-modal.show {
  transform: translateY(0);
}

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

.cookie-inner p {
  flex: 1;
  font-size: 0.88rem;
  margin-bottom: 0;
  min-width: 280px;
}

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

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

/* ---------- Success Page ---------- */
.success-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--sage-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
}

.success-icon svg { width: 40px; height: 40px; }

.success-section h1 { margin-bottom: 16px; }
.success-section p { max-width: 480px; margin: 0 auto 32px; }

/* ---------- Legal Pages ---------- */
.legal-section {
  padding: 80px 0;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 12px;
}

.legal-content .last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 0.92rem;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 4px 0;
  list-style: disc;
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--off-white) 100%);
}

.page-header p {
  max-width: 560px;
  margin: 12px auto 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-content .btn { margin: 0 auto; }
  .hero-image img { max-height: 360px; }
  .product-layout { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .about-block { grid-template-columns: 1fr; }
  .about-block:nth-child(even) .about-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
  .product-section { padding: 40px 0; }
  .ingredients-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal a { margin-left: 0; margin-right: 16px; }
  .order-form-section { padding: 24px; }
  .contact-form { padding: 24px; }
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
