/* ============================================
   RevivaRootX — Brand Stylesheet
   Palette: Ivory · Coffee · Gold
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --ivory:        #FAF6F0;
  --ivory-light:  #FFFDF9;
  --cream:        #F3EDE3;
  --coffee-light: #C4A882;
  --coffee:       #8B6F4E;
  --coffee-dark:  #5E4A32;
  --gold:         #C5A55A;
  --gold-light:   #D4BC7C;
  --gold-dark:    #A68B3E;
  --text-primary: #3B2F20;
  --text-secondary:#6B5D4F;
  --text-muted:   #9B8E80;
  --white:        #FFFFFF;
  --border:       #E5DDD1;
  --shadow-sm:    0 1px 3px rgba(94,74,50,0.08);
  --shadow-md:    0 4px 12px rgba(94,74,50,0.10);
  --shadow-lg:    0 8px 30px rgba(94,74,50,0.12);
  --radius:       8px;
  --radius-lg:    16px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', 'Segoe UI', sans-serif;
  --max-width:    1140px;
  --transition:   0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-primary);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--coffee-dark);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 12px; }

p { margin-bottom: 16px; color: var(--text-secondary); }

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,246,240,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coffee-dark);
  letter-spacing: 1px;
}

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

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 2px;
}

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

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

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

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--coffee-dark);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  background: linear-gradient(160deg, var(--ivory-light) 0%, var(--cream) 50%, rgba(197,165,90,0.08) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,165,90,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text { position: relative; z-index: 1; }

.hero-text h1 {
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.hero-text .lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

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

.hero-image img {
  max-height: 420px;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(94,74,50,0.15));
  animation: float 6s ease-in-out infinite;
}

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

@media (max-width: 768px) {
  .hero { padding: 48px 24px 40px; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-image { order: -1; }
  .hero-image img { max-height: 280px; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(197,165,90,0.30);
}

.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197,165,90,0.40);
}

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

.btn-outline:hover {
  background: var(--coffee);
  color: var(--white);
  border-color: var(--coffee);
}

/* --- Sections --- */
.section {
  padding: 72px 24px;
}

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

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

/* --- Info Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.info-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(197,165,90,0.12), rgba(197,165,90,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- Ingredients Section --- */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.ingredient-item {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.ingredient-item:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-md);
}

.ingredient-item .emoji {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.ingredient-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--coffee-dark);
}

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

/* --- Product Highlight --- */
.product-highlight {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-highlight-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.product-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 20px 0;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(197,165,90,0.10), rgba(197,165,90,0.04));
  border-radius: var(--radius);
  border: 1px solid rgba(197,165,90,0.20);
}

.product-price .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--coffee-dark);
}

.product-price .currency {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.review-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold-light);
  position: absolute;
  top: 12px;
  left: 24px;
  line-height: 1;
  opacity: 0.5;
}

.review-card .stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.review-card .author {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--coffee-dark);
  font-style: normal;
}

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

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

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

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

.faq-question .arrow {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-question .arrow {
  transform: rotate(180deg);
}

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

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

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

/* --- Contact Form --- */
.form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--coffee);
  margin-bottom: 8px;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,165,90,0.12);
}

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

/* --- Disclaimer Banner --- */
.disclaimer-banner {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 40px auto;
  max-width: var(--max-width);
  text-align: center;
}

.disclaimer-banner p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

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

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

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

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

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

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

.footer-medical {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 40px;
  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.08);
  padding: 20px 0;
  text-align: center;
  margin-top: 16px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--coffee-dark);
  color: rgba(255,255,255,0.85);
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: none;
}

.cookie-banner.show { display: block; }

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

.cookie-inner p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

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

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

.cookie-btns button {
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.cookie-accept {
  background: var(--gold);
  color: var(--white);
}

.cookie-accept:hover { background: var(--gold-dark); }

.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25) !important;
}

.cookie-decline:hover {
  background: rgba(255,255,255,0.08);
}

/* --- Legal Pages --- */
.legal-page {
  padding: 48px 24px 72px;
}

.legal-page .container {
  max-width: 780px;
}

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

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

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

.legal-page p, .legal-page li {
  font-size: 0.92rem;
  line-height: 1.8;
}

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

.legal-page ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.legal-page ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}

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

.success-wrap .check-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.2rem;
  color: var(--white);
}

/* --- Contact Page --- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto 48px;
}

.contact-info-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border);
}

.contact-info-card .c-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.contact-info-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--coffee-dark);
}

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

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
