/* ========================================
   HardWaterCure.com - Complete Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* --- 1. Custom Properties --- */
:root {
  --color-primary: #1a3a2a;
  --color-primary-dark: #0f2218;
  --color-secondary: #2d6a4a;
  --color-accent: #3aaa7a;
  --color-accent-light: #e8f5ee;
  --color-text: #1c1c1c;
  --color-text-muted: #555;
  --color-bg: #f8faf9;
  --color-bg-white: #ffffff;
  --color-border: #d8e8df;
  --color-sidebar-bg: #f0f5f2;
  --color-warning: #fff3cd;
  --color-warning-border: #ffc107;
  --color-info: #d1ecf1;
  --color-info-border: #0dcaf0;
  --color-success: #d4edda;
  --color-success-border: #28a745;
  --color-danger: #f8d7da;
  --color-danger-border: #dc3545;
  --color-star: #f59e0b;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-heading: 'Helvetica Neue', Helvetica, 'Inter', Arial, sans-serif;
  --font-size-base: 17px;
  --line-height: 1.78;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.06);
  --transition: 0.2s ease;
  --max-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 300px;
}

/* --- 2. Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: var(--font-size-base); }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { color: var(--color-primary); text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }
table { border-collapse: collapse; width: 100%; }

/* --- 3. Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
h1 { font-size: 2.1rem; margin-top: 0; }
h2 { font-size: 1.6rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--color-border); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); }
p { margin-bottom: 1.1em; }
strong { font-weight: 600; }
blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--color-accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* --- 4. Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 40px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.main-content { min-width: 0; }
.page-content { max-width: var(--content-width); }

/* --- 5. Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }

/* --- 6. Header / Navigation --- */
.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--color-primary-dark);
}
.site-logo .logo-icon i { line-height: 1; }
.site-logo .logo-text {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}
.site-logo .logo-text span { color: var(--color-accent); }
.site-logo:hover { text-decoration: none; }
.nav-menu { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav-menu a {
  color: rgba(255,255,255,0.88);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition);
}

/* --- 7. Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
  color: #fff;
  padding: 80px 0 72px;
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  max-width: 700px;
  margin: 0 auto 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-trust {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 1.5rem;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stat-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-heading);
}
.hero-stat .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* --- 8. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: #2d9066;
  border-color: #2d9066;
  color: var(--color-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58,170,122,0.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}
.btn-amazon {
  background: #ff9900;
  color: #111;
  border-color: #ff9900;
  font-weight: 700;
}
.btn-amazon:hover {
  background: #e08800;
  border-color: #e08800;
  color: #111;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* --- 9. Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}
.card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
  flex-shrink: 0;
  color: var(--color-secondary);
}
.card-icon i { line-height: 1; }
.card h3 { font-size: 1rem; margin-top: 0; margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; }
.card p { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 0; line-height: 1.65; }
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-link:hover { text-decoration: none; }

/* Article cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 2rem 0;
}
.article-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.article-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.85);
}
.article-card-img i { line-height: 1; }
.article-card-body { padding: 20px; }
.article-card-cat {
  font-size: 0.77rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.article-card h3 { font-size: 1rem; margin: 0 0 10px; font-family: var(--font-body); font-weight: 600; }
.article-card p { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 14px; }
.article-card .read-more { font-size: 0.875rem; font-weight: 600; color: var(--color-secondary); }

/* --- 10. Product Cards --- */
.product-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.product-card.top-pick { border: 2px solid var(--color-accent); }
.product-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}
.product-card-title h3 { margin: 0 0 6px; font-size: 1.2rem; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.stars { color: var(--color-star); font-size: 1rem; letter-spacing: 1px; }
.rating-count { font-size: 0.83rem; color: var(--color-text-muted); }
.product-image-placeholder {
  width: 110px;
  height: 110px;
  background: var(--color-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  color: var(--color-secondary);
}
.product-image-placeholder i { line-height: 1; }
.product-specs-table { margin: 16px 0; font-size: 0.9rem; }
.product-specs-table td { padding: 5px 10px 5px 0; vertical-align: top; }
.product-specs-table td:first-child { color: var(--color-text-muted); width: 130px; }
.product-specs-table td:last-child { font-weight: 500; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.pros, .cons {
  background: var(--color-accent-light);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.cons { background: #fff5f5; }
.pros h4, .cons h4 { font-family: var(--font-body); font-size: 0.88rem; margin: 0 0 8px; font-weight: 700; }
.pros h4 { color: #1a7a3a; }
.cons h4 { color: #c0392b; }
.pros ul, .cons ul { font-size: 0.875rem; margin: 0; }
.pros li { color: #1a5c30; }
.cons li { color: #8b2020; }
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.price-note { font-size: 0.83rem; color: var(--color-text-muted); }

/* --- 11. Comparison Table --- */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.comparison-table { font-size: 0.9rem; min-width: 580px; }
.comparison-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-body);
}
.comparison-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:nth-child(even) td { background: var(--color-sidebar-bg); }
.comparison-table .check { color: #28a745; font-weight: 700; }
.comparison-table .cross { color: #dc3545; }
.comparison-table .top-row td { background: var(--color-accent-light) !important; font-weight: 500; }
.comparison-table td:last-child a { font-weight: 600; font-size: 0.85rem; }

/* --- 12. Score / Rating Bars --- */
.score-section { margin: 20px 0; }
.score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.score-label { width: 160px; font-size: 0.88rem; flex-shrink: 0; }
.score-bar-wrap { flex: 1; background: var(--color-border); border-radius: 100px; height: 8px; }
.score-bar { height: 8px; border-radius: 100px; background: var(--color-accent); }
.score-val { width: 36px; text-align: right; font-size: 0.88rem; font-weight: 600; color: var(--color-text-muted); }

/* --- 13. FAQ Accordion --- */
.faq-section { margin: 2rem 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--color-bg-white);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--color-primary-dark);
  gap: 12px;
  transition: background var(--transition);
  user-select: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-question:hover { background: var(--color-accent-light); }
.faq-question.open { background: var(--color-accent-light); color: var(--color-primary); }
.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
  font-style: normal;
}
.faq-question.open .faq-icon { transform: rotate(45deg); background: var(--color-accent); }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  background: var(--color-bg-white);
}
.faq-answer.open { padding: 16px 20px; max-height: 600px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* --- 14. Alert / Notice Boxes --- */
.notice {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border-left: 4px solid;
  font-size: 0.92rem;
}
.notice-info { background: var(--color-info); border-color: var(--color-info-border); }
.notice-warning { background: var(--color-warning); border-color: var(--color-warning-border); }
.notice-success { background: var(--color-success); border-color: var(--color-success-border); }
.notice-danger { background: var(--color-danger); border-color: var(--color-danger-border); }
.notice p:last-child { margin-bottom: 0; }
.disclosure-box {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.84rem;
  color: #555;
  margin-bottom: 2rem;
}
.disclosure-box a { color: var(--color-secondary); }

/* --- 15. Table of Contents --- */
.toc {
  background: var(--color-sidebar-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 2rem 0;
}
.toc h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.toc ol { margin: 0; padding-left: 1.4rem; }
.toc li { margin-bottom: 6px; }
.toc a { font-size: 0.9rem; color: var(--color-secondary); font-weight: 500; }
.toc a:hover { color: var(--color-primary); }

/* --- 16. Sidebar --- */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.sidebar-widget h4 {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a { font-size: 0.9rem; color: var(--color-secondary); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.sidebar-links a:hover { color: var(--color-primary); }
.sidebar-links a::before { content: "->"; font-size: 0.75rem; color: var(--color-accent); }

/* Quick test widget */
.sidebar-quick-test { text-align: center; }
.sidebar-quick-test p { font-size: 0.88rem; margin-bottom: 12px; }

/* --- 17. Breadcrumbs --- */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.83rem;
  color: var(--color-text-muted);
}
.breadcrumbs a { color: var(--color-secondary); }
.breadcrumbs span { margin: 0 6px; color: #bbb; }

/* --- 18. Article Meta / Author --- */
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.article-meta .meta-sep { color: #ccc; }
.author-bio {
  display: flex;
  gap: 20px;
  background: var(--color-sidebar-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 2.5rem 0;
  border: 1px solid var(--color-border);
  align-items: flex-start;
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #fff;
}
.author-avatar i { line-height: 1; }
.author-bio-text h4 { font-size: 0.97rem; margin: 0 0 4px; font-family: var(--font-body); }
.author-bio-text p { font-size: 0.875rem; color: var(--color-text-muted); margin: 0; }

/* --- 19. Category Header --- */
.category-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  padding: 56px 0 44px;
  margin-bottom: 0;
}
.category-header h1 { color: #fff; margin: 0 0 12px; }
.category-header p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0; font-size: 1.05rem; }
.category-header-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.18);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #fff;
}
.category-header-icon i { line-height: 1; }

/* --- 20. Section Dividers --- */
.section { padding: 60px 0; }
.section-alt { background: var(--color-bg-white); }
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading h2 {
  font-size: 1.9rem;
  margin: 0 0 10px;
  border: none;
  padding: 0;
}
.section-heading p { font-size: 1.05rem; color: var(--color-text-muted); max-width: 560px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* --- 21. Trust/Stat Strip --- */
.trust-strip {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 18px 0;
  font-size: 0.88rem;
  text-align: center;
}
.trust-strip .container { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-item .icon, .trust-item i { color: var(--color-accent); font-size: 0.85rem; }

/* --- 22. CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}
.cta-banner h2 { color: #fff; border: none; margin: 0 0 12px; font-size: 1.8rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0 0 24px; font-size: 1.05rem; }

/* --- 23. Tables (data tables) --- */
.data-table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.data-table { font-size: 0.9rem; }
.data-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-border);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) td { background: var(--color-sidebar-bg); }
.data-table caption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: left;
  padding: 6px 0;
  caption-side: bottom;
}

/* --- 24. Footer --- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-about .logo-text { color: #fff; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; display: block; }
.footer-about .logo-text span { color: var(--color-accent); }
.footer-about p { font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.amazon-disclaimer {
  background: rgba(0,0,0,0.2);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 20px;
}

/* --- 25. Page Header (non-hero) --- */
.page-header {
  background: var(--color-primary);
  color: #fff;
  padding: 48px 0 40px;
}
.page-header h1 { color: #fff; margin: 0 0 10px; }
.page-header p { color: rgba(255,255,255,0.82); margin: 0; font-size: 1.05rem; }

/* --- 26. Utility Classes --- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.highlight-box {
  background: var(--color-accent-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 1.5rem 0;
}
.verdict-box {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 2rem 0;
}
.verdict-box h4 { color: var(--color-accent); font-family: var(--font-body); margin: 0 0 8px; font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.06em; }
.verdict-box p { color: rgba(255,255,255,0.9); margin: 0; font-size: 1rem; }
.verdict-box .verdict-score { font-size: 2.5rem; font-weight: 700; color: var(--color-accent); font-family: var(--font-heading); }
.city-data-box {
  background: var(--color-bg-white);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 1.5rem 0;
  text-align: center;
}
.city-data-box .hardness-num { font-size: 3rem; font-weight: 700; color: var(--color-primary); font-family: var(--font-heading); }
.city-data-box .hardness-label { font-size: 0.88rem; color: var(--color-text-muted); }
.city-data-box .hardness-cat { font-size: 1rem; font-weight: 600; color: var(--color-secondary); margin-top: 4px; }

/* --- 27. Contact Form --- */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.93rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-white);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(58,170,122,0.15);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.form-btn:hover { background: var(--color-secondary); }

/* --- 28. Mobile Responsive --- */
@media (max-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --font-size-base: 16px; }
  .hero { padding: 56px 0 52px; }
  .hero h1 { font-size: 1.9rem; }
  .hero .subtitle { font-size: 1rem; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-primary-dark); padding: 12px; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 16px; border-radius: var(--radius); }
  .site-header .container { position: relative; }
  .nav-toggle { display: block; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .hero-stat-row { gap: 24px; }
  .hero-stat .stat-num { font-size: 1.6rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .product-card-header { flex-direction: column-reverse; }
  .product-image-placeholder { width: 80px; height: 80px; font-size: 1.8rem; }
  .section { padding: 40px 0; }
  .trust-strip .container { gap: 20px; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .category-header { padding: 40px 0 32px; }
  .page-header { padding: 36px 0 30px; }
  .card-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
}

/* --- 29. Print --- */
@media print {
  .site-header, .sidebar, .site-footer, .nav-toggle, .trust-strip { display: none; }
  body { font-size: 12pt; }
  a::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
}

/* --- 30. Accessibility --- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
