/* ==========================================================================
   Polaris Financial – Private Wealth
   Design tokens
   ========================================================================== */
:root {
  --ink: #0d1117;
  --ink-2: #161c25;
  --ink-3: #222a36;
  --gold: #ab8e66;
  --gold-light: #c9b08a;
  --gold-deep: #7d6440;
  --paper: #ffffff;
  --paper-2: #f6f3ee;
  --paper-3: #ede7dd;
  --text: #1d232c;
  --text-muted: #4a5260;
  --text-on-dark: #f3efe8;
  --text-on-dark-muted: #c3c8d0;
  --line: #e2dbcf;
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: clamp(0.78rem, 0.75rem + 0.15vw, 0.85rem);
  --fs-sm: clamp(0.9rem, 0.86rem + 0.2vw, 0.98rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-lg: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-xl: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --fs-2xl: clamp(1.8rem, 1.4rem + 1.8vw, 2.9rem);
  --fs-3xl: clamp(2.2rem, 1.5rem + 3.4vw, 4.4rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --section-y: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --gutter: clamp(1rem, 0.5rem + 3vw, 2.5rem);
  --container: 1240px;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(13, 17, 23, 0.06), 0 2px 8px rgba(13, 17, 23, 0.05);
  --shadow: 0 6px 24px rgba(13, 17, 23, 0.08), 0 2px 6px rgba(13, 17, 23, 0.05);
  --shadow-lg: 0 18px 50px rgba(13, 17, 23, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  overflow-wrap: break-word;
}

img,
svg,
iframe,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: inherit;
  letter-spacing: -0.005em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }

p {
  margin: 0 0 var(--space-2);
}

p:last-child {
  margin-block-end: 0;
}

a {
  color: var(--gold-deep);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

ul,
ol {
  padding-inline-start: 1.25rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  inset-block-start: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: var(--gold-light);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(171, 142, 102, 0.35);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: var(--ink-3);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-block-end: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(13, 17, 23, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.topbar {
  display: none;
  border-block-end: 1px solid var(--line-dark);
  font-size: var(--fs-xs);
  color: var(--text-on-dark-muted);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.45rem;
}

.topbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

.topbar a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
}

.topbar a:hover {
  color: var(--gold-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  padding-block: 0.5rem;
}

.brand img {
  width: clamp(150px, 40vw, 200px);
  height: auto;
  aspect-ratio: 2501 / 519;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 0.9rem;
  color: var(--text-on-dark);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0.9rem;
  inset-block-end: 8px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--gold-light);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.header__cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.menu-toggle__bars {
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.2s var(--ease);
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.55);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.drawer.is-open .drawer__scrim {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  width: min(86vw, 360px);
  padding: 1rem var(--gutter) 2rem;
  background: var(--ink);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

[dir="rtl"] .drawer__panel {
  transform: translateX(-100%);
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1.5rem;
}

.drawer__head img {
  width: 150px;
  height: auto;
  aspect-ratio: 2501 / 519;
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.drawer__close svg {
  width: 20px;
  height: 20px;
}

.drawer__list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.drawer__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-inline: 0.25rem;
  border-block-end: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  font-size: var(--fs-lg);
  font-family: var(--font-serif);
  font-weight: 600;
  text-decoration: none;
}

.drawer__list a:hover,
.drawer__list a.is-active {
  color: var(--gold-light);
}

.drawer__list a.is-active {
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 0.75rem;
}

.drawer__contact {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
}

.drawer__contact li {
  margin-block-end: 0.5rem;
}

.drawer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-on-dark);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 82vh, 820px);
  padding-block: var(--section-y);
  color: #fff;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.55) 0%, rgba(13, 17, 23, 0.45) 40%, rgba(13, 17, 23, 0.9) 100%),
    linear-gradient(90deg, rgba(13, 17, 23, 0.75) 0%, rgba(13, 17, 23, 0.1) 100%);
}

[dir="rtl"] .hero::before {
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.55) 0%, rgba(13, 17, 23, 0.45) 40%, rgba(13, 17, 23, 0.9) 100%),
    linear-gradient(270deg, rgba(13, 17, 23, 0.75) 0%, rgba(13, 17, 23, 0.1) 100%);
}

.hero__content {
  max-width: 760px;
}

.hero h1 {
  margin-block-end: var(--space-3);
}

.hero h1 span {
  color: var(--gold-light);
}

.hero__lead {
  max-width: 560px;
  margin-block-end: var(--space-4);
  font-size: var(--fs-lg);
  color: var(--text-on-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--text-on-dark);
}

.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.hero__badges svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 3rem + 6vw, 8rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  color: #fff;
  background: var(--ink);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.7), rgba(13, 17, 23, 0.92));
}

.page-hero__content {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem);
}

.page-hero p {
  font-size: var(--fs-lg);
  color: var(--text-on-dark);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 var(--space-2);
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.4rem;
  color: var(--gold);
}

.breadcrumb a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--paper-2);
}

.section--dark {
  background: var(--ink);
  color: var(--text-on-dark);
}

.section--dark p {
  color: var(--text-on-dark-muted);
}

.section--dark a:not(.btn) {
  color: var(--gold-light);
}

.section--dark a:not(.btn):hover {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--gold-light);
}

.section-head {
  max-width: 720px;
  margin-block-end: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head p {
  font-size: var(--fs-lg);
  color: var(--text-muted);
}

.section--dark .section-head p {
  color: var(--text-on-dark-muted);
}

/* Split layout */
.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.split > * {
  min-width: 0;
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper-3);
  aspect-ratio: 4 / 3;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--portrait {
  aspect-ratio: 4 / 5;
}

.media-frame__tag {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-end: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1rem;
  background: rgba(13, 17, 23, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.media-frame__tag svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.pillars {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--ink);
  color: var(--gold);
  border-radius: 50%;
}

.pillar__icon svg {
  width: 22px;
  height: 22px;
}

/* Cards */
.card-grid {
  display: grid;
  gap: var(--space-3);
}

.card-grid > * {
  min-width: 0;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-block-end: var(--space-3);
  background: var(--ink);
  color: var(--gold);
  border-radius: var(--radius);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: var(--fs-xl);
}

.card p {
  color: var(--text-muted);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  margin-block-start: auto;
  padding-block-start: var(--space-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.card__link:hover svg {
  transform: translateX(4px);
}

[dir="rtl"] .card__link svg,
[dir="rtl"] .btn svg.icon-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .card__link:hover svg {
  transform: scaleX(-1) translateX(4px);
}

.card--media {
  padding: 0;
  overflow: hidden;
}

.card--media .card__media {
  aspect-ratio: 3 / 2;
  background: var(--paper-3);
}

.card--media .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card--media .card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

/* Risk warning */
.risk-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-block-start: var(--space-4);
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--text);
}

.risk-note svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gold-deep);
}

.risk-note strong {
  display: block;
  margin-block-end: 0.2rem;
}

/* Steps (Triple Focus Approach) */
.steps {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  min-width: 0;
  padding: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.step:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.step__num {
  display: block;
  margin-block-end: var(--space-2);
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}

.step h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.step p {
  color: var(--text-on-dark-muted);
}

/* Guarantee */
.guarantee {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.guarantee > * {
  min-width: 0;
}

.guarantee blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
}

.guarantee__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: var(--space-2);
  padding: 0.4rem 0.9rem;
  background: var(--ink);
  color: var(--gold-light);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

/* Rating */
.rating {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}

.rating > * {
  min-width: 0;
}

.rating__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin-inline: auto;
  padding: 2rem;
  text-align: center;
  background: radial-gradient(circle at 30% 20%, var(--ink-3), var(--ink));
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(171, 142, 102, 0.15), var(--shadow-lg);
  color: #fff;
}

.rating__top {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.rating__score {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 2.4rem + 2.5vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
}

.rating__score small {
  font-size: 0.4em;
  color: var(--text-on-dark-muted);
}

.stars {
  display: inline-flex;
  gap: 3px;
  color: var(--gold);
}

.stars svg {
  width: 18px;
  height: 18px;
}

.rating__source {
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
}

/* Testimonials */
.testimonials {
  position: relative;
}

.testimonial-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: var(--space-3);
  margin: 0;
  padding: 0.25rem 0.25rem 1.5rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.testimonial-track:focus-visible {
  outline-offset: 6px;
}

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.testimonial__quote-mark {
  width: 36px;
  height: 36px;
  margin-block-end: var(--space-2);
  color: var(--gold);
}

.testimonial blockquote {
  flex: 1;
  margin: 0 0 var(--space-3);
  color: var(--text);
}

.testimonial blockquote p {
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-block-start: var(--space-2);
  border-block-start: 1px solid var(--line);
}

.testimonial cite {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-block-start: var(--space-2);
}

.testimonial-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.testimonial-controls button:hover {
  background: var(--ink);
  color: var(--gold-light);
  border-color: var(--ink);
}

.testimonial-controls button:disabled {
  opacity: 0.4;
  cursor: default;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.testimonial-controls svg {
  width: 20px;
  height: 20px;
}

[dir="rtl"] .testimonial-controls svg {
  transform: scaleX(-1);
}

.testimonial-status {
  margin-inline-end: auto;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Podcast */
.podcast {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}

.podcast > * {
  min-width: 0;
}

.podcast__logo {
  width: 180px;
  height: auto;
  aspect-ratio: 1024 / 270;
  margin-block-end: var(--space-3);
}

.podcast__player {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}

.podcast__player iframe {
  width: 100%;
  height: 180px;
  border: 0;
}

.podcast__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
}

.podcast__meta svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

/* CTA band */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--section-y);
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 17, 23, 0.82);
}

.cta-band__inner {
  max-width: 720px;
  margin-inline: auto;
}

.cta-band p {
  font-size: var(--fs-lg);
  color: var(--text-on-dark);
  margin-block-end: var(--space-4);
}

.cta-band .hero__actions {
  justify-content: center;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}

.contact-grid > * {
  min-width: 0;
}

.contact-list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--ink);
  color: var(--gold);
  border-radius: 50%;
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
}

.contact-item__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item a,
.contact-item address {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-item a:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}

.privacy-box {
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.privacy-box strong {
  color: var(--ink);
}

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: var(--fs-xl);
}

.form {
  display: grid;
  gap: var(--space-3);
}

.form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form legend,
.form .field > label {
  display: block;
  margin-block-end: 0.5rem;
  padding: 0;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
}

.form .req {
  color: #a3341f;
}

.field-row {
  display: grid;
  gap: var(--space-2);
}

.field-row > * {
  min-width: 0;
}

.field-row label {
  display: block;
  margin-block-end: 0.35rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.form input,
.form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper-2);
  border: 1px solid #bfb5a5;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(171, 142, 102, 0.3);
}

.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] {
  border-color: #a3341f;
}

.field-error {
  display: block;
  min-height: 0;
  margin-block-start: 0.35rem;
  font-size: var(--fs-xs);
  color: #a3341f;
}

.form__status {
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.form__status:not(:empty) {
  padding: 0.9rem 1.1rem;
  background: #edf6ef;
  border: 1px solid #9cc7a6;
  color: #1d4d2a;
}

.form__status.is-error:not(:empty) {
  background: #fbefec;
  border-color: #e0a99c;
  color: #7a2414;
}

.hp-field {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn {
  width: 100%;
}

/* Hours table */
.hours {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--radius);
}

.hours svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--gold);
}

.hours strong {
  display: block;
  color: #fff;
}

/* Map-like address card */
.address-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--text-on-dark);
  box-shadow: var(--shadow);
}

.address-card__media {
  aspect-ratio: 16 / 9;
}

.address-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.address-card__body {
  padding: 1.5rem;
}

.address-card__body p {
  color: var(--text-on-dark-muted);
}

/* Prose (privacy policy) */
.prose-layout {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}

.prose-layout > * {
  min-width: 0;
}

.toc {
  padding: 1.5rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc h2 {
  font-size: var(--fs-lg);
  margin-block-end: 0.75rem;
}

.toc ol {
  margin: 0;
  padding-inline-start: 1.2rem;
  font-size: var(--fs-sm);
}

.toc li {
  margin-block-end: 0.15rem;
}

.toc a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-block-start: var(--space-5);
  font-size: var(--fs-xl);
  padding-block-start: var(--space-2);
  border-block-start: 1px solid var(--line);
}

.prose h2:first-of-type {
  margin-block-start: 0;
  border-block-start: 0;
  padding-block-start: 0;
}

.prose ul {
  margin: 0 0 var(--space-2);
}

.prose li {
  margin-block-end: 0.35rem;
}

.prose address {
  font-style: normal;
  margin-block-end: var(--space-2);
  padding: 1rem 1.25rem;
  background: var(--paper-2);
  border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}

.prose .updated {
  display: inline-block;
  margin-block-end: var(--space-3);
  padding: 0.35rem 0.85rem;
  background: var(--paper-3);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-muted);
  font-size: var(--fs-sm);
}

.footer__top {
  display: grid;
  gap: var(--space-4);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) var(--space-4);
}

.footer__top > * {
  min-width: 0;
}

.footer__brand img {
  width: 190px;
  height: auto;
  aspect-ratio: 2501 / 519;
  margin-block-end: var(--space-2);
}

.footer__brand p {
  max-width: 340px;
}

.footer__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-block-start: var(--space-2);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--text-on-dark);
  text-decoration: none;
}

.footer__rating:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.footer__rating svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.footer__title {
  margin-block-end: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer__list a:hover,
.footer__list a[aria-current="page"] {
  color: var(--gold-light);
}

.footer__list li > span {
  display: block;
  padding-block: 0.4rem;
}

.footer__legal {
  padding-block: var(--space-4);
  border-block-start: 1px solid var(--line-dark);
  font-size: var(--fs-xs);
  line-height: 1.75;
}

.footer__legal p {
  max-width: 1000px;
  margin-block-end: 0.75rem;
}

.footer__legal a {
  color: var(--text-on-dark);
  overflow-wrap: anywhere;
}

.footer__legal a:hover {
  color: var(--gold-light);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-block-start: 1px solid var(--line-dark);
  font-size: var(--fs-xs);
}

.footer__bottom a {
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  inset-inline-end: clamp(1rem, 2vw, 1.75rem);
  inset-block-end: clamp(1rem, 2vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: var(--gold);
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease),
    background-color 0.25s var(--ease);
}

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

.back-to-top:hover {
  background: var(--gold-light);
}

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

/* Reveal on scroll */
.reveal {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

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

/* ==========================================================================
   Breakpoints (mobile-first)
   ========================================================================== */
@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-track {
    grid-auto-columns: calc((100% - var(--space-3)) / 1.15);
  }

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

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

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

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

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

  .testimonial-track {
    grid-auto-columns: calc((100% - var(--space-3)) / 2);
  }

  .rating {
    grid-template-columns: auto 1fr;
  }

  .guarantee {
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
  }

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

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

  .split--reverse > :first-child {
    order: 2;
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }

  .prose-layout {
    grid-template-columns: 280px 1fr;
  }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + 3rem);
  }

  .footer__top {
    grid-template-columns: 1.5fr 1fr 1.3fr 1fr;
  }
}

@media (min-width: 1080px) {
  .nav {
    display: block;
  }

  .header__cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .testimonial-track {
    grid-auto-columns: calc((100% - 2 * var(--space-3)) / 3);
  }
}

@media (min-width: 1920px) {
  :root {
    --container: 1400px;
  }
}
