/* ============================================================
   Best BMW Repair Dubai — Style System
   Design: Light editorial / premium magazine
   Fonts: Sora (headings) + Source Sans 3 (body)
   Palette: #FAFBFC bg · #1C69D4 accent · #1A1A2E ink
   ============================================================ */

/* --- Google Fonts ------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

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

:root {
  /* palette */
  --bg:          #FAFBFC;
  --bg-white:    #FFFFFF;
  --ink:         #1A1A2E;
  --ink-light:   #4A4A5A;
  --ink-muted:   #7B7B8E;
  --accent:      #1C69D4;
  --accent-hover:#1554B0;
  --accent-light:#E8F1FC;
  --accent-bg:   #F0F6FF;
  --border:      #E2E5EA;
  --border-light:#ECEEF2;
  --gold:        #C9A84C;
  --gold-light:  #F5EFD9;
  --gold-start:  #D4AF37;
  --gold-end:    #F0D060;
  --green:       #16A34A;
  --green-light: #DCFCE7;
  --orange:      #EA580C;
  --orange-light:#FFF7ED;
  --red:         #DC2626;
  --footer-bg:   #111122;
  --footer-text: #A0A0B8;
  --shadow-sm:   0 1px 3px rgba(26,26,46,.06);
  --shadow-md:   0 4px 12px rgba(26,26,46,.08);
  --shadow-lg:   0 8px 30px rgba(26,26,46,.10);
  --shadow-card: 0 2px 8px rgba(26,26,46,.05);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;

  /* type scale */
  --font-head: 'Sora', sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  --fs-xs:   .75rem;
  --fs-sm:   .875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3.25rem;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

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

ul, ol {
  list-style: none;
}

/* --- Utility ---------------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* --- Header ----------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: .02em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.header__nav a:hover {
  color: var(--accent);
}

.header__nav a:hover::after {
  width: 100%;
}

/* burger */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s cubic-bezier(.4,0,.2,1);
}

.header__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  z-index: 999;
  padding: 32px 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .25s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1);
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--accent);
}

body.nav-open {
  overflow: hidden;
}

/* --- Hero Section ----------------------------------------- */
.hero {
  padding: 120px 0 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(28,105,212,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(28,105,212,.12);
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 720px;
  letter-spacing: -.02em;
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  font-size: var(--fs-md);
  color: var(--ink-light);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* stats row */
.hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero__stat {
  text-align: left;
}

.hero__stat-value {
  font-family: var(--font-head);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  font-weight: 500;
}

/* --- Section Shared --------------------------------------- */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-white);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.015em;
}

.section__desc {
  font-size: var(--fs-md);
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Rank Cards ------------------------------------------- */
.ranks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.rank-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-card);
}

/* gold highlight for #1 */
.rank-card--gold {
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--bg-white), var(--bg-white)),
    linear-gradient(135deg, var(--gold-start), var(--gold-end), var(--gold-start));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  position: relative;
}

.rank-card--gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,.04), rgba(240,208,96,.02));
  pointer-events: none;
  border-radius: var(--radius);
}

.rank-card--gold:hover {
  box-shadow: 0 4px 20px rgba(201,168,76,.15);
}

/* card summary (always visible) */
.rank-card__summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

/* rank number */
.rank-card__rank {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--ink-muted);
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.rank-card--gold .rank-card__rank {
  background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
  color: #fff;
}

/* logo */
.rank-card__logo {
  flex-shrink: 0;
  width: 100px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* info */
.rank-card__info {
  flex: 1;
  min-width: 0;
}

.rank-card__name {
  font-family: var(--font-head);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.rank-card__location {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.rank-card__location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* rating */
.rank-card__rating {
  flex-shrink: 0;
  text-align: center;
}

.rank-card__score {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.rank-card__stars {
  display: flex;
  gap: 2px;
  margin-top: 4px;
  justify-content: center;
}

.rank-card__stars svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

/* toggle chevron */
.rank-card__toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}

.rank-card.expanded .rank-card__toggle {
  transform: rotate(180deg);
}

.rank-card__toggle svg {
  width: 20px;
  height: 20px;
}

/* card details (collapsible) */
.rank-card__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}

.rank-card__details-inner {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border-light);
  margin-top: 0;
  padding-top: 20px;
}

/* detail grid */
.rank-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.rank-card__detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rank-card__detail-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: var(--radius-sm);
}

.rank-card__detail-icon svg {
  width: 16px;
  height: 16px;
}

.rank-card__detail-label {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  margin-bottom: 1px;
}

.rank-card__detail-value {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

/* pros/cons */
.rank-card__pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.rank-card__pros h4,
.rank-card__cons h4 {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rank-card__pros h4 {
  color: var(--green);
}

.rank-card__cons h4 {
  color: var(--orange);
}

.rank-card__pros ul,
.rank-card__cons ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-card__pros li,
.rank-card__cons li {
  font-size: var(--fs-sm);
  color: var(--ink-light);
  padding-left: 16px;
  position: relative;
}

.rank-card__pros li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.rank-card__cons li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* CTA row in card */
.rank-card__cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.rank-card__cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* --- Badges / Tags ---------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.badge--green {
  background: var(--green-light);
  color: var(--green);
}

.badge--gold {
  background: var(--gold-light);
  color: var(--gold);
}

.badge--blue {
  background: var(--accent-light);
  color: var(--accent);
}

/* --- Service Cards Grid ----------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 22px;
}

.service-card__title {
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: 1.6;
}

/* --- How We Rank / Methodology ---------------------------- */
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: method;
}

.method-step {
  position: relative;
  padding: 24px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  counter-increment: method;
}

.method-step::before {
  content: counter(method);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 800;
  border-radius: 50%;
  margin: 0 auto 14px;
}

.method-step__title {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 6px;
}

.method-step__desc {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: 1.55;
}

/* --- FAQ Accordion ---------------------------------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item.active {
  border-color: var(--accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  gap: 16px;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}

.faq-answer__inner {
  padding: 0 24px 20px;
  font-size: var(--fs-sm);
  color: var(--ink-light);
  line-height: 1.7;
}

/* --- CTA Banner ------------------------------------------- */
.cta-banner {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
}

.cta-banner__title {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.cta-banner__desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.8);
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28,105,212,.3);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

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

.btn--white {
  background: #fff;
  color: var(--accent);
}

.btn--white:hover {
  background: #f0f0f0;
  color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 16px;
  font-size: var(--fs-xs);
}

/* --- Footer ----------------------------------------------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.footer__about {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--footer-text);
}

.footer__heading {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: var(--fs-sm);
  color: var(--footer-text);
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.4);
}

/* --- Intro / About Box ------------------------------------ */
.intro-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.intro-box p {
  font-size: var(--fs-md);
  color: var(--ink-light);
  line-height: 1.75;
}

.intro-box p + p {
  margin-top: 16px;
}

/* --- Comparison Table (optional) -------------------------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: var(--fs-sm);
}

.comparison-table thead {
  background: var(--bg);
}

.comparison-table th {
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--ink-light);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--accent-bg);
}

/* --- Back to Top ------------------------------------------ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s cubic-bezier(.4,0,.2,1), visibility .25s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* tablet */
@media (max-width: 1024px) {
  .hero__title {
    font-size: var(--fs-2xl);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* mobile */
@media (max-width: 768px) {
  :root {
    --fs-3xl: 2rem;
    --fs-2xl: 1.5rem;
    --fs-xl:  1.25rem;
  }

  .container {
    padding: 0 16px;
  }

  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .hero {
    padding: 100px 0 48px;
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero__stat {
    min-width: calc(50% - 12px);
  }

  .section {
    padding: 56px 0;
  }

  /* rank card mobile layout */
  .rank-card__summary {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }

  .rank-card__rank {
    width: 32px;
    height: 32px;
    font-size: var(--fs-base);
  }

  .rank-card__logo {
    width: 72px;
    height: 32px;
  }

  .rank-card__info {
    order: 4;
    flex-basis: 100%;
  }

  .rank-card__rating {
    margin-left: auto;
  }

  .rank-card__grid {
    grid-template-columns: 1fr;
  }

  .rank-card__pros-cons {
    grid-template-columns: 1fr;
  }

  .rank-card__details-inner {
    padding: 0 16px 20px;
  }

  .rank-card__cta {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 32px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* small mobile */
@media (max-width: 420px) {
  :root {
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.375rem;
  }

  .hero__title {
    font-size: var(--fs-2xl);
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero__stat {
    min-width: 100%;
  }

  .rank-card__summary {
    padding: 14px 12px;
  }
}

/* --- Animations ------------------------------------------- */


/* ========== SERVICE PAGES ========== */

/* Breadcrumb */
.breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: var(--ink-light, #6B7280);
    border-bottom: 1px solid var(--border, #E5E7EB);
    background: var(--bg, #FAFBFC);
}
.breadcrumb a {
    color: var(--accent, #1C69D4);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb__sep {
    margin: 0 0.5rem;
    color: var(--ink-light, #6B7280);
}

/* Hero with background image (service pages) */
.hero--service {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 340px;
    display: flex;
    align-items: center;
}
.hero--service .hero__badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}
.hero--service .hero__title {
    color: #fff;
}
.hero--service .hero__title span {
    color: rgba(255,255,255,0.85);
}
.hero--service .hero__subtitle {
    color: rgba(255,255,255,0.9);
    max-width: 700px;
}

/* Price Highlight Box */
.price-highlight {
    margin-bottom: 1.5rem;
}
.price-highlight__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #FEF9E7, #FFF8E1);
    border: 2px solid #D4AF37;
    border-radius: 12px;
    flex-wrap: wrap;
}
.price-highlight__label {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink, #1A1A2E);
}
.price-highlight__value {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: #B8860B;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero--service {
        min-height: 260px;
    }
    .price-highlight__inner {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}


/* Golden Horse Price List in Card */
.gh-price-list {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #FFFDF5, #FFF8E1);
    border: 1px solid #E8D48B;
    border-radius: 8px;
}
.gh-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--ink, #1A1A2E);
}
.gh-price-row + .gh-price-row {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}
.gh-price-row strong {
    color: #B8860B;
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
}
@media (max-width: 420px) {
    .gh-price-row {
        font-size: 0.82rem;
    }
}


/* Header/Footer SVG Logo */
.header__logo-img {
    height: 34px;
    width: auto;
    display: block;
}
.footer__logo img {
    height: 30px;
    width: auto;
}
@media (max-width: 768px) {
    .header__logo-img {
        height: 28px;
    }
}


/* ============================================================
   TEXT CONTENT TYPOGRAPHY — SEO / Intro / Article
   ============================================================ */

/* --- Content section prose --------------------------------- */
.section > .container > h2,
.intro-box h2 {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -.015em;
  position: relative;
  padding-bottom: 14px;
}

/* accent underline for content h2 */
.section > .container > h2::after,
.intro-box h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* h3 in content */
.section > .container > h3,
.intro-box h3 {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--accent);
  margin-top: 32px;
  margin-bottom: 14px;
}

/* Paragraphs inside content sections */
.section > .container > p,
.intro-box p {
  font-size: var(--fs-md);
  color: var(--ink-light);
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 18px;
}

.intro-box p:last-child,
.section > .container > p:last-child {
  margin-bottom: 0;
}

/* Drop cap for first paragraph in intro-box */
.intro-box p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-head);
  font-size: 3.2em;
  font-weight: 800;
  line-height: 0.85;
  color: var(--accent);
  padding-right: 8px;
  padding-top: 4px;
}

/* --- Content section divider ------------------------------- */
.section + .section {
  border-top: 1px solid var(--border-light);
}

.section--alt + .section,
.section + .section--alt {
  border-top: none;
}

/* --- Lists in content areas -------------------------------- */
.section > .container > ul,
.section > .container > ol,
.intro-box ul,
.intro-box ol {
  max-width: 720px;
  margin-bottom: 20px;
  padding-left: 0;
}

/* Unordered lists — BMW-blue circle markers */
.section > .container > ul > li,
.intro-box ul > li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: var(--fs-base);
  color: var(--ink-light);
  line-height: 1.7;
}

.section > .container > ul > li::before,
.intro-box ul > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Ordered lists — accent-colored numbers */
.section > .container > ol,
.intro-box ol {
  counter-reset: content-list;
}

.section > .container > ol > li,
.intro-box ol > li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  font-size: var(--fs-base);
  color: var(--ink-light);
  line-height: 1.7;
  counter-increment: content-list;
}

.section > .container > ol > li::before,
.intro-box ol > li::before {
  content: counter(content-list) '.';
  position: absolute;
  left: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--accent);
}

/* --- Tables in content areas ------------------------------- */
.content-table-wrap {
  max-width: 720px;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: var(--bg-white);
}

.content-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.content-table th {
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  background: var(--accent);
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.content-table td {
  padding: 12px 16px;
  color: var(--ink-light);
  border-bottom: 1px solid var(--border-light);
}

/* zebra striping */
.content-table tbody tr:nth-child(even) {
  background: var(--accent-bg);
}

.content-table tbody tr:last-child td {
  border-bottom: none;
}

.content-table tbody tr:hover {
  background: var(--accent-light);
}

/* --- Improved intro-box ------------------------------------ */
.intro-box {
  padding: 36px 40px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, var(--bg-white), var(--accent-bg));
}

/* --- FAQ answer text readability --------------------------- */
.faq-answer__inner {
  font-size: var(--fs-base);
  line-height: 1.8;
}

/* --- Responsive text content ------------------------------- */
@media (max-width: 768px) {
  .section > .container > h2,
  .intro-box h2 {
    font-size: var(--fs-lg);
  }

  .section > .container > h3,
  .intro-box h3 {
    font-size: var(--fs-md);
  }

  .section > .container > p,
  .intro-box p {
    font-size: var(--fs-base);
    max-width: 100%;
  }

  .intro-box {
    padding: 24px 20px;
  }

  .intro-box p:first-of-type::first-letter {
    font-size: 2.6em;
  }

  .content-table-wrap {
    max-width: 100%;
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

@media (max-width: 420px) {
  .intro-box p:first-of-type::first-letter {
    font-size: 2.2em;
    padding-right: 6px;
  }
}

/* ─── Best For Badge ─── */
.badge--best-for {
    background: #E8F5E9;
    color: #2E7D32;
    font-size: .7rem;
    font-weight: 600;
    padding: .15em .5em;
    border-radius: 3px;
    white-space: nowrap;
    vertical-align: middle;
    margin-left: .35rem;
}

/* ─── Methodology Section ─── */
.methodology p {
    color: #4A5568;
    line-height: 1.7;
    max-width: 700px;
}
.methodology__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.methodology__item {
    background: #fff;
    border: 1px solid #E8EDF2;
    border-radius: 10px;
    padding: 1.5rem;
}
.methodology__icon {
    color: #1C69D4;
    margin-bottom: .75rem;
}
.methodology__item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: #1A1A2E;
}
.methodology__item p {
    font-size: .88rem;
    color: #6B7A8D;
    line-height: 1.6;
}
.methodology__note {
    font-size: .82rem;
    color: #6B7A8D;
    margin-top: 1rem;
    text-align: center;
}

/* ─── Related Services Links ─── */
.related-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.related-link {
    display: flex;
    align-items: center;
    padding: .875rem 1.25rem;
    background: #fff;
    border: 1px solid #E8EDF2;
    border-radius: 8px;
    color: #1C69D4;
    font-weight: 500;
    font-size: .92rem;
    text-decoration: none;
}
.related-link:hover {
    border-color: #1C69D4;
    box-shadow: 0 2px 8px rgba(28,105,212,.12);
}
.related-link::before {
    content: '→';
    margin-right: .5rem;
    font-weight: 700;
}

/* ─── CTA Outline White Button ─── */
.btn--outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
}
.btn--outline-white:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
}

/* ─── CTA Two-Button Layout ─── */
.cta-banner__buttons {
    display: flex;
    gap: .75rem;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .cta-banner__buttons {
        flex-direction: column;
        width: 100%;
    }
}

/* FAQ title inline tag */
.section__title--faq {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}
.section__tag--inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent, #1a73e8);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
/* ===== Hero Stats (premium glass cards) ===== */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 32px auto 0;
}
.hero__stat {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
}
.hero__stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}
.hero__stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
    letter-spacing: 0.2px;
}
.hero__sources {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.hero__sources-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
.hero__sources-list {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero__source-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}
.hero__source-pill svg {
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .hero__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        max-width: 100%;
    }
    .hero__stat {
        padding: 14px 8px;
        border-radius: 10px;
    }
    .hero__stat-value {
        font-size: 22px;
    }
    .hero__stat-label {
        font-size: 10px;
    }
    .hero__sources {
        flex-direction: column;
        gap: 6px;
    }
    .hero__sources-list {
        gap: 4px;
    }
    .hero__source-pill {
        font-size: 11px;
        padding: 3px 8px;
    }
}
@media (max-width: 374px) {
    .hero__stat-value {
        font-size: 20px;
    }
    .hero__stat-label {
        font-size: 9px;
    }
}

/* ===== Reddit Social Proof Section ===== */
.reddit-section {
    background: #FAFAFA;
}
.reddit-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.reddit-header__icon {
    flex-shrink: 0;
}
.reddit-header__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px;
}
.reddit-header__desc {
    font-size: 14px;
    color: #888;
    margin: 0;
}
.reddit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.reddit-card {
    display: block;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.reddit-card:hover {
    border-color: #FF4500;
    box-shadow: 0 4px 16px rgba(255, 69, 0, 0.08);
}
.reddit-card__quote {
    position: relative;
}
.reddit-card__quote-icon {
    position: absolute;
    top: -4px;
    left: -4px;
}
.reddit-card__quote p {
    font-size: 14px;
    line-height: 1.65;
    color: #333;
    margin: 0;
    padding-left: 2px;
}
.reddit-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.reddit-card__sub {
    font-size: 12px;
    font-weight: 600;
    color: #FF4500;
    background: #FFF5F2;
    padding: 3px 10px;
    border-radius: 20px;
}
.reddit-card__user {
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
}
.reddit-card__arrow {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}
.reddit-card:hover .reddit-card__arrow {
    color: #FF4500;
}
.rating-sources {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}
.rating-source {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 14px 24px;
    text-decoration: none;
    color: inherit;
}
.rating-source:hover {
    border-color: #ccc;
}
.rating-source__platform {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}
.rating-source__score {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}
.rating-source__score span {
    font-size: 14px;
    font-weight: 400;
    color: #999;
}
.rating-source__count {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}
.reddit-section__disclaimer {
    text-align: center;
    font-size: 11px;
    color: #bbb;
    margin: 0;
}
@media (max-width: 768px) {
    .reddit-header {
        gap: 10px;
        margin-bottom: 20px;
    }
    .reddit-header__icon svg {
        width: 24px;
        height: 24px;
    }
    .reddit-header__title {
        font-size: 20px;
    }
    .reddit-header__desc {
        font-size: 13px;
    }
    .reddit-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .reddit-card {
        padding: 18px;
        border-radius: 10px;
    }
    .reddit-card__quote p {
        font-size: 13px;
        line-height: 1.6;
    }
    .rating-sources {
        flex-direction: column;
        gap: 10px;
    }
    .rating-source {
        justify-content: center;
        padding: 12px 16px;
        gap: 10px;
    }
    .rating-source__score {
        font-size: 20px;
    }
}
@media (max-width: 374px) {
    .reddit-card {
        padding: 14px;
    }
    .reddit-card__quote p {
        font-size: 12px;
    }
    .rating-source {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 12px;
    }
}