/* Default theme tokens — overridden by inline #site-theme on public pages (loaded after this file). */
:root {
  --navy: #1a2744;
  --navy-light: #243358;
  --gold: #c9a227;
  --button-primary-hover: #dbb42e;
  --cream: #f7f5f0;
  --text: #1e1e1e;
  --muted: #5c6478;
  --radius: 14px;
  --button-radius: 999px;
  --button-border-width: 2px;
  --shadow: 0 8px 32px rgba(26, 39, 68, 0.12);
  --header-height: 3.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-x: clip;
}
body {
  font-family: var(--font-body, system-ui, sans-serif);
  background: var(--cream);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-height);
  padding: 0.45rem 1.25rem;
  background: var(--header-bg, var(--navy));
  color: var(--header-text, #fff);
  position: sticky;
  top: 0;
  z-index: 120;
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}
.logo {
  color: var(--header-text, #fff);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.logo span { color: var(--gold); display: block; font-size: 0.65rem; }
.logo--image { display: flex; align-items: center; }
.logo-img {
  display: block;
  max-height: 34px;
  width: auto;
  max-width: min(168px, 48vw);
  object-fit: contain;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.nav-menu-link {
  color: var(--header-nav-text, rgba(255, 255, 255, 0.9));
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}
.nav-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--header-nav-text, #fff);
}
.nav-menu-link.is-active {
  background: var(--header-lang-active-bg, var(--gold));
  color: var(--header-lang-active-text, var(--navy));
  padding: 10px 20px;
}
.nav-menu-link.is-active:hover,
.nav-menu-link.is-active:focus-visible {
  background: var(--header-lang-active-bg, var(--gold));
  color: var(--header-lang-active-text, var(--navy));
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-lang-label {
  font-size: 0.8rem;
  color: var(--header-lang-label, rgba(255, 255, 255, 0.55));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.lang-switcher a {
  color: var(--header-lang-link, rgba(255, 255, 255, 0.7));
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.lang-switcher a.active {
  background: var(--header-lang-active-bg, var(--gold));
  color: var(--header-lang-active-text, var(--navy));
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
}
body.nav-open .nav-backdrop {
  display: block;
}
body.nav-open {
  overflow: hidden;
}

.nav-close {
  display: none;
}

/* Desktop: wide screens, or tablet landscape */
@media (min-width: 1025px), (min-width: 769px) and (orientation: landscape) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .logo {
    grid-column: 1;
    justify-self: start;
  }

  .site-nav {
    display: contents;
  }

  .nav-menu {
    grid-column: 2;
    justify-self: center;
  }

  .nav-lang {
    grid-column: 3;
    justify-self: end;
  }
}

/* Mobile / tablet portrait: hamburger drawer */
@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--header-menu-icon, #fff);
    cursor: pointer;
    z-index: 1;
  }
  .nav-close:hover,
  .nav-close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }
  .nav-close-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
  }
  .nav-close-icon::before,
  .nav-close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
  }
  .nav-close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .nav-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .site-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-height) + 0.5rem) 1.25rem 1.5rem;
    background: var(--mobile-nav-bg, var(--header-bg, var(--navy)));
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 130;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .nav-menu-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-radius: 0;
  }

  .nav-menu-link.is-active {
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .nav-lang {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .lang-switcher a {
    margin-left: 0;
  }
}

main { flex: 1; }

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 3rem 1.25rem 4rem;
  text-align: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.eyebrow { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.hero h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 1rem; line-height: 1.2; }
.hero-sub { margin-bottom: 1.5rem; }

.section { padding: 2.5rem 1.25rem; max-width: 960px; margin: 0 auto; }
.section[id] { scroll-margin-top: calc(var(--header-height) + 0.75rem); }
#services { padding-top: 0; padding-bottom: 20px; }
h1 { padding-bottom: 15px; }
.section h2 { margin-top: 0; margin-bottom: 1.25rem; color: var(--navy); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--button-radius);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
a.btn {
  font-weight: 100;
  font-size: 14px;
}
.btn-primary { background: var(--button-primary-bg); color: var(--button-primary-text); }
.btn-primary:hover { background: var(--button-primary-hover); transform: translateY(-1px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.services-showcase-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.service-showcase-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(26, 39, 68, 0.06);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.service-showcase-card:hover,
.service-showcase-card:focus-visible {
  color: inherit;
  text-decoration: none;
  border-color: #07a7e2;
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.12);
  transform: translateY(-2px);
}
.service-showcase-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #ececec;
  overflow: hidden;
  flex-shrink: 0;
}
.service-showcase-thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}
.service-showcase-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
}
.service-showcase-card-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  color: #1a2744 !important;
}
.service-showcase-card:hover .service-showcase-card-title,
.service-showcase-card:focus-visible .service-showcase-card-title {
  color: #1a2744 !important;
}
.service-showcase-excerpt {
  margin: 0;
  flex: 1;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pages-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.pages-list-card {
  background: var(--guides-list-surface, #fff);
  border-radius: var(--radius);
  border: 1px solid rgba(26, 39, 68, 0.1);
  box-shadow: 0 2px 12px rgba(26, 39, 68, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  text-align: left;
}
.pages-list-card-media {
  display: block;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream, #f7f5f0);
  flex-shrink: 0;
}
.pages-list-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.pages-list-card:hover .pages-list-card-media img {
  transform: scale(1.03);
}
.pages-list-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
  padding: 1.15rem 1.25rem 1.25rem;
  min-height: 0;
}
.pages-list-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.pages-list-card-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--guides-list-muted, #5c6470);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pages-list-card-author {
  font-size: 0.85rem;
  color: var(--guides-list-muted, #5c6470);
}
.pages-list-card-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
}
.pages-list-card-title a {
  color: var(--guides-list-accent, #1a2744);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pages-list-card-title a:hover {
  color: var(--gold-dark, #b8860b);
}
.pages-list-card.is-hidden {
  display: none;
}
/* Guides/articles list — fixed palette so custom --navy in theme.css cannot wash out filters */
.cms-pages-list {
  --guides-list-accent: #1a2744;
  --guides-list-muted: #5c6470;
  --guides-list-surface: #ffffff;
  --guides-list-border: rgba(26, 39, 68, 0.2);
}
.pages-list-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.pages-list-search-input {
  width: 100%;
  max-width: 28rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(26, 39, 68, 0.15);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: #1a2744;
  background: #fff;
}
.pages-list-search-input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.pages-list-tags-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}
@media (min-width: 640px) {
  .pages-list-tags-wrap {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }
}
.pages-list-tags-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--guides-list-accent);
  flex-shrink: 0;
}
.pages-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.pages-list-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--guides-list-border);
  background: var(--guides-list-surface);
  color: var(--guides-list-accent);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pages-list-tag:hover,
.pages-list-tag.is-active {
  background: var(--guides-list-accent);
  border-color: var(--guides-list-accent);
  color: #fff;
}
.pages-list-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.pages-list-empty {
  margin: 1rem 0 0;
  color: var(--muted);
  text-align: center;
}
.pages-list-empty.hidden {
  display: none;
}
.pages-list-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pages-list-card-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(26, 39, 68, 0.08);
  color: var(--guides-list-accent);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}
/* Inside .prose — undo typography/theme inheritance on cards */
.prose .cms-pages-list .pages-list-card {
  text-align: left;
}
.prose .cms-pages-list .pages-list-card-body {
  text-align: left;
}
.prose .cms-pages-list .pages-list-card-title {
  margin: 0;
  color: var(--guides-list-accent);
}
.prose .cms-pages-list .pages-list-card-title a {
  color: var(--guides-list-accent);
}
.prose .cms-pages-list .pages-list-card-tags {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prose .cms-pages-list .pages-list-card-tags li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.prose .cms-pages-list .pages-list-card p,
.prose .cms-pages-list .pages-list-card-excerpt {
  margin: 0;
  text-align: left;
}
.prose .cms-pages-list .pages-list-tag {
  display: inline-flex;
  color: var(--guides-list-accent);
  background: var(--guides-list-surface);
  border: 1px solid var(--guides-list-border);
}
.prose .cms-pages-list .pages-list-tag:hover,
.prose .cms-pages-list .pages-list-tag.is-active {
  color: #fff;
  background: var(--guides-list-accent);
  border-color: var(--guides-list-accent);
}
.prose .cms-pages-list .pages-list-tags-label {
  color: var(--guides-list-accent);
}
.prose .cms-pages-list .pages-list-search-input {
  color: #1a2744;
}
.prose-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prose-page-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(26, 39, 68, 0.08);
  color: var(--guides-list-accent, #1a2744);
  font-size: 0.82rem;
  font-weight: 600;
}
.prose .prose-page-tags {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.prose .prose-page-tags li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-featured-image {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.guide-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.prose-page-meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted, #5c6470);
}
.prose-page-meta-label {
  font-weight: 600;
  color: var(--guides-list-accent, #1a2744);
  margin-right: 0.35rem;
}
/* Guide / blog article layout */
.prose-page--guide {
  padding-top: 1.25rem;
}
.prose-page--guide .breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.prose-page--guide .guide-featured-image {
  margin: 0 -1.25rem 1.5rem;
  border-radius: 0;
  box-shadow: none;
}
.prose-page--guide .guide-article-header {
  margin-bottom: 1.5rem;
  text-align: left;
}
.prose-page--guide .guide-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.85rem;
}
.prose-page--guide .guide-article-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--guides-list-muted, #5c6470);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prose-page--guide .guide-article-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--guides-list-accent, #1a2744);
  text-wrap: balance;
}
.prose-page--guide .guide-article-author {
  margin: 0;
  font-size: 0.95rem;
  color: var(--guides-list-muted, #5c6470);
}
.prose-page--guide > .prose {
  font-size: 18px;
  line-height: 1.75;
}
.prose-page--guide .prose h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(26, 39, 68, 0.1);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--guides-list-accent, #1a2744);
}
.prose-page--guide .prose > h2:first-child,
.prose-page--guide .prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.prose-page--guide .prose h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--guides-list-accent, #1a2744);
}
.prose-page--guide .prose h3 strong {
  font-size: inherit;
  font-weight: inherit;
}
.prose-page--guide .prose p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: #2a3140;
}
.prose-page--guide .prose > ul,
.prose-page--guide .prose > ol,
.prose-page--guide .prose ul:not(.ray-task-list),
.prose-page--guide .prose ol {
  font-size: 18px;
  line-height: 1.75;
  color: #2a3140;
}
@media (max-width: 719px) {
  .prose-page--guide .guide-article-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .prose-page--guide .prose h2 {
    font-size: 26px;
  }
  .prose-page--guide .prose h3 {
    font-size: 20px;
  }
  .prose-page--guide > .prose,
  .prose-page--guide .prose p,
  .prose-page--guide .prose ul:not(.ray-task-list),
  .prose-page--guide .prose ol {
    font-size: 17px;
  }
}
@media (min-width: 720px) {
  .prose-page--guide .guide-featured-image {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
}
.pages-list-card-excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--guides-list-muted, #5c6470);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pages-list-card-link {
  align-self: flex-start;
  margin-top: auto;
}
.prose .cms-pages-list {
  margin-top: 1.5rem;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
/* Legacy .service-card rules kept for admin previews; public cards use .service-showcase-* */
.btn-outline {
  background: transparent;
  color: var(--button-outline-text);
  border: var(--button-border-width) solid var(--button-outline-border);
}
.btn-outline:hover {
  background: var(--button-outline-hover-bg);
  transform: translateY(-1px);
}
.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}
.services-view-all,
.pages-list-view-all,
.brands-trust-view-all {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2.5rem 0 0;
  padding: 0;
  text-align: center;
}
.services-view-all .btn,
.pages-list-view-all .btn,
.brands-trust-view-all .btn {
  display: inline-block;
  margin-inline: auto;
}
.prose .cms-services .services-view-all {
  margin-top: 2.5rem;
}
.prose .cms-pages-list .pages-list-view-all {
  margin-top: 2.5rem;
}
.prose .cms-trusted-brands .brands-trust-view-all {
  margin-top: 2rem;
}
.prose .cms-latest-projects .pages-list-view-all {
  margin-top: 2.5rem;
}

.service-detail-header h1 {
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.service-detail-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42rem;
}
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover { text-decoration: underline; }
.client-detail-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.client-detail-footer .client-detail-footer-btn {
  box-sizing: border-box;
  padding: 0.65rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
}
.service-detail-cta {
  margin-top: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 640px;
}
.service-detail-cta p {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

/* Trusted brands marquee */
.brands-trust {
  position: relative;
  padding: 2.5rem 0 0;
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}
.brands-trust-heading {
  padding-top: 0;
  padding-bottom: 1rem;
  padding-left: 0;
}
.brands-trust-heading h2,
.prose .brands-trust-heading h2 {
  margin-top: 0;
  margin-bottom: 0;
}
.brands-marquee {
  overflow: hidden;
  padding: 2rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  pointer-events: auto;
}
.brands-marquee .brand-logo-trigger,
.brands-marquee .brand-logo-link {
  pointer-events: auto;
}
.brands-marquee--accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: transparent;
  -webkit-mask-image: none;
  mask-image: none;
}
.brands-marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: brands-scroll 45s linear infinite;
  padding: 0 1.5rem;
}
.brands-marquee:hover .brands-marquee-track {
  animation-play-state: paused;
}
@keyframes brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.brand-logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}
.brand-logo-item a,
.brand-logo-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.brand-logo-item img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 160px;
  max-height: 42px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 0.25s, opacity 0.25s;
}
.brand-logo-item a:hover img,
.brand-logo-item a:focus-visible img,
.brand-logo-trigger:hover img,
.brand-logo-trigger:focus-visible img {
  filter: grayscale(0%);
  opacity: 1;
}
body.brand-showcase-open { overflow: hidden; }
.brand-showcase-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.brand-showcase-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.brand-showcase-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 39, 68, 0.55);
}
.brand-showcase-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(26, 39, 68, 0.25);
  padding: 1.5rem 1.5rem 1.25rem;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}
.brand-showcase-modal.is-open .brand-showcase-dialog {
  transform: translateY(0);
}
.brand-showcase-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.brand-showcase-close:hover {
  background: #e2e8f0;
}
.brand-showcase-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding-right: 2rem;
  margin-bottom: 1.25rem;
}
.brand-showcase-logo {
  max-height: 56px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
}
.brand-showcase-title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--navy);
}
.brand-showcase-section {
  margin-bottom: 1.25rem;
}
.brand-showcase-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.brand-showcase-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}
.brand-showcase-text p {
  margin: 0 0 0.65rem;
}
.brand-showcase-text p:last-child {
  margin-bottom: 0;
}
.brand-showcase-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}
.brand-showcase-gallery-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}
.brand-showcase-gallery img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.brand-showcase-footer {
  margin-top: 0.5rem;
  text-align: center;
}
.brand-showcase-visit {
  min-width: 12rem;
}

.client-detail-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}
.client-detail-header .client-hub-hero {
  margin: 0;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 39, 68, 0.08);
}
.client-detail-header .client-hub-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.client-detail-logo {
  max-width: 220px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.client-detail-section {
  margin-bottom: 2rem;
}
.client-detail-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.client-detail-text {
  color: #334155;
  line-height: 1.65;
}
.client-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.client-detail-gallery-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  cursor: zoom-in;
}
.client-detail-gallery-link:focus-visible {
  outline: 2px solid #07a7e2;
  outline-offset: 2px;
}
.client-detail-gallery img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.client-detail-header h1 {
  margin: 0;
}
.client-detail-project-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy, #1a2744);
}
.client-detail-header h1 + .client-detail-project-title {
  margin-top: -0.35rem;
}
.client-hub-project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.client-hub-project-list:has(> .client-hub-project-item:only-child) {
  grid-template-columns: minmax(0, 400px);
}
.client-hub-project-item {
  display: flex;
  min-height: 0;
}
.client-hub-project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(26, 39, 68, 0.06);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.client-hub-project-card:hover,
.client-hub-project-card:focus-visible {
  color: inherit;
  text-decoration: none;
  border-color: #07a7e2;
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.12);
  transform: translateY(-2px);
}
.client-hub-project-thumb {
  aspect-ratio: 16 / 10;
  background: #ececec;
  overflow: hidden;
}
.client-hub-project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.client-hub-project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
}
.client-hub-project-client {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.client-hub-project-card-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  color: #1a2744 !important;
}
.client-hub-project-card:hover .client-hub-project-card-title,
.client-hub-project-card:focus-visible .client-hub-project-card-title {
  color: #1a2744 !important;
}
.client-hub-project-excerpt {
  margin: 0;
  flex: 1;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.client-hub-project-cta {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  background: #07a7e2 !important;
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none;
  transform: none;
}
.client-hub-project-card:hover .client-hub-project-cta,
.client-hub-project-card:focus-visible .client-hub-project-cta {
  background: #07a7e2 !important;
  color: #fff !important;
}
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.brand-logo-link:focus-visible {
  outline: 2px solid var(--gold, #c9a227);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .brands-marquee:not(.brands-marquee--accessible) { display: none; }
  .brands-marquee--accessible {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1.25rem;
  }
  .brands-marquee--accessible .brand-logo-item img {
    filter: grayscale(100%);
    opacity: 0.85;
  }
}

.testimonial-grid { display: grid; gap: 1rem; }
blockquote {
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
section.cta-band.section {
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  width: calc(100% - 2.5rem);
  max-width: 960px;
  margin: 2rem auto;
  padding: 2.5rem 1.25rem;
}
section.cta-band.section h2 {
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.site-footer {
  font-size: 0.9rem;
  color: var(--footer-text, rgba(255, 255, 255, 0.82));
  background: var(--footer-bg, #2d3238);
  border-top: none;
}
.site-footer a {
  text-decoration: none;
}
.site-footer-list a,
.site-footer-bar-nav a {
  color: var(--footer-link, var(--footer-text, inherit));
}
.site-footer-list a:hover,
.site-footer-list a:focus-visible,
.site-footer-bar-nav a:hover,
.site-footer-bar-nav a:focus-visible {
  color: var(--footer-link-hover, var(--footer-link, inherit));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer-main {
  padding: 2.75rem 1.5rem 2.25rem;
}
.site-footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem 2.5rem;
  text-align: left;
}
.site-footer-col {
  min-width: 0;
}
.site-footer-heading {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-text, #fff);
}
.site-footer-image-link {
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
}
.site-footer-image-link:hover {
  text-decoration: none;
  opacity: 0.92;
}
.site-footer-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}
.site-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.site-footer-list a {
  display: inline-block;
}
.site-footer-list--contact,
.site-footer-list--legal {
  margin-top: 0;
}
.site-footer-list-item--company {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
}
.site-footer-list-item--company span {
  display: block;
}
.site-footer-list--legal {
  margin-top: 0.85rem;
  font-size: 0.84rem;
  opacity: 0.9;
}
.site-footer-legal-label {
  font-weight: 600;
}
.site-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 2.75rem);
  gap: 0.65rem;
  max-width: 6.5rem;
}
.site-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--footer-text, #fff);
  text-decoration: none;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.site-footer-social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  opacity: 1;
}
.site-footer-col--social {
  min-width: min(100%, 280px);
}
.footer-google-reviews {
  margin-top: 1.25rem;
}
.site-footer-col--social:not(:has(.site-footer-social)) .footer-google-reviews {
  margin-top: 0;
}
.footer-google-reviews__card {
  padding: 1rem;
  border-radius: 10px;
  background: #fff;
  color: #1e1e1e;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.footer-google-reviews__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ebe7df;
  text-decoration: none;
  color: inherit;
}
.footer-google-reviews__summary--solo {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.footer-google-reviews--compact .footer-google-reviews__card {
  padding: 0.85rem 1rem;
}
.footer-google-reviews--card-block {
  margin: 2rem auto;
  max-width: 420px;
}
.footer-google-reviews--card-block .footer-google-reviews__card {
  max-width: none;
}
.footer-google-reviews__summary:hover,
.footer-google-reviews__summary:focus-visible {
  text-decoration: none;
  opacity: 0.92;
  outline: none;
}
.footer-google-reviews__logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: 0.15rem;
}
.footer-google-reviews__logo-g { color: #4285f4; }
.footer-google-reviews__logo-o1 { color: #ea4335; }
.footer-google-reviews__logo-o2 { color: #fbbc05; }
.footer-google-reviews__logo-g2 { color: #4285f4; }
.footer-google-reviews__logo-l { color: #34a853; }
.footer-google-reviews__logo-e { color: #ea4335; }
.footer-google-reviews__score {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: #1a2744;
}
.footer-google-reviews__stars {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(
    90deg,
    #f4b400 0%,
    #f4b400 calc((var(--rating, 0) / 5) * 100%),
    #d8d4cc calc((var(--rating, 0) / 5) * 100%),
    #d8d4cc 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-google-reviews__stars--sm {
  font-size: 0.95rem;
  display: block;
  margin-top: 0.1rem;
}
.footer-google-reviews__count {
  width: 100%;
  font-size: 0.8rem;
  color: #5c6478;
}
.footer-google-reviews__list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.prose .footer-google-reviews__list > .footer-google-reviews__item {
  margin: 0;
  padding-left: 0;
}
.footer-google-reviews__item {
  margin: 0;
}
.footer-google-reviews__item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.footer-google-reviews__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.footer-google-reviews__item-meta {
  flex: 1;
  min-width: 0;
}
.footer-google-reviews__author {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2744;
}
.footer-google-reviews__time {
  font-size: 0.72rem;
  color: #5c6478;
  white-space: nowrap;
}
.footer-google-reviews__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #3a3f4a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.footer-google-reviews__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-google-reviews--card-block .footer-google-reviews__actions {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
}
.footer-google-reviews--card-block .footer-google-reviews__actions .btn {
  flex: 1 1 calc(50% - 0.375rem);
  width: calc(50% - 0.375rem);
  min-width: 0;
  font-size: 14px;
  font-weight: 100;
  text-align: center;
  box-sizing: border-box;
}
.footer-google-reviews--card-block .footer-google-reviews__actions .btn-primary {
  border: var(--button-border-width) solid var(--button-primary-bg);
}
@media (max-width: 640px) {
  .footer-google-reviews__actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
  .footer-google-reviews--card-block .footer-google-reviews__actions .btn {
    flex: 1 1 calc(50% - 0.375rem);
    width: calc(50% - 0.375rem);
  }
}
.site-footer-bar {
  padding: 1.1rem 1.5rem 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.88;
}
.site-footer-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.site-footer-bar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}
.site-footer-bar-sep {
  opacity: 0.55;
  user-select: none;
}
.site-footer-copyright {
  margin: 0;
}
.site-footer-bar--deploy {
  padding: 0.35rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer-bar--deploy .site-footer-bar-inner {
  justify-content: center;
}
.site-footer-deploy-rev {
  margin: 0;
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.site-footer-deploy-rev code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
@media (min-width: 900px) {
  .site-footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr 0.85fr;
  }
  .site-footer-col--social .site-footer-social {
    margin-left: 0;
  }
}

.prose p { margin-bottom: 0.75rem; }
.prose h2,
.prose h3,
.prose h4 {
  margin: 1.35rem 0 0.65rem;
  color: var(--navy);
  line-height: 1.3;
}
.prose h2 { font-size: 1.35rem; margin-top: 0; }
.prose h3 { font-size: 1.15rem; }
.prose ul:not(.ray-task-list):not(.footer-google-reviews__list):not(.brands-clients-grid):not(.cms-opening-hours-list),
.prose ol {
  margin: 0.65rem 0 1rem;
  padding-left: 1.5rem;
}
.prose ul:not(.ray-task-list):not(.footer-google-reviews__list):not(.brands-clients-grid):not(.cms-opening-hours-list) {
  list-style-type: disc;
}
.prose ol {
  list-style-type: decimal;
}
.prose li:not(.cms-opening-hours-row) {
  margin-bottom: 0.4rem;
  padding-left: 0.2rem;
}
.prose li > ul,
.prose li > ol {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose .footer-google-reviews__avatar {
  width: 32px;
  height: 32px;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}
.prose .service-showcase-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}
.prose .brands-trust .brand-logo-item img,
.prose .cms-trusted-brands .brand-logo-item img {
  width: auto;
  max-width: 160px;
  height: 42px;
  max-height: 42px;
  object-fit: contain;
  border-radius: 0;
}
.brand-showcase-modal .brand-showcase-gallery img {
  width: 100%;
  height: 120px;
  max-width: none;
  border-radius: 0;
}
.prose video,
.prose .ray-video-embed video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 8px;
}
.prose .media-embed--youtube {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 1rem 0;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.prose .media-embed--youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.prose iframe.ray-youtube-embed,
.prose .ray-youtube-embed {
  max-width: 100%;
  width: min(560px, 100%);
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 200px;
  display: block;
  margin: 1rem 0;
  border: 0;
  border-radius: 8px;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th,
.prose td {
  border: 1px solid #e0dcd4;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.prose th { background: #f7f5f0; font-weight: 600; }
.prose .ray-callout {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  margin: 1rem 0;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  background: #fff;
  box-shadow: var(--shadow);
}
.prose .ray-callout-info { border-left-color: #3b82f6; }
.prose .ray-callout-warning { border-left-color: #f59e0b; }
.prose .ray-callout-success { border-left-color: #22c55e; }
.prose .ray-callout-error { border-left-color: #ef4444; }
.prose .ray-callout-body { flex: 1; }
.prose .ray-callout-body p:last-child { margin-bottom: 0; }
.prose ul.ray-task-list {
  list-style: none;
  padding-left: 0;
}
.prose ul.ray-task-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.prose pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}
.prose code {
  background: #eef2f8;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.prose pre code { background: transparent; padding: 0; }

/* Wizard */
.mia-wizard.wizard-page {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  min-height: 70vh;
}
.mia-wizard.wizard-embed {
  max-width: none;
  width: 100%;
  margin: 2rem auto;
  padding-bottom: 1rem;
  min-height: auto;
  height: auto;
}
.mia-wizard.wizard-page.wizard-embed {
  margin: 0 auto;
  min-height: 70vh;
}
.prose .mia-wizard.wizard-embed { margin: 2rem 0; }
.prose .cms-services {
  margin: 2rem 0;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.prose .cms-related-services {
  margin: 2rem 0;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.prose .cms-trusted-brands {
  margin: 0 0 2rem;
  padding-top: 40px;
  max-width: none;
}
.prose .cms-trusted-brands .brands-marquee {
  padding-top: 0;
}
.brands-trust-view-all {
  padding: 0 0 2.5rem;
}

/* Clients grid (CMS shortcode [[clients]]) */
.brands-clients {
  padding: 2rem 0;
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}
.brands-clients-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.brands-clients-item {
  margin: 0;
  min-width: 0;
}
.brands-clients-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  height: 100%;
  padding: 1.5rem 1.35rem 1.35rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e8e4dc;
  text-align: left;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.brands-clients-card:hover {
  box-shadow: 0 6px 24px rgba(26, 39, 68, 0.1);
  border-color: rgba(201, 162, 39, 0.35);
}
.brands-clients-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0.5rem 0;
}
.brands-clients-logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}
.brands-clients-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.brands-clients-excerpt {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
.brands-clients-actions {
  margin-top: auto;
  padding-top: 0.25rem;
}
.brands-clients-actions .btn {
  width: 100%;
  text-align: center;
}
.prose .cms-clients {
  margin: 2rem 0;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.prose ul.brands-clients-grid {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  margin-right: 0;
}
.prose .brands-clients-grid > .brands-clients-item {
  margin-bottom: 0;
  padding-left: 0;
}
.prose .cms-clients .brands-clients-grid {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .brands-clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .brands-clients-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wizard-page,
  .wizard-embed {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .wizard-page {
    padding-bottom: 3rem;
  }
}
.mia-wizard .wizard-progress { height: 6px; background: var(--wizard-progress-track, #e0dcd4); border-radius: 3px; margin-bottom: 1.5rem; overflow: hidden; }
.mia-wizard.wizard-embed--single-page .wizard-progress { display: none; }
.mia-wizard .wizard-progress-bar { height: 100%; background: var(--wizard-progress-fill, var(--gold)); width: 0; transition: width 0.35s ease; }

.mia-wizard .wizard-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.35s ease;
  color: var(--wizard-card-text, var(--text));
  background: var(--wizard-card-bg, #fff);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.mia-wizard .wizard-card h2 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--wizard-heading, var(--navy)); }
.mia-wizard .wizard-single-page .wizard-single-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mia-wizard .wizard-single-page .wizard-field {
  margin: 0;
  padding: 0;
  border-bottom: none;
}
.mia-wizard .wizard-single-page .wizard-field-title,
.mia-wizard .wizard-step-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--text, #1e1e1e);
}
.mia-wizard .wizard-card h2.wizard-step-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--wizard-heading, var(--navy));
}
.mia-wizard .wizard-field-required {
  color: #c0392b;
  font-weight: 700;
}
.mia-wizard .wizard-single-page .wizard-field--error {
  outline: 2px solid #c0392b;
  outline-offset: 4px;
  border-radius: var(--radius);
}
.mia-wizard .wizard-help { color: var(--wizard-help-text, var(--muted)); font-size: 0.9rem; margin-bottom: 1.25rem; }

.mia-wizard .pill-grid { display: flex; flex-direction: column; gap: 0.65rem; }
.mia-wizard .pill-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--wizard-pill-border, #e0dcd4);
  border-radius: 999px;
  background: var(--wizard-pill-bg, #fff);
  color: var(--wizard-pill-text, var(--text));
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 48px;
}
.mia-wizard .pill-btn:hover, .mia-wizard .pill-btn.selected {
  border-color: var(--wizard-pill-selected-border, var(--gold));
  background: var(--wizard-pill-selected-bg, #fffbeb);
}
.mia-wizard .pill-btn.multi-selected {
  border-color: var(--wizard-pill-multi-border, var(--navy));
  background: var(--wizard-pill-multi-bg, #eef2ff);
}

.mia-wizard .wizard-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--wizard-input-border, #e0dcd4);
  background: var(--wizard-input-bg, #fff);
  color: var(--wizard-input-text, var(--text));
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.mia-wizard .wizard-textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}

.mia-wizard .wizard-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.mia-wizard .wizard-actions--forward-only { justify-content: flex-end; }
.mia-wizard .wizard-actions--forward-only .btn-primary { width: 100%; }
.mia-wizard .wizard-actions .btn-outline {
  background: transparent;
  color: var(--button-outline-text, var(--navy, #1a2744));
  border: var(--button-border-width, 2px) solid var(--button-outline-border, var(--navy, #1a2744));
}
.mia-wizard .wizard-actions .btn-outline:hover {
  background: var(--button-outline-hover-bg, #eef2f8);
  color: var(--button-outline-text, var(--navy, #1a2744));
}
.mia-wizard .wizard-actions .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.thankyou { text-align: center; padding-top: 3rem; }
.thankyou-card { background: #fff; padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.check-icon {
  width: 64px; height: 64px; line-height: 64px;
  background: var(--gold); color: var(--navy);
  border-radius: 50%; font-size: 2rem; margin: 0 auto 1rem;
}

.error-page {
  text-align: center;
  padding: 3rem 0 4rem;
  max-width: 36rem;
  margin: 0 auto;
}
.error-page-code {
  margin: 0 0 0.5rem;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.error-page h1 {
  margin: 0 0 0.75rem;
}
.error-page-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  text-align: left;
}
.error-page-lead p:last-child {
  margin-bottom: 0;
}
.error-page-lead img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border-radius: 8px;
}

/* CMS shortcode blocks */
.cms-block { margin: 2rem 0; }
.cms-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.cms-buttons--center,
.prose .cms-buttons--center {
  justify-content: center;
}
.prose .cms-buttons {
  margin: 1.5rem 0;
}

/* Opening hours — matches wizard/contact cards */
.prose .cms-opening-hours {
  margin: 1.5rem 0 2rem;
}
.cms-opening-hours {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 1.5rem;
  border: 1px solid #e8e4dc;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.prose .cms-opening-hours-title {
  margin: 0 0 1rem;
}
.cms-opening-hours-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a2744;
}
.cms-opening-hours-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.prose .cms-opening-hours-list {
  margin: 0;
  padding: 0;
}
.cms-opening-hours-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e8e4dc;
}
.cms-opening-hours-row:first-child {
  padding-top: 0;
}
.cms-opening-hours-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.prose .cms-opening-hours-row {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.prose .cms-opening-hours-day,
.prose .cms-opening-hours-time {
  display: block;
}
.prose .cms-opening-hours-title {
  color: #1a2744;
}
.cms-opening-hours-day {
  min-width: 0;
  font-weight: 500;
  color: #5c6478;
}
.cms-opening-hours-time {
  font-weight: 600;
  color: #1a2744;
  text-align: right;
  white-space: nowrap;
}
.prose .cms-opening-hours-time {
  color: #1a2744;
}
.cms-opening-hours-note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e8e4dc;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}
@media (max-width: 480px) {
  .cms-opening-hours-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .cms-opening-hours-time {
    text-align: left;
  }
}

/* Responsive banner */
.prose .cms-banner {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.cms-banner-picture,
.cms-banner-img {
  display: block;
  width: 100%;
  height: auto;
}
.prose .cms-banner img {
  margin: 0;
  border-radius: var(--radius);
  max-width: 100%;
}
.cms-banner-link {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
}
.cms-banner-link:focus-visible {
  outline: 2px solid var(--color-accent, #c9a227);
  outline-offset: 2px;
}

/* CMS page: hero first — flush under header, no cream gap */
.prose-page--hero-lead {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}
.prose-page--hero-lead > .breadcrumb,
.prose-page--hero-lead > h1 {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.prose-page--hero-lead > .breadcrumb {
  padding-top: 1.25rem;
}
.prose-page--hero-lead > h1:not(:first-child) {
  padding-top: 1.25rem;
}
.prose-page--hero-lead .prose > :not(.cms-hero):not(.brand-showcase-modal):not(:has(> .cms-hero)) {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.prose-page--hero-lead .prose > p:has(> .cms-hero),
.prose-page--hero-trail .prose > p:has(> .cms-hero) {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.prose-page--hero-lead .prose > .cms-pages-list,
.prose-page--hero-trail .prose > .cms-pages-list,
.prose-page--home .prose > .cms-pages-list {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.prose-page--hero-lead .prose > h2 {
  margin-top: 0;
  max-width: 940px;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
/* CMS hero — full width inside page content */
.prose .cms-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 2rem;
  text-align: center;
}
@media (max-width: 768px) {
  .prose .cms-hero {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}
.prose .cms-hero:first-child {
  margin-top: 0;
}
.prose-page--hero-lead .prose > .cms-hero:first-child {
  margin-top: 0;
  margin-bottom: 2rem;
}
/* Trailing CMS hero (e.g. CTA before footer) — no cream gap below */
.prose-page--hero-trail {
  padding-bottom: 0;
}
.prose-page--hero-trail .prose > .cms-hero:last-of-type {
  margin-bottom: 0;
}
.prose-page--hero-trail .prose > .cms-hero:last-of-type ~ p:empty,
.prose-page--hero-trail .prose > p:empty:last-child,
.prose-page--hero-trail .prose > .cms-hero:last-of-type ~ p:has(> br:only-child),
.prose-page--hero-trail .prose > p:has(> br:only-child):last-child {
  display: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}
/* After empty tail is stripped, hero is last child — flush to footer */
.prose-page:has(.prose > .cms-hero:last-child),
.prose-page:has(.prose > p:last-child > .cms-hero) {
  padding-bottom: 0;
}
.prose-page .prose > .cms-hero:last-child,
.prose-page .prose > p:last-child > .cms-hero {
  margin-bottom: 0;
}
.prose .cms-hero h1 {
  margin-bottom: 1rem;
}
/* Default hero text on light backgrounds (theme typography color overrides when set) */
.prose .cms-hero--light-bg h1 {
  color: var(--navy);
}
.prose .cms-hero--light-bg .hero-sub {
  color: var(--muted);
}
.prose .cms-hero--light-bg .eyebrow {
  color: var(--gold);
}
.cms-hero {
  position: relative;
  overflow: hidden;
}
.cms-hero--has-bg {
  background-color: var(--navy);
}
.cms-hero--light-bg {
  color: var(--text);
}
.cms-hero--light-bg .eyebrow {
  color: var(--navy);
}
.cms-hero--light-bg h1 {
  color: var(--navy);
}
.cms-hero--light-bg .hero-sub {
  color: var(--muted);
}
.cms-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}
.cms-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  max-width: none;
}
.cms-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(15, 35, 64, 0.82) 0%, rgba(26, 54, 93, 0.75) 100%);
  pointer-events: none;
}
.cms-hero-inner {
  position: relative;
  z-index: 2;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  margin-top: 0.25rem;
}
.hero-actions .hero-contact-btn--call {
  display: none;
}
.hero-actions .hero-contact-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.92);
}
@media (max-width: 767px) {
  .hero-actions .hero-contact-btn--link {
    display: none;
  }
  .hero-actions .hero-contact-btn--call {
    display: inline-flex;
  }
}
/* Per-hero colors are applied inline from admin (beats theme typography rules) */
.cms-hero.cms-hero--color-overrides {
  /* marker class only */
}
.prose .cms-hero.cms-hero--boxed {
  box-sizing: border-box;
  overflow: hidden;
}
/* Boxed hero with margin: full viewport width minus inset (centered breakout) */
.prose .cms-hero.cms-hero--boxed.cms-hero--inset {
  box-sizing: border-box;
  width: calc(100vw - var(--cms-hero-ml, 0px) - var(--cms-hero-mr, 0px));
  max-width: none;
  margin-top: var(--cms-hero-mt, 0);
  margin-bottom: var(--cms-hero-mb, 0);
  margin-left: calc(50% - 50vw + var(--cms-hero-ml, 0px));
  margin-right: 0;
}
.prose .cms-hero.cms-hero--boxed:not(.cms-hero--inset) {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 768px) {
  /* Keep viewport breakout on mobile — do not add margin inside padded .section */
  .prose .cms-hero.cms-hero--boxed.cms-hero--inset {
    width: calc(100vw - var(--cms-hero-ml, 0px) - var(--cms-hero-mr, 0px));
    max-width: none;
    margin-left: calc(50% - 50vw + var(--cms-hero-ml, 0px));
    margin-right: 0;
  }
}
.prose .cms-hero.cms-hero--boxed .cms-hero-bg,
.prose .cms-hero.cms-hero--boxed .cms-hero-overlay {
  border-radius: inherit;
}
/* Google Business reviews (Places API) */
.cms-google-reviews {
  margin: 2rem auto;
  max-width: 960px;
  padding: 1.5rem 1.25rem;
  border: 1px solid #e8e4dc;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #faf9f6 100%);
  box-shadow: 0 8px 28px rgba(26, 39, 68, 0.06);
}
.cms-google-reviews__header {
  margin-bottom: 1.25rem;
}
.cms-google-reviews__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted, #5c6478);
}
.cms-google-reviews__brand {
  display: inline-block;
  margin-right: 0.35rem;
  font-weight: 700;
  color: var(--navy, #1a2744);
}
.cms-google-reviews__rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.cms-google-reviews__score {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy, #1a2744);
}
.cms-google-reviews__stars {
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.08em;
  background: linear-gradient(
    90deg,
    var(--gold, #c9a227) 0%,
    var(--gold, #c9a227) calc((var(--rating, 0) / 5) * 100%),
    #d8d4cc calc((var(--rating, 0) / 5) * 100%),
    #d8d4cc 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cms-google-reviews__stars--lg {
  font-size: 1.35rem;
}
.cms-google-reviews__stars--sm {
  font-size: 0.9rem;
  display: block;
  margin-top: 0.15rem;
}
.cms-google-reviews__count {
  font-size: 0.95rem;
  color: var(--muted, #5c6478);
}
.cms-google-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cms-google-reviews__card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border: 1px solid #ebe7df;
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
}
.cms-google-reviews__card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.cms-google-reviews__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.cms-google-reviews__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy, #1a2744);
  background: #eef1f6;
}
.cms-google-reviews__card-meta {
  min-width: 0;
}
.cms-google-reviews__author {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy, #1a2744);
  text-decoration: none;
}
a.cms-google-reviews__author:hover,
a.cms-google-reviews__author:focus-visible {
  text-decoration: underline;
}
.cms-google-reviews__time {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted, #5c6478);
}
.cms-google-reviews__quote {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text, #1e1e1e);
}
.cms-google-reviews__quote p {
  margin: 0;
}
.cms-google-reviews__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cms-google-reviews__attribution {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted, #5c6478);
}
/* Compact legacy layout */
.cms-google-reviews--compact {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.cms-google-reviews__link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e8e4dc;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text, #1e1e1e);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cms-google-reviews__link:hover,
.cms-google-reviews__link:focus-visible {
  border-color: var(--gold, #c9a227);
  box-shadow: 0 6px 20px rgba(26, 39, 68, 0.1);
  outline: none;
}
.cms-google-reviews__cta {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy, #1a2744);
}
.cms-google-reviews--card .cms-google-reviews__link {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.25rem 1.5rem;
}
.cms-google-reviews--card .cms-google-reviews__cta {
  margin-left: 0;
}
@media (max-width: 640px) {
  .cms-google-reviews {
    padding: 1.25rem 1rem;
  }
  .cms-google-reviews__actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
  .cms-google-reviews__cta {
    margin-left: 0;
    width: 100%;
  }
}
.cms-faq { border: 1px solid #e8e4dc; border-radius: var(--radius); overflow: hidden; }
.cms-faq-item { border-bottom: 1px solid #e8e4dc; }
.cms-faq-item:last-child { border-bottom: none; }
.cms-faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text, #1e1e1e);
}
.cms-faq-question::-webkit-details-marker,
.cms-faq-question::marker {
  display: none;
  content: '';
}
.cms-faq-question::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  color: currentColor;
}
.cms-faq-item[open] > .cms-faq-question::after {
  content: '−';
}
.cms-faq-answer { padding: 0 1.25rem 1.25rem; }
/* Gallery — 2-col thumbs on mobile, scales up on larger screens */
.prose .cms-gallery {
  width: 100%;
  max-width: 100%;
}
.prose .cms-gallery img {
  border-radius: 0;
  margin: 0;
}
.cms-gallery-heading {
  margin: 0 0 1.25rem;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.3;
}
.cms-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}
.cms-gallery-item {
  margin: 0;
  min-width: 0;
}
.cms-gallery-link {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #e8e4dc;
  box-shadow: 0 2px 8px rgba(26, 39, 68, 0.08);
  -webkit-tap-highlight-color: transparent;
}
.cms-gallery-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 39, 68, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.cms-gallery-link:focus-visible::after,
.cms-gallery-link:active::after {
  opacity: 1;
}
.cms-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.cms-gallery-link:active img {
  transform: scale(1.03);
}
.cms-gallery-item figcaption {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 0.35rem;
  padding: 0 0.1rem;
}
@media (min-width: 480px) {
  .cms-gallery-grid {
    gap: 0.65rem;
  }
}
@media (min-width: 640px) {
  .cms-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .cms-gallery-item figcaption {
    font-size: 0.8125rem;
  }
}
@media (min-width: 900px) {
  .cms-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }
  .cms-gallery-link {
    border-radius: var(--radius);
  }
  .cms-gallery-link:hover img {
    transform: scale(1.04);
  }
  .cms-gallery-link:hover::after {
    opacity: 1;
  }
}
.cms-map-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0ede6;
}
.cms-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cms-contact-form {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.cms-contact-form-title { margin: 0 0 1rem; font-size: 1.25rem; }
.cms-contact-form-inner { display: grid; gap: 1rem; }
.cms-field span { display: block; font-weight: 500; margin-bottom: 0.35rem; }
.cms-field input,
.cms-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0dcd4;
  border-radius: var(--radius);
  font: inherit;
}
.cms-contact-form-success {
  color: #166534;
  font-weight: 500;
  margin: 0;
}
.cms-contact-form-wizard { margin: 1.25rem 0 0; }
.turnstile-field {
  margin: 0.75rem 0 1rem;
  min-height: 65px;
}
.wizard-submit-card .turnstile-field {
  margin: 1rem 0 1.25rem;
}
.cms-gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 14, 24, 0.94);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0.75rem 1.25rem;
  touch-action: pan-y pinch-zoom;
}
.cms-gallery-lightbox.is-open {
  display: flex;
}
.cms-gallery-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  position: relative;
}
.cms-gallery-lightbox img {
  max-width: 100%;
  max-height: min(72vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
}
.cms-gallery-lightbox-caption {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  text-align: center;
  max-width: 36rem;
  margin-top: 0.75rem;
  padding: 0 1rem;
  line-height: 1.4;
}
.cms-gallery-lightbox-caption:empty {
  display: none;
}
.cms-gallery-lightbox-close,
.cms-gallery-lightbox-nav {
  position: absolute;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cms-gallery-lightbox-close:hover,
.cms-gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
.cms-gallery-lightbox-close {
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  line-height: 1;
  z-index: 2;
}
.cms-gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
  z-index: 2;
}
.cms-gallery-lightbox-nav--prev {
  left: max(0.35rem, env(safe-area-inset-left));
}
.cms-gallery-lightbox-nav--next {
  right: max(0.35rem, env(safe-area-inset-right));
}
.cms-gallery-lightbox-counter {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  z-index: 2;
}
@media (min-width: 640px) {
  .cms-gallery-lightbox {
    padding: 2rem;
  }
  .cms-gallery-lightbox-nav {
    width: 3rem;
    height: 3rem;
  }
  .cms-gallery-lightbox-nav--prev {
    left: 1rem;
  }
  .cms-gallery-lightbox-nav--next {
    right: 1rem;
  }
}
