/* ═══════════════════════════════════════════════════
   ElectricToothbrush.site — Global Stylesheet
   ═══════════════════════════════════════════════════ */

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

:root {
  --teal: #0D9488;
  --cyan: #0891B2;
  --mint: #10B981;
  --mint-bg: #F0FDFA;
  --deep-teal: #134E4A;
  --body-text: #1E293B;
  --muted: #64748B;
  --border: #CCFBF1;
  --white: #FFFFFF;
  --amber: #F59E0B;
  --amber-light: #FEF3C7;
  --light-gray: #F8FAFC;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --red: #EF4444;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --content-width: 780px;
  --sidebar-width: 340px;
  --header-height: 64px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--deep-teal); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--deep-teal); }
h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

/* ── Header ── */
.site-header {
  background: var(--deep-teal);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.logo-text { color: var(--white); font-weight: 700; font-size: 1.15rem; }
.logo-text span { color: var(--mint); }

/* Desktop nav */
.nav-links { display: flex; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { background: rgba(255,255,255,0.12); color: var(--white); }

/* Dropdown */
.dropdown-arrow { font-size: 0.65rem; transition: transform var(--transition); }
.nav-links > li:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  z-index: 100;
  border: 1px solid var(--gray-200);
}
.nav-links > li:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.55rem 1.15rem;
  color: var(--body-text);
  font-size: 0.88rem;
  transition: background var(--transition);
}
.dropdown a:hover { background: var(--mint-bg); color: var(--teal); }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--body-text);
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.mobile-nav a:hover { color: var(--teal); background: var(--mint-bg); }
.mobile-nav .mobile-section-title {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 1rem 1rem 0.35rem;
  border-bottom: none;
}

/* ── Layout ── */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 0 3rem;
}
/* Breadcrumbs span full width above both columns */
.page-wrapper > .breadcrumbs,
.page-wrapper > .breadcrumb {
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
}
.main-content { min-width: 0; }
.sidebar { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; }

/* Single column layout */
.page-wrapper.full-width { grid-template-columns: 1fr; max-width: var(--content-width); }

/* Content-wrap layout (alternate wrapper used on some pages) */
.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* ── Breadcrumbs ── */
.breadcrumbs,
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.breadcrumbs a,
.breadcrumb a { color: var(--teal); }
.breadcrumbs a:hover,
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--gray-300); }
.breadcrumbs span:last-child,
.breadcrumb li:last-child { color: var(--body-text); }

/* Breadcrumb <ol> variant — strip list styling, make horizontal with > separators */
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
}
.breadcrumb ol li { margin-bottom: 0; }
.breadcrumb ol li + li::before {
  content: "›";
  color: var(--gray-300);
  margin: 0 0.45rem;
}

/* ── Quick Answer Box ── */
.quick-answer {
  background: var(--mint-bg);
  border: 2px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.quick-answer-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 0.35rem;
}
.quick-answer p { margin-bottom: 0; font-size: 1rem; }
.quick-answer strong { color: var(--deep-teal); }

/* ── Product Cards ── */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow var(--transition);
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.product-card-badge.budget { background: var(--mint); }
.product-card-badge.premium { background: var(--cyan); }
.product-card-badge.editor { background: var(--amber); color: var(--body-text); }
.product-card-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.product-card-icon {
  width: 64px;
  height: 64px;
  background: var(--mint-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.75rem;
}
.product-card-title { font-size: 1.2rem; margin: 0 0 0.25rem; }
.product-card-subtitle { font-size: 0.9rem; color: var(--muted); margin: 0; }
.product-card-rating { display: flex; align-items: center; gap: 0.35rem; margin: 0.75rem 0; }
.stars { color: var(--amber); font-size: 0.95rem; letter-spacing: 1px; }
.rating-text { font-size: 0.85rem; color: var(--muted); }
.product-card-features { list-style: none; padding: 0; margin: 0.75rem 0 1rem; }
.product-card-features li {
  font-size: 0.9rem;
  padding: 0.3rem 0;
  padding-left: 1.4rem;
  position: relative;
  color: var(--body-text);
}
.product-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}
.product-card-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.pros h4, .cons h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.5rem; }
.pros h4 { color: var(--mint); }
.cons h4 { color: var(--red); }
.pros li::before { content: "+"; color: var(--mint); font-weight: 700; }
.cons li::before { content: "−"; color: var(--red); font-weight: 700; }
.pros ul, .cons ul { list-style: none; padding: 0; font-size: 0.88rem; }
.pros li, .cons li { padding-left: 1.2rem; position: relative; margin-bottom: 0.3rem; }
.pros li::before, .cons li::before { position: absolute; left: 0; }

.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.product-card-cta:hover { background: var(--deep-teal); color: var(--white); transform: translateY(-1px); }
.product-card-cta .arrow { transition: transform var(--transition); }
.product-card-cta:hover .arrow { transform: translateX(3px); }

/* ── Comparison Table ── */
.comparison-table-wrapper { overflow-x: auto; margin: 1.5rem 0 2rem; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 500px;
}
.comparison-table th {
  background: var(--deep-teal);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.comparison-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.comparison-table tr:nth-child(even) td { background: var(--light-gray); }
.comparison-table tr:hover td { background: var(--mint-bg); }
.table-check { color: var(--mint); font-weight: 700; }
.table-cross { color: var(--red); font-weight: 700; }

/* ── Specs Table ── */
.specs-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.specs-table th { text-align: left; padding: 0.6rem 1rem; background: var(--mint-bg); color: var(--deep-teal); font-weight: 600; width: 40%; border: 1px solid var(--border); }
.specs-table td { padding: 0.6rem 1rem; border: 1px solid var(--border); }

/* ── FAQ Section ── */
.faq-section { margin-top: 3rem; }
.faq-section h2 { margin-bottom: 1.25rem; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: var(--light-gray);
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-teal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--mint-bg); }
.faq-question .faq-toggle { font-size: 1.25rem; color: var(--teal); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { display: none; padding: 1rem 1.25rem; font-size: 0.95rem; line-height: 1.7; border-top: 1px solid var(--gray-200); }
.faq-item.open .faq-answer { display: block; }

/* ── Sidebar ── */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep-teal);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.sidebar-pick {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
}
.sidebar-pick:last-child { border-bottom: none; }
.sidebar-pick-rank {
  width: 28px;
  height: 28px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-pick-info { flex: 1; min-width: 0; }
.sidebar-pick-name { font-size: 0.88rem; font-weight: 600; color: var(--deep-teal); margin: 0; }
.sidebar-pick-desc { font-size: 0.78rem; color: var(--muted); margin: 0.15rem 0 0; }
.sidebar-pick-cta {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
  display: inline-block;
  margin-top: 0.25rem;
}
.sidebar-pick-cta:hover { text-decoration: underline; }

.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { margin-bottom: 0; }
.sidebar-links a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--body-text);
  border-bottom: 1px solid var(--gray-200);
  transition: color var(--transition), padding-left var(--transition);
}
.sidebar-links li:last-child a { border-bottom: none; }
.sidebar-links a:hover { color: var(--teal); padding-left: 0.35rem; }

/* ── Trust Bar ── */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  background: var(--mint-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2rem 0;
  flex-wrap: wrap;
}
.trust-item { font-size: 0.85rem; color: var(--deep-teal); font-weight: 500; display: flex; align-items: center; gap: 0.4rem; }
.trust-icon { font-size: 1.1rem; }

/* ── Hero (Homepage) ── */
.hero {
  background: linear-gradient(135deg, var(--deep-teal) 0%, #0F766E 50%, var(--teal) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--white);
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero h1 { color: var(--white); font-size: 2.75rem; margin-bottom: 1rem; }
.hero .subtitle { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.6; }
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--mint);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover { background: #059669; color: var(--white); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  transition: background var(--transition), transform var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); color: var(--white); transform: translateY(-1px); }

/* ── Category Cards ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  display: block;
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.category-card h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.category-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ── Quick Picks (Homepage) ── */
.quick-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.quick-pick-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: box-shadow var(--transition);
}
.quick-pick-card:hover { box-shadow: var(--shadow-md); }
.quick-pick-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--teal); letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.quick-pick-name { font-size: 1.05rem; font-weight: 700; color: var(--deep-teal); margin: 0.25rem 0; }
.quick-pick-desc { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0; }
.quick-pick-price { font-size: 1rem; font-weight: 700; color: var(--teal); margin: 0.5rem 0; }

/* ── Info Box ── */
.info-box {
  background: var(--mint-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box-title { font-size: 0.95rem; font-weight: 700; color: var(--deep-teal); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.info-box p { font-size: 0.92rem; margin: 0; }

/* ── Verdict Box ── */
.verdict-box {
  background: linear-gradient(135deg, var(--deep-teal), #0F766E);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}
.verdict-box h3 { color: var(--white); margin-top: 0; }
.verdict-box p { opacity: 0.95; }
.verdict-box .product-card-cta { background: var(--mint); }
.verdict-box .product-card-cta:hover { background: #059669; }

/* ── Section divider ── */
.section-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 3rem 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--deep-teal);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.35rem; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.footer-disclosure {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}
.footer-copyright { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 3rem 1.5rem; }
  .hero .subtitle { font-size: 1.05rem; }
  .product-card-pros-cons { grid-template-columns: 1fr; }
  .trust-bar { gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .page-wrapper,
  .content-wrap { padding: 1.25rem 1rem 3rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .quick-picks { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
}

/* ── Last Updated Label ── */
.last-updated { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ── Article meta ── */
.article-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.article-meta-item { display: flex; align-items: center; gap: 0.35rem; }

/* ── Internal link highlight ── */
.related-links {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.related-links h3 { margin-top: 0; font-size: 1rem; color: var(--deep-teal); }
.related-links ul { margin-bottom: 0; }
.related-links li { font-size: 0.92rem; }
