/* ============================================
   HAVERN — Global Styles
   ============================================ */

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

:root {
  --green: #5A7D50;
  --green-dark: #4A6B42;
  --green-light: #5A7D5018;
  --gold: #C4A265;
  --cream: #FDFAF5;
  --warm-gray: #F5F0E8;
  --text: #2A2A2A;
  --text-muted: #6B6B6B;
  --border: #E8E3DA;
  --red: #C05050;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- NAV ---- */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo svg { height: 36px; width: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  font-size: 13px; color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .cart { font-size: 18px; cursor: pointer; }

/* ---- ANNOUNCEMENT BAR ---- */
.announce-bar {
  background: var(--green); color: white; text-align: center;
  padding: 8px; font-size: 12px; letter-spacing: 1px; font-weight: 500;
}

/* ---- SECTION HELPERS ---- */
.section { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
.section-label {
  font-family: var(--font-body); font-size: 12px; color: var(--green);
  letter-spacing: 3px; font-weight: 600; text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display); font-size: 32px; font-weight: 500;
  color: var(--text); line-height: 1.3; margin-bottom: 24px;
}
.section-text {
  font-size: 15px; color: var(--text-muted); line-height: 1.8;
  max-width: 700px;
}

/* ---- PRODUCT GRID ---- */
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; max-width: 1100px; margin: 0 auto; padding: 32px 24px;
}
.product-gallery { padding-right: 32px; }
.product-main-img {
  background: #f8f5f0; border-radius: 12px; overflow: hidden;
  margin-bottom: 12px; aspect-ratio: 3/4;
}
.product-main-img img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 12px;
}
.product-thumbs { display: flex; gap: 8px; }
.product-thumbs .thumb {
  flex: 1; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent; opacity: 0.6;
  transition: all 0.2s;
}
.product-thumbs .thumb:hover, .product-thumbs .thumb.active {
  border-color: var(--green); opacity: 1;
}
.product-thumbs .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-info { padding-left: 16px; }
.product-info .subtitle {
  font-size: 12px; color: var(--green); letter-spacing: 2px;
  font-weight: 600; text-transform: uppercase; margin-bottom: 8px;
}
.product-info h1 {
  font-family: var(--font-display); font-size: 36px; font-weight: 600;
  line-height: 1.2; margin-bottom: 8px;
}
.stars { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.stars span.star { color: var(--gold); font-size: 15px; }
.stars span.star.empty { color: #ddd; }
.stars .count { font-size: 13px; color: #888; }
.product-desc {
  font-size: 15px; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 20px;
}
.price-row {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px;
}
.price-current {
  font-family: var(--font-display); font-size: 32px; font-weight: 600;
}
.price-old { font-size: 13px; color: #999; text-decoration: line-through; }
.price-badge {
  font-size: 12px; font-weight: 600; color: white; background: var(--red);
  padding: 2px 8px; border-radius: 4px;
}

/* Size selector */
.size-label, .qty-label {
  font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 8px;
}
.size-option {
  display: inline-block; border: 2px solid var(--green); border-radius: 8px;
  padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--green);
  cursor: pointer; margin-bottom: 20px;
}

/* Quantity */
.qty-selector {
  display: inline-flex; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; margin-bottom: 20px;
}
.qty-selector button {
  width: 40px; height: 40px; border: none; background: white;
  cursor: pointer; font-size: 16px;
}
.qty-selector .qty-val {
  width: 50px; height: 40px; display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 600;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}

/* Buttons */
.btn-primary {
  width: 100%; padding: 16px; background: var(--green); color: white;
  border: none; border-radius: 10px; font-family: var(--font-body);
  font-size: 16px; font-weight: 600; cursor: pointer; letter-spacing: 1px;
  margin-bottom: 10px; transition: background 0.2s;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary {
  width: 100%; padding: 14px; background: transparent; color: var(--text);
  border: 2px solid var(--text); border-radius: 10px; font-family: var(--font-body);
  font-size: 14px; font-weight: 600; cursor: pointer; letter-spacing: 1px;
  margin-bottom: 20px; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--text); color: white; }
.btn-white {
  display: inline-block; background: white; color: var(--green); border: none;
  border-radius: 10px; padding: 16px 40px; font-family: var(--font-body);
  font-size: 16px; font-weight: 600; cursor: pointer; letter-spacing: 1px;
  transition: transform 0.2s;
}
.btn-white:hover { transform: translateY(-2px); }

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.trust-badge {
  font-size: 11px; color: var(--green); background: var(--green-light);
  padding: 4px 10px; border-radius: 20px; font-weight: 500;
}

/* Accordion */
.accordion-item { border-top: 1px solid var(--border); }
.accordion-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; cursor: pointer; font-size: 14px; font-weight: 500;
}
.accordion-header .icon {
  font-size: 18px; color: var(--text-muted); transition: transform 0.2s;
}
.accordion-header.open .icon { transform: rotate(45deg); }
.accordion-body {
  display: none; padding: 0 0 14px;
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
}
.accordion-body.open { display: block; }

/* ---- LIFESTYLE BANNER ---- */
.lifestyle-banner {
  max-width: 1100px; margin: 20px auto 0; padding: 0 24px;
}
.lifestyle-banner .inner {
  border-radius: 16px; overflow: hidden; position: relative; height: 340px;
}
.lifestyle-banner img {
  width: 100%; height: 100%; object-fit: cover;
}
.lifestyle-banner .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(42,42,42,0.7) 0%, transparent 60%);
  display: flex; align-items: center; padding: 0 48px;
}
.lifestyle-banner .overlay .label {
  font-size: 12px; color: var(--gold); letter-spacing: 3px; font-weight: 500;
  margin-bottom: 8px;
}
.lifestyle-banner .overlay h2 {
  font-family: var(--font-display); font-size: 32px; color: white;
  font-weight: 500; line-height: 1.3; margin-bottom: 12px;
}
.lifestyle-banner .overlay p {
  font-size: 14px; color: rgba(255,255,255,0.8); max-width: 280px; line-height: 1.6;
}

/* ---- TWO COL GRID ---- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.two-col img { border-radius: 16px; width: 100%; }

/* ---- STEPS ---- */
.step { display: flex; gap: 16px; margin-bottom: 28px; }
.step-num {
  font-family: var(--font-display); font-size: 28px; color: var(--gold);
  font-weight: 300; line-height: 1; min-width: 36px;
}
.step h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- PROBLEM SECTION ---- */
.problem-section { background: var(--warm-gray); padding: 64px 24px; }
.problem-section .inner { max-width: 700px; margin: 0 auto; text-align: center; }
.problem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px;
}
.problem-card {
  background: white; border-radius: 12px; padding: 20px 12px; text-align: center;
}
.problem-card .emoji { font-size: 28px; margin-bottom: 8px; }
.problem-card p { font-size: 13px; font-weight: 500; }

/* ---- INGREDIENTS GRID ---- */
.ingredients-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.ingredient-card {
  background: var(--warm-gray); border-radius: 10px; padding: 14px 16px;
}
.ingredient-card h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.ingredient-card p { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* ---- DARK SECTION ---- */
.dark-section { background: #1a1a1a; padding: 64px 24px; }
.dark-section .inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.dark-section img { border-radius: 16px; width: 100%; max-height: 400px; object-fit: cover; }
.dark-section .label { font-size: 12px; color: var(--gold); letter-spacing: 3px; font-weight: 600; margin-bottom: 8px; }
.dark-section h2 {
  font-family: var(--font-display); font-size: 30px; color: white;
  font-weight: 500; line-height: 1.3; margin-bottom: 16px;
}
.dark-section .body-text {
  font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 24px;
}
.dark-section .tagline {
  font-size: 13px; color: var(--gold); font-style: italic;
}

/* ---- REVIEWS ---- */
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px;
}
.review-card {
  background: var(--warm-gray); border-radius: 12px; padding: 24px; text-align: left;
}
.review-card .stars-row { margin-bottom: 12px; }
.review-card .stars-row span { color: var(--gold); font-size: 14px; }
.review-card .quote {
  font-size: 14px; line-height: 1.6; margin-bottom: 12px; font-style: italic;
}
.review-card .author { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ---- CTA SECTION ---- */
.cta-section { background: var(--green); padding: 64px 24px; text-align: center; }
.cta-section .inner { max-width: 600px; margin: 0 auto; }
.cta-section h2 {
  font-family: var(--font-display); font-size: 30px; color: white;
  font-weight: 500; margin-bottom: 12px;
}
.cta-section p {
  font-size: 15px; color: rgba(255,255,255,0.8); margin-bottom: 28px; line-height: 1.6;
}
.cta-section .checks {
  display: flex; justify-content: center; gap: 24px; margin-top: 20px;
}
.cta-section .checks span {
  font-size: 12px; color: rgba(255,255,255,0.7);
}

/* ---- FOOTER ---- */
.footer { background: #1a1a1a; padding: 40px 24px 24px; }
.footer .inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: start;
  flex-wrap: wrap; gap: 32px;
}
.footer .logo svg { height: 32px; }
.footer .tagline {
  font-size: 12px; font-style: italic; color: var(--gold); margin-top: 8px;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,0.5); transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer .disclaimer {
  max-width: 1100px; margin: 24px auto 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-size: 10px; color: rgba(255,255,255,0.3); line-height: 1.6;
  max-width: 700px;
}

/* ---- MODAL ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--cream); border-radius: 12px; max-width: 440px;
  width: 100%; padding: 40px 32px; text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3); position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none;
  border: none; font-size: 20px; cursor: pointer; color: #999;
}
.modal-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--green);
  margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: white; font-weight: 700;
}
.modal-box h3 {
  font-family: var(--font-display); font-size: 24px; margin-bottom: 8px;
}
.modal-box .modal-text {
  font-size: 14px; color: #666; margin-bottom: 24px; line-height: 1.6;
}
.modal-form {
  background: #F0EBE3; border-radius: 8px; padding: 12px;
  display: flex; gap: 8px; margin-bottom: 16px;
}
.modal-form input {
  flex: 1; background: white; border: 1px solid #ddd; border-radius: 6px;
  padding: 12px 14px; font-size: 15px; font-family: var(--font-body); outline: none;
}
.modal-form button {
  background: var(--green); color: white; border: none; border-radius: 6px;
  padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  white-space: nowrap; font-family: var(--font-body);
}
.modal-form button:hover { background: var(--green-dark); }
.modal-count { font-size: 12px; color: #999; }

/* ---- PAGE CONTENT (about, faq, etc.) ---- */
.page-hero {
  background: var(--warm-gray); padding: 64px 24px; text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display); font-size: 40px; font-weight: 500;
  margin-bottom: 12px;
}
.page-hero p { font-size: 16px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.page-content {
  max-width: 720px; margin: 0 auto; padding: 48px 24px;
}
.page-content h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 500;
  margin: 32px 0 12px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
  font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px;
}
.page-content a { color: var(--green); text-decoration: underline; }
.page-content ul {
  margin: 0 0 16px 20px; color: var(--text-muted); font-size: 15px; line-height: 1.8;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q {
  font-size: 16px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q .icon { font-size: 20px; color: var(--text-muted); transition: transform 0.2s; }
.faq-q.open .icon { transform: rotate(45deg); }
.faq-a {
  display: none; padding-top: 12px; font-size: 14px;
  color: var(--text-muted); line-height: 1.7;
}
.faq-a.open { display: block; }

/* Contact grid */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: 900px; margin: 0 auto; padding: 48px 24px;
}
.contact-card {
  background: var(--warm-gray); border-radius: 12px; padding: 32px;
}
.contact-card h3 {
  font-family: var(--font-display); font-size: 20px; margin-bottom: 16px;
}
.contact-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px;
}
.contact-card a { color: var(--green); font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 8px; font-family: var(--font-body); font-size: 14px;
  margin-bottom: 12px; background: white; outline: none;
}
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form button {
  background: var(--green); color: white; border: none; border-radius: 8px;
  padding: 14px 32px; font-family: var(--font-body); font-size: 14px;
  font-weight: 600; cursor: pointer;
}

/* Journal cards */
.journal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1100px; margin: 0 auto; padding: 48px 24px;
}
.journal-card { border-radius: 12px; overflow: hidden; background: white; }
.journal-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.journal-card .content { padding: 20px; }
.journal-card .tag {
  font-size: 11px; color: var(--green); letter-spacing: 2px;
  font-weight: 600; text-transform: uppercase; margin-bottom: 8px;
}
.journal-card h3 {
  font-family: var(--font-display); font-size: 18px; margin-bottom: 8px;
}
.journal-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-gallery { padding-right: 0; margin-bottom: 24px; }
  .product-info { padding-left: 0; }
  .two-col { grid-template-columns: 1fr; }
  .dark-section .inner { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .lifestyle-banner .inner { height: 240px; }
  .lifestyle-banner .overlay { padding: 0 24px; }
  .lifestyle-banner .overlay h2 { font-size: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .footer .inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
