/* Taks-inspired tax consulting layout — original styling */
:root {
  --navy: #0a1628;
  --navy-mid: #132337;
  --navy-soft: #1a2f4a;
  --accent: #e0782f;
  --accent-hover: #c96a28;
  --text: #1c2836;
  --text-muted: #5a6573;
  --bg: #ffffff;
  --bg-muted: #f4f6f9;
  --border: #e2e6ec;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(10, 22, 40, 0.12);
  --slider-overlay-alpha: 0.5;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 32px rgba(0, 0, 0, 0.04);
}

.top-bar {
  background: var(--navy);
  color: #fff;
  font-size: 0.875rem;
}

.top-bar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 40px;
  gap: 1rem;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.15rem;
  flex-wrap: wrap;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  max-height: 44px;
  width: auto;
  display: block;
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
}

.brand__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.92rem, 1.15vw, 1.12rem);
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.02em;
  max-width: min(20rem, 52vw);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231c2836'%3E%3Cpath stroke-linecap='round' stroke-width='2' d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center/22px no-repeat;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-header.nav-open .main-nav {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 4vw 1.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.02rem;
  border-radius: 10px;
}

/* Homepage image slider */
.hero-slider {
  position: relative;
  margin-top: 0;
  background: var(--navy);
}

.hero-slider__viewport {
  position: relative;
  width: 100%;
  min-height: min(72vh, 640px);
  max-height: 720px;
  overflow: hidden;
}

/*
 * Track must be N × viewport wide (not width:100%), or flex will shrink each
 * slide to 1/N of the row and you see a “split” of two slides at once.
 */
.hero-slider__track {
  display: flex;
  width: calc(var(--slide-count, 1) * 100%);
  min-height: min(72vh, 640px);
  max-height: 720px;
  transform: translateX(calc(-100% * var(--slide-index, 0) / var(--slide-count, 1)));
  transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__track {
    transition: none;
  }
}

.hero-slider__slide {
  position: relative;
  flex: 0 0 calc(100% / var(--slide-count, 1));
  width: calc(100% / var(--slide-count, 1));
  min-width: 0;
  min-height: min(72vh, 640px);
  max-height: 720px;
  overflow: hidden;
}

.hero-slider__media {
  position: absolute;
  inset: 0;
}

.hero-slider__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, calc(var(--slider-overlay-alpha, 0.5) + 0.15)) 0%,
    rgba(0, 0, 0, calc(var(--slider-overlay-alpha, 0.5) * 0.65)) 45%,
    rgba(0, 0, 0, calc(var(--slider-overlay-alpha, 0.5) * 0.35)) 100%
  );
}

.hero-slider__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: min(72vh, 640px);
  max-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.hero-slider__copy {
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

.hero-slider__kicker.eyebrow {
  color: color-mix(in srgb, var(--accent) 72%, white);
}

.hero-slider__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  font-weight: 700;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero-slider__lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 1.5rem;
  max-width: 38rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero-slider__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hero-slider__phone {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-slider__phone a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.hero-slider__phone a:hover {
  text-decoration: underline;
}

.hero-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s, background 0.2s;
}

.hero-slider__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.hero-slider__btn--prev {
  left: max(12px, 2vw);
}

.hero-slider__btn--next {
  right: max(12px, 2vw);
}

.hero-slider__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.45rem;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-slider__dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}

@media (max-width: 600px) {
  .hero-slider__btn {
    display: none;
  }

  .hero-slider__viewport,
  .hero-slider__track,
  .hero-slider__slide,
  .hero-slider__inner {
    min-height: 58vh;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-soft) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero--compact {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2rem, 4vw, 3rem);
}

.hero--compact .hero__grid {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.hero--compact .hero__visual {
  display: none;
}

.hero--compact h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.hero--compact .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    display: none;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  font-weight: 700;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.hero .eyebrow {
  color: color-mix(in srgb, var(--accent) 72%, white);
}

.hero__actions {
  margin-bottom: 1.25rem;
}

.hero__phone {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero__phone a {
  color: #fff;
  font-weight: 600;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__blob {
  width: min(100%, 380px);
  aspect-ratio: 1;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background: linear-gradient(145deg, rgba(224, 120, 47, 0.35), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow);
}

.text-link {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.text-link--light {
  color: #ffb088;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section--dark {
  background: var(--navy);
  color: #fff;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section-head .eyebrow {
  display: inline-block;
  position: relative;
  padding-bottom: 0.65rem;
}

.section-head .eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.85;
}

.section-head--light .eyebrow {
  color: color-mix(in srgb, var(--accent) 70%, white);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin: 0.35rem 0 0;
  color: inherit;
  letter-spacing: -0.02em;
}

.section-head__sub {
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.section--dark .section-head__sub {
  color: rgba(255, 255, 255, 0.75);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-tile {
  background: #fff;
  padding: 1.75rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.2s, box-shadow 0.25s ease;
}

.feature-tile:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.1);
}

.feature-tile__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.feature-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.feature-tile p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Split about */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0.35rem 0 1rem;
}

.split__phone {
  margin: 1rem 0;
  font-weight: 500;
}

.split__phone a {
  color: var(--accent);
  font-weight: 700;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.about-panel {
  min-height: 280px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(160deg, var(--navy-soft), var(--accent));
  opacity: 0.9;
}

.about-panel--photo {
  background: none;
  opacity: 1;
  padding: 0;
  overflow: hidden;
  min-height: min(320px, 50vw);
  aspect-ratio: 4 / 3;
  max-height: 420px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-panel--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* About: story + portrait (split) */
.section--story {
  background: var(--bg);
}

.story-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.story-split__content {
  min-width: 0;
  padding-top: 0.25rem;
}

.story-split__kicker {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.45;
  max-width: 36rem;
}

.story-split__title {
  margin: 0 0 1.35rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 36rem;
}

.story-split__text-p {
  margin: 0 0 1.05rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text);
  max-width: 38rem;
}

.story-split__text-p--closing {
  margin-top: 1.15rem;
}

.story-quote {
  margin: 1.65rem 0 1.35rem;
  padding: 0 0 0 1.35rem;
  border-left: 2px dotted #b8c0cc;
  max-width: 38rem;
}

.story-quote__text {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text);
}

.story-quote__accent {
  color: var(--accent);
  font-weight: 700;
}

.story-split__media {
  min-width: 0;
  position: sticky;
  top: 5.5rem;
}

.story-split__figure {
  margin: 0;
  position: relative;
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

.story-split__expand {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.story-split__expand:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transform: scale(1.04);
}

.story-split__img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
  max-height: min(88vh, 720px);
  object-fit: cover;
  object-position: center top;
}

.story-split__placeholder {
  min-height: min(520px, 65vh);
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(165deg, var(--bg-muted) 0%, var(--border) 45%, color-mix(in srgb, var(--accent) 25%, var(--bg-muted)) 100%);
  border: 1px dashed var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .story-split {
    grid-template-columns: 1fr;
  }

  .story-split__media {
    position: static;
    order: -1;
    max-width: 420px;
    margin: 0 auto 1.5rem;
  }

  .story-split__img {
    max-height: 420px;
  }
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.service-card p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

/* CTA band */
.cta-band {
  background: var(--bg-muted);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta-form select {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  min-width: 200px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 1.65rem 1rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg-muted) 100%);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.stat-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
}

.stat-card__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.case-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.case-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

.case-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.case-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Testimonials carousel */
.testimonial-carousel {
  position: relative;
  padding: 0 clamp(2.25rem, 5vw, 3.25rem);
}

.testimonial-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.testimonial-carousel__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.4s ease;
  will-change: transform;
}

.testimonial-carousel .testimonial {
  flex-shrink: 0;
  box-sizing: border-box;
}

.testimonial-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.testimonial-carousel__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.testimonial-carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.testimonial-carousel__btn--prev {
  left: 0;
}

.testimonial-carousel__btn--next {
  right: 0;
}

.testimonial-carousel__btn.is-hidden {
  display: none;
}

.testimonial-carousel--static {
  padding-left: 0;
  padding-right: 0;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-carousel__track {
    transition: none;
  }
}

.testimonial {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-muted);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.testimonial h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial p {
  margin: 0.75rem 0 0;
  color: var(--text);
}

#feedback.section--dark .testimonial {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#feedback.section--dark .testimonial h3 {
  color: #fff;
}

#feedback.section--dark .testimonial cite {
  color: rgba(255, 255, 255, 0.68);
}

#feedback.section--dark .testimonial p {
  color: rgba(255, 255, 255, 0.9);
}

/* Custom CMS pages (page.php?p=slug) */
.cms-page-section {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.cms-page {
  max-width: 44rem;
}

.cms-page__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cms-page__p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.cms-page__html {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.cms-page__html > *:first-child {
  margin-top: 0;
}

.cms-page__html > *:last-child {
  margin-bottom: 0;
}

.cms-page__html h2,
.cms-page__html h3,
.cms-page__html h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 1.5rem 0 0.75rem;
}

.cms-page__html h2 { font-size: clamp(1.35rem, 2.5vw, 1.65rem); }
.cms-page__html h3 { font-size: clamp(1.2rem, 2vw, 1.35rem); }
.cms-page__html h4 { font-size: 1.1rem; }

.cms-page__html p {
  margin: 0 0 1rem;
}

.cms-page__html ul,
.cms-page__html ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.cms-page__html li {
  margin-bottom: 0.35rem;
}

.cms-page__html a {
  color: var(--accent, #c45c26);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cms-page__html a:hover {
  opacity: 0.9;
}

.cms-page__html img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.75rem 0;
}

.cms-page__html table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.cms-page__html th,
.cms-page__html td {
  border: 1px solid rgba(28, 40, 54, 0.15);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.cms-page__html th {
  background: rgba(28, 40, 54, 0.06);
  font-weight: 600;
  color: var(--navy);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  padding: 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.blog-card__cat {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-card h3 {
  margin: 0.5rem 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.blog-card h3 a {
  color: var(--navy);
}

.blog-card h3 a:hover {
  color: var(--accent);
}

.blog-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
}

.footer-newsletter {
  background: var(--navy-mid);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.newsletter-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.newsletter-inner__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.newsletter-inner h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.newsletter-flash {
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.newsletter-flash--ok {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.newsletter-flash--err {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  min-width: 220px;
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  align-items: start;
}

.footer-grid--with-map {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(320px, 2.25fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.footer-col--map {
  min-width: 0;
}

.footer-col--map h4 {
  margin-bottom: 0.85rem;
}

.footer-map {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  aspect-ratio: 4 / 3;
  min-height: min(360px, 50vw);
  max-width: 100%;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

@media (max-width: 1024px) {
  .footer-grid--with-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-col--map {
    grid-column: 1 / -1;
    max-width: min(640px, 100%);
    margin-inline: auto;
    width: 100%;
  }

  .footer-map {
    min-height: min(400px, 55vw);
  }

  .footer-map iframe {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid--with-map {
    grid-template-columns: 1fr;
  }

  .footer-col--map {
    grid-column: auto;
    max-width: none;
  }
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
  color: #fff;
}

.contact-list span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.15rem;
}

.contact-list li {
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom p {
  margin: 0;
}

/* Appointment modal (top bar CTA) */
.appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.appointment-modal[hidden] {
  display: none !important;
}

.appointment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(4px);
}

.appointment-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.appointment-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: rgba(10, 22, 40, 0.06);
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.appointment-modal__close:hover {
  background: rgba(10, 22, 40, 0.12);
}

.appointment-modal__title {
  margin: 0 2rem 0.35rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
}

.appointment-modal__lead {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  color: var(--text-muted, #5a6570);
  line-height: 1.5;
}

.appointment-modal__form .appointment-modal__field {
  margin-bottom: 0.85rem;
}

.appointment-modal__form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.appointment-modal__form .req {
  color: var(--accent);
}

.appointment-modal__form input,
.appointment-modal__form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(10, 22, 40, 0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.appointment-modal__form textarea {
  resize: vertical;
  min-height: 5rem;
}

.appointment-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.1rem;
  padding-top: 0.25rem;
}

.appointment-modal__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

body.appointment-modal-open {
  overflow: hidden;
}

.site-toast {
  position: fixed;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: min(32rem, calc(100vw - 2rem));
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.site-toast--ok {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.site-toast--err {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}
