/* ========================================================
   SilverCare Plus — Warm Professional Theme
   Slate + Amber + Warm Neutral | Senior-Friendly | ADA-Optimized
   Palette values may be overridden at runtime by the admin
   Appearance panel (see render_theme_vars() in includes/init.php).
   Variable names are kept historical (--navy/--gold/--cream) so the
   ~780 rules below need no changes when the palette changes.
   ======================================================== */

:root {
  --navy: #2C3E50;
  --navy-light: #3d566e;
  --navy-dark: #1f2d3a;
  --gold: #E08E0B;
  --gold-light: #f0a93a;
  --gold-dark: #b87208;
  --cream: #FAF8F5;
  --cream-dark: #f0ebe3;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #adb5bd;
  --gray-700: #495057;
  --gray-900: #212529;
  --heading-color: var(--navy);
  --text-color: #1f2933;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Fraunces', 'Plus Jakarta Sans', serif;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --shadow-sm: 0 2px 8px rgba(44,62,80,0.07);
  --shadow-md: 0 8px 24px rgba(44,62,80,0.12);
  --shadow-lg: 0 20px 50px rgba(44,62,80,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Dark mode — derived from the active palette; the heading/accent
   roles flip to the warm amber so text stays legible on dark surfaces. */
body.dark-mode {
  --cream: #16202b;
  --cream-dark: #0f1820;
  --white: #1c2935;
  --gray-50: #22303d;
  --gray-100: #283744;
  --gray-200: #334453;
  --gray-700: #cdd5dc;
  --gray-900: #f1f3f5;
  --navy: var(--gold);
  --heading-color: #f1f3f5;
  --text-color: #e6eaee;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-color);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--heading-color);
}
.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 { color: var(--heading-color); }

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* ============================== SCROLL PROGRESS ============================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 9999; width: 0%; transition: width .1s;
}

/* ============================== HEADER ============================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--gray-200);
}
.dark-mode .site-header { background: rgba(13,27,42,0.9); }
.dark-mode .site-header.scrolled { background: var(--white); }

.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 24px; font-weight: 800;
  color: var(--navy); letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 6px;
}
.nav-logo span { color: var(--gold); }
.dark-mode .nav-logo { color: var(--gray-900); }

.nav-menu { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-menu a {
  padding: 10px 16px; border-radius: var(--radius-sm);
  color: var(--gray-700); font-weight: 500; font-size: 15px;
  transition: all .2s;
}
.nav-menu a:hover { color: var(--navy); background: var(--gray-100); }
.dark-mode .nav-menu a { color: var(--gray-700); }

.nav-cta {
  background: var(--navy); color: var(--white) !important;
  padding: 10px 22px !important; border-radius: 999px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--navy) !important; }

/* Nav dropdown (Coupon Categories) */
.nav-menu .has-dropdown { position: relative; }
.nav-caret { width: 14px !important; height: 14px !important; vertical-align: -2px; transition: transform .2s; }
.has-dropdown:hover .nav-caret, .has-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 250px; max-height: 70vh; overflow-y: auto;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 1001;
}
.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown li { margin: 0; }
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--gray-700); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--gray-100); color: var(--navy); }
.nav-dropdown svg.lucide { width: 16px; height: 16px; color: var(--gold-dark); }

.theme-toggle {
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.theme-toggle:hover { background: var(--gray-100); }
.theme-toggle svg.lucide, .theme-toggle [data-lucide] { width: 20px; height: 20px; color: var(--navy); }
.dark-mode .theme-toggle svg.lucide { color: var(--heading-color); }
.theme-icon-light { display: none; }
.dark-mode .theme-icon-dark { display: none; }
.dark-mode .theme-icon-light { display: inline-block; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 26px; height: 3px; background: var(--navy);
  border-radius: 2px; transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

/* ============================== COUPONS SECTION (HERO) ============================== */
.coupons-hero {
  padding: 120px 20px 80px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
.coupons-hero::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,184,0,0.08), transparent 70%);
  border-radius: 50%; pointer-events: none;
}

.coupons-container { max-width: 1280px; margin: 0 auto; position: relative; }

.coupons-topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 32px;
}
.coupons-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--gold);
  padding: 8px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.5px;
}
.coupons-counter {
  font-size: 14px; color: var(--gray-700); font-weight: 500;
}
.coupons-counter strong { color: var(--gold-dark); font-size: 18px; }

.coupons-heading {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dark-mode .coupons-heading { background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; background-clip: text; }
.coupons-sub { font-size: 18px; color: var(--gray-700); max-width: 600px; margin-bottom: 32px; }

/* Filter Pills */
.category-filter {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 12px; margin-bottom: 32px;
  scrollbar-width: thin; scroll-snap-type: x mandatory;
}
.category-filter::-webkit-scrollbar { height: 6px; }
.category-filter::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.cat-pill {
  flex-shrink: 0; padding: 10px 20px;
  background: var(--white); color: var(--gray-700);
  border: 2px solid var(--gray-200);
  border-radius: 999px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all .25s;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; scroll-snap-align: start;
}
.cat-pill:hover { border-color: var(--gold); color: var(--navy); transform: translateY(-2px); }
.cat-pill.active {
  background: var(--navy); color: var(--gold); border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(10,37,64,0.25);
}

/* Featured Coupons */
.featured-coupons {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px; margin-bottom: 48px;
}
.featured-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all .3s;
}
.featured-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }

.featured-badge {
  position: absolute; top: 18px; right: 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy); padding: 6px 14px;
  border-radius: 999px; font-weight: 800; font-size: 12px;
  letter-spacing: 0.5px;
}

.brand-logo-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gray-50); padding: 10px 18px;
  border-radius: 999px; margin-bottom: 14px;
  font-weight: 700; color: var(--navy); font-size: 14px;
  border: 1px solid var(--gray-200);
}

.discount-big {
  font-size: 40px; font-weight: 900; line-height: 1;
  color: var(--navy); margin: 6px 0;
  font-family: 'Fraunces', serif;
}
.discount-big small { font-size: 16px; color: var(--gray-700); font-weight: 600; }
.dark-mode .discount-big { color: var(--gold); }

.coupon-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.dark-mode .coupon-title { color: var(--gray-900); }
.coupon-desc { font-size: 14px; color: var(--gray-700); margin-bottom: 16px; min-height: 40px; }

.coupon-code-box {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cream); border: 2px dashed var(--gold);
  border-radius: var(--radius-sm); padding: 12px 16px;
  margin-bottom: 14px; cursor: pointer;
  transition: all .2s;
}
.coupon-code-box:hover { background: var(--gold-light); }
.coupon-code-box code {
  font-family: 'Fraunces', monospace; font-size: 16px;
  font-weight: 800; color: var(--navy); letter-spacing: 1px;
}
.copy-btn {
  background: var(--navy); color: var(--gold);
  border: none; padding: 6px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  letter-spacing: 0.5px;
}
.copy-btn.copied { background: var(--success); color: white; }

.coupon-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.expiry-tag {
  font-size: 12px; color: var(--gray-700);
  display: inline-flex; align-items: center; gap: 4px;
}
.expiry-tag.urgent { color: var(--danger); font-weight: 700; }
.verified-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--success); font-weight: 600;
}
.get-deal-btn {
  background: var(--gold); color: var(--navy);
  padding: 8px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px;
  border: none; cursor: pointer;
  transition: all .2s; text-decoration: none;
  display: inline-block;
}
.get-deal-btn:hover { background: var(--navy); color: var(--gold); transform: translateX(3px); }

/* Brand Rows */
.brand-row { margin-bottom: 40px; }
.brand-row-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.brand-row-title {
  font-size: 22px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 12px;
}
.dark-mode .brand-row-title { color: var(--gray-900); }
.brand-count {
  background: var(--gray-100); color: var(--gray-700);
  padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}

.brand-cards-scroll {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.mini-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 18px; border: 1px solid var(--gray-200);
  transition: all .25s; position: relative;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }

.mini-discount {
  display: inline-block; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy); padding: 4px 10px; border-radius: 6px;
  font-weight: 800; font-size: 13px; margin-bottom: 8px;
}
.mini-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.dark-mode .mini-title { color: var(--gray-900); }
.mini-desc { font-size: 13px; color: var(--gray-700); margin-bottom: 12px; }

/* Category cards (homepage: browse by category) */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 10px;
}
.category-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 22px;
  transition: all .25s; color: var(--navy);
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); color: var(--navy); }
.category-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--navy);
}
.category-card-icon svg.lucide { width: 26px; height: 26px; }
.category-card-name { font-size: 18px; font-weight: 700; color: var(--navy); }
.dark-mode .category-card-name { color: var(--gray-900); }
.category-card-meta { font-size: 13px; color: var(--gray-700); }
.category-card-go { font-size: 13px; font-weight: 700; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }

/* Brand cards (category page: brands in a category) */
.brand-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.brand-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 22px;
  transition: all .25s; color: var(--navy);
}
.brand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); color: var(--navy); }
.brand-card-top { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--navy); }
.dark-mode .brand-card-top { color: var(--gray-900); }
.brand-card-top .brand-logo-img { max-height: 28px; }
.brand-card-meta { font-size: 13px; color: var(--gray-700); }
.brand-card-go { font-size: 13px; font-weight: 700; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 6px; }

/* ============================== HERO BANNER ============================== */
.hero-banner {
  padding: 80px 20px; background: var(--white);
  position: relative; overflow: hidden;
}
.hero-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-text h1 { margin-bottom: 20px; }
.hero-text p { font-size: 19px; color: var(--gray-700); margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary-cta {
  background: var(--navy); color: var(--gold);
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  border: 2px solid var(--navy);
  transition: all .25s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-cta:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-outline-cta {
  background: transparent; color: var(--navy);
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  border: 2px solid var(--navy);
  transition: all .25s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-cta:hover { background: var(--navy); color: var(--gold); }
.dark-mode .btn-outline-cta { color: var(--gray-900); border-color: var(--gray-900); }

.hero-image-wrap {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
}
.hero-image-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(245,184,0,0.3), transparent 50%);
}
.hero-decor {
  font-size: 120px; color: var(--gold); opacity: 0.9; z-index: 1;
}

/* ============================== SECTIONS GENERIC ============================== */
.section {
  padding: 80px 20px;
  position: relative;
}
.section-alt { background: var(--cream); }
.section-container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-eyebrow {
  display: inline-block; color: var(--gold-dark);
  font-weight: 700; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-title { margin-bottom: 14px; }
.section-sub { color: var(--gray-700); font-size: 18px; }

/* ============================== PLANS ============================== */
.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.plan-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; border: 2px solid var(--gray-200);
  transition: all .3s; position: relative;
}
.plan-card.featured {
  border-color: var(--gold); transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.plan-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy);
  padding: 4px 16px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.plan-name { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.dark-mode .plan-name { color: var(--gray-900); }
.plan-price {
  font-size: 48px; font-weight: 800; color: var(--navy);
  font-family: 'Fraunces', serif; line-height: 1;
  margin: 12px 0;
}
.plan-price small { font-size: 16px; color: var(--gray-700); font-weight: 500; }
.dark-mode .plan-price { color: var(--gold); }
.plan-desc { color: var(--gray-700); margin-bottom: 20px; font-size: 15px; }
.plan-features { list-style: none; margin-bottom: 24px; }
.plan-features li {
  padding: 8px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 15px; display: flex; align-items: center; gap: 10px;
}
.plan-features li::before {
  content: '✓'; color: var(--gold-dark); font-weight: 900;
}

.toggle-pricing {
  display: inline-flex; background: var(--gray-100);
  border-radius: 999px; padding: 4px;
  margin: 0 auto 32px; justify-content: center;
}
.toggle-pricing button {
  background: none; border: none; padding: 10px 22px;
  border-radius: 999px; font-weight: 600; cursor: pointer;
  color: var(--gray-700); transition: all .2s;
}
.toggle-pricing button.active { background: var(--navy); color: var(--gold); }

/* ============================== SERVICES ============================== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white); padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all .3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.service-icon-box {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--navy); margin-bottom: 16px;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--gray-700); font-size: 15px; }

/* ============================== TESTIMONIALS ============================== */
.testimonials-track {
  display: flex; gap: 24px; overflow-x: auto;
  padding: 12px 0 24px; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.testimonials-track::-webkit-scrollbar { height: 6px; }
.testimonials-track::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.testimonial-card {
  flex: 0 0 360px; scroll-snap-align: start;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--gray-200);
}
.stars { color: var(--gold); margin-bottom: 12px; font-size: 18px; }
.test-review { font-size: 16px; color: var(--gray-700); margin-bottom: 20px; line-height: 1.6; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-weight: 800; font-size: 18px;
}
.test-name { font-weight: 700; color: var(--navy); }
.dark-mode .test-name { color: var(--gray-900); }
.test-location { font-size: 13px; color: var(--gray-700); }

/* ============================== ABOUT ============================== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.about-blocks { display: grid; gap: 20px; }
.about-block {
  background: var(--white); padding: 24px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
}
.about-block h3 { font-size: 20px; margin-bottom: 8px; }
.about-block p { color: var(--gray-700); }

/* ============================== MEDIA ============================== */
.media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.media-item {
  aspect-ratio: 4/3; border-radius: var(--radius-md);
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.media-item .play-icon {
  font-size: 48px; color: var(--gold); z-index: 2;
}
.media-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================== SUPPORT ============================== */
.support-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.support-categories {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 0;
}
.support-cat-card {
  background: var(--white); padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200); text-align: center;
}
.support-cat-card .icon { font-size: 24px; color: var(--gold-dark); margin-bottom: 6px; }
.support-cat-card h4 { font-size: 14px; color: var(--navy); margin: 0; }
.dark-mode .support-cat-card h4 { color: var(--gray-900); }

/* ============================== FORMS ============================== */
.form-section {
  background: var(--white); padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.form-section h3 { margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; font-weight: 600; color: var(--navy);
  margin-bottom: 6px; font-size: 14px;
}
.dark-mode .form-row label { color: var(--gray-900); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px;
  background: var(--white); color: var(--gray-900);
  transition: all .2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,184,0,0.15);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-submit {
  background: var(--navy); color: var(--gold);
  padding: 12px 32px; border: none;
  border-radius: 999px; font-weight: 700;
  font-size: 16px; cursor: pointer;
  transition: all .2s;
}
.form-submit:hover { background: var(--gold); color: var(--navy); }
.form-submit:disabled { opacity: 0.6; cursor: wait; }

.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-size: 14px; display: none; }
.form-msg.success { background: #dcfce7; color: #166534; display: block; }
.form-msg.error { background: #fee2e2; color: #991b1b; display: block; }

/* ============================== CONTACT ============================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--white); padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-card .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--gold-dark);
}
.contact-card h4 { font-size: 14px; color: var(--gray-700); margin-bottom: 4px; font-weight: 600; }
.contact-card p { color: var(--navy); font-weight: 600; }
.dark-mode .contact-card p { color: var(--gray-900); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; margin-top: 12px; }
.contact-map iframe { width: 100%; display: block; }

/* ============================== FLOATING SOCIAL ============================== */
.floating-social {
  position: fixed; right: 20px; bottom: 90px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 999;
}
.floating-social a {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-md);
  transition: all .25s;
}
.floating-social a:hover { background: var(--gold); color: var(--navy); transform: scale(1.1); }

.back-to-top {
  position: fixed; bottom: 20px; right: 20px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; border: none; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: all .3s;
  z-index: 999;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--navy); color: var(--gold); }

/* ============================== FOOTER ============================== */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.85);
  padding: 60px 20px 24px;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand h3 { color: var(--gold); margin-bottom: 12px; font-size: 24px; }
.footer-brand p { font-size: 14px; line-height: 1.6; opacity: 0.8; }
.footer-col h5 { color: var(--gold); margin-bottom: 16px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; opacity: 0.7;
}
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal-links a { color: rgba(255,255,255,0.7); }
.footer-legal-links a:hover { color: var(--gold); }

/* ============================== COOKIE BAR ============================== */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy); color: white;
  padding: 16px 20px;
  display: none; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  z-index: 9998; box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}
.cookie-bar.show { display: flex; }
.cookie-bar p { font-size: 14px; max-width: 700px; margin: 0; }
.cookie-bar a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions button {
  padding: 8px 18px; border-radius: 999px; border: none;
  font-weight: 600; cursor: pointer; font-size: 14px;
}
.cookie-accept { background: var(--gold); color: var(--navy); }
.cookie-reject { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3) !important; }

/* ============================== MODAL ============================== */
.modal-backdrop-custom {
  display: none; position: fixed; inset: 0;
  background: rgba(10,37,64,0.7); backdrop-filter: blur(4px);
  z-index: 10000; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop-custom.show { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 700px; width: 100%; max-height: 85vh;
  overflow-y: auto; padding: 32px;
}
.modal-box h2 { color: var(--navy); margin-bottom: 16px; }
.dark-mode .modal-box h2 { color: var(--gray-900); }
.modal-close {
  float: right; background: var(--gray-100); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 20px;
}

/* ============================== TOAST ============================== */
.toast-notify {
  position: fixed; top: 90px; right: 20px;
  background: var(--success); color: white;
  padding: 14px 22px; border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 10001; transform: translateX(120%);
  transition: transform .3s;
}
.toast-notify.show { transform: translateX(0); }
.toast-notify.error { background: var(--danger); }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 992px) {
  .hero-grid, .about-grid, .contact-grid, .support-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 20px; gap: 4px;
    transform: translateY(-200%); transition: transform .35s ease;
    box-shadow: var(--shadow-md);
    align-items: stretch;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: 14px 18px; }
  .coupons-hero { padding: 90px 16px 50px; }
  .featured-coupons { grid-template-columns: 1fr; }
  .section { padding: 50px 16px; }
  .plan-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-social { justify-content: center; }
  .cookie-bar { flex-direction: column; text-align: center; }
  .floating-social { right: 12px; bottom: 80px; }
  .floating-social a { width: 42px; height: 42px; font-size: 16px; }
  .support-categories { grid-template-columns: 1fr; }
  /* Dropdown expands inline inside the mobile menu */
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 2px 0 6px 14px; min-width: 0; max-height: none;
  }
  .has-dropdown .nav-caret { display: none; }
  .nav-dropdown a { padding: 11px 12px; }
}

@media (max-width: 480px) {
  .coupons-heading { font-size: 1.8rem; }
  .discount-big { font-size: 32px; }
  .testimonial-card { flex: 0 0 85%; }
}

/* ============================== LUCIDE ICONS ============================== */
/* Lucide replaces <i data-lucide> with an inline <svg class="lucide">.
   Match both the pre-render <i> and the rendered <svg> so sizing holds
   either way; icons inherit currentColor from their surroundings. */
[data-lucide], svg.lucide {
  display: inline-block; width: 1em; height: 1em;
  stroke-width: 2; vertical-align: -0.125em;
}
.cat-pill svg.lucide, .cat-pill [data-lucide] { width: 16px; height: 16px; }
.service-icon-box svg.lucide, .service-icon-box [data-lucide] { width: 28px; height: 28px; }
.support-cat-card .icon svg.lucide, .support-cat-card .icon [data-lucide] { width: 24px; height: 24px; }
.contact-card .icon svg.lucide, .contact-card .icon [data-lucide] { width: 20px; height: 20px; }
.coupons-badge svg.lucide,
.verified-tag svg.lucide,
.expiry-tag svg.lucide,
.brand-logo-pill svg.lucide { width: 15px; height: 15px; }
.get-deal-btn svg.lucide, .get-deal-btn [data-lucide] { width: 14px; height: 14px; vertical-align: -0.18em; }
.floating-social a svg.lucide,
.footer-social a svg.lucide { width: 18px; height: 18px; }

/* ============================== BRAND LOGOS / IMAGERY ============================== */
.brand-logo-img {
  max-height: 30px; width: auto; display: inline-block;
  vertical-align: middle; object-fit: contain;
}
.brand-logo-pill .brand-logo-img { max-height: 22px; margin-right: 6px; }
.about-image-wrap {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}
.about-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ============================== SLUG SUB-PAGES ============================== */
.subpage-main { padding: 110px 20px 70px; min-height: 70vh; background: var(--cream); }
.subpage-container { max-width: 1080px; margin: 0 auto; }
.subpage-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm);
}
.breadcrumb-nav { font-size: 13px; color: var(--gray-700); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb-nav a { color: var(--gold-dark); font-weight: 600; }
.breadcrumb-nav .bc-sep { color: var(--gray-500); }
.breadcrumb-nav .bc-current { color: var(--gray-700); }

.coupon-detail { display: grid; gap: 30px; }
.coupon-detail-main h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.coupon-detail-main .discount-big { font-size: 56px; }
.coupon-terms {
  margin-top: 20px; padding: 16px 18px;
  background: var(--cream); border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
}
.coupon-detail-main .btn-primary-cta { margin-top: 6px; }

.listing-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0; }

.legal-content h1 { margin-bottom: 18px; }
.legal-body { color: var(--gray-700); font-size: 16px; line-height: 1.7; }
.legal-body h4 { color: var(--navy); margin: 18px 0 6px; }
.dark-mode .legal-body h4 { color: var(--heading-color); }
.legal-body p { margin-bottom: 12px; }

@media (max-width: 768px) {
  .subpage-main { padding: 90px 14px 50px; }
  .subpage-card { padding: 22px; }
}

/* Lazy load fade */
img.lazy { opacity: 0; transition: opacity .4s; }
img.lazy.loaded { opacity: 1; }

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