/* ============================================
   FLORWELL — Global Styles
   Earth-tone, minimal, mobile-first
   ============================================ */

@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=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --color-bg:        #FAF6F1;
  --color-bg-warm:   #F3ECE2;
  --color-bg-card:   #FFFFFF;
  --color-primary:   #6D4C41;
  --color-primary-l: #8D6E63;
  --color-primary-d: #4E342E;
  --color-accent:    #A1887F;
  --color-text:      #3E2723;
  --color-text-mid:  #5D4037;
  --color-text-light:#8D6E63;
  --color-border:    #D7CCC8;
  --color-white:     #FFFFFF;
  --color-success:   #6D8B74;
  --color-overlay:   rgba(62,39,35,.55);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;

  --radius-sm:  6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm:  0 1px 3px rgba(62,39,35,.08);
  --shadow-md:  0 4px 16px rgba(62,39,35,.10);
  --shadow-lg:  0 8px 32px rgba(62,39,35,.12);

  --max-w: 1140px;
  --gap:   1.5rem;
}

/* ---------- 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(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-d); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; color: var(--color-primary-d); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: .75rem; }
p + p { margin-top: 1rem; }

.section-subtitle {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text-light);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white) !important;
}
.btn-primary:hover {
  background: var(--color-primary-d);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,246,241,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary-d);
  letter-spacing: .02em;
}
.logo span { color: var(--color-success); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-mid);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary-d);
  margin: 5px 0;
  transition: all .3s;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.active { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-bg-warm) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(141,110,99,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  padding: .35rem 1rem;
  border-radius: 50px;
  background: rgba(109,75,65,.1);
  color: var(--color-primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero-text {
  font-size: 1.05rem;
  color: var(--color-text-mid);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.8;
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(62,39,35,.15));
  animation: floatUp 1s ease-out;
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero { padding: 3rem 0; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-image { order: -1; }
  .hero-image img { max-height: 280px; }
}

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
section:nth-child(even) { background: var(--color-bg-warm); }
.section-header { text-align: center; margin-bottom: 3rem; }

/* ---------- Info Cards ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.info-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform .25s, box-shadow .25s;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(109,75,65,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.info-card h3 { font-size: 1.15rem; }
.info-card p { font-size: .93rem; color: var(--color-text-mid); }

/* ---------- Ingredients ---------- */
.ingredients-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.ingredient-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.ingredient-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(109,139,116,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.ingredient-item h4 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: .25rem;
}
.ingredient-item p {
  font-size: .85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---------- Price Section ---------- */
.price-section {
  background: linear-gradient(135deg, var(--color-primary-d) 0%, var(--color-primary) 100%);
 
  text-align: center;
}
.price-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3.5rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.price-currency { font-size: .95rem; opacity: .8; }
.price-note {
  margin-top: 1.5rem;
  font-size: .85rem;
  opacity: .7;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary-d);
  transition: color .2s;
}
.faq-question:hover { color: var(--color-primary); }
.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform .3s;
}
.faq-item.active .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}
.faq-answer p {
  font-size: .93rem;
  color: var(--color-text-mid);
  line-height: 1.7;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}
.review-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.review-stars { color: #D4A574; font-size: .9rem; margin-bottom: .75rem; letter-spacing: 2px; }
.review-text {
  font-size: .93rem;
  color: var(--color-text-mid);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}
.review-author {
  font-weight: 600;
  font-size: .85rem;
  color: var(--color-primary-d);
}
.review-date {
  font-size: .8rem;
  color: var(--color-text-light);
  margin-top: .15rem;
}

/* ---------- Contact Form ---------- */
.form-section { background: var(--color-bg-warm); }
.form-wrapper {
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-primary-d);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(109,75,65,.1);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--color-text-mid);
  margin-bottom: 1.25rem;
}
.form-consent input[type="checkbox"] {
  margin-top: .25rem;
  accent-color: var(--color-primary);
}

/* ---------- Disclaimer Banner ---------- */
.disclaimer-banner {
  background: rgba(109,75,65,.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 2rem auto;
  max-width: var(--max-w);
  text-align: center;
  font-size: .82rem;
  color: var(--color-text-light);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-d);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.footer-col p,
.footer-col a {
  font-size: .87rem;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
}
.footer-col a:hover { color: var(--color-white); }
.footer-links a { display: block; }
.footer-medical {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
  margin-top: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-align: center;
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
}
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { font-size: .82rem; }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary-d);
  color: var(--color-white);
  padding: 1.25rem;
  z-index: 1000;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-inner p { font-size: .87rem; flex: 1; min-width: 240px; }
.cookie-inner a { color: rgba(255,255,255,.8); text-decoration: underline; }
.cookie-actions { display: flex; gap: .75rem; }
.cookie-btn {
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.cookie-accept {
  background: var(--color-success);
  color: var(--color-white);
}
.cookie-accept:hover { background: #5d7a64; }
.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.3);
}
.cookie-decline:hover { border-color: rgba(255,255,255,.6); color: var(--color-white); }

/* ---------- Inner Pages ---------- */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-bg-warm) 100%);
  text-align: center;
}
.page-content {
  padding: 3rem 0;
}
.page-content .container { max-width: 780px; }
.page-content h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: .75rem; }
.page-content p { margin-bottom: 1rem; font-size: .93rem; color: var(--color-text-mid); }
.page-content ul { margin-bottom: 1rem; padding-left: 1.25rem; }
.page-content ul li {
  font-size: .93rem;
  color: var(--color-text-mid);
  margin-bottom: .4rem;
  list-style: disc;
}

/* ---------- Success Page ---------- */
.success-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-bg-warm) 100%);
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(109,139,116,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}
.success-hero p {
  max-width: 480px;
  margin: 1rem auto 2rem;
  color: var(--color-text-mid);
}

/* ---------- Contact Page Cards ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  margin-bottom: 3rem;
}
.contact-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.contact-card-icon {
  font-size: 1.8rem;
  margin-bottom: .75rem;
}
.contact-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.contact-card p, .contact-card a { font-size: .9rem; color: var(--color-text-mid); }

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

/* ---------- Responsive fine-tuning ---------- */
@media (max-width: 600px) {
  section { padding: 3rem 0; }
  .form-wrapper { padding: 1.5rem; }
  .price-box { padding: 2rem 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-inner { flex-direction: column; text-align: center; }
}
