/* ============================================================
   CompassSure — Global Stylesheet
   Deep navy base · Soft teal accent · Modern rounded UI
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  /* Brand colours */
  --navy:          #0B1D3A;
  --navy-light:    #132D5E;
  --navy-mid:      #1A3A6E;
  --teal:          #2EC4B6;
  --teal-dark:     #22A99D;
  --teal-light:    #A8E6CF;
  --teal-pale:     #E6FAF5;

  /* Neutrals */
  --white:         #FFFFFF;
  --off-white:     #F7F9FC;
  --gray-100:      #E8ECF1;
  --gray-200:      #CDD5DF;
  --gray-500:      #6B7B8D;
  --gray-700:      #4A5568;
  --dark:          #1A1A2E;

  /* Typography */
  --font-heading:  'Poppins', 'Poppins fallback', sans-serif;
  --font-body:     'Inter', 'Inter fallback', sans-serif;

  /* Spacing scale (px → rem) */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  30px;
  --radius-full:50%;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(11,29,58,.08);
  --shadow-md:  0 4px 14px rgba(11,29,58,.10);
  --shadow-lg:  0 10px 30px rgba(11,29,58,.12);
  --shadow-xl:  0 20px 50px rgba(11,29,58,.15);

  /* Transitions */
  --ease:      cubic-bezier(.4,0,.2,1);
  --duration:  .3s;

  /* Container */
  --container-max: 1200px;
}

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

/* Font-metric overrides to reduce CLS during web font swap */
@font-face {
  font-family: 'Inter fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Poppins fallback';
  src: local('Arial');
  size-adjust: 112%;
  ascent-override: 88%;
  descent-override: 26%;
  line-gap-override: 0%;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
}

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

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--teal); }

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: var(--space-lg); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem);  margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); margin-bottom: var(--space-sm); }
h4 { font-size: 1.15rem; margin-bottom: var(--space-sm); }

p { margin-bottom: var(--space-md); }

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: var(--space-4xl) 0;
}
.section--gray { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2,
.section--navy h3 { color: var(--white); }
.section--teal-pale { background: var(--teal-pale); }

.text-center { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-align: center;
  line-height: 1;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--secondary:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--dark:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--sm { padding: .6rem 1.4rem; font-size: .85rem; }
.btn--lg { padding: 1rem 2.6rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11,29,58,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.site-header--scrolled {
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.02em;
}
.logo:hover { color: var(--teal-light); }
.logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo span.accent { color: var(--teal); margin-left: -.18em; }

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-list a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .9rem;
  transition: color var(--duration) var(--ease);
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--duration) var(--ease);
}
.nav-list a:hover { color: var(--white); }
.nav-list a:hover::after { width: 100%; }

.nav-cta { margin-left: .5rem; }

/* Dropdown */
.has-dropdown {
  position: relative;
}
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 260px;
  padding: .75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
  z-index: 100;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.25rem;
  color: var(--gray-700);
  font-size: .88rem;
}
.dropdown a:hover {
  background: var(--teal-pale);
  color: var(--navy);
}
.dropdown a::after { display: none; }
.dropdown-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pale);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--duration) var(--ease);
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-mid) 100%);
  overflow: hidden;
  padding-top: 76px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(46,196,182,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(46,196,182,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero__content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}
.hero__content h1 .highlight {
  color: var(--teal);
}
.hero__sub {
  color: rgba(255,255,255,.8);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.hero__image {
  position: absolute;
  right: -5%;
  bottom: 0;
  width: 50%;
  max-width: 680px;
  z-index: 1;
  opacity: .15;
}
/* Decorative circles */
.hero__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(46,196,182,.15);
  pointer-events: none;
}
.hero__circle--1 { width: 500px; height: 500px; top: -100px; right: -100px; }
.hero__circle--2 { width: 300px; height: 300px; bottom: -50px; left: -50px; }
.hero__circle--3 { width: 200px; height: 200px; top: 30%; right: 20%; border-color: rgba(46,196,182,.08); }

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: var(--space-lg) 0;
}
.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}
.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.trust-bar__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pale);
  border-radius: var(--radius-full);
  color: var(--teal);
  font-size: 1.2rem;
  margin-bottom: .25rem;
}
.trust-bar__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
}

/* ---------- Product Grid ---------- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.product-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pale);
  border-radius: var(--radius-md);
  font-size: 1.8rem;
  color: var(--teal);
}
.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}
.product-card p {
  font-size: .9rem;
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
}
.product-card__link {
  font-weight: 600;
  font-size: .9rem;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.product-card__link:hover { gap: .6rem; }

/* ---------- Why CompassSure ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.why-card {
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--duration) var(--ease);
}
.why-card:hover { box-shadow: var(--shadow-md); }
.why-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pale);
  border-radius: var(--radius-sm);
  color: var(--teal);
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}
.why-card h3 { font-size: 1rem; }
.why-card p { font-size: .9rem; color: var(--gray-500); margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--gray-100);
}
.faq-item__question {
  width: 100%;
  text-align: left;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: color var(--duration) var(--ease);
}
.faq-item__question:hover { color: var(--teal); }
.faq-item__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
}
.faq-item.active .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq-item__answer-inner {
  padding: 0 0 var(--space-lg);
  color: var(--gray-700);
  font-size: .95rem;
  line-height: 1.75;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(46,196,182,.12), transparent 60%);
}
.cta-banner h2 { color: var(--white); position: relative; }
.cta-banner p {
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin: 0 auto var(--space-xl);
  position: relative;
}
.cta-banner .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}
.footer__brand p { font-size: .9rem; line-height: 1.7; margin-top: var(--space-md); max-width: 300px; }
.footer__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--white);
  margin-bottom: var(--space-lg);
}
.footer__links li { margin-bottom: var(--space-sm); }
.footer__links a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color var(--duration) var(--ease);
}
.footer__links a:hover { color: var(--teal); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: .82rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.footer__legal a { color: rgba(255,255,255,.5); padding: .35rem .5rem; min-height: 44px; display: inline-flex; align-items: center; }
.footer__legal a:hover { color: var(--teal); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: .85rem;
  color: var(--gray-500);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.breadcrumb li::after { content: '/'; margin-left: .4rem; color: var(--gray-200); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--teal); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(165deg, var(--navy), var(--navy-light));
  padding: calc(76px + var(--space-3xl)) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(46,196,182,.1), transparent 60%);
}
.page-hero h1 { color: var(--white); position: relative; max-width: 700px; }
.page-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  max-width: 600px;
  position: relative;
}

/* ---------- Content Sections (product/trust pages) ---------- */
.content-section { padding: var(--space-3xl) 0 var(--space-xl); }
.content-section + .content-section { padding-top: 0; }
.content-section h2 { margin-bottom: var(--space-lg); margin-top: var(--space-2xl); }
.content-section h2:first-child { margin-top: 0; }
.content-section p { max-width: 780px; }
.content-section ul { max-width: 780px; margin-bottom: var(--space-lg); }

.content-section ul.check-list {
  max-width: 780px;
  margin-bottom: var(--space-xl);
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-sm);
  font-size: .95rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: .9rem;
}
.comparison-table thead {
  background: var(--navy);
  color: var(--white);
}
.comparison-table thead th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.comparison-table tbody tr { border-bottom: 1px solid var(--gray-100); }
.comparison-table tbody tr:nth-child(even) { background: var(--off-white); }
.comparison-table .tick { color: var(--teal); font-weight: 700; }
.comparison-table .cross { color: var(--gray-200); }

/* ---------- Guide / Blog Card ---------- */
.guides__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
.guide-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--duration) var(--ease);
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.guide-card__img {
  height: 180px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.guide-card__body { padding: var(--space-lg); }
.guide-card__body h3 { font-size: 1rem; }
.guide-card__body p { font-size: .88rem; color: var(--gray-500); }

/* ---------- Contact Form ---------- */
.form-group {
  margin-bottom: var(--space-lg);
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--dark);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46,196,182,.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-list { display: none; }
  .nav-toggle { display: block; }

  .nav-list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--navy);
    padding: var(--space-xl);
    gap: var(--space-lg);
    box-shadow: var(--shadow-lg);
  }
  .nav-list.active .has-dropdown .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255,255,255,.05);
    border-radius: var(--radius-sm);
    margin-top: var(--space-sm);
  }
  .nav-list.active .dropdown a { color: rgba(255,255,255,.75); }
}

@media (max-width: 768px) {
  .hero { min-height: 80vh; }
  .hero__content h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .hero__image { display: none; }

  .trust-bar__grid { grid-template-columns: 1fr 1fr; }
  .products__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .trust-bar__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * .1s); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
}
.skip-link:focus { top: var(--space-md); }

/* ---------- Affiliate Provider Cards ---------- */
.providers { margin-top: var(--space-2xl); }
.providers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.provider-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-100);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}
.provider-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.provider-card--featured {
  border-color: var(--teal);
  position: relative;
}
.provider-card__badge {
  position: absolute;
  top: 0; right: var(--space-lg);
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .35rem .75rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.provider-card__header {
  padding: var(--space-xl) var(--space-xl) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.provider-card__logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  border: 1px solid var(--gray-100);
}
.provider-card__info h3 {
  font-size: 1.05rem;
  margin-bottom: .15rem;
}
.provider-card__info p {
  font-size: .82rem;
  color: var(--gray-500);
  margin-bottom: 0;
}
.provider-card__body {
  padding: 0 var(--space-xl) var(--space-md);
  flex-grow: 1;
}
.provider-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: var(--space-md);
}
.provider-card__tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: var(--teal-pale);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 500;
  padding: .3rem .65rem;
  border-radius: var(--radius-xl);
}
.provider-card__tag::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  font-size: .7rem;
}
.provider-card__rating {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--gray-500);
  margin-bottom: var(--space-sm);
}
.provider-card__stars {
  color: #F5A623;
  letter-spacing: 1px;
}
.provider-card__footer {
  padding: var(--space-md) var(--space-xl) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  border-top: 1px solid var(--gray-100);
}
.provider-card__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}
.provider-card__price span {
  font-size: .8rem;
  font-weight: 400;
  color: var(--gray-500);
}

/* Affiliate disclosure */
.affiliate-disclosure {
  text-align: center;
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-100);
}
.affiliate-disclosure a { color: var(--gray-500); text-decoration: underline; }

@media (max-width: 768px) {
  .providers__grid { grid-template-columns: 1fr; }
  .provider-card__footer { flex-direction: column; text-align: center; }
  .provider-card__footer .btn { width: 100%; }
}

/* ==========================================================================
   BLOG
   ========================================================================== */

/* Blog Filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.blog-filter {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  padding: .45rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--gray-600);
  cursor: pointer;
  transition: all .2s ease;
}
.blog-filter:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.blog-filter.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

/* Blog Card */
.blog-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.blog-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.blog-card__category {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--teal);
  background: rgba(46, 196, 182, .1);
  padding: .2rem .65rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}
.blog-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--navy);
  margin: 0;
}
.blog-card__excerpt {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
  /* clamp 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--gray-400);
  margin-top: auto;
  padding-top: var(--space-sm);
}
.blog-card__dot { font-size: .65rem; }

/* Featured Card */
.blog-card--featured {
  grid-column: 1 / -1;
  margin-bottom: var(--space-md);
}
.blog-card--featured .blog-card__body {
  padding: var(--space-xl);
}
.blog-card--featured .blog-card__title {
  font-size: 1.7rem;
}
.blog-card--featured .blog-card__excerpt {
  font-size: 1rem;
  -webkit-line-clamp: 4;
}

/* Blog Article Page */
.blog-article {
  max-width: 740px;
  margin: 0 auto;
}
.blog-article__header {
  margin-bottom: var(--space-xl);
}
.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
}
.blog-article__meta time {
  font-weight: 500;
}
.blog-article__content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
}
.blog-article__content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}
.blog-article__content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}
.blog-article__content p {
  margin-bottom: var(--space-md);
}
.blog-article__content ul,
.blog-article__content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}
.blog-article__content li {
  margin-bottom: .4rem;
}
.blog-article__content a {
  color: var(--teal);
  text-decoration: underline;
}
.blog-article__content blockquote {
  border-left: 4px solid var(--teal);
  padding: var(--space-md) var(--space-lg);
  background: var(--gray-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--gray-600);
}
.blog-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-100);
}
.blog-tag {
  font-size: .78rem;
  font-weight: 500;
  padding: .25rem .7rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--gray-500);
  background: white;
  text-decoration: none;
  transition: all .2s ease;
}
.blog-tag:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Related Posts */
.related-posts {
  margin-top: var(--space-xl);
}
.related-posts h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured .blog-card__body { padding: var(--space-lg); }
  .blog-card--featured .blog-card__title { font-size: 1.35rem; }
  .blog-article__content { font-size: 1rem; }
}
