/* ═══════════════════════════════════════════
   DERMBORA — Design System
   Palette: Beige / Terracotta / Olive
   Aesthetic: Minimalist, Trust-focused, Scientific
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  /* Core Palette */
  --beige: #F5F0E8;
  --beige-dark: #E8E0D0;
  --terracotta: #C17B5D;
  --terracotta-dark: #A6654A;
  --terracotta-light: #D4967C;
  --olive: #6B7C5E;
  --olive-dark: #556548;
  --olive-light: #8A9E7A;
  --cream: #FDFBF7;
  --charcoal: #2C2C2C;
  --text-primary: #3A3632;
  --text-secondary: #6B6560;
  --text-light: #9A948E;
  --white: #FFFFFF;
  --border: rgba(193, 123, 93, 0.15);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 10vw, 120px);
  --container-max: 1200px;
  --radius: 6px;
  --radius-lg: 12px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.35s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

/* ═══ Container ═══ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ═══ Typography ═══ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); 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: 680px; }

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
  display: block;
}

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

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(193, 123, 93, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
}
.btn-secondary:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-olive {
  background: var(--olive);
  color: var(--white);
}
.btn-olive:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 124, 94, 0.3);
}

.btn svg, .btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}
.btn:hover svg, .btn:hover .arrow { transform: translateX(3px); }

/* ═══ Header ═══ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.logo span { color: var(--terracotta); }

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--terracotta);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--terracotta);
  padding: 10px 24px;
  border-radius: var(--radius);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--terracotta-dark) !important;
  color: var(--white) !important;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}

/* ═══ Hero ═══ */
.hero {
  padding: calc(72px + var(--section-pad)) 0 var(--section-pad);
  position: relative;
  background: linear-gradient(170deg, var(--cream) 0%, var(--beige) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(193,123,93,0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-content { position: relative; z-index: 2; }

.hero h1 {
  margin-bottom: 24px;
}

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

.hero-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-badges {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-badge .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(107, 124, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  font-size: 0.9rem;
}

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

.hero-image .product-img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(193,123,93,0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

/* ═══ Sections ═══ */
section {
  padding: var(--section-pad) 0;
}

.section-beige { background: var(--beige); }
.section-cream { background: var(--cream); }
.section-olive-soft { background: rgba(107, 124, 94, 0.06); }

/* ═══ Feature Grid ═══ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.feature-icon.terracotta { background: rgba(193, 123, 93, 0.1); color: var(--terracotta); }
.feature-icon.olive { background: rgba(107, 124, 94, 0.1); color: var(--olive); }
.feature-icon.beige { background: var(--beige); color: var(--terracotta-dark); }

.feature-card h3 { margin-bottom: 12px; }
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══ Product Card ═══ */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-image-wrap {
  position: relative;
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrap img {
  max-width: 320px;
  width: 100%;
}

.product-info .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--terracotta);
  margin: 20px 0;
}

.product-info .price small {
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: var(--font-body);
}

/* ═══ Steps ═══ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--terracotta-light);
  opacity: 0.5;
  margin-bottom: 16px;
  line-height: 1;
}

.step-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; margin: 0 auto; }

.step-card:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 45%;
  color: var(--terracotta-light);
  font-size: 1.4rem;
  opacity: 0.4;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 520px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 16px;
  line-height: 1.6;
}

/* ═══ FAQ ═══ */
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}

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

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

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

.faq-question .toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--terracotta);
}

.faq-item.active .faq-question .toggle {
  background: var(--terracotta);
  color: var(--white);
  transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

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

/* ═══ Contact Info ═══ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(193, 123, 93, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-item h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.contact-item a { color: var(--terracotta); }
.contact-item a:hover { color: var(--terracotta-dark); }

/* ═══ Footer ═══ */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}

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

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

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

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--terracotta-light); }

.medical-disclaimer {
  padding: 24px 0;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ═══ Cookie Modal ═══ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.08);
  z-index: 9999;
  padding: 24px 0;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}

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

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

.cookie-inner p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 600px;
}

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

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

.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-accept {
  background: var(--terracotta);
  color: var(--white);
}
.cookie-accept:hover { background: var(--terracotta-dark); }

.cookie-reject {
  background: var(--beige);
  color: var(--text-secondary);
}
.cookie-reject:hover { background: var(--beige-dark); }

/* ═══ Page Headers ═══ */
.page-header {
  padding: calc(72px + 60px) 0 60px;
  background: linear-gradient(170deg, var(--cream) 0%, var(--beige) 100%);
  text-align: center;
}

.page-header h1 { margin-bottom: 16px; }
.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 auto;
}

/* ═══ CTA Banner ═══ */
.cta-banner {
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%);
  padding: 72px 0;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin: 0 auto 32px;
}

/* ═══ Legal ═══ */
.legal-content {
  padding: var(--section-pad) 0;
}

.legal-content h2 {
  margin: 40px 0 16px;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin: 24px 0 12px;
  font-size: 1.2rem;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 100%;
}

.legal-content ul {
  margin: 12px 0 20px 24px;
  list-style: disc;
}

.legal-content ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

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

.success-card {
  max-width: 520px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(107, 124, 94, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 2rem;
  color: var(--olive);
}

.success-card h1 { margin-bottom: 16px; font-size: 2.2rem; }
.success-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 auto 40px;
}

/* ═══ Animations ═══ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 1; }
  .hero-image { order: 0; margin-bottom: 20px; }
  .hero-text { margin: 0 auto 40px; }
  .hero-badges { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card::after { display: none; }
  .product-showcase { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 32px 24px; }
  .cookie-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-badges { flex-direction: column; align-items: center; }
}
