/* ========================================================================
   The Accounting Space — Homepage
   Design language: corporate (Julius Baer / Rise) + animation-led (Green & Purple).
   Image-light: typography, motion and structure carry the page.
   ======================================================================== */

:root {
  /* Brand */
  --navy:        #0A1F3D;
  --navy-deep:   #061327;
  --navy-soft:   #1B335C;
  --ink:         #0E1A2B;
  --muted:       #5A6478;
  --line:        rgba(10, 31, 61, 0.10);
  --line-soft:   rgba(10, 31, 61, 0.06);

  /* Surfaces */
  --bg:          #F5F2EC;      /* warm cream */
  --bg-soft:     #EFEBE2;
  --paper:       #FFFFFF;

  /* Accent palette */
  --gold:        #B89968;      /* corporate gold — Julius Baer feel */
  --gold-deep:   #97794A;
  --teal:        #1F7A6A;      /* instant-quote highlight */
  --teal-bright: #2EB39A;

  /* Type */
  --serif:  'Fraunces', 'Times New Roman', serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1240px;
  --radius: 6px;
  --radius-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  color: var(--navy);
}

h2 em, h1 em, h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-deep);
}

p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold-deep);
}

/* ---------- Cursor blob ---------- */
.cursor-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(184, 153, 104, 0.18), transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.18s var(--ease-out);
  filter: blur(8px);
  mix-blend-mode: multiply;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-blob { opacity: 1; }
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 100;
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.utility-left { opacity: 0.8; }
.utility-right { display: inline-flex; align-items: center; gap: 14px; }
.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  transition: color 0.25s var(--ease);
}
.utility-link:hover { color: #fff; }
.utility-link--accent { color: var(--gold); font-weight: 500; }
.utility-link--accent:hover { color: #fff; }
.utility-divider { opacity: 0.35; }

@media (max-width: 720px) {
  .utility-left { display: none; }
  .utility-inner { justify-content: center; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(245, 242, 236, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 242, 236, 0.95);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--navy);
}
.logo-img {
  height: 56px;
  width: auto;
  display: block;
  /* Silhouette: strip colour, render as pure black against the cream background */
  filter: brightness(0);
  transition: opacity 0.25s var(--ease);
}
.logo:hover .logo-img { opacity: 0.78; }

.logo-sub-inline {
  display: inline-block;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
  max-width: 200px;
}

/* Legacy classes still referenced in some markup — kept for safety */
.logo-mark { color: var(--navy); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--navy);
}
.logo-sub {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 720px) {
  .logo-sub-inline { display: none; }
  .logo-img { height: 32px; }
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--gold-deep); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -12px rgba(10, 31, 61, 0.55);
}

.btn--accent {
  background: var(--teal);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.btn--accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease);
}
.btn--accent:hover::before { transform: translateX(100%); }
.btn--accent:hover {
  background: #195e51;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px rgba(31, 122, 106, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--navy);
  background: rgba(10, 31, 61, 0.04);
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn--text {
  background: transparent;
  color: var(--navy);
  padding: 12px 6px;
  border-bottom: 1px solid var(--navy);
  border-radius: 0;
}
.btn--text:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

.btn--lg {
  padding: 16px 28px;
  font-size: 15px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-line {
  display: block;
  overflow: hidden;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.95s var(--ease-out);
}
.hero-title.is-in .reveal-line > span { transform: translateY(0); }
.hero-title.is-in .reveal-line:nth-child(2) > span { transition-delay: 0.12s; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 110px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 31, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 31, 61, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 35%, transparent 75%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}
.hero-glow--a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(184, 153, 104, 0.45), transparent 60%);
  top: -160px;
  right: -120px;
}
.hero-glow--b {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(31, 122, 106, 0.35), transparent 60%);
  bottom: -180px;
  left: -100px;
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(30px, -40px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(46, 179, 154, 0.22);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46, 179, 154, 0.22); }
  50%      { box-shadow: 0 0 0 8px rgba(46, 179, 154, 0.05); }
}

.hero-title {
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 32px;
  color: var(--navy);
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-deep);
}

/* Rotator */
.rotator {
  display: inline-block;
  position: relative;
  min-width: 6ch;
  vertical-align: top;
}
.rotator-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20%);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.rotator-word.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.hero-lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 42px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}
.hero-phone {
  display: inline-flex;
  flex-direction: column;
  margin-left: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.hero-phone-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-phone-number {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--navy);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-meta-item strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.hero-meta-item span {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

@media (max-width: 780px) {
  .hero { padding: 70px 0 60px; }
  .hero-actions { gap: 14px; }
  .hero-phone { margin-left: 0; padding-left: 0; border-left: 0; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.hero-scroll {
  position: absolute;
  right: 32px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}
.hero-scroll-line {
  width: 48px;
  height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: translateX(-100%);
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}
@media (max-width: 780px) {
  .hero-scroll { display: none; }
}

/* ---------- Credentials marquee ---------- */
.marquee-wrap {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}
.marquee {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.01em;
  animation: marquee 38s linear infinite;
}
.marquee-track .dot-sep {
  color: var(--gold);
  font-size: 8px;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Instant Quote highlight ---------- */
.quote-section {
  padding: 100px 0;
  background: var(--bg);
}
.quote-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  padding: 70px;
  overflow: hidden;
  isolation: isolate;
}
.quote-card-bg { position: absolute; inset: 0; z-index: 0; }
.qbg-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 179, 154, 0.35), transparent 65%);
  top: -300px;
  right: -240px;
  filter: blur(60px);
  animation: float 22s ease-in-out infinite;
}
.qbg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 0% 100%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 0% 100%, black 30%, transparent 70%);
}

.quote-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(46, 179, 154, 0.18);
  border: 1px solid rgba(46, 179, 154, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8efe2;
  margin-bottom: 28px;
}
.quote-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(46, 179, 154, 0.25);
  animation: pulse 1.8s ease-in-out infinite;
}

.quote-title {
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 300;
  color: #fff;
  margin-bottom: 22px;
  line-height: 1.04;
}
.quote-title em {
  font-style: italic;
  color: var(--teal-bright);
  font-weight: 300;
}

.quote-text {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 32px;
}

.quote-points {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote-points li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.88);
}
.quote-points svg { color: var(--teal-bright); flex-shrink: 0; }

/* Mock quote card */
.quote-mock {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(4px);
  transform: rotate(0.6deg);
  transition: transform 0.6s var(--ease);
}
.quote-card:hover .quote-mock { transform: rotate(0); }

.qm-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 18px;
}
.qm-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.qm-dot:nth-child(1) { background: #ff6058; }
.qm-dot:nth-child(2) { background: #ffbe2e; }
.qm-dot:nth-child(3) { background: #29c93f; }
.qm-title {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qm-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.qm-row:last-of-type { border-bottom: 0; }
.qm-label { font-size: 13px; color: rgba(255,255,255,0.6); }
.qm-value { font-size: 14px; color: rgba(255,255,255,0.95); font-weight: 500; }

.qm-row--total {
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 0;
}
.qm-price {
  font-family: var(--serif);
  font-size: 40px !important;
  color: var(--teal-bright) !important;
  font-weight: 400 !important;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.qm-currency { font-size: 22px; }
.qm-per { font-size: 14px; color: rgba(255,255,255,0.55); margin-left: 6px; }
.qm-foot {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

.quote-mock--app .qm-app-headline {
  font-family: var(--serif);
  font-size: 22px;
  color: #fff;
  margin: 8px 0 18px;
  font-weight: 400;
  line-height: 1.2;
}
.quote-mock--app .qm-app-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.quote-mock--app .qm-app-list li {
  padding: 10px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  position: relative;
  padding-left: 24px;
}
.quote-mock--app .qm-app-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--teal-bright);
  font-weight: 700;
}

@media (max-width: 880px) {
  .quote-card { padding: 40px 28px; }
  .quote-card-content { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Section header ---------- */
.section-header {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-header--split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  max-width: none;
  align-items: end;
}
.section-header--centre {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-header--centre .eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold-deep);
  margin-left: 10px;
}
.section-header--centre .eyebrow::before { display: none; }
.section-header--centre .eyebrow {
  display: inline-flex;
  gap: 0;
}

.section-title {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 300;
  margin: 18px 0 0;
  letter-spacing: -0.02em;
}
.section-lede {
  font-size: 17px;
  color: var(--muted);
  margin-top: 22px;
  max-width: 600px;
}

@media (max-width: 880px) {
  .section-header--split { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Pillars ---------- */
.pillars {
  padding: 120px 0;
  background: var(--paper);
  position: relative;
}
.pillar-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar {
  padding: 48px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s var(--ease);
}
.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184, 153, 104, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.pillar:hover::before { opacity: 1; }
.pillar:hover .pillar-num { color: var(--gold-deep); transform: translateY(-2px); }

.pillar-num {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.pillar h3 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--navy);
}
.pillar p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pillars { padding: 80px 0; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { padding: 36px 24px; }
}

/* ---------- Who we help ---------- */
.who {
  padding: 120px 0;
  background: var(--bg-soft);
}
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.who-card {
  display: block;
  padding: 36px 28px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.who-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.who-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 30px 60px -30px rgba(10, 31, 61, 0.25);
}
.who-card:hover::after { transform: scaleX(1); }

.who-card-index {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 28px;
}
.who-card h3 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--navy);
}
.who-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.55;
}
.who-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.who-card-cta .arrow {
  transition: transform 0.35s var(--ease);
}
.who-card:hover .who-card-cta .arrow { transform: translateX(4px); color: var(--gold-deep); }

@media (max-width: 1080px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .who { padding: 80px 0; }
  .who-grid { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */
.process {
  padding: 120px 0;
  background: var(--paper);
}
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
}
.step {
  padding: 36px 32px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -25px rgba(10, 31, 61, 0.2);
}
.step-num {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.step-num span:first-child {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--gold-deep);
  line-height: 1;
}
.step-time {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 10px;
  background: rgba(184,153,104,0.1);
  border-radius: 999px;
}
.step h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--navy);
}
.step p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}
.step-connector {
  width: 56px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  align-self: center;
  position: relative;
}
.step-connector::after {
  content: '→';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  padding: 0 8px;
  color: var(--gold-deep);
  font-size: 14px;
}

@media (max-width: 980px) {
  .process { padding: 80px 0; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .step-connector { display: none; }
}

/* ---------- Trust quote ---------- */
.trust {
  padding: 140px 0;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.trust::before {
  content: '';
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,153,104,0.18), transparent 65%);
  top: -160px; right: -120px;
  filter: blur(50px);
}
.trust-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 auto 32px;
  max-width: 900px;
  text-align: center;
  position: relative;
  padding: 0 60px;
}
.trust-quote em {
  font-style: italic;
  color: var(--gold-deep);
}
.trust-mark {
  font-family: var(--serif);
  font-size: 120px;
  color: var(--gold);
  opacity: 0.4;
  position: absolute;
  left: -10px;
  top: -60px;
  line-height: 1;
}
.trust-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-credit .line {
  width: 36px;
  height: 1px;
  background: var(--muted);
}

@media (max-width: 720px) {
  .trust { padding: 80px 0; }
  .trust-quote { padding: 0 12px; }
  .trust-mark { display: none; }
}

/* ---------- Pricing teaser ---------- */
.pricing {
  padding: 140px 0;
  background: var(--paper);
}
.pricing-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.pricing-left .section-title { margin-top: 18px; margin-bottom: 24px; }
.pricing-left p {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.pricing-tag {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 40px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.pricing-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(184,153,104,0.18), transparent 60%);
  pointer-events: none;
}
.pricing-from {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  margin-right: 10px;
}
.pricing-currency {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--navy);
}
.pricing-amount {
  font-family: var(--serif);
  font-size: clamp(72px, 9vw, 112px);
  font-weight: 300;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
}
.pricing-per {
  font-size: 18px;
  color: var(--muted);
  margin-left: 6px;
}

.pricing-includes {
  list-style: none;
  padding: 28px 0 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  position: relative;
  z-index: 1;
}
.pricing-includes li {
  font-size: 13.5px;
  color: var(--navy);
  position: relative;
  padding-left: 18px;
}
.pricing-includes li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.pricing-right {
  display: flex;
  flex-direction: column;
}
.pricing-right > .pricing-tag { width: 100%; flex-direction: column; align-items: flex-start; }
.pricing-right > .pricing-tag > .pricing-from { margin-bottom: -10px; }

@media (max-width: 980px) {
  .pricing { padding: 80px 0; }
  .pricing-inner { grid-template-columns: 1fr; gap: 40px; }
  .pricing-includes { grid-template-columns: 1fr; }
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--navy-deep);
  color: #fff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,179,154,0.3), transparent 60%);
  top: -200px;
  right: -160px;
  filter: blur(60px);
  animation: float 22s ease-in-out infinite;
}
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
}
.final-cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.final-cta h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  color: #fff;
  margin-bottom: 20px;
}
.final-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}
.final-cta-actions {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 720px) {
  .final-cta { padding: 80px 0; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}
.footer-brand .logo-img {
  height: 64px;
  /* Invert the black silhouette to white on the navy footer */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-brand .logo-sub-inline {
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
}
.footer-brand .logo-mark { color: var(--gold); }
.footer-brand .logo-title { color: #fff; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-cols h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.25s var(--ease);
}
.footer-cols a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}
.footer-cred { letter-spacing: 0.06em; }
.footer-legal {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.38);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal p { margin: 0; }
.footer-policy-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.footer-policy-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255,255,255,0.18);
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}
.footer-policy-links a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}
.footer-policy-links span { color: rgba(255,255,255,0.25); }
@media (max-width: 720px) {
  .footer-legal { flex-direction: column; gap: 10px; }
}

@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ========================================================================
   SUB-PAGE TEMPLATES
   ======================================================================== */

/* ---------- Nav submenu (mega-style dropdown) ---------- */
.nav-item { position: relative; }
.nav-link--hub {
  background: none;
  border: 0;
  padding: 6px 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  cursor: default;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-link--hub::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-item--has-menu:hover .nav-link--hub { color: var(--gold-deep); }
.nav-item--has-menu:hover .nav-link--hub::after { width: 100%; }
.nav-link--has-arrow svg {
  margin-left: 4px;
  transition: transform 0.3s var(--ease);
  opacity: 0.55;
}
/* Nav tooltip (e.g. MTD → "Making Tax Digital") */
.nav-link--tip { position: relative; }
.nav-link--tip::before,
.nav-link--tip::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  pointer-events: none;
  z-index: 70;
}
.nav-link--tip::before {
  content: attr(data-tooltip);
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 6px;
  box-shadow: 0 12px 28px -12px rgba(10, 31, 61, 0.5);
}
.nav-link--tip::after {
  content: '';
  top: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-bottom-color: var(--navy);
}
.nav-link--tip:hover::before,
.nav-link--tip:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-link--tip:hover::after,
.nav-link--tip:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mm-group--label span {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.nav-item--has-menu:hover .nav-link--has-arrow svg {
  transform: rotate(-180deg);
  opacity: 1;
}
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(10, 31, 61, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 50;
}
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-item--has-menu:hover .nav-submenu,
.nav-item--has-menu:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-submenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.nav-submenu a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--navy);
  border-radius: 4px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-submenu a:hover { background: var(--bg); color: var(--gold-deep); }
.nav-link.is-active { color: var(--gold-deep); }
.nav-link.is-active::after { width: 100%; }
.nav-submenu a.is-active { color: var(--gold-deep); background: var(--bg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  /* Above the utility bar (z:100) and header (z:90) so nothing covers the close button */
  z-index: 110;
  padding: 24px 0 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu .mobile-menu-list { margin: 0; padding: 0; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }

/* Close button — sits in the same top-right slot as the hamburger */
.mm-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.mm-close:hover {
  background: var(--paper);
  border-color: var(--navy);
  transform: rotate(90deg);
}
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu-list a {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.mm-child a {
  font-family: var(--sans);
  font-size: 15px;
  padding: 8px 0 8px 20px;
  color: var(--muted);
  border-bottom: 0;
}
.mm-group a { font-size: 22px; }
.mm-actions {
  padding-top: 30px;
  display: flex;
  gap: 12px;
}
.mm-actions a {
  flex: 1 1 0;
  padding: 14px 24px;
  font-size: 15px;
  font-family: var(--sans);
  border-bottom: 0;
  text-align: center;
  justify-content: center;
}
.mm-actions a.btn--primary { color: #fff; }
.mm-actions a.btn--ghost   { color: var(--navy); }
body.menu-open { overflow: hidden; }

@media (min-width: 981px) {
  .mobile-menu { display: none; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
  background: var(--bg);
}
.page-hero--dark {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
}
.page-hero--dark h1, .page-hero--dark h2 { color: #fff; }
.page-hero--dark .eyebrow { color: var(--gold); }
.page-hero--dark .eyebrow::before { background: var(--gold); }

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.page-hero-bg .hero-grid { position: absolute; inset: 0; }
.page-hero-bg .hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
}
.page-hero--dark .page-hero-bg .hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 30% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, black 30%, transparent 75%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 22px;
}
.page-hero--dark .breadcrumb { color: rgba(255,255,255,0.55); }
.breadcrumb a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb span.sep { opacity: 0.4; }

.page-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 24px;
  color: var(--navy);
}
.page-hero--dark .page-title { color: #fff; }
.page-title em { font-style: italic; color: var(--gold-deep); font-weight: 300; }
.page-hero--dark .page-title em { color: var(--gold); }

.page-lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
}
.page-hero--dark .page-lede { color: rgba(255,255,255,0.7); }

.page-hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Content section utility ---------- */
.section {
  padding: 100px 0;
  background: var(--paper);
}
.section--bg { background: var(--bg); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: rgba(255,255,255,0.8); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--gold); }
.section--dark .eyebrow::before { background: var(--gold); }
.section--dark .section-title em { color: var(--gold); }

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .page-hero { padding: 60px 0; }
}

/* ---------- Two column split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.split--lead-1 { grid-template-columns: 1.2fr 1fr; }
.split--lead-2 { grid-template-columns: 1fr 1.2fr; }
@media (max-width: 880px) {
  .split, .split--lead-1, .split--lead-2 { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Prose ---------- */
.prose {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
}
.prose p { margin-bottom: 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin: 1.4em 0 0.5em;
  color: var(--navy);
}
.prose ul, .prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { color: var(--gold-deep); border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--navy); }

/* ---------- Feature checklist ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--teal);
}
@media (max-width: 640px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* ---------- Feature rows (alternating) ---------- */
.feature-rows { display: flex; flex-direction: column; gap: 80px; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-row--reverse .feature-row-content { order: 2; }
.feature-row-visual {
  padding: 48px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.feature-row-visual::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,153,104,0.2), transparent 65%);
  filter: blur(50px);
  top: -100px;
  right: -80px;
}
.feature-row-visual-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.feature-row-visual h4 {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  color: var(--navy);
  margin: 0 0 12px;
}
.feature-row-visual p {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.feature-row h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  color: var(--navy);
  margin: 12px 0 18px;
}
.feature-row p {
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--reverse .feature-row-content { order: 0; }
}

/* ---------- Service grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  display: block;
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
  position: relative;
  color: inherit;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,153,104,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card-num {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: 28px;
}
.service-card h3 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--navy);
}
.service-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.service-card-cta .arrow { transition: transform 0.35s var(--ease); }
.service-card:hover .service-card-cta { color: var(--gold-deep); }
.service-card:hover .service-card-cta .arrow { transform: translateX(4px); }

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

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.faq-q:hover { color: var(--gold-deep); }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--navy);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.faq-icon::before { width: 10px; height: 1.2px; }
.faq-icon::after  { width: 1.2px; height: 10px; }
.faq-item.is-open .faq-icon { background: var(--navy); border-color: var(--navy); }
.faq-item.is-open .faq-icon::before { background: #fff; }
.faq-item.is-open .faq-icon::after  { transform: translate(-50%, -50%) rotate(90deg); background: #fff; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
}
.faq-item.is-open .faq-a {
  max-height: 600px;
  padding: 0 0 26px;
}
.faq-a p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 780px;
}

/* ---------- Pricing tiers (pricing page) ---------- */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tier:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(10,31,61,0.25);
}
.tier--featured {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  border-color: var(--navy);
  position: relative;
}
.tier--featured::after {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.tier-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 8px;
}
.tier--featured .tier-name { color: #fff; }
.tier-tagline {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 28px;
}
.tier--featured .tier-tagline { color: rgba(255,255,255,0.6); }
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tier--featured .tier-price { border-bottom-color: rgba(255,255,255,0.15); }
.tier-from {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-right: 4px;
}
.tier--featured .tier-from { color: rgba(255,255,255,0.55); }
.tier-amount {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tier--featured .tier-amount { color: #fff; }
.tier-per { font-size: 14px; color: var(--muted); margin-left: 6px; }
.tier--featured .tier-per { color: rgba(255,255,255,0.6); }
.tier-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.tier-list li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 14px;
  color: var(--ink);
}
.tier--featured .tier-list li { color: rgba(255,255,255,0.85); }
.tier-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.tier--featured .tier-list li::before { color: var(--gold); }
.tier .btn { width: 100%; }

@media (max-width: 880px) {
  .pricing-tiers { grid-template-columns: 1fr; }
}

/* ---------- Blog grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -25px rgba(10,31,61,0.2);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.blog-card-meta .tag {
  padding: 4px 10px;
  background: rgba(184,153,104,0.1);
  color: var(--gold-deep);
  border-radius: 999px;
  letter-spacing: 0.1em;
}
.blog-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--navy);
}
.blog-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.blog-card-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-card:hover .blog-card-cta { color: var(--gold-deep); }

.blog-card--feature {
  grid-column: span 3;
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  border-color: var(--navy);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.blog-card--feature h3 { color: #fff; font-size: 36px; }
.blog-card--feature p { color: rgba(255,255,255,0.7); font-size: 16.5px; }
.blog-card--feature .blog-card-meta { color: var(--gold); }
.blog-card--feature .blog-card-meta .tag { background: rgba(184,153,104,0.18); color: var(--gold); }
.blog-card--feature .blog-card-cta { color: var(--gold); }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card--feature { grid-column: span 2; grid-template-columns: 1fr; padding: 40px; gap: 24px; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--feature { grid-column: span 1; padding: 32px; }
  .blog-card--feature h3 { font-size: 26px; }
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.team-card {
  text-align: left;
}
.team-avatar {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar-initials {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  color: var(--gold-deep);
  z-index: 1;
}
.team-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(184,153,104,0.18), transparent 60%);
}
.team-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 4px;
}
.team-role {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value {
  padding: 36px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value-num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: 24px;
  display: block;
}
.value h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--navy);
}
.value p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}
@media (max-width: 880px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
}
.contact-form-wrap {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--line);
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 31, 61, 0.08);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-meta-card {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.contact-meta-card h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 12px;
  font-weight: 500;
}
.contact-meta-card p {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin: 0;
  font-weight: 400;
}
.contact-meta-card a { color: inherit; }
.contact-meta-card .meta-sub {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 28px; }
}

/* ---------- Quote tool ---------- */
.quote-tool {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.quote-tool::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,122,106,0.22), transparent 60%);
  filter: blur(50px);
}
.quote-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  position: relative;
}
.quote-progress-step {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.quote-progress-step.is-done::after,
.quote-progress-step.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
}
.quote-step {
  display: none;
  position: relative;
}
.quote-step.is-active { display: block; animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.quote-step-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 8px;
}
.quote-step-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.quote-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.quote-option {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-align: left;
}
.quote-option:hover {
  border-color: var(--navy);
  background: var(--paper);
  transform: translateY(-2px);
}
.quote-option.is-selected {
  border-color: var(--teal);
  background: rgba(31,122,106,0.06);
  box-shadow: 0 0 0 3px rgba(31,122,106,0.15);
}
.quote-option-label {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 4px;
}
.quote-option-sub {
  font-size: 13px;
  color: var(--muted);
}
.quote-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 540px) {
  .quote-step .quote-nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }
  .quote-step .quote-nav .btn {
    width: 100%;
    justify-content: center;
  }
  /* Result step buttons centre under the call CTA */
  .quote-result .quote-nav {
    flex-direction: column;
  }
}
.quote-result {
  text-align: center;
  padding: 24px 0;
}
.quote-result-price {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 300;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0;
}
.quote-result-price small {
  font-size: 0.3em;
  color: var(--muted);
  margin-left: 6px;
  font-style: italic;
}
.quote-result-summary {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .quote-tool { padding: 28px; }
  .quote-options { grid-template-columns: 1fr; }
}

/* ---------- CTA strip (sub-page) ---------- */
.cta-strip {
  background: var(--navy);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,179,154,0.22), transparent 60%);
  top: -180px; right: -120px;
  filter: blur(60px);
}
.cta-strip-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta-strip h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.1;
}
.cta-strip p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  max-width: 540px;
}
.cta-strip-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 880px) {
  .cta-strip-inner { grid-template-columns: 1fr; gap: 24px; }
  .cta-strip-actions { justify-content: flex-start; }
}

/* ---------- Sticky live-price banner ---------- */
.qprice-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 4px 18px -8px rgba(0,0,0,0.2);
}
.qprice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.qprice-label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-right: 12px;
}
.qprice-value {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--teal-bright);
  line-height: 1;
  vertical-align: middle;
}
.qprice-vat {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-left: 6px;
  font-style: italic;
}
.qprice-right {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.qprice-annual-label { letter-spacing: 0.08em; text-transform: uppercase; font-size: 11.5px; margin-right: 8px; }
.qprice-annual { font-family: var(--serif); font-size: 18px; color: #fff; }

@media (max-width: 720px) {
  .qprice-bar { padding: 10px 0; }
  .qprice-value { font-size: 28px; }
  .qprice-right { font-size: 12px; }
}

/* ---------- Type cards (step 1) ---------- */
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 36px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: inherit;
  color: inherit;
}
.type-card:hover {
  border-color: var(--navy);
  background: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(10, 31, 61, 0.25);
}
.type-card.is-selected {
  border-color: var(--teal);
  background: rgba(31, 122, 106, 0.06);
  box-shadow: 0 0 0 3px rgba(31, 122, 106, 0.15);
}
.type-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(184, 153, 104, 0.12);
  color: var(--gold-deep);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.type-card:hover .type-icon { background: rgba(184, 153, 104, 0.22); }
.type-card.is-selected .type-icon { background: var(--teal); color: #fff; }
.type-label {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.1;
}
.type-sub {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
@media (max-width: 880px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .type-grid { grid-template-columns: 1fr; } }

/* ---------- Detail step (conditional field grid) ---------- */
.quote-detail-head {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.quote-path {
  display: none;
  animation: fadeUp 0.4s var(--ease);
}
.quote-path.is-active { display: block; }

.qfield-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin-top: 24px;
}
.qfield {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.25s var(--ease);
}
.qfield--wide { grid-column: 1 / -1; }
.qfield.is-hidden { display: none; }
.qfield label {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--navy);
  font-weight: 500;
}
.qfield select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230A1F3D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}
.qfield select:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 31, 61, 0.08);
}
.qfield-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}
.qfield-hint a { color: var(--navy); border-bottom: 1px solid var(--line); }

@media (max-width: 640px) { .qfield-grid { grid-template-columns: 1fr; } }

/* ---------- Result summary list ---------- */
.quote-summary-wrap {
  max-width: 540px;
  margin: 36px auto 32px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.quote-summary-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.quote-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quote-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.quote-summary-list li:last-child { border-bottom: 0; }
.quote-summary-list li span { color: var(--muted); }
.quote-summary-list li strong { color: var(--navy); font-weight: 600; }

/* ---------- Quote: narrow centred contact step ---------- */
.quote-contact-wrap {
  max-width: 540px;
  margin: 0 auto;
}
.quote-contact-wrap .quote-detail-head { justify-content: center; }
.quote-contact-wrap .quote-step-title,
.quote-contact-wrap .quote-step-sub { text-align: center; }
.quote-contact-wrap .form-disclaimer { text-align: center; }

/* ---------- Quote: "call us" CTA on the result step ---------- */
.quote-call-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 34px;
  text-align: left;
}
.quote-call-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quote-call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}
.quote-call-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 500;
}
.quote-call-number {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
@media (max-width: 520px) {
  .quote-call-cta {
    display: flex;        /* was inline-flex — fill the available width */
    width: 100%;
    padding: 16px 18px;
    gap: 12px;
    justify-content: center;
  }
  .quote-call-number { font-size: 22px; }
}

/* ============================================================
   Cookie consent — banner + preferences modal
   ============================================================ */

.tas-cc-noscroll { overflow: hidden; }

.tas-cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  background: var(--navy);
  color: rgba(255,255,255,0.92);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
  font-family: var(--sans);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.tas-cc-banner.is-in { opacity: 1; transform: translateY(0); }

.tas-cc-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 28px;
  padding: 22px 26px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: center;
}
.tas-cc-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}
.tas-cc-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
}
.tas-cc-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tas-cc-text a:hover { color: #fff; }

.tas-cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tas-cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.tas-cc-btn--primary {
  background: var(--teal-bright);
  color: var(--navy-deep);
}
.tas-cc-btn--primary:hover {
  background: #fff;
  transform: translateY(-1px);
}
.tas-cc-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.tas-cc-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 780px) {
  .tas-cc-banner { left: 8px; right: 8px; bottom: 8px; }
  .tas-cc-inner { grid-template-columns: 1fr; padding: 18px 20px; gap: 16px; }
  .tas-cc-actions { justify-content: stretch; }
  .tas-cc-actions .tas-cc-btn { flex: 1 1 auto; }
}

/* ---------- Modal ---------- */
.tas-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: tas-cc-fadein 0.25s var(--ease);
}
/* Explicit display:flex above wins specificity against the browser default
   [hidden] { display: none }, so we have to put display:none back when hidden. */
.tas-cc-modal[hidden] { display: none; }
@keyframes tas-cc-fadein { from { opacity: 0; } to { opacity: 1; } }

.tas-cc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 19, 39, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tas-cc-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  overflow: hidden;
}

.tas-cc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line);
}
.tas-cc-head h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin: 0;
  color: var(--navy);
}
.tas-cc-close {
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tas-cc-close:hover { background: var(--bg); color: var(--navy); }

.tas-cc-body {
  padding: 22px 28px;
  overflow-y: auto;
}
.tas-cc-intro {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.55;
}
.tas-cc-intro em {
  font-style: italic;
  color: var(--navy);
}

.tas-cc-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.tas-cc-row:first-of-type { border-top: 0; padding-top: 6px; }
.tas-cc-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}
.tas-cc-row-head h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  margin: 0;
}
.tas-cc-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.tas-cc-row code {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11.5px;
  color: var(--navy);
}

.tas-cc-pill {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.tas-cc-pill--on {
  background: rgba(31, 122, 106, 0.12);
  color: var(--teal);
}

/* Toggle switch */
.tas-cc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.tas-cc-toggle input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.tas-cc-track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.25s var(--ease);
}
.tas-cc-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
  transition: transform 0.25s var(--ease);
}
.tas-cc-toggle input:checked + .tas-cc-track { background: var(--teal); }
.tas-cc-toggle input:checked + .tas-cc-track::after { transform: translateX(20px); }
.tas-cc-toggle input:focus-visible + .tas-cc-track { box-shadow: 0 0 0 3px rgba(31,122,106,0.25); }

.tas-cc-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.tas-cc-foot .tas-cc-btn--ghost { color: var(--navy); border-color: var(--line); background: var(--paper); }
.tas-cc-foot .tas-cc-btn--ghost:hover { border-color: var(--navy); }
.tas-cc-foot .tas-cc-btn--primary { background: var(--navy); color: #fff; }
.tas-cc-foot .tas-cc-btn--primary:hover { background: var(--navy-deep); }

@media (max-width: 540px) {
  .tas-cc-dialog { max-height: 92vh; }
  .tas-cc-head { padding: 18px 20px 12px; }
  .tas-cc-body { padding: 18px 20px; }
  .tas-cc-foot { padding: 14px 20px; flex-direction: column-reverse; }
  .tas-cc-foot .tas-cc-btn { width: 100%; }
}

/* ---------- Form privacy disclaimer ---------- */
.form-disclaimer {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 16px 0 0;
  text-align: center;
}
.form-disclaimer a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.25s var(--ease);
}
.form-disclaimer a:hover { text-decoration-color: var(--gold); }

/* ---------- Reviews (Google-Ads landing pages) ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -25px rgba(10,31,61,0.18);
}
.review-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}
.review-quote {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--navy);
  font-weight: 400;
  margin: 0;
  flex-grow: 1;
}
.review-quote::before { content: '\201C'; }
.review-quote::after  { content: '\201D'; }
.review-meta {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.review-author {
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-family: var(--sans);
  margin-bottom: 2px;
}
.review-location {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-top: 4px;
}
@media (max-width: 980px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ---------- Landing hero (form alongside copy) ---------- */
.landing-hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
  background: var(--bg);
}
.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.landing-hero-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 30px 60px -30px rgba(10, 31, 61, 0.18);
  position: relative;
}
.landing-hero-form::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.landing-hero-form h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--navy);
}
.landing-hero-form p.sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 22px;
}
.landing-trust-strip {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.01em;
}
.landing-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.landing-trust-inner .dot-sep {
  color: var(--gold);
  font-size: 8px;
}

@media (max-width: 980px) {
  .landing-hero { padding: 60px 0; }
  .landing-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-line > span { transform: none; }
}
