/*
Theme Name: Enamelly Theme
Theme URI: https://enamelly.com
Description: Custom classic WordPress theme for Enamelly — clean oral care, honestly tested. Ported from Kimi React design.
Version: 1.0.0
Author: Enamelly Editorial Team
Author URI: https://enamelly.com/about
Text Domain: enamelly-theme
Tags: custom-menu, featured-images, full-width-template, sticky-post
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy: #0E3A47;
  --dark-navy: #0A2E38;
  --teal: #168F86;
  --mint: #19C3A6;
  --mint-hover: #14A88F;
  --mint-tint: #EAF8F5;
  --ink: #1A2327;
  --muted: #5B6B70;
  --light-gray: #F5F7F8;
  --border-gray: #E5EBEE;
  --white: #FFFFFF;
  --radius: 0.5rem;
  --shadow-card: 0 4px 20px rgba(14,58,71,0.08);
  --shadow-card-hover: 0 8px 32px rgba(14,58,71,0.12);
  --shadow-header: 0 2px 12px rgba(14,58,71,0.06);
  --shadow-mega: 0 8px 40px rgba(14,58,71,0.12);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--mint);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .container-main {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1024px) {
  .container-main {
    padding-left: 48px;
    padding-right: 48px;
  }
}

.section-padding {
  padding-top: 50px;
  padding-bottom: 50px;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

/* ============================================================
   DISCLOSURE RIBBON
   ============================================================ */
#disclosure-ribbon {
  background: var(--mint-tint);
  padding: 10px 16px;
  position: relative;
  text-align: center;
}

#disclosure-ribbon p {
  font-size: 14px;
  color: var(--navy);
  margin: 0;
}

#disclosure-ribbon a {
  color: var(--teal);
  text-decoration: underline;
}

#disclosure-ribbon a:hover {
  text-decoration: none;
}

#ribbon-dismiss {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.2s;
}

#ribbon-dismiss:hover {
  color: var(--navy);
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: var(--shadow-header);
  transition: background 0.3s, box-shadow 0.3s;
}

#site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(14,58,71,0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.site-logo {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--teal);
}

/* Desktop Nav */
.primary-nav {
  display: none;
}

@media (min-width: 1024px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
}

.primary-nav .nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border-gray);
  margin: 0 8px;
}

.primary-nav > li {
  position: relative;
}

.primary-nav > li > a,
.primary-nav > li > button.nav-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.primary-nav > li > a:hover,
.primary-nav > li > button.nav-trigger:hover,
.primary-nav > li.mega-open > a,
.primary-nav > li.mega-open > button.nav-trigger {
  color: var(--teal);
  text-decoration: none;
}

.primary-nav .content-nav-item > a {
  color: rgba(14,58,71,0.7);
}

.nav-chevron {
  display: inline-block;
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.primary-nav > li.mega-open .nav-chevron {
  transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 560px;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  box-shadow: var(--shadow-mega);
  padding: 24px;
  z-index: 200;
}

.primary-nav > li.mega-open .mega-menu {
  display: block;
}

.mega-menu p.mega-desc {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.6;
}

.mega-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.mega-menu a:hover {
  background: var(--mint-tint);
  color: var(--teal);
  text-decoration: none;
}

/* Header right side */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search */
.search-wrap {
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .search-wrap {
    display: block;
  }
}

.search-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-gray);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  transition: border-color 0.2s, color 0.2s;
}

.search-toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.search-toggle svg {
  width: 16px;
  height: 16px;
}

.search-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 288px;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  box-shadow: var(--shadow-mega);
  padding: 12px;
  z-index: 200;
}

.search-dropdown.open {
  display: block;
}

.search-dropdown input[type="search"],
.search-dropdown input[type="text"] {
  width: 100%;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.search-dropdown input:focus {
  border-color: var(--mint);
}

/* CTA button header */
.btn-header-cta {
  display: none;
}

@media (min-width: 768px) {
  .btn-header-cta {
    display: inline-flex;
  }
}

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  padding: 8px;
  color: var(--navy);
  cursor: pointer;
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy);
  overflow-y: auto;
}

#mobile-menu.open {
  display: block;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-logo {
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
}

.mobile-close {
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
  cursor: pointer;
}

.mobile-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  padding: 20px;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-item > a {
  display: block;
  padding: 16px 0;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
}

.mobile-nav-item > a:hover {
  color: var(--mint);
  text-decoration: none;
}

.mobile-submenu {
  padding: 0 0 12px 16px;
  display: none;
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu a {
  display: block;
  padding: 8px 0;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 16px;
}

.mobile-submenu a:hover {
  color: #fff;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius);
  padding: 14px 28px;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
  line-height: 1;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--mint);
  color: #fff;
  border-color: var(--mint);
}

.btn-primary:hover {
  background: var(--mint-hover);
  border-color: var(--mint-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--navy);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ============================================================
   HERO (FRONT PAGE)
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--mint-tint) 0%, #fff 100%);
  overflow: hidden;
}

.hero-inner {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 64px 0;
}

@media (min-width: 1024px) {
  .hero-inner {
    padding: 0;
  }
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-image {
  display: none;
}

@media (min-width: 1024px) {
  .hero-image {
    display: flex;
    justify-content: center;
  }
}

.hero-image-circle {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 20px 60px rgba(14,58,71,0.18);
  overflow: hidden;
}

.hero-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border-gray);
  padding: 20px 0;
}

.trust-strip-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .trust-strip-items {
    gap: 40px;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--mint);
  flex-shrink: 0;
}

.trust-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-bottom: 48px;
}

.section-header.centered {
  text-align: center;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-header-row .section-title {
  margin: 0;
}

.section-view-all {
  font-size: 15px;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-view-all:hover {
  text-decoration: underline;
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.category-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
}

.category-card:hover {
  border-color: var(--mint);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  text-decoration: none;
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.category-icon svg {
  width: 28px;
  height: 28px;
  color: var(--teal);
}

.category-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  transition: color 0.2s;
}

.category-card:hover h4 {
  color: var(--teal);
}

.category-card .cat-count {
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   ARTICLE CARD
   ============================================================ */
.articles-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
}

.article-card:hover {
  border-color: var(--mint);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  text-decoration: none;
}

.article-card-thumb {
  width: 100%;
  height: 176px;
  background: var(--light-gray);
  overflow: hidden;
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-card:hover .article-card-thumb img {
  transform: scale(1.04);
}

.article-card-body {
  padding: 24px;
}

.article-cat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 8px;
  display: block;
}

.article-card-body h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card:hover h4 {
  color: var(--teal);
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   FEATURED ROUNDUP / MINT-TINT SECTION
   ============================================================ */
.mint-tint-section {
  background: var(--mint-tint);
}

.roundup-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .roundup-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   PET DENTAL BAND (navy bg)
   ============================================================ */
.band-navy {
  background: var(--navy);
  padding: 64px 0;
}

@media (min-width: 1024px) {
  .band-navy {
    padding: 80px 0;
  }
}

.band-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .band-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.band-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 12px;
}

.band-h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.band-p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.band-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.band-image {
  width: 100%;
  height: 288px;
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .band-image {
    height: 320px;
  }
}

.band-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   NEWSLETTER BLOCK
   ============================================================ */
.newsletter-block {
  background: var(--mint-tint);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-block .nl-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 12px;
  display: block;
}

.newsletter-block h3 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 12px;
}

.newsletter-block p {
  color: var(--ink);
  margin-bottom: 24px;
  font-size: 16px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-form input[type="email"] {
  flex: 1;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(25,195,166,0.12);
}

.newsletter-form button {
  background: var(--mint);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--mint-hover);
}

.newsletter-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  display: block;
}

/* Compact newsletter (sidebar) */
.newsletter-compact {
  background: var(--mint-tint);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 24px;
}

.newsletter-compact h4 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 12px;
}

.newsletter-compact-form {
  display: flex;
  gap: 8px;
}

.newsletter-compact-form input[type="email"] {
  flex: 1;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.newsletter-compact-form input:focus {
  border-color: var(--mint);
}

.newsletter-compact-form button {
  background: var(--mint);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.newsletter-compact-form button:hover {
  background: var(--mint-hover);
}

/* ============================================================
   ABOUT BLURB (HOMEPAGE)
   ============================================================ */
.about-blurb {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-blurb h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.about-blurb p {
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-gray);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li::before {
  content: "/";
  color: var(--muted);
}

.breadcrumb-list li:first-child::before {
  display: none;
}

.breadcrumb-list a {
  color: var(--teal);
}

.breadcrumb-list .current {
  color: var(--navy);
}

/* ============================================================
   CATEGORY ARCHIVE
   ============================================================ */
.category-hero {
  background: var(--mint-tint);
  padding: 64px 0 80px;
}

@media (min-width: 1024px) {
  .category-hero {
    padding: 80px 0;
  }
}

.category-hero-content {
  max-width: 640px;
}

.category-hero-image {
  width: 100%;
  height: 224px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.category-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-hero .cat-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 12px;
  display: block;
}

.category-hero h1 {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.15;
}

.category-hero p {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 24px;
}

.cat-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.cat-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  font-family: "Inter Tight", sans-serif;
}

.cat-stat-label {
  font-size: 14px;
  color: var(--muted);
}

/* Subcategory filter pills */
.subcat-filter {
  background: #fff;
  border-bottom: 1px solid var(--border-gray);
  padding: 20px 0;
}

.subcat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.subcat-pill {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-gray);
  color: var(--navy);
  background: #fff;
}

.subcat-pill.active,
.subcat-pill:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  text-decoration: none;
}

/* Featured article in category */
.featured-article-card {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.featured-article-grid {
  display: grid;
}

@media (min-width: 1024px) {
  .featured-article-grid {
    grid-template-columns: 2fr 3fr;
  }
}

.featured-article-img {
  height: 256px;
}

@media (min-width: 1024px) {
  .featured-article-img {
    height: auto;
    min-height: 280px;
  }
}

.featured-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-article-body {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-article-body .art-cat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 8px;
}

.featured-article-body h2 {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.featured-article-body p {
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 20px;
}

.featured-article-body a.read-link {
  color: var(--teal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.featured-article-body a.read-link:hover {
  text-decoration: underline;
}

/* Related categories grid */
.related-cat-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .related-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related-cat-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 12px;
  transition: background 0.2s;
  text-decoration: none;
}

.related-cat-link:hover {
  background: var(--mint-tint);
  text-decoration: none;
}

.related-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.related-cat-link h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
  transition: color 0.2s;
}

.related-cat-link:hover h4 {
  color: var(--teal);
}

.related-cat-link span {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   SINGLE POST LAYOUT (content + sidebar)
   ============================================================ */
.single-layout {
  display: grid;
  gap: 40px;
  padding: 40px 0;
}

@media (min-width: 1024px) {
  .single-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

/* Article content area */
.article-content h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.article-content h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 20px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-content p {
  margin-bottom: 20px;
  color: var(--ink);
}

.article-content ul,
.article-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 8px;
  color: var(--ink);
}

.article-content a {
  color: var(--teal);
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--mint);
}

.article-content blockquote {
  border-left: 4px solid var(--mint);
  padding: 16px 24px;
  background: var(--mint-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--navy);
}

.article-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.article-content th {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-content td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-gray);
  color: var(--ink);
}

.article-content tr:nth-child(even) td {
  background: var(--light-gray);
}

/* Article meta */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-gray);
  margin-bottom: 32px;
}

.article-meta .meta-author {
  font-size: 14px;
  color: var(--muted);
}

.article-meta .meta-date {
  font-size: 14px;
  color: var(--muted);
}

.article-meta .meta-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--mint-tint);
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
}

/* Sidebar */
.article-sidebar {
  width: 100%;
}

@media (min-width: 1024px) {
  .article-sidebar-sticky {
    position: sticky;
    top: 120px;
  }
}

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-widget h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* TOC */
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li a {
  display: block;
  font-size: 14px;
  color: var(--ink);
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.2s;
}

.toc-list li a:hover {
  color: var(--teal);
}

.toc-list li.active a {
  color: var(--mint);
  font-weight: 600;
}

/* Last updated badge */
.last-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint-tint);
  border: 1px solid var(--border-gray);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--muted);
}

/* Sidebar affiliate note */
.sidebar-affiliate-note {
  background: var(--mint-tint);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.sidebar-affiliate-note a {
  color: var(--teal);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--navy);
  color: #fff;
}

.footer-newsletter {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 48px 0;
}

.footer-newsletter-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.footer-newsletter .nl-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 12px;
  display: block;
}

.footer-newsletter h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
}

.footer-newsletter p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin-bottom: 24px;
}

.footer-nl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .footer-nl-form {
    flex-direction: row;
  }
}

.footer-nl-form input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.footer-nl-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.footer-nl-form input:focus {
  border-color: var(--mint);
}

.footer-nl-form button {
  background: var(--mint);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.footer-nl-form button:hover {
  background: var(--mint-hover);
}

/* Footer columns */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  padding: 56px 0;
}

@media (min-width: 768px) {
  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 48px;
  }
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  display: block;
}

.footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col-links li {
  margin-bottom: 10px;
}

.footer-col-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p,
.footer-bottom span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ============================================================
   PAGE TEMPLATES (about, how-we-test, contact, disclosure)
   ============================================================ */
.page-content-wrap {
  padding: 60px 0 80px;
}

.page-hero {
  background: var(--mint-tint);
  padding: 64px 0;
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 20px;
}

.prose h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.prose p {
  margin-bottom: 20px;
  color: var(--ink);
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.prose li {
  margin-bottom: 8px;
  color: var(--ink);
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose a {
  color: var(--teal);
  text-decoration: underline;
}

/* Contact page */
.contact-form {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 40px;
  margin-top: 32px;
  max-width: 560px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(25,195,166,0.12);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.not-found-page h1 {
  font-size: clamp(60px, 12vw, 120px);
  color: var(--border-gray);
  margin-bottom: 16px;
  line-height: 1;
}

.not-found-page h2 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 16px;
}

.not-found-page p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ============================================================
   KEY TAKEAWAY BOX
   ============================================================ */
.key-takeaway {
  background: var(--navy);
  border-radius: 12px;
  padding: 28px;
  border-left: 4px solid var(--mint);
  margin: 32px 0;
}

.key-takeaway .kt-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 12px;
  display: block;
}

.key-takeaway p {
  color: #fff;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(14,58,71,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 50;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--teal);
}

#back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   WORDPRESS DEFAULTS (comments, widgets, etc.)
   ============================================================ */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 8px 0;
}

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 0 auto; display: block; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-gray);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--mint-tint);
  border-color: var(--mint);
  text-decoration: none;
}

.pagination span.current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
