/* Fridge Care Guide - Editorial Household Design System */
:root {
  --bg-primary: #fdfcf7;
  --bg-surface: #ffffff;
  --bg-soft: #f2f7f4;
  --bg-accent-soft: #e5efe9;
  --text-main: #1e293b;
  --text-muted: #52606d;
  --text-light: #7b8794;
  --accent-sage: #28745f;
  --accent-sage-dark: #1b5243;
  --accent-sage-light: #449d84;
  --accent-amber: #d97706;
  --accent-rose: #be123c;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, Georgia, serif;
}

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

html {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent-sage-dark);
  color: #fff;
  padding: 10px 18px;
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 15px;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 90;
}

.top-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sage);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-sage-dark);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 4px;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link:focus, .nav-link.active {
  color: var(--accent-sage);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-sage);
  border-radius: 2px;
}

.nav-btn {
  background: var(--accent-sage);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-btn:hover {
  background: var(--accent-sage-dark);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-main);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 45px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  color: var(--accent-sage-dark);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-lede {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-sage);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-sage-dark);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}
.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--accent-sage);
}

.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

/* Interactive Symptom Finder */
.finder-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 36px 0;
  box-shadow: var(--shadow-sm);
}
.finder-header {
  margin-bottom: 16px;
}
.finder-header h3 {
  font-size: 1.2rem;
  color: var(--accent-sage-dark);
}
.finder-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.symptom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.chip-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip-btn:hover, .chip-btn.selected {
  background: var(--accent-sage);
  color: #fff;
  border-color: var(--accent-sage);
}
.finder-result {
  margin-top: 18px;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-sage);
  display: none;
}
.finder-result.active {
  display: block;
}

/* Content & Grids */
.section {
  padding: 55px 0;
}
.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 10px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-sage-light);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--accent-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
.card-title a {
  text-decoration: none;
  color: var(--text-main);
}
.card-title a:hover {
  color: var(--accent-sage);
}

.card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-sage);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-link:hover {
  color: var(--accent-sage-dark);
  text-decoration: underline;
}

/* Article Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 40px 0 80px;
}

.article-content {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--accent-sage);
}
.breadcrumbs span.current {
  color: var(--text-main);
  font-weight: 500;
}

.article-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 26px;
  margin-bottom: 34px;
}

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.article-lede {
  font-size: 1.15rem;
  line-height: 1.68;
  color: var(--text-muted);
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 26px 0 10px;
  color: var(--accent-sage-dark);
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul, .article-body ol {
  margin: 12px 0 24px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  color: var(--accent-sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover {
  color: var(--accent-sage-dark);
}

.note-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent-sage);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.warning-box {
  background: #fff8f6;
  border-left: 4px solid var(--accent-rose);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.table-responsive {
  overflow-x: auto;
  margin: 26px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  text-align: left;
}

th, td {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text-main);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.05rem;
  color: var(--accent-sage-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
}

.widget-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.4;
  display: block;
}
.widget-links a:hover {
  color: var(--accent-sage);
}

/* Pillar Link Callout */
.pillar-callout {
  background: linear-gradient(135deg, #eef7f4 0%, #e0f0ea 100%);
  border: 1px solid #b7dcce;
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 32px 0;
}
.pillar-callout h4 {
  font-size: 1.1rem;
  color: var(--accent-sage-dark);
  margin-bottom: 8px;
}
.pillar-callout p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
  padding: 50px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--accent-sage);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .nav-links {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
  .mobile-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
