/*
 * Public website — the Next.js (public) design in plain CSS: the same tokens (variables.css), sizes and states as the
 * Tailwind classes of components/layout/*, home/*, and the public pages. Breakpoints are in site-responsive.css
 * (640 / 768 / 1024 / 1280 / 1536 px, as Tailwind's sm / md / lg / xl / 2xl).
 */
:root {
  --container-content: 80rem;
  --header-height: 4.5rem;
  --shadow-elevated: 0 4px 6px -2px rgb(17 24 39 / 0.05), 0 10px 15px -3px rgb(17 24 39 / 0.08);
  --shadow-fab: 0 8px 16px -4px rgb(17 24 39 / 0.16), 0 2px 4px -1px rgb(8 27 89 / 0.08);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-3xl: calc(var(--radius) * 2.2);
  --text-body-lg: 1.125rem;
}

body.site { background: var(--tk-page-bg, var(--bg-page)); line-height: 1.5; }
/* Theme tokens (Visual Builder → Global Design, spec §11): the shared neutrals of the public site. Unset, each one
   is exactly the variables.css value, so the website looks the same until an administrator changes it. */
body.site {
  --text-secondary: var(--tk-text-secondary, #374151);
  --text-muted: var(--tk-text-muted, #667085);
  --bg-surface: var(--tk-surface, #ffffff);
  --border-default: var(--tk-border, #e7ebf2);
}
.page-shell { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { display: flex; flex: 1; flex-direction: column; outline: none; }
.container { width: 100%; max-width: var(--container-content); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
/* Tailwind preflight: headings inherit the body weight (Poppins renders its lightest loaded weight, 500); explicit
   weights below win because :where() adds no specificity. Anchor targets clear the sticky header. */
:where(body.site) :is(h1, h2, h3, h4, h5, h6) { font-weight: 500; }
html:has(body.site) { scroll-behavior: smooth; }
:where(body.site) [id] { scroll-margin-top: 5rem; }
.site-skip:focus { position: fixed; top: 1rem; left: 1rem; z-index: 100; background: var(--brand-primary); color: #fff; font-size: var(--text-small); font-weight: 500; border-radius: var(--radius); padding: 0.5rem 1rem; }

/* ---------- section rhythm (SectionContainer) ---------- */
.section-sm { padding: 2rem 0; }
.section-md { padding: 3rem 0; }
.section-lg { padding: 4rem 0; }
.eyebrow { margin: 0; font-size: var(--text-overline); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-secondary-strong); }

/* ---------- buttons (public) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tk-btn-height, 2.75rem); padding: 0 var(--tk-btn-pad-x, 1rem); border: 1px solid transparent; border-radius: var(--tk-btn-radius, var(--radius));
  font-size: var(--tk-btn-size, var(--text-small)); font-weight: var(--tk-btn-weight, 500); line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--tk-focus, var(--brand-accent)) 50%, transparent); outline-offset: 1px; }
.btn-primary { background: var(--tk-btn-bg, var(--brand-primary)); color: var(--tk-btn-text, #fff); }
.btn-primary:hover { background: var(--tk-btn-hover-bg, color-mix(in srgb, var(--tk-btn-bg, var(--brand-primary)) 80%, white)); color: var(--tk-btn-hover-text, var(--tk-btn-text, #fff)); }
/* The orange call-to-action buttons follow the header's Get a Quote tokens (one CTA style site-wide). */
.btn-orange { background: var(--tk-header-cta, var(--brand-secondary-strong)); color: var(--tk-header-cta-text, #fff); }
.btn-orange:hover { background: var(--tk-header-cta-hover, color-mix(in srgb, var(--tk-header-cta, var(--brand-secondary-strong)) 90%, white)); }
.btn-outline { background: var(--bg-surface); border-color: var(--tk-outline-border, var(--border-default)); color: var(--tk-outline-text, var(--text-primary)); }
.btn-outline:hover { background: var(--tk-outline-hover-bg, var(--bg-muted)); }
.btn-pill { border-radius: 999px; }
.btn[aria-busy="true"] { opacity: 0.8; }

/* ---------- header: see site-header.css (two-row header, mega menus, theme colours) ---------- */

/* ---------- mobile drawer ---------- */
.mobile-nav {
  position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0; width: 100%; max-width: 26.25rem; height: 100dvh; max-height: 100dvh;
  border: 0; background: var(--bg-surface); color: var(--text-primary); overflow: hidden;
  flex-direction: column;
}
.mobile-nav[open] { display: flex; animation: slide-in-left 0.3s ease; }
.mobile-nav::backdrop { background: rgb(6 20 63 / 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes slide-in-left { from { transform: translateX(-100%); } }
.mobile-nav-head {
  position: relative; isolation: isolate; overflow: hidden; flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem 2.5rem; color: #fff;
  background: linear-gradient(to bottom right, var(--brand-deep), var(--brand-primary));
}
.mobile-nav-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/images/footer/world-map-dots.svg") no-repeat 70% 30% / auto 160%; opacity: 0.15; }
.mobile-nav-brand { min-width: 0; }
.mobile-nav-brand img { height: 3rem; width: auto; }
.mobile-nav-brand p { margin: 0.75rem 0 0; font-size: var(--text-small); color: rgb(255 255 255 / 0.8); }
.mobile-nav-close { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.1); color: #fff; cursor: pointer; }
.mobile-nav-close:hover { background: rgb(255 255 255 / 0.2); }
.mobile-nav-close .icon { width: 1.5rem; height: 1.5rem; }
.mobile-nav-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mobile-nav-body {
  position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  margin-top: -1.25rem; padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; background: var(--bg-surface);
}
.mobile-nav-list { list-style: none; margin: 0; padding: 0; }
.mobile-nav-list > li { padding: 0.125rem 0; border-bottom: 1px solid color-mix(in srgb, var(--border-default) 70%, transparent); }
.mobile-nav-list > li:last-child { border-bottom: 0; }
.mobile-nav-row {
  display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 3.5rem; padding: 0 1rem; border: 0; border-radius: var(--radius-xl);
  background: transparent; color: var(--brand-deep); font-size: 1.125rem; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mobile-nav-row:hover { background: color-mix(in srgb, var(--brand-secondary) 10%, transparent); text-decoration: none; }
.mobile-nav-row.is-active { background: color-mix(in srgb, var(--brand-secondary) 10%, transparent); color: var(--brand-secondary-strong); }
.mobile-nav-row span { flex: 1; }
.mobile-nav-row:focus-visible, .help-card:focus-visible, .mobile-quote:focus-visible { outline: 2px solid var(--brand-secondary-strong); outline-offset: 0; }
.mobile-nav-icon { width: 1.5rem; height: 1.5rem; stroke-width: 1.75; }
.mobile-nav-row .chevron, .mobile-nav-row .chevron-end { width: 1.25rem; height: 1.25rem; color: currentColor; }
.mobile-nav-row[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.mobile-services { display: flex; flex-direction: column; gap: 0.125rem; margin: 0 0 0.5rem 3.5rem; padding-left: 0.75rem; border-left: 2px solid color-mix(in srgb, var(--brand-secondary) 30%, transparent); }
.mobile-services[hidden] { display: none; }
.mobile-services-category { display: flex; align-items: center; min-height: 2.75rem; padding: 0 0.5rem; border-radius: var(--radius-sm); color: var(--brand-deep); font-size: var(--text-small); font-weight: 600; text-decoration: none; }
.mobile-services-category:hover { color: var(--brand-secondary-strong); }
.mobile-services-item { display: flex; align-items: center; min-height: 2.5rem; padding: 0 0.5rem; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: var(--text-small); text-decoration: none; }
.mobile-services-item:hover { background: var(--bg-muted); }
.mobile-services-all { display: flex; align-items: center; gap: 0.25rem; min-height: 2.75rem; padding: 0 0.5rem; color: var(--brand-secondary-strong); font-size: var(--text-small); font-weight: 600; text-decoration: none; }
.help-card { display: flex; flex-shrink: 0; align-items: center; gap: 1rem; margin-top: 1.25rem; padding: 1rem; border-radius: var(--radius-2xl); background: var(--bg-page); color: var(--brand-deep); text-decoration: none; transition: background-color 0.15s ease; }
.help-card:hover { background: var(--bg-muted); text-decoration: none; }
.help-card-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--brand-secondary-strong); color: #fff; }
.help-card-icon .icon { width: 1.5rem; height: 1.5rem; fill: #fff; }
.help-card-text { min-width: 0; flex: 1; }
.help-card-text > span { display: block; }
.help-card-label { font-size: var(--text-small); color: var(--text-secondary); }
.help-card-phone { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--brand-deep); }
.help-card-note { font-size: var(--text-caption); color: var(--text-muted); }
.mobile-quote { display: flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 0.5rem; height: 3.5rem; margin-top: 1rem; border-radius: var(--radius-xl); background: var(--brand-secondary-strong); color: #fff; font-size: 1rem; font-weight: 600; text-decoration: none; }
.mobile-quote:hover { background: color-mix(in srgb, var(--brand-secondary-strong) 90%, white); text-decoration: none; }
.mobile-follow { display: flex; flex-shrink: 0; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.mobile-follow h2 { flex-shrink: 0; font-size: 1rem; font-weight: 600; color: var(--brand-deep); }
.mobile-follow span { flex: 1; height: 1px; background: var(--border-default); }
.mobile-nav-body > .social-links { margin-top: 1rem; flex-shrink: 0; }

/* ---------- search dialog ---------- */
.search-dialog { width: min(32rem, calc(100vw - 2rem)); margin: 15vh auto auto; overflow: hidden; }
.search-form { display: flex; flex-direction: column; }
.search-input-row { display: flex; align-items: center; gap: 0.5rem; padding: 0 0.5rem 0 0.75rem; border-bottom: 1px solid var(--border-default); }
.search-input-row > .icon { width: 1rem; height: 1rem; color: var(--text-muted); }
.search-input-row input { flex: 1; min-width: 0; height: 3rem; border: 0; background: transparent; font-size: var(--text-small); outline: none; }
.search-input-row input::-webkit-search-cancel-button { display: none; }
.search-suggestions { display: flex; flex-direction: column; padding: 0.5rem; }
.search-group-label { margin: 0; padding: 0.375rem 0.5rem; font-size: var(--text-caption); font-weight: 500; color: var(--text-muted); }
.search-suggestions button { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-primary); font-size: var(--text-small); text-align: left; cursor: pointer; }
.search-suggestions button:hover, .search-suggestions button:focus-visible { background: var(--bg-muted); outline: none; }
.search-suggestions button:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-accent); }

/* ---------- social icons ---------- */
.social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; list-style: none; margin: 0; padding: 0; }
.social-lg { gap: 0.75rem; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--brand-secondary-strong); color: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.social-lg .social-icon { width: 2.75rem; height: 2.75rem; }
.social-glyph { width: 1rem; height: 1rem; }
.social-lg .social-glyph { width: 1.25rem; height: 1.25rem; }
a.social-icon:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3); }
a.social-icon:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- newsletter ---------- */
.newsletter { padding: 3rem 0; border-top: 1px solid var(--border-default); background: var(--tk-section-alt, var(--bg-page)); }
.newsletter-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.newsletter-text { display: flex; flex-direction: column; gap: 0.25rem; max-width: 28rem; }
.newsletter-text h2 { font-size: 1.25rem; line-height: 1.3; }
.newsletter-text p { margin: 0; }
.newsletter-form-wrap { width: 100%; max-width: 36rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter-inputs { display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter-inputs .field { flex: 1; }
/* Qualified: the shared `.field input:not(…)` rule (components.css) would otherwise set its own radius and padding. */
.newsletter .newsletter-inputs .field input.pill-input { width: 100%; height: 3rem; min-height: 3rem; padding: 0 1.25rem; border: 1px solid var(--tk-field-border, var(--border-default)); border-radius: 999px; background: var(--tk-field-bg, var(--bg-surface)); color: var(--tk-field-text, inherit); font-size: var(--text-small); }
.pill-input:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-accent) 50%, transparent); outline-offset: 0; border-color: var(--brand-accent); }
.pill-input[aria-invalid="true"] { border-color: var(--state-error); }
.pill-button { height: 3rem; padding: 0 1.75rem; border: 0; border-radius: 999px; background: var(--tk-header-cta, var(--brand-secondary-strong)); color: var(--tk-header-cta-text, #fff); font-size: var(--tk-btn-size, var(--text-small)); font-weight: var(--tk-btn-weight, 500); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.pill-button:hover { background: var(--tk-header-cta-hover, color-mix(in srgb, var(--tk-header-cta, var(--brand-secondary-strong)) 90%, white)); }
.pill-button:disabled { opacity: 0.7; cursor: progress; }
.honeypot { display: none; }
.newsletter-consent label { flex: 1; min-width: 0; font-size: var(--text-caption); font-weight: 400; color: var(--text-muted); }
.newsletter-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.newsletter-consent a:hover { color: var(--text-primary); }
.newsletter-consent input { width: 1rem; height: 1rem; margin-top: 0.125rem; }
.newsletter-done { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: var(--radius); background: color-mix(in srgb, var(--state-success) 10%, white); color: var(--state-success-text); font-size: var(--text-small); font-weight: 500; }
.newsletter-done .icon { width: 1.25rem; height: 1.25rem; }
.newsletter-failure { margin: 0; font-size: var(--text-small); color: var(--state-error-text); }

/* ---------- footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--tk-footer-bg, var(--brand-primary)); color: var(--tk-footer-text, #fff); }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/images/footer/world-map-dots.svg") no-repeat center / auto 115%; opacity: 0.1; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; padding-top: 4rem; padding-bottom: 3rem; }
.footer-brand { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.footer-logo { height: 3rem; width: auto; }
.footer-brand p { margin: 0; max-width: 18.75rem; font-size: var(--text-small); line-height: 1.625; color: rgb(255 255 255 / 0.7); }
.footer-column { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-column h2 { font-size: 1rem; font-weight: 600; color: var(--tk-footer-heading, #fff); }
.footer-column ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-column a { border-radius: 2px; color: var(--tk-footer-link, rgb(255 255 255 / 0.9)); font-size: var(--text-small); text-decoration: none; transition: color 0.15s ease; }
.footer-column a:hover { color: var(--tk-footer-link-hover, var(--brand-secondary)); }
.footer-plain { font-size: var(--text-small); color: rgb(255 255 255 / 0.6); }
.site-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.2); }
.footer-bottom-row { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-top: 1.5rem; padding-bottom: 6rem; font-size: var(--text-caption); }
.footer-bottom-row p { margin: 0; color: rgb(255 255 255 / 0.7); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; list-style: none; margin: 0; padding: 0; }
.footer-legal li { padding: 0 0.625rem; border-left: 1px solid rgb(255 255 255 / 0.4); }
.footer-legal li:first-child { padding-left: 0; border-left: 0; }
.footer-legal li:last-child { padding-right: 0; }
.footer-legal a { color: var(--tk-footer-link, rgb(255 255 255 / 0.9)); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed; left: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--border-default); border-radius: 999px; background: var(--bg-surface); color: var(--text-primary);
  box-shadow: var(--shadow-elevated); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top .icon { width: 1.25rem; height: 1.25rem; }

/* ---------- inner page header ---------- */
.inner-hero { position: relative; overflow: hidden; padding: 2.5rem 0; background: var(--brand-primary); color: #fff; }
.inner-hero.has-image { background: var(--brand-deep); }
.inner-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inner-hero-shade { position: absolute; inset: 0; background: rgb(6 20 63 / 0.7); }
.inner-hero-content { position: relative; display: flex; flex-direction: column; gap: 0.75rem; }
.inner-hero-content.is-center { align-items: center; text-align: center; }
.inner-hero h1 { color: #fff; font-size: var(--text-h1); line-height: 1.15; }
.inner-hero-subtitle { margin: 0; max-width: 42rem; font-size: var(--text-body-lg); color: rgb(255 255 255 / 0.8); }
.inner-hero-cta { margin-top: 0.5rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; list-style: none; margin: 0; padding: 0; font-size: var(--text-small); color: rgb(255 255 255 / 0.7); overflow-wrap: anywhere; }
.breadcrumbs a { color: rgb(255 255 255 / 0.7); text-decoration: none; transition: color 0.15s ease; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current="page"] { color: #fff; }
.breadcrumbs a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.breadcrumb-separator { display: inline-flex; }
.breadcrumb-separator .icon { width: 0.875rem; height: 0.875rem; }

/* ---------- alerts, empty states (public) ---------- */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 0 0.5rem; padding: 0.5rem 0.625rem; border: 1px solid var(--border-default); border-radius: var(--radius); font-size: var(--text-small); }
.notice > .icon { width: 1rem; height: 1rem; margin-top: 0.15rem; }
.notice p { margin: 0; }
.notice-info { background: color-mix(in srgb, var(--state-info) 10%, white); color: var(--state-info-text); }
.notice-success { background: color-mix(in srgb, var(--state-success) 10%, white); color: var(--state-success-text); }
.notice-warning { background: color-mix(in srgb, var(--state-warning) 10%, white); color: var(--state-warning-text); }
.notice-error { background: var(--bg-surface); color: var(--state-error-text); }
.empty-block { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 3rem 1.5rem; border: 1px dashed var(--border-default); border-radius: var(--radius-xl); text-align: center; }
.empty-block-icon { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 999px; background: var(--bg-muted); color: var(--text-muted); }
.empty-block-icon .icon { width: 1.5rem; height: 1.5rem; }
.empty-block.is-error .empty-block-icon { background: color-mix(in srgb, var(--state-error) 10%, white); color: var(--state-error-text); }
.empty-block-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-primary); }
h1.empty-block-title { font-size: 1.25rem; }
.empty-block-text { margin: 0; max-width: 28rem; font-size: var(--text-small); color: var(--text-muted); }
.empty-block-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }

/* ---------- toasts on the site (sonner, top-right) ---------- */
body.site .toast-region { top: 1rem; right: 1rem; }
