/* =====================================================
   Aromatherapy Finder — Stylesheet
   ===================================================== */

/* EDIT THESE VARIABLES to change the site's colors, fonts and spacing */
:root {
  /* Palette — restrained, natural, wellness-led */
  --color-bg:           #fbfaf6;
  --color-bg-alt:       #f3f0e8;
  --color-bg-panel:     #efece2;
  --color-text:         #2c2e29;
  --color-text-muted:   #6e6f6a;
  --color-line:         #e3dfd2;
  --color-accent:       #7a8b6f;     /* muted sage */
  --color-accent-dark:  #5e6f55;
  --color-amber:        #b48652;     /* warm amber */
  --color-sky:          #8eaab5;     /* soft sky blue */
  --color-warn:         #b56b6b;     /* dusty rose for pregnancy avoid */
  --color-warn-soft:    #d9a86b;     /* amber for caution */

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Sizing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(40, 40, 30, 0.04);
  --shadow-md: 0 4px 18px rgba(40, 40, 30, 0.07);
  --shadow-lg: 0 12px 36px rgba(40, 40, 30, 0.10);

  --max-width: 1180px;
  --max-width-narrow: 760px;
}

/* =====================================================
   Reset / base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 var(--space-2); }

.muted { color: var(--color-text-muted); font-size: 0.92rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -40px; left: 8px;
  background: var(--color-accent-dark);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 500;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.container.narrow { max-width: var(--max-width-narrow); }

.section-title { margin-bottom: var(--space-3); }
.sub-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  min-height: 44px;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-line);
}
.btn-ghost:hover {
  background: var(--color-bg-panel);
  text-decoration: none;
}

/* =====================================================
   Header
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  gap: var(--space-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-accent-dark);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--color-accent); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.site-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
.site-nav a:hover { color: var(--color-accent-dark); text-decoration: none; }

/* =====================================================
   Hero
   ===================================================== */
.hero {
  background: linear-gradient(160deg, #f6f1e4 0%, #ecede2 45%, #dfe4d4 100%);
  padding: var(--space-6) 0 var(--space-5);
}
.hero-inner { max-width: 720px; }
.hero-title { margin-bottom: var(--space-2); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  max-width: 560px;
}

/* =====================================================
   Sections
   ===================================================== */
section { padding: var(--space-5) 0; }
.section-alt { background: var(--color-bg-alt); }

/* =====================================================
   Finder controls
   ===================================================== */
.finder-controls { margin-bottom: var(--space-4); }
.search-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  min-height: 44px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(122, 139, 111, 0.18);
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-2);
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.6rem 1rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
  color: var(--color-text);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { background: var(--color-bg-panel); }
.filter-btn.is-active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.finder-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.result-count {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* =====================================================
   Oil cards
   ===================================================== */
.results-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .results-grid { grid-template-columns: repeat(3, 1fr); }
}

.oil-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(6px);
  animation: cardFadeIn 0.35s ease forwards;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
@keyframes cardFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.oil-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.oil-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  line-height: 1.2;
}
.badge-relaxing   { background: #e6ece0; color: #4d5e44; }
.badge-stimulating{ background: #f1e3cf; color: #80571f; }
.badge-uplifting  { background: #dde7ed; color: #44606e; }
.badge-pregnancy  {
  background: #f3dada;
  color: #8a3a3a;
  border: 1px solid #e3bcbc;
}
.tag-pregnancy-caution {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #f6e7cc;
  color: #7a5520;
}
.oil-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}
.oil-concerns {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
}
.oil-aroma, .oil-use {
  margin: 0;
  font-size: 0.95rem;
}
.oil-safety {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-muted);
  border-top: 1px dashed var(--color-line);
  padding-top: 0.6rem;
}

.empty-state {
  text-align: center;
  padding: var(--space-4) var(--space-2);
  color: var(--color-text-muted);
  background: #fff;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-lg);
  margin-top: var(--space-2);
}

/* =====================================================
   About / Disclaimer
   ===================================================== */
.about-section { background: var(--color-bg); }
.disclaimer-section {
  background: var(--color-bg-panel);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.safety-list {
  margin: 0 0 var(--space-2);
  padding-left: 1.2rem;
}
.safety-list li { margin-bottom: 0.4rem; }
.pregnancy-avoid-list { font-size: 1rem; }

/* =====================================================
   FAQ
   ===================================================== */
.faq-list { margin-top: var(--space-2); }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  margin-bottom: 0.7rem;
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding-right: 2.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--color-accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer {
  padding: 0 1.2rem 1.1rem;
  color: var(--color-text);
  font-size: 0.98rem;
}

/* =====================================================
   Ad slots — reserved space prevents layout shift
   ===================================================== */
.ad-slot-wrap {
  margin: var(--space-5) auto;
  text-align: center;
}
.ad-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.ad-slot {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}
@media (max-width: 640px) {
  .ad-slot { min-height: 250px; }
}

/* =====================================================
   Contact / Privacy
   ===================================================== */
.contact-section { background: var(--color-bg); }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-2);
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-weight: 500;
  font-size: 0.95rem;
}
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  min-height: 44px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(122, 139, 111, 0.18);
}

.privacy-section ul { padding-left: 1.2rem; margin-bottom: var(--space-2); }
.privacy-section li { margin-bottom: 0.35rem; }

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  background: #eceae0;
  padding: var(--space-5) 0 var(--space-4);
  border-top: 1px solid var(--color-line);
  margin-top: var(--space-5);
}
.footer-inner {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.3fr 1fr 1.4fr; align-items: start; }
}
.footer-brand .brand-mark { display: inline-block; vertical-align: middle; }
.footer-brand .brand-name { margin-left: 0.4rem; vertical-align: middle; }
.footer-tag { margin-top: 0.6rem; color: var(--color-text-muted); font-size: 0.92rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-nav a { color: var(--color-text); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--color-accent-dark); }
.footer-meta p { font-size: 0.88rem; color: var(--color-text-muted); }
