/* ── WELLTECH DIRECTORY — SHARED STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --sage: #5a7a6a;
  --sage-light: #8aab97;
  --sage-pale: #ddeade;
  --cream: #f9f6f0;
  --warm-white: #fdfbf8;
  --charcoal: #1e2620;
  --mid-grey: #5a6060;
  --border: #d6ddd7;
  --gold: #c8a96e;
  --gold-pale: #f5ecd9;
  --coral: #d97b5a;
  --sky: #6a9ab8;
  --lavender: #9a8ec8;
  --berry: #8c4a6e;
  --teal: #4a8a8c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,246,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; color: var(--sage);
  letter-spacing: -0.02em; text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--mid-grey);
  font-size: 0.875rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--sage); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--sage);
  padding: 3rem 2rem;
  text-align: center;
}
.page-header .section-eyebrow { color: var(--sage-pale); margin-bottom: 0.5rem; }
.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: white; letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.page-header p { color: #c0d8c8; font-size: 1rem; font-weight: 300; max-width: 520px; margin: 0 auto; }

/* ── TYPOGRAPHY UTILITIES ── */
.section-eyebrow {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em; color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--mid-grey); font-size: 1rem;
  max-width: 560px; line-height: 1.7; font-weight: 300;
  margin-bottom: 2.5rem;
}

/* ── BADGES & TAGS ── */
.badge {
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: 100px; padding: 0.35rem 1rem;
  font-size: 0.8rem; font-weight: 500; color: var(--mid-grey);
}
.badge.active { background: var(--sage-pale); border-color: var(--sage-light); color: var(--sage); }
.tag {
  font-size: 0.72rem; padding: 0.18rem 0.6rem;
  border-radius: 100px; font-weight: 500;
  background: var(--sage-pale); color: var(--sage);
}
.tag.alert { background: #fff0ea; color: var(--coral); }
.tag.info  { background: #dcedf5; color: var(--sky); }

/* ── BUTTONS ── */
.btn-primary {
  flex: 1; background: var(--sage); color: white;
  border: none; border-radius: 8px;
  padding: 0.55rem 0; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem; font-weight: 600; transition: background 0.2s;
  text-decoration: none; display: inline-block; text-align: center;
}
.btn-primary:hover { background: #4a6a5a; }
.btn-outline {
  background: transparent; color: var(--mid-grey);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0.55rem 0.8rem; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
  transition: all 0.2s; text-decoration: none;
}
.btn-outline:hover { border-color: var(--sage); color: var(--sage); }

/* ── SEARCH ── */
.search-section { background: var(--sage); padding: 2.5rem 2rem; }
.search-inner { max-width: 700px; margin: 0 auto; }
.search-label {
  color: var(--sage-pale); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.search-bar {
  display: flex; background: var(--warm-white);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.search-bar input {
  flex: 1; border: none; outline: none; padding: 1rem 1.25rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  background: transparent; color: var(--charcoal);
}
.search-bar input::placeholder { color: #aab5ac; }
.search-bar button {
  background: var(--gold); color: var(--charcoal);
  border: none; cursor: pointer; padding: 0 1.5rem;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 0.9rem; transition: background 0.2s; white-space: nowrap;
}
.search-bar button:hover { background: #b8952e; }
.filter-chips { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,0.15); color: #ddeade;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 100px;
  padding: 0.3rem 0.9rem; font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
}
.chip:hover, .chip.active {
  background: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.5); color: white;
}

/* ── PRODUCT CARDS ── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.product-card {
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.product-img {
  height: 140px; display: flex; align-items: center;
  justify-content: center; font-size: 3.5rem;
}
.product-img.sage-bg   { background: var(--sage-pale); }
.product-img.gold-bg   { background: var(--gold-pale); }
.product-img.sky-bg    { background: #dcedf5; }
.product-img.coral-bg  { background: #f5e0d8; }
.product-img.lavender-bg { background: #eae8f5; }
.product-img.berry-bg  { background: #f0dde8; }
.product-body { padding: 1.25rem; }
.product-category {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--sage); margin-bottom: 0.4rem;
}
.product-name { font-size: 1rem; font-weight: 600; color: var(--charcoal); margin-bottom: 0.4rem; }
.product-brand { font-size: 0.82rem; color: var(--mid-grey); margin-bottom: 0.75rem; }
.product-desc { font-size: 0.82rem; color: var(--mid-grey); line-height: 1.65; font-weight: 300; margin-bottom: 1rem; }
.product-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1rem; font-weight: 600; color: var(--charcoal); }
.product-price span { font-size: 0.75rem; color: var(--mid-grey); font-weight: 400; }
.stars { color: var(--gold); font-size: 0.8rem; }
.product-footer {
  border-top: 1px solid var(--border); padding: 0.9rem 1.25rem;
  display: flex; gap: 0.6rem;
}

/* ── CATEGORY CARDS ── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-card {
  border-radius: 14px; padding: 1.5rem 1.25rem;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  border: 1.5px solid transparent; text-decoration: none; display: block;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.cat-card.sage      { background: var(--sage-pale); border-color: var(--sage-light); }
.cat-card.gold      { background: var(--gold-pale); border-color: #e0c898; }
.cat-card.sky       { background: #dcedf5; border-color: #a8c8dd; }
.cat-card.coral     { background: #f5e0d8; border-color: #e8b8a0; }
.cat-card.lavender  { background: #eae8f5; border-color: #c0b8e8; }
.cat-card.berry     { background: #f0dde8; border-color: #d0a8c0; }
.cat-card.teal      { background: #d8efef; border-color: #98caca; }
.cat-card.charcoal  { background: #e8eae8; border-color: #b8c0b8; }
.cat-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.cat-name { font-size: 0.95rem; font-weight: 600; color: var(--charcoal); margin-bottom: 0.25rem; }
.cat-count { font-size: 0.8rem; color: var(--mid-grey); }

/* ── GUIDE CARDS ── */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.guide-card {
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.guide-card-num {
  font-family: 'DM Serif Display', serif; font-size: 2.5rem;
  color: var(--sage-pale); line-height: 1; margin-bottom: 0.75rem;
}
.guide-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--charcoal); }
.guide-card p { font-size: 0.875rem; color: var(--mid-grey); line-height: 1.7; font-weight: 300; }

/* ── TIP BLOCKS ── */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.tip-block {
  display: flex; gap: 1.25rem; background: var(--warm-white);
  border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem;
  transition: transform 0.2s;
}
.tip-block:hover { transform: translateY(-2px); }
.tip-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.tip-icon.sage-i { background: var(--sage-pale); }
.tip-icon.gold-i { background: var(--gold-pale); }
.tip-icon.sky-i  { background: #dcedf5; }
.tip-icon.coral-i { background: #f5e0d8; }
.tip-content h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.tip-content p { font-size: 0.83rem; color: var(--mid-grey); line-height: 1.7; font-weight: 300; }

/* ── COMPARISON TABLE ── */
.comparison-section { background: var(--charcoal); padding: 4rem 2rem; }
.comparison-inner { max-width: 1100px; margin: 0 auto; }
.comparison-inner .section-eyebrow { color: var(--gold); }
.comparison-inner .section-title { color: white; }
.comparison-inner .section-subtitle { color: #a0ada0; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.compare-table th {
  background: rgba(255,255,255,0.08); color: #c0cdc0;
  font-weight: 500; padding: 0.9rem 1.1rem; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.compare-table th.product-col { color: white; font-size: 0.95rem; }
.compare-table td {
  padding: 0.85rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: #c0cdc0;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.compare-table td:first-child { color: #8a9a8a; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.check { color: #6ec98a; font-size: 1rem; }
.cross { color: #c96e6e; font-size: 1rem; }
.partial { color: var(--gold); font-size: 0.85rem; }

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 1100px; margin: 0 auto;
  padding: 1rem 2rem 0;
  font-size: 0.8rem; color: var(--mid-grey);
}
.breadcrumb a { color: var(--sage); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* ── FOOTER ── */
footer {
  background: var(--charcoal); color: #8a9a8a;
  padding: 2.5rem 2rem; text-align: center; font-size: 0.82rem;
}
footer strong { color: var(--sage-light); }
footer a { color: var(--sage-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }

/* ── LAYOUT HELPERS ── */
.container { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }

/* ── ANIMATIONS ── */
@keyframes floatUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .guide-grid, .products-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
}
