:root {
  --bg: #f2f7fd;
  --bg-elevated: #e7f0fb;
  --surface: #ffffff;
  --surface-soft: #f6faff;
  --text: #16314f;
  --text-muted: #46607d;
  --border: #c5d8ee;
  --brand: #2f6fbe;
  --brand-strong: #1f5699;
  --accent: #5d8fe0;
  --focus: #80aef0;
  --danger: #b24b4b;
  --shadow: 0 14px 34px rgba(16, 49, 90, 0.1);
  --radius: 14px;
  --max: 1120px;
  --footer-bg: #0d213a;
  --footer-text: #dbe9ff;
  --footer-border: #2a466d;
  --bg-overlay-1: rgba(95, 146, 220, 0.16);
  --bg-overlay-2: rgba(122, 167, 231, 0.12);
  --bg-grid: rgba(49, 95, 161, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081322;
    --bg-elevated: #11213a;
    --surface: #10223b;
    --surface-soft: #173052;
    --text: #e6f0ff;
    --text-muted: #b8c9e6;
    --border: #2b4468;
    --brand: #5e96e8;
    --brand-strong: #8ab4ff;
    --accent: #7fa8f0;
    --focus: #9fc0ff;
    --danger: #e08e87;
    --shadow: 0 16px 38px rgba(2, 7, 14, 0.5);
    --footer-bg: #060f1d;
    --footer-text: #dce8ff;
    --footer-border: #243b5f;
    --bg-overlay-1: rgba(86, 136, 217, 0.14);
    --bg-overlay-2: rgba(131, 172, 233, 0.1);
    --bg-grid: rgba(157, 190, 239, 0.06);
  }
}

:root[data-theme="light"] {
  --bg: #f2f7fd;
  --bg-elevated: #e7f0fb;
  --surface: #ffffff;
  --surface-soft: #f6faff;
  --text: #16314f;
  --text-muted: #46607d;
  --border: #c5d8ee;
  --brand: #2f6fbe;
  --brand-strong: #1f5699;
  --accent: #5d8fe0;
  --focus: #80aef0;
  --danger: #b24b4b;
  --shadow: 0 14px 34px rgba(16, 49, 90, 0.1);
  --footer-bg: #0d213a;
  --footer-text: #dbe9ff;
  --footer-border: #2a466d;
  --bg-overlay-1: rgba(95, 146, 220, 0.16);
  --bg-overlay-2: rgba(122, 167, 231, 0.12);
  --bg-grid: rgba(49, 95, 161, 0.08);
}

:root[data-theme="dark"] {
  --bg: #081322;
  --bg-elevated: #11213a;
  --surface: #10223b;
  --surface-soft: #173052;
  --text: #e6f0ff;
  --text-muted: #b8c9e6;
  --border: #2b4468;
  --brand: #5e96e8;
  --brand-strong: #8ab4ff;
  --accent: #7fa8f0;
  --focus: #9fc0ff;
  --danger: #e08e87;
  --shadow: 0 16px 38px rgba(2, 7, 14, 0.5);
  --footer-bg: #060f1d;
  --footer-text: #dce8ff;
  --footer-border: #243b5f;
  --bg-overlay-1: rgba(86, 136, 217, 0.14);
  --bg-overlay-2: rgba(131, 172, 233, 0.1);
  --bg-grid: rgba(157, 190, 239, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 4% 8%, rgba(106, 154, 228, 0.12), transparent 35%),
    radial-gradient(circle at 95% 4%, rgba(140, 177, 237, 0.12), transparent 34%),
    var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(56rem 34rem at 5% 10%, var(--bg-overlay-1), transparent 72%),
    radial-gradient(44rem 30rem at 98% 3%, var(--bg-overlay-2), transparent 70%),
    radial-gradient(36rem 30rem at 52% 100%, rgba(108, 157, 232, 0.08), transparent 72%);
}

body::after {
  background-image: radial-gradient(var(--bg-grid) 0.8px, transparent 0.8px);
  background-size: 16px 16px;
  opacity: 0.5;
}

main,
.footer {
  position: relative;
  z-index: 1;
  transition: opacity 0.26s ease, filter 0.26s ease;
}

body.is-page-leaving main,
body.is-page-leaving .footer {
  opacity: 0;
  filter: blur(1.4px);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

::view-transition-old(root) {
  animation-name: page-fade-out;
  animation-duration: 280ms;
}

::view-transition-new(root) {
  animation-name: page-fade-in;
  animation-duration: 380ms;
}

@keyframes page-fade-out {
  to {
    opacity: 0;
    filter: blur(1.2px);
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    filter: blur(1.2px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

a {
  color: var(--brand-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--brand);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 999;
}

.skip-link:focus {
  left: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(9px);
  background: rgba(242, 247, 253, 0.9);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background-color 0.25s ease;
}

:root[data-theme="dark"] .site-header {
  background: rgba(8, 19, 34, 0.9);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .site-header {
    background: rgba(8, 19, 34, 0.9);
  }
}

.container {
  width: min(var(--max), 92%);
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.85rem 0;
  gap: 1.2rem;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.15rem;
}

.brand span {
  color: var(--brand-strong);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.42rem 0.65rem;
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav {
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  padding-inline: 0.08rem;
  transition: color 0.2s ease;
}

.site-nav .btn {
  font-size: 0.88rem;
  padding: 0.5rem 0.8rem;
}

.site-nav a[aria-current="page"] {
  color: var(--brand-strong);
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
}

.theme-cycle-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1;
}

.theme-cycle-btn:hover,
.theme-cycle-btn:focus-visible {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.72rem 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(34, 87, 155, 0.28);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, 0.28) 48%, transparent 80%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-strong);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 86, 153, 0.34), 0 0 0 3px rgba(128, 174, 240, 0.24);
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  opacity: 0.55;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(22, 62, 113, 0.14);
}

.btn-equal {
  min-width: 210px;
}

.pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.23rem 0.7rem;
  font-size: 0.84rem;
  background: var(--surface);
  color: var(--text-muted);
}

.hero {
  padding: 3.6rem 0 2.5rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(20rem 14rem at 7% 18%, rgba(255, 255, 255, 0.2), transparent 74%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.45rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

/* Normalize card header rhythm across all pages */
.card > h2:first-child,
.card > h3:first-child {
  margin-top: 0;
  margin-bottom: 0.8rem;
  line-height: 1.16;
}

.card > h2 + .table-wrap,
.card > h3 + .table-wrap,
.card > h2 + table,
.card > h3 + table {
  margin-top: 0.35rem;
}

.card > h2 + p,
.card > h3 + p {
  margin-top: 0.2rem;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(100% 70% at 14% 0, rgba(255, 255, 255, 0.2), transparent 64%);
  opacity: 0.42;
  transition: opacity 0.3s ease;
}

:root[data-theme="dark"] .card::before {
  background: radial-gradient(100% 70% at 14% 0, rgba(138, 180, 255, 0.14), transparent 66%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .card::before {
    background: radial-gradient(100% 70% at 14% 0, rgba(138, 180, 255, 0.14), transparent 66%);
  }
}

.card:hover {
  border-color: var(--focus);
  box-shadow: 0 18px 40px rgba(16, 47, 88, 0.17);
}

.card:hover::before {
  opacity: 0.65;
}

.hero h1 {
  margin-top: 0;
  line-height: 1.15;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.04rem;
}

.hero-media {
  height: 100%;
  min-height: 290px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 19, 34, 0.46) 100%);
}

.section-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 1rem;
}

.section-media img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.booking-inline-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.booking-stack {
  display: grid;
  gap: 1rem;
}

.book-intro .lead {
  max-width: 100%;
}

.book-phone-card {
  display: grid;
  grid-template-columns: minmax(250px, 34%) 1fr;
  gap: 1rem;
  align-items: stretch;
}

.book-phone-media {
  margin-top: 0;
  height: 100%;
}

.book-phone-media img {
  height: 100%;
  max-height: none;
  min-height: 260px;
  object-fit: cover;
}

.book-phone-content h2 {
  margin-top: 0;
}

.cal-inline-shell {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  overflow: hidden;
}

.cal-inline-embed {
  width: 100%;
  min-height: 620px;
}

.cal-inline-embed > div {
  width: 100% !important;
  min-height: 620px !important;
  overflow: visible !important;
}

.cal-inline-embed iframe {
  width: 100% !important;
  min-height: 620px !important;
  border: 0 !important;
  display: block;
  background: var(--surface);
}

.booking-map-shell {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  overflow: hidden;
}

.booking-map-frame {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.about-bio {
  display: grid;
  grid-template-columns: minmax(260px, 34%) 1fr;
  gap: 1.2rem;
  align-items: start;
}

.about-bio-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 3 / 4;
  max-width: 420px;
}

.about-bio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
}

.about-bio-content h2 {
  margin-top: 0;
}

.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.pdf-viewer {
  width: 100%;
  min-height: 680px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.quick-grid,
.grid-3,
.grid-2,
.tools-grid {
  display: grid;
  gap: 1rem;
}

.quick-grid {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.quick-grid .btn {
  min-height: 84px;
  white-space: normal;
  text-align: center;
  justify-content: center;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

section {
  padding: 1.9rem 0;
}

/* Keep vertical rhythm for plain sections, but preserve inner padding on section cards */
section.card {
  padding: 1.45rem 1.8rem;
}

h2,
h3 {
  line-height: 1.24;
  font-family: "Fraunces", Georgia, serif;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.lead {
  color: var(--text-muted);
  max-width: 72ch;
}

.list-clean {
  margin: 0;
  padding-left: 1.22rem;
}

.list-clean li {
  margin: 0.46rem 0;
}

.notice {
  border-left: 4px solid var(--accent);
  background: var(--surface-soft);
  padding: 0.95rem 1rem;
  border-radius: 8px;
}

.warning {
  border-left: 4px solid var(--danger);
  background: rgba(216, 90, 77, 0.12);
  padding: 0.95rem 1rem;
  border-radius: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.faq-item:focus-within {
  border-color: var(--focus);
  box-shadow: 0 10px 22px rgba(19, 59, 112, 0.18);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 700;
  padding: 0.95rem;
  cursor: pointer;
  color: var(--text);
  transition: color 0.22s ease;
}

.faq-q::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.24s ease;
  margin-top: -0.25rem;
  flex: 0 0 auto;
}

.faq-q[aria-expanded="true"]::after {
  transform: rotate(225deg);
  margin-top: 0.1rem;
}

.faq-a {
  padding: 0 0.9rem 0.9rem;
  color: var(--text-muted);
  overflow: hidden;
  transition: height 0.34s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.24s ease;
}

.form-row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.checklist-options {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 0.75rem 0.9rem;
  margin: 0.9rem 0;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.4rem 0;
  font-weight: 700;
}

.check-option input {
  width: auto;
  margin: 0;
  accent-color: var(--brand);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.7rem;
  min-height: 180px;
}

.stat strong {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
}

.stat p {
  margin: 0;
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 3rem;
  padding-top: 2rem;
}

.footer a {
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) repeat(3, minmax(170px, 1fr));
  gap: 1rem;
  padding-bottom: 1.4rem;
  align-items: start;
}

.footer-grid > section:first-child {
  padding-right: 1.2rem;
}

.footer-grid > section:first-child p {
  max-width: 34ch;
}

.footer-brand {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.02;
  margin: 0 0 0.75rem;
  color: var(--footer-text);
}

.footer-brand span {
  color: var(--brand-strong);
}

.footer p,
.footer li {
  font-size: 0.95rem;
}

.footer ul {
  padding-left: 1rem;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding: 0.9rem 0 1.4rem;
  font-size: 0.9rem;
}

.footer-booking {
  border-top: 1px solid var(--footer-border);
  padding: 1rem 0;
}

.footer-booking-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: flex-start;
}

.footer-booking-row .btn-secondary {
  background: transparent;
  border-color: rgba(219, 233, 255, 0.45);
  color: var(--footer-text);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(219, 233, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--footer-text);
  text-decoration: none;
  padding: 0.42rem 0.62rem;
  transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
}

.social-link.is-active:hover,
.social-link.is-active:focus-visible {
  background: rgba(128, 174, 240, 0.2);
  border-color: rgba(159, 192, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(128, 174, 240, 0.24);
}

.social-link.is-disabled {
  opacity: 0.64;
  border-style: dashed;
  cursor: not-allowed;
}

.social-icon {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: currentColor;
  flex: 0 0 auto;
}

.social-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.services-grid .card {
  height: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.services-pair-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.services-pair-grid .card {
  height: 100%;
  min-height: 220px;
}

.service-logo-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr);
  gap: 1.8rem;
  align-items: center;
  padding: 2rem 2.2rem 2rem 2.6rem;
  min-height: 210px;
}

.service-logo-lockup {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.04;
  margin-left: 0.15rem;
}

.service-logo-lockup span {
  display: block;
}

.service-logo-lockup span:last-child {
  color: var(--brand-strong);
}

.service-logo-card p {
  margin: 0;
  max-width: 39ch;
  padding-right: 0.4rem;
  font-size: 1.04rem;
}

.service-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.58rem;
}

.service-heading span:last-child {
  min-width: 0;
}

.service-heading-plain {
  display: block;
}

.service-bring-card {
  padding-bottom: 1.8rem;
}

.service-bring-card .muted {
  margin-top: 1rem;
}

.service-icon-badge {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(47, 111, 190, 0.14);
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.service-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.fees-page {
  display: grid;
  row-gap: 1.2rem;
}

.fees-page > section:not(.card) {
  padding: 0;
  margin: 0;
}

.fees-page > section:first-child {
  padding-top: 1.2rem;
}

.fees-cards {
  gap: 1.2rem;
  align-items: stretch;
}

.fees-cards .card {
  height: 100%;
}

.service-stack {
  display: grid;
  gap: 1.2rem;
}

.services-page {
  display: grid;
  row-gap: 1.2rem;
}

.services-page > section:not(.card) {
  padding: 0;
  margin: 0;
}

.services-page > section:first-child {
  padding-top: 1.2rem;
}

.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  z-index: 90;
  background: rgba(8, 19, 34, 0.95);
  padding: 0.7rem;
  border-top: 1px solid var(--footer-border);
}

.mobile-cta .btn {
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.table-wrap table {
  min-width: 540px;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-elevated);
}

.badge {
  display: inline-block;
  border-radius: 7px;
  background: rgba(52, 129, 186, 0.18);
  color: var(--text);
  padding: 0.15rem 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
}

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

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  main,
  .footer {
    transition: none;
  }

  body.is-page-leaving main,
  body.is-page-leaving .footer {
    opacity: 1;
    filter: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.01ms;
  }

  .faq-a {
    transition: none;
  }

  .btn-primary::after,
  .card::before {
    transition: none;
  }
}

@media (max-width: 1000px) {
  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .theme-switcher {
    margin-left: 0;
  }

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

  .about-bio {
    grid-template-columns: 1fr;
  }

  .about-bio-media img {
    object-position: center top;
  }

  .book-phone-card {
    grid-template-columns: 1fr;
  }

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

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

  .services-page {
    row-gap: 1rem;
  }

  .fees-page {
    row-gap: 1rem;
  }

  .fees-cards {
    gap: 1rem;
  }

  .services-grid .card,
  .services-pair-grid .card {
    min-height: 0;
  }

  .service-logo-card {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1.4rem 1.3rem;
    min-height: 0;
  }

  .book-phone-media img {
    min-height: 220px;
  }

  .cal-inline-embed,
  .cal-inline-embed > div,
  .cal-inline-embed iframe {
    min-height: 560px !important;
  }

  .booking-map-frame {
    height: 300px;
  }

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

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 4.2rem;
  }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface, #fff);
  border-top: 1px solid var(--border, #e5e7eb);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; font-size: 0.875rem; }
.cookie-banner-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
