:root {
    --color-navy: #0D2240;
    --color-navy-soft: #16325A;
    --color-primary: #15407A;
    --color-primary-hover: #0F3263;
    --color-primary-soft: #DCE7F5;

    --color-accent: #E0232E;
    --color-accent-hover: #BF1A24;
    --color-accent-soft: #FCE3E4;

    --color-sky: #2E9BD6;
    --color-sky-soft: #E2F1FA;

    --color-surface: #FFFFFF;
    --color-surface-muted: #F2F6FB;
    --color-surface-sunken: #E4ECF5;

    --color-text: #0F1C2E;
    --color-text-muted: #4A586B;
    --color-text-faint: #7B8899;
    --color-text-on-dark: #FFFFFF;
    --color-text-on-dark-muted: rgba(255, 255, 255, 0.74);

    --color-border: #DCE4EE;
    --color-border-strong: #BFCCDB;

    --color-success: #1F8A5B;
    --color-error: #C43E3E;

    --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-rg: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.75rem;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 1000px;

    --shadow-sm: 0 1px 2px rgba(13, 34, 64, 0.06);
    --shadow-md: 0 14px 32px rgba(13, 34, 64, 0.10);
    --shadow-lg: 0 30px 60px rgba(13, 34, 64, 0.18);

    --transition-fast: 120ms ease-out;
    --transition-medium: 220ms ease-out;

    --container-max: 1220px;
    --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 8px);
    background-color: var(--color-navy);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-rg);
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
}

h1 { font-size: var(--text-4xl); line-height: 52px; }
h2 { font-size: 28px; line-height: 36px; }

@media (min-width: 640px) { h2 { font-size: 32px; line-height: 40px; } }
@media (min-width: 900px) { h2 { font-size: 40px; line-height: 48px; } }
h3 { font-size: var(--text-xl); line-height: 28px; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }
button { font: inherit; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--color-sky);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-5);
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-rg);
    line-height: 24px;
    min-height: 52px;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    white-space: nowrap;
}
.button:active { transform: translateY(1px); }

.button-primary {
    background: var(--color-accent);
    color: var(--color-text-on-dark);
}
.button-primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-text-on-dark);
}

.button-ghost {
    background: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.button-ghost:hover {
    background: var(--color-primary);
    color: var(--color-text-on-dark);
}

.button-light {
    background: var(--color-surface);
    color: var(--color-navy);
}
.button-light:hover {
    background: var(--color-sky-soft);
    color: var(--color-navy);
}

.button-outline-light {
    background: transparent;
    color: var(--color-text-on-dark);
    border-color: rgba(255, 255, 255, 0.6);
}
.button-outline-light:hover {
    background: var(--color-text-on-dark);
    color: var(--color-navy);
    border-color: var(--color-text-on-dark);
}

.button-sm {
    min-height: 40px;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    line-height: 20px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(1.4) blur(8px);
    -webkit-backdrop-filter: saturate(1.4) blur(8px);
    box-shadow: 0 1px 0 var(--color-border);
    z-index: 20;
}

.site-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
}

.brand-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.brand-name {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
}

.brand-name-main {
    color: var(--color-primary);
    font-size: 20px;
    line-height: 20px;
}

.brand-name-sub {
    color: var(--color-accent);
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 8px;
    margin-top: 4px;
}

.site-nav { display: flex; align-items: center; gap: var(--space-3); }

.nav-menu {
    display: none;
    list-style: none;
    align-items: center;
    gap: var(--space-6);
}

.nav-menu a {
    color: var(--color-text);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--text-rg);
    line-height: 24px;
    padding: var(--space-2) 0;
    /* Underline drawn as a shadow so it adds no height and the text stays centered. */
    box-shadow: inset 0 -2px 0 transparent;
}

/* Flex items are block-level, so each link box is exactly padding plus line height. */
.nav-menu li { display: flex; }

.nav-menu a:hover {
    color: var(--color-primary);
    box-shadow: inset 0 -2px 0 var(--color-accent);
}

.nav-menu .nav-cta-item a,
.nav-menu .nav-cta-item a:hover {
    box-shadow: none;
}

.nav-menu .nav-cta-item .button-primary,
.nav-menu .nav-cta-item .button-primary:hover {
    color: var(--color-text-on-dark);
    padding: var(--space-2) var(--space-4);
    line-height: 20px;
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600 !important;
    color: var(--color-navy) !important;
    white-space: nowrap;
}

.nav-phone i {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 14px;
}

.nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    color: var(--color-navy);
}

.nav-toggle-icon {
    grid-column: 1;
    grid-row: 1;
    font-size: 20px;
    line-height: 1;
    transition: opacity var(--transition-fast), transform var(--transition-medium);
}

.nav-toggle-icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon-open {
    opacity: 0;
    transform: rotate(90deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

.nav-menu[data-open="true"] {
    display: flex;
    position: absolute;
    inset: var(--header-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) 0 var(--space-5);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.nav-menu[data-open="true"] li { border-bottom: 1px solid var(--color-border); }
.nav-menu[data-open="true"] li:last-child { border-bottom: 0; }
.nav-menu[data-open="true"] li { display: block; }
.nav-menu[data-open="true"] a { display: block; padding: var(--space-4) var(--space-5); box-shadow: none; text-align: center; }
.nav-menu[data-open="true"] .nav-phone { display: flex; justify-content: center; }
.nav-menu[data-open="true"] .nav-cta-item { padding: var(--space-4) var(--space-5) 0; }
.nav-menu[data-open="true"] .nav-cta-item .button { display: flex; width: 100%; padding: var(--space-3); }

/* ---------- Section basics ---------- */

.section {
    padding-block: var(--space-16);
}

.section-header {
    max-width: 44rem;
    margin: 0 auto var(--space-10);
    text-align: center;
}

.section-header-left {
    margin-inline: 0;
    text-align: left;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-3);
}

.section-title {
    margin-bottom: var(--space-3);
    color: var(--color-navy);
}

.section-lead {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    line-height: 28px;
}

.section-lead-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.section-lead-link:hover {
    color: var(--color-accent);
    text-decoration-thickness: 2px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: var(--space-10) var(--space-12);
    background:
        radial-gradient(1200px 500px at 100% 0%, var(--color-sky-soft), transparent 60%),
        var(--color-surface-muted);
}

.hero-grid {
    display: grid;
    gap: var(--space-10);
    align-items: center;
}

.hero-copy { min-width: 0; }

/* One h1: the headline, then the keyword line as a plain label under it. */
.hero-heading {
    display: flex;
    flex-direction: column;
    font-size: inherit;
    margin: 0;
}

.hero-title {
    display: block;
    font-size: 36px;
    line-height: 40px;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: var(--space-3);
}

/* The pin sits on the first line when the text wraps. */
.hero-area {
    order: 1;
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 20px;
    letter-spacing: normal;
    margin-bottom: var(--space-5);
}

.hero-area i {
    flex: 0 0 auto;
    line-height: 20px;
    color: var(--color-accent);
}

@media (min-width: 640px) {
    .hero-title { font-size: 48px; line-height: 52px; }
}

@media (min-width: 900px) {
    .hero-title { font-size: 56px; line-height: 60px; }
}

.hero-title-accent {
    color: var(--color-primary);
    font-style: italic;
    /* Outfit has no italic, so the browser slants it. A little right padding keeps the slant from clipping. */
    padding-right: 4px;
    white-space: nowrap;
}

.hero-lead {
    font-size: var(--text-lg);
    line-height: 28px;
    color: var(--color-text-muted);
    max-width: 34rem;
    margin-bottom: var(--space-6);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.hero-call {
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.hero-call a {
    color: var(--color-navy);
    font-weight: 700;
    margin-left: var(--space-1);
}

.hero-call a:hover { color: var(--color-accent); }

.hero-checks {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3) var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.hero-checks li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-weight: 600;
    color: var(--color-text);
    line-height: 24px;
}

.hero-checks i {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-sky-soft);
    color: var(--color-primary);
    font-size: 12px;
}

/* Free Font Awesome has no shield-check, so a small check is drawn over the plain shield. */
.hero-icon-shield-check::before,
.hero-icon-shield-check::after { grid-area: 1 / 1; }

.hero-icon-shield-check::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 6px;
    color: var(--color-sky-soft);
}

.hero-checks small {
    display: block;
    line-height: 20px;
    font-weight: 400;
    color: var(--color-text-faint);
    font-size: var(--text-sm);
}

/* Photo collage: three staggered columns of rounded tiles. */
.hero-collage {
    display: grid;
    grid-template-columns: 0.85fr 1fr 0.75fr;
    gap: var(--space-3);
    /* Side columns sit centered on the taller middle column, so the cluster reads as a diamond. */
    align-items: center;
}

.collage-col {
    display: grid;
    gap: var(--space-3);
}

.collage-tile {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-surface-sunken);
    box-shadow: var(--shadow-md);
    animation: collage-hover 7s ease-in-out infinite;
}

/* Gentle float. Offsets and durations differ per tile so they never move in sync. */
.collage-col:nth-child(1) .collage-tile { animation-delay: -1s; }
.collage-col:nth-child(2) .collage-tile:nth-child(1) { animation-delay: -3.5s; animation-duration: 8s; }
.collage-col:nth-child(2) .collage-tile:nth-child(2) { animation-delay: -5.5s; animation-duration: 7.5s; }
.collage-col:nth-child(3) .collage-tile:nth-child(1) { animation-delay: -2s; animation-duration: 6.5s; }
.collage-col:nth-child(3) .collage-tile:nth-child(2) { animation-delay: -4.5s; animation-duration: 8.5s; }

@keyframes collage-hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .collage-tile { animation: none; }
}

.collage-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-tall { aspect-ratio: 3 / 5; }
.collage-square { aspect-ratio: 1 / 1; }
.collage-portrait { aspect-ratio: 4 / 5; }

/* Phones and tablets (single-column hero): the collage gives way to a photo reel behind
   the copy. Three columns scroll slowly, the middle one the other way, and loop without
   a seam (script.js clones each column like the brand strip). Desktop keeps the collage. */
.hero-reel { display: none; }

@media (max-width: 899px) {
    .hero-collage { display: none; }

    /* A little past every edge, so the blur never shows a soft border. */
    .hero-reel {
        position: absolute;
        inset: -16px;
        z-index: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: hidden;
        filter: blur(1px);
    }

    .hero-reel-col {
        min-width: 0;
        overflow: hidden;
    }

    .hero-reel-track {
        display: flex;
        flex-direction: column;
        animation: reel-scroll var(--reel-duration, 90s) linear infinite;
    }

    .hero-reel-col:nth-child(2) .hero-reel-track { animation-direction: reverse; }

    /* Phones: two wider columns instead of three. They still run opposite ways. */
    @media (max-width: 639px) {
        .hero-reel { grid-template-columns: repeat(2, 1fr); }
        .hero-reel-col:nth-child(3) { display: none; }
    }

    .hero-reel-track img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }

    /* Navy wash over the photos, a touch lighter than the reviews section, so the
       photos keep their color and the copy flips to light text. */
    .hero { background: var(--color-navy-soft); }

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, rgba(13, 34, 64, 0.84) 0%, rgba(13, 34, 64, 0.74) 100%);
        pointer-events: none;
    }

    .hero-title { color: var(--color-text-on-dark); }
    .hero-title-accent { color: #7CC6EE; }

    .hero-area { color: var(--color-text-on-dark); }
    .hero-area i { color: #FF8A90; }

    .hero-lead { color: var(--color-text-on-dark); }

    .hero-actions .button-ghost {
        background: transparent;
        color: var(--color-text-on-dark);
        border-color: rgba(255, 255, 255, 0.6);
    }

    .hero-actions .button-ghost:hover {
        background: var(--color-text-on-dark);
        color: var(--color-navy);
        border-color: var(--color-text-on-dark);
    }

    .hero-call { color: var(--color-text-on-dark); }
    .hero-call a { color: var(--color-text-on-dark); }
    .hero-call a:hover { color: #FF8A90; }

    .hero-checks { border-top-color: var(--color-text-on-dark); }
    /* All text is white here, so the point titles stand out by weight instead of color. */
    .hero-checks li { color: var(--color-text-on-dark); font-weight: 700; }
    .hero-checks small { color: var(--color-text-on-dark); }

    .hero-checks i {
        background: rgba(255, 255, 255, 0.12);
        color: #7CC6EE;
    }

    /* The small check is cut out of the shield, so it takes the dark tint. */
    .hero-icon-shield-check::after { color: var(--color-navy); }

    .hero-copy {
        position: relative;
        z-index: 2;
    }
}

@keyframes reel-scroll {
    from { transform: translateY(0); }
    to { transform: translateY(calc(-1 * var(--reel-shift, 50%))); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-reel-track { animation: none; }
}

/* ---------- Brands marquee ---------- */

.brands {
    padding-block: var(--space-10) var(--space-8);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.brands-header { margin-bottom: var(--space-4); }

.marquee {
    overflow: hidden;
    padding-block: var(--space-4);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: marquee-scroll 70s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-logo {
    flex: 0 0 auto;
    width: 140px;
    height: 64px;
    margin-right: var(--space-12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.55);
    transition: filter var(--transition-medium);
}

.marquee-logo:hover img {
    filter: grayscale(0) opacity(1);
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}

/* ---------- Services ---------- */

.services {
    background: var(--color-surface-muted);
}

.service-group + .service-group {
    margin-top: var(--space-12);
}

.service-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2) var(--space-6);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-strong);
}

.service-group-title {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-2xl);
    line-height: 32px;
    color: var(--color-navy);
}

.service-group-title i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-text-on-dark);
    font-size: 18px;
}

.service-grid {
    list-style: none;
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-medium), border-color var(--transition-fast), box-shadow var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary-soft);
    box-shadow: var(--shadow-md);
}

.service-media {
    aspect-ratio: 16 / 10;
    background: var(--color-surface-sunken);
    overflow: hidden;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.service-card:hover .service-media img { transform: scale(1.04); }

.service-body {
    padding: var(--space-5) var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

.service-body h3 { color: var(--color-navy); }

.service-body p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 20px;
}

.services-foot {
    margin-top: var(--space-10);
    text-align: center;
    color: var(--color-text-muted);
}

/* Same treatment as the hero call line. */
.services-foot a {
    color: var(--color-navy);
    font-weight: 700;
    margin-left: var(--space-1);
}

.services-foot a:hover { color: var(--color-accent); }

/* ---------- Reviews ---------- */

.reviews {
    position: relative;
    background: var(--color-navy-soft);
    overflow-x: clip;
}

/* Photo backdrop under a navy wash, same treatment as the service area section. */
.reviews-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.reviews-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviews-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 34, 64, 0.9) 0%, rgba(13, 34, 64, 0.8) 100%);
}

.reviews .container { position: relative; z-index: 1; }

.reviews .section-title { color: var(--color-text-on-dark); }
.reviews .section-lead { color: var(--color-text-on-dark-muted); }
.reviews .section-eyebrow { color: #FF8A90; }

.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--color-text-on-dark);
    font-weight: 500;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.rating-chip:hover {
    color: var(--color-text-on-dark);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

.rating-chip-source {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
}

.rating-chip-source i { color: #FF4D4D; font-size: 18px; }

.rating-chip-score {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    line-height: 28px;
    font-weight: 700;
    color: var(--color-text-on-dark);
}

.rating-chip-score span { color: #F5A524; }

.rating-chip-count {
    color: var(--color-text-on-dark-muted);
    font-size: var(--text-sm);
    line-height: 20px;
    padding-left: var(--space-3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.reviews-carousel {
    position: relative;
    padding-bottom: calc(40px + var(--space-6));
}

.reviews-track {
    display: flex;
    gap: var(--space-5);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-block: var(--space-1);
}

.reviews-track::-webkit-scrollbar { display: none; }

.reviews-track:focus-visible {
    outline: 2px solid var(--color-sky);
    outline-offset: 4px;
    border-radius: var(--radius-md);
}

.review-card {
    background: var(--color-surface);
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(4, 12, 26, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: var(--space-4);
    row-gap: var(--space-4);
    align-content: start;
    /* Phones: one full-width card, so no slivers of the neighbors show at the edges. */
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.reviews-nav {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    color: var(--color-navy);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.reviews-nav i { font-size: 16px; line-height: 1; }

.reviews-nav:hover {
    background: var(--color-sky);
    color: var(--color-text-on-dark);
    border-color: var(--color-sky);
}

.reviews-nav:active { transform: scale(0.95); }
.reviews-nav-prev { left: calc(50% - 52px); }
.reviews-nav-next { right: calc(50% - 52px); }

.review-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    grid-column: 1;
    grid-row: 1;
}

.review-top {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

.review-stars {
    color: #F5A524;
    letter-spacing: 1px;
    font-size: var(--text-lg);
    line-height: 1;
}

.review-platform {
    font-size: var(--text-xs);
    line-height: 16px;
    font-weight: 500;
    color: var(--color-text-faint);
}

.review-body {
    color: var(--color-text);
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.review-text p + p { margin-top: var(--space-3); }

/* script.js adds .is-clamping to the track, so without JS the full
   text shows and nothing is cut off with no way to read it. */
.reviews-track.is-clamping .review-text {
    max-height: calc(1.5em * 8);
    overflow: hidden;
}

.reviews-track.is-clamping .review-card.is-clamped .review-text {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3em), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 3em), transparent);
}

.review-more {
    margin-top: var(--space-3);
    padding: 0;
    background: none;
    border: 0;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    line-height: 20px;
    font-weight: 600;
}

.review-more:hover {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.review-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-text-on-dark);
    font-family: var(--font-display);
    font-weight: 600;
}

.review-avatar-photo {
    object-fit: cover;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.review-meta { display: flex; flex-direction: column; line-height: 1.25; }
.review-name { font-weight: 600; color: var(--color-text); }
.review-date { font-size: var(--text-xs); line-height: 16px; color: var(--color-text-faint); }

/* Full review, opened from a card's Read more button. */
.review-dialog {
    width: min(640px, calc(100vw - 2 * var(--space-4)));
    max-width: none;
    max-height: min(85vh, 760px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.review-dialog[open] {
    display: flex;
    flex-direction: column;
}

.review-dialog::backdrop { background: rgba(13, 34, 64, 0.6); }

/* Set on <html> while the dialog is open so the page behind it doesn't
   scroll along with the review on touch screens. */
.has-open-dialog {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.review-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.review-dialog-close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--color-border-strong);
    background: var(--color-surface);
    color: var(--color-navy);
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.review-dialog-close i { font-size: 18px; line-height: 1; }

.review-dialog-close:hover {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-text-on-dark);
}

.review-dialog-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--space-5) var(--space-6) var(--space-6);
}

.review-dialog-text p + p { margin-top: var(--space-3); }

.review-dialog-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    margin-bottom: var(--space-4);
}

/* Phones: slide up from the bottom edge as a sheet. */
@media (max-width: 639px) {
    .review-dialog {
        width: 100%;
        max-height: 85vh;
        max-height: 85dvh;
        margin: auto 0 0;
        border-bottom: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .review-dialog-head { padding: var(--space-4) var(--space-5); }

    .review-dialog-body {
        padding: var(--space-4) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: no-preference) {
    .review-dialog[open] { animation: review-dialog-in 180ms ease-out; }
    .review-dialog[open]::backdrop { animation: review-backdrop-in 180ms ease-out; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 639px) {
    .review-dialog[open] { animation: review-sheet-in 220ms ease-out; }
}

@keyframes review-dialog-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

@keyframes review-sheet-in {
    from { transform: translateY(100%); }
}

@keyframes review-backdrop-in {
    from { opacity: 0; }
}

/* ---------- Why us ---------- */

.why {
    background: var(--color-surface);
}

.why-grid {
    display: grid;
    gap: var(--space-10);
    align-items: center;
}

.why-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
    background: var(--color-surface-sunken);
}

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

.why-text {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-3);
    color: var(--color-text-muted);
}

/* ---------- Service area ---------- */

.area {
    position: relative;
    overflow: hidden;
    color: var(--color-text-on-dark);
    background: var(--color-navy-soft);
}

.area-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.area-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.area-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(13, 34, 64, 0.94) 0%, rgba(13, 34, 64, 0.82) 55%, rgba(13, 34, 64, 0.6) 100%);
}

.area .container { position: relative; z-index: 1; }

.area .section-title { color: var(--color-text-on-dark); }
.area .section-lead { color: var(--color-text-on-dark-muted); }
.area .section-eyebrow { color: #FF8A90; }

.area-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
    max-width: 46rem;
}

.area-chips li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 500;
}

.area-chips i { color: #7CC6EE; font-size: 14px; }

.area-note {
    margin-top: var(--space-6);
    color: var(--color-text-on-dark-muted);
}

.area-note a {
    color: var(--color-text-on-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Contact ---------- */

.contact {
    background: var(--color-surface-muted);
}

.contact-grid {
    display: grid;
    gap: var(--space-8);
}

.contact-copy .section-title { text-align: left; }

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-list li {
    display: flex;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.contact-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
}

.contact-label {
    display: block;
    font-size: var(--text-xs);
    line-height: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-faint);
}

.contact-list a {
    color: var(--color-navy);
    font-weight: 600;
    word-break: break-word;
}

.contact-list a:hover { color: var(--color-accent); }

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
    background: var(--color-surface-sunken);
    border: 4px solid var(--color-surface);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    display: block;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* ---------- Schedule page ---------- */

.schedule {
    background: var(--color-surface-muted);
}

.schedule-grid {
    display: grid;
    gap: var(--space-8);
    align-items: start;
}

.schedule-aside {
    display: grid;
    gap: var(--space-5);
}

.schedule-panel {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.schedule-panel h2 {
    font-size: var(--text-xl);
    line-height: 28px;
    color: var(--color-navy);
    margin-bottom: var(--space-3);
}

.schedule-panel p,
.schedule-panel li {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 20px;
}

.schedule-panel ol {
    padding-left: var(--space-5);
    display: grid;
    gap: var(--space-2);
}

.schedule-phone {
    display: inline-block;
    margin-top: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    line-height: 32px;
    font-weight: 600;
    color: var(--color-navy);
}

.booking-form {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

.form-field {
    display: grid;
    gap: var(--space-2);
}

.form-field-full { grid-column: 1 / -1; }

.form-field label {
    font-weight: 600;
    font-size: var(--text-sm);
    line-height: 20px;
    color: var(--color-text);
}

.form-field .required { color: var(--color-accent); }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font: inherit;
    color: var(--color-text);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    min-height: 48px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field textarea { min-height: 130px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-soft);
}

.form-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.form-status {
    font-size: var(--text-sm);
    line-height: 20px;
    color: var(--color-success);
    font-weight: 500;
}

.form-status[data-state="error"] { color: var(--color-error); }

.form-demo-note {
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    line-height: 16px;
    color: var(--color-text-faint);
}

.demo-banner {
    display: none;
    margin-top: var(--space-5);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    background: var(--color-sky-soft);
    border: 1px solid #B9DDF2;
    color: var(--color-navy);
}

.demo-banner[data-visible="true"] { display: flex; gap: var(--space-3); align-items: flex-start; }
.demo-banner i { color: var(--color-primary); margin-top: 4px; }
.demo-banner strong { display: block; }

/* ---------- Legal pages ---------- */

.legal {
    padding-block: var(--space-12) var(--space-20);
    background: var(--color-surface);
}

.legal-container { max-width: 800px; }

.legal .section-header { margin-bottom: var(--space-8); }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--color-navy);
    color: var(--color-text-on-dark-muted);
    padding-block: var(--space-12) var(--space-8);
    font-size: var(--text-sm);
    line-height: 20px;
}

.footer-grid {
    display: grid;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo {
    width: 44px;
    height: 44px;
    padding: 4px;
    background: var(--color-surface);
    border-radius: 50%;
}

.footer-brand .brand-name-main { color: var(--color-text-on-dark); }
.footer-brand .brand-name-sub { color: #FF8A90; }

.footer-about { max-width: 26rem; }

.footer-heading {
    font-family: var(--font-display);
    font-size: var(--text-rg);
    line-height: 24px;
    font-weight: 600;
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-3);
}

.footer-links {
    list-style: none;
    display: grid;
    gap: var(--space-2);
}

.footer-links a {
    color: var(--color-text-on-dark-muted);
}

.footer-links a:hover { color: var(--color-text-on-dark); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3) var(--space-6);
    padding-top: var(--space-6);
    font-size: var(--text-xs);
    line-height: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-legal a:hover { color: #fff; }

/* ---------- Breakpoints ---------- */

@media (max-width: 1199px) {
    /* Narrow cards: stars and platform drop under the name on one line. */
    .review-top {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .review-body { grid-row: 3; }
}

@media (max-width: 899px) {
    .review-card .review-stars { font-size: var(--text-rg); line-height: 24px; letter-spacing: 1px; }
}

@media (min-width: 640px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-checks { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }

    .review-card {
        flex: 0 0 calc((100% - var(--space-5)) / 2);
        max-width: none;
        scroll-snap-align: start;
    }

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

@media (min-width: 900px) {
    .section { padding-block: var(--space-20); }

    .nav-toggle { display: none; }
    .nav-menu { display: flex; }

    .hero { padding-block: var(--space-16) var(--space-20); }

    .hero-grid {
        grid-template-columns: 1fr 1.05fr;
        gap: var(--space-12);
    }

    .service-grid { grid-template-columns: repeat(4, 1fr); }
    .service-grid-appliances { grid-template-columns: repeat(5, 1fr); }
    .service-grid-appliances .service-body { padding: var(--space-4) var(--space-4) var(--space-5); }


    .why-grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); }

    .contact-grid {
        grid-template-columns: 1fr 1.3fr;
        gap: var(--space-12);
        align-items: stretch;
    }

    .schedule-grid { grid-template-columns: 1.5fr 1fr; gap: var(--space-10); }
    .booking-form { padding: var(--space-8); }

    .review-card { flex: 0 0 calc((100% - var(--space-5) * 2) / 3); }

    .reviews-carousel { padding: 0 var(--space-4); }

    .reviews-nav {
        width: 48px;
        height: 48px;
        top: 50%;
        bottom: auto;
        margin-top: -24px;
    }
    .reviews-nav i { font-size: 18px; }
    /* Hang over the card edges by no more than the container's side
       padding, so the buttons never push the page wider than the screen. */
    .reviews-nav-prev { left: calc(-1 * var(--space-5)); right: auto; }
    .reviews-nav-next { right: calc(-1 * var(--space-5)); left: auto; }

    .marquee-logo { width: 160px; height: 72px; }
}

@media (min-width: 900px) and (max-width: 1099px) {
    .nav-menu { gap: var(--space-4); }
    .nav-menu .nav-hide-md { display: none; }
    .service-grid-appliances { grid-template-columns: repeat(3, 1fr); }
}

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

    .marquee-track {
        animation: none;
        transform: translateX(0);
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: var(--space-6);
    }

    .marquee-track .marquee-logo { margin-right: 0; }
}
