/* ============================================================
   Sauna Accessories - Design System
   Visual reference: saunalife.com/products
   (premium Nordic sauna retail: clean off-white, deep navy ink,
    sage-green accent, warm timber tones. Syne display + Mulish body.)
   Tier-2 site - plain footer link grid, no mother-brand socials.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=Mulish:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
  --bg:         #f6f4ef;
  --white:      #ffffff;
  --navy:       #31384f;
  --navy-deep:  #222a3c;
  --sage:       #afcf7b;
  --sage-dark:  #8fb15f;
  --timber:     #c69b6e;
  --timber-dark:#a97f52;
  --ink:        #31384f;
  --muted:      #737a81;
  --border:     #e2ddd2;
  --card-bg:    #ffffff;
  --footer-bg:  #2e3a43;
  --footer-text:#dfe7ea;
  --max-w:      760px;
  --sidebar-w:  300px;
  --gutter:     32px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Mulish', sans-serif;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--timber-dark); }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -.2px;
}

p { margin-bottom: 1.1em; }
ul, ol { padding-left: 1.4em; margin-bottom: 1.1em; }
li { margin-bottom: .4em; }

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--sage);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.header-inner {
  max-width: calc(var(--max-w) + var(--sidebar-w) + 80px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.4px;
  text-decoration: none;
}
.logo a:hover { text-decoration: none; }
.logo img { width: 38px; height: 38px; object-fit: contain; }
.logo span { color: var(--timber-dark); }
.logo .tagline {
  display: block;
  font-family: 'Mulish', sans-serif;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0;
}

/* --- Navigation --- */
.main-nav { display: flex; align-items: center; gap: 18px; }

.main-nav > a {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}
.main-nav > a:hover { color: var(--sage-dark); text-decoration: none; }
.main-nav > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width 0.2s;
}
.main-nav > a:hover::after,
.main-nav > a.active::after { width: 100%; }

/* --- Dropdown Menu --- */
.dropdown { position: relative; }

.dropdown-toggle {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: color 0.2s;
}
.dropdown-toggle:hover { color: var(--sage-dark); }
.dropdown-toggle .arrow { font-size: .6rem; transition: transform 0.2s; }
.dropdown:hover .dropdown-toggle .arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 250px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 9px 20px;
  font-family: 'Mulish', sans-serif;
  font-size: .86rem;
  color: var(--ink);
  transition: all 0.2s;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.dropdown-menu a:hover {
  background: var(--bg);
  color: var(--sage-dark);
  border-left-color: var(--sage);
  text-decoration: none;
}

/* --- Mobile Toggle --- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-bg {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  opacity: .5;
  filter: saturate(.6);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 22%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem var(--gutter);
  max-width: calc(var(--max-w) + var(--sidebar-w) + 80px);
  margin: 0 auto;
  width: 100%;
}
.hero-category {
  font-family: 'Mulish', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--timber-dark);
  margin-bottom: .6rem;
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  max-width: 780px;
}
.hero-description {
  margin-top: .8rem;
  font-family: 'Mulish', sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 700px;
}
.hero-cta { margin-top: 1.4rem; }
.hero-cta a.cta-btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--sage);
  color: #fff;
  border-radius: 2px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: background 0.2s;
}
.hero-cta a.cta-btn:hover { background: var(--sage-dark); text-decoration: none; }

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
  max-width: calc(var(--max-w) + var(--sidebar-w) + 80px);
  margin: 16px auto 0;
  padding: 0 40px;
  font-size: .8rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--sage-dark); }
.breadcrumb span { margin: 0 6px; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */

.layout {
  max-width: calc(var(--max-w) + var(--sidebar-w) + 80px);
  margin: 0 auto;
  padding: 28px 40px 56px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gutter);
}

.content-main { min-width: 0; }
.content-main h2 {
  font-size: 1.7rem;
  margin: 1.9em 0 .5em;
  padding-bottom: .25em;
  border-bottom: 2px solid var(--border);
}
.content-main h2:first-child { margin-top: .2em; }
.content-main h3 { font-size: 1.18rem; margin: 1.4em 0 .4em; color: var(--navy-deep); }

.featured-image {
  width: 100%;
  border-radius: 8px;
  margin: 1.5em 0 .6em;
}
.image-caption { font-size: .82rem; color: var(--muted); }

/* --- Topic Grid (homepage) --- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.topic-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.topic-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); text-decoration: none; }
.topic-card img { width: 100%; height: 150px; object-fit: cover; }
.topic-card-body { padding: 14px 16px 16px; }
.topic-card-body h3 { font-family: 'Syne', sans-serif; font-size: 1rem; margin: 0 0 6px; color: var(--ink); }
.topic-card-body p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* --- Study / Guide Cards --- */
.study-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  border-radius: 6px;
  padding: 18px 20px;
  margin: 0 0 16px;
}
.study-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.study-card h3 a { color: var(--ink); }
.study-card h3 a:hover { color: var(--sage-dark); }
.study-card p { margin: 0; font-size: .9rem; color: var(--muted); }

/* --- CTA Box --- */
.cta-box {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 26px 28px;
  margin: 28px 0 10px;
  text-align: center;
}
.cta-box h3 { color: #fff; margin: 0 0 8px; }
.cta-box p { color: #e6ecee; font-size: .94rem; max-width: 520px; margin: 0 auto 16px; }
.cta-btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--sage);
  color: #fff;
  border-radius: 2px;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-btn:hover { background: var(--sage-dark); text-decoration: none; }

/* --- Video Embed --- */
.video-embed { margin: 26px 0; }
.video-embed iframe { width: 100%; border: 0; border-radius: 6px; }

/* --- Social Embed sidebar --- */
.social-embed { margin: 6px 0; }
.sidebar .social-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin: 0 0 22px;
}
.sidebar-card h4 {
  font-family: 'Syne', sans-serif;
  font-size: .95rem;
  color: var(--timber-dark);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--sage);
}

.category-list { list-style: none; padding-left: 0; }
.category-list li { margin-bottom: .5rem; }
.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Mulish', sans-serif;
  font-size: .88rem;
}
.category-list a:hover { color: var(--sage-dark); text-decoration: none; }
.category-list .count {
  font-size: .66rem;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.sidebar-mini-links { display: flex; flex-direction: column; gap: 5px; }
.sidebar-mini-links a { font-size: .88rem; color: var(--ink); text-decoration: none; }
.sidebar-mini-links a:hover { color: var(--sage-dark); text-decoration: none; }

/* ============================================================
   FOOTER (plain link grid - tier-2: NO mother-brand socials)
   ============================================================ */

.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 44px 24px 26px; }

.footer-grid {
  max-width: calc(var(--max-w) + var(--sidebar-w) + 80px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: .02em;
}
.footer-col p { font-size: .88rem; color: var(--footer-text); line-height: 1.6; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding-left: 0; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: .88rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  max-width: calc(var(--max-w) + var(--sidebar-w) + 80px);
  margin: 0 auto;
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .82rem;
  color: var(--footer-text);
  text-align: center;
}
.footer-bottom p { margin-bottom: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-header { height: 60px; }
  .mobile-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav > a { width: 100%; }
  .dropdown { width: 100%; }
  .dropdown-toggle { width: 100%; justify-content: space-between; }
  .dropdown-menu { position: static; transform: none; width: 100%; min-width: 0; opacity: 1; visibility: hidden; }
  .dropdown.active .dropdown-menu { visibility: visible; }

  .layout { grid-template-columns: 1fr; gap: 32px; padding: 20px 20px 44px; }
  .breadcrumb { padding: 0 20px; }
  .sidebar { max-width: none; }
  .topic-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}