/* ==========================================================================
   PowerG Solar Installation — design system
   Brand tokens are the single source of truth. Do not hard-code hex values
   in templates; use the custom properties below.
   ========================================================================== */

:root {
    /* ---------- Brand ---------- */
    --navy: #1E2952;
    --navy-600: #2A3868;
    --navy-800: #1A2346;
    --charcoal: #151631;
    --green: #327D39;
    --green-600: #276330;
    --green-100: #E7F0E8;
    --orange: #F7971D;
    --orange-600: #E0850F;
    --orange-100: #FEF1DE;
    --gold: #FDC412;
    --blue: #20599F;
    --blue-100: #E4EDF7;

    /* ---------- Neutrals ---------- */
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --light-gray: #E8ECF2;
    --gray-200: #DCE2EB;
    --gray-400: #A6B0C2;
    --gray-500: #667085;
    --gray-600: #5A6480;
    --ink: #262D45;

    /* ---------- Type ---------- */
    --font-head: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Fluid type scale */
    --fs-eyebrow: 0.75rem;
    --fs-body: 1rem;
    --fs-lead: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
    --fs-h4: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
    --fs-h3: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
    --fs-h2: clamp(1.75rem, 1.7vw + 1.2rem, 2.75rem);
    --fs-h1: clamp(2.125rem, 3.1vw + 1.3rem, 3.75rem);

    /* ---------- Space ---------- */
    --gutter: clamp(1.125rem, 2.4vw, 2rem);
    --section-y: clamp(2.25rem, 4.2vw, 4rem);
    --container: 1200px;
    --container-narrow: 900px;
    /* The header carries more items than a content column, so it gets its own width */
    --container-header: 1360px;

    /* ---------- Effect ---------- */
    --radius: 6px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 2px rgba(21, 22, 49, 0.06), 0 1px 3px rgba(21, 22, 49, 0.04);
    --shadow-md: 0 4px 6px -2px rgba(21, 22, 49, 0.08), 0 12px 24px -8px rgba(21, 22, 49, 0.12);
    --shadow-lg: 0 12px 20px -8px rgba(21, 22, 49, 0.14), 0 32px 56px -16px rgba(21, 22, 49, 0.2);
    --ring: 0 0 0 3px rgba(32, 89, 159, 0.35);
    --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
    --header-h: 68px;
}

/* ==========================================================================
   Reset and base
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.45em;
    text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.01em; }

/* The UA default figure margin (1em 40px) breaks grid items, so reset it here */
figure, blockquote, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; }

p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--navy); }

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Icons sit inside sentences, headings and buttons, so they stay inline */
svg.ico {
    display: inline-block;
    vertical-align: -0.15em;
    flex: none;
}
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li + li { margin-top: 0.4em; }
strong { font-weight: 600; color: var(--navy); }
small { font-size: 0.8125rem; }
hr { border: 0; border-top: 1px solid var(--light-gray); margin: 2rem 0; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 3px;
}

::selection { background: var(--gold); color: var(--charcoal); }

.skip-link {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -120%);
    z-index: 200;
    background: var(--navy);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 600;
    transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--white); }

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

/* ==========================================================================
   Layout primitives
   ========================================================================== */

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

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(1.75rem, 3vw, 2.75rem); }
.section--offwhite { background: var(--off-white); }
.section--light { background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%); }

.section--navy {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.82);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy strong { color: var(--white); }

/* strong defaults to navy, which vanishes on the dark surfaces. Keep these in
   one list so a new dark panel is easy to add. */
.hero strong,
.page-hero strong,
.site-footer strong,
.chat-head strong,
.chat-msg--user strong,
.tracker-panel-head strong,
.update-flag strong,
.lightbox-caption strong { color: var(--white); }

/* Faint engineering grid used on dark panels */
.section--grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
    pointer-events: none;
}
.section > .container { position: relative; z-index: 1; }

.grid { display: grid; gap: clamp(1rem, 1.6vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.75rem, 3.4vw, 3.25rem);
    align-items: center;
}
.split--wide-right { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }

/* ==========================================================================
   Section headings
   ========================================================================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green);
    margin: 0 0 0.7rem;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--orange);
    flex: none;
}
.eyebrow--light { color: var(--gold); }
.eyebrow--center { justify-content: center; }

.section-head { max-width: 62ch; margin-bottom: clamp(1.5rem, 2.4vw, 2.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p {
    font-size: var(--fs-lead);
    color: var(--gray-600);
    margin-bottom: 0;
}
.section--navy .section-head p { color: rgba(255, 255, 255, 0.72); }

.lead { font-size: var(--fs-lead); color: var(--gray-600); }
.section--navy .lead { color: rgba(255, 255, 255, 0.78); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    --btn-bg: var(--orange);
    --btn-fg: var(--charcoal);
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 26px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1.5px solid var(--btn-border);
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
                background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover {
    color: var(--btn-fg);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -6px rgba(247, 151, 29, 0.55);
}
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--orange); --btn-fg: var(--charcoal); }
.btn--primary:hover { --btn-bg: var(--orange-600); }

.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--navy:hover { --btn-bg: var(--navy-600); box-shadow: 0 8px 18px -6px rgba(30, 41, 82, 0.45); }

.btn--green { --btn-bg: var(--green); --btn-fg: var(--white); }
.btn--green:hover { --btn-bg: var(--green-600); box-shadow: 0 8px 18px -6px rgba(50, 125, 57, 0.45); }

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--navy);
    --btn-border: var(--gray-200);
}
.btn--outline:hover {
    --btn-border: var(--navy);
    --btn-bg: var(--navy);
    --btn-fg: var(--white);
    box-shadow: var(--shadow-md);
}

.btn--ghost-light {
    --btn-bg: transparent;
    --btn-fg: var(--white);
    --btn-border: rgba(255, 255, 255, 0.4);
}
.btn--ghost-light:hover {
    --btn-bg: var(--white);
    --btn-fg: var(--navy);
    --btn-border: var(--white);
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.35);
}

.btn--sm { min-height: 40px; padding: 9px 18px; font-size: 0.8125rem; }
.btn--lg { min-height: 56px; padding: 17px 28px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* Text link with an arrow that nudges on hover */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    min-height: 44px;
}
.link-arrow svg { transition: transform 0.2s var(--ease); flex: none; }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 rgba(30, 41, 82, 0.06), 0 8px 24px -12px rgba(30, 41, 82, 0.25);
}

.header-bar {
    max-width: var(--container-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 2vw, 2rem);
    height: var(--header-h);
    transition: height 0.25s var(--ease);
}
.site-header.is-scrolled .header-bar { height: 58px; }

.brand { display: flex; align-items: center; flex: none; }
.brand img {
    height: 40px;
    width: auto;
    transition: height 0.25s var(--ease);
}
.site-header.is-scrolled .brand img { height: 34px; }

.nav-desktop { display: flex; align-items: center; gap: clamp(0.25rem, 1vw, 1.15rem); min-width: 0; }
.nav-desktop a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    font-family: var(--font-head);
    font-size: 0.8438rem;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}
.nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.nav-desktop a[aria-current="page"] { color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-desktop { flex: 1 1 auto; justify-content: flex-end; }

.header-track {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    border-radius: var(--radius);
}
.header-track:hover { color: var(--navy); background: var(--off-white); }
.header-track svg { flex: none; }

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}
.header-phone svg { color: var(--green); }
.header-phone:hover { background: var(--off-white); color: var(--navy); }

/* Hamburger */
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle span {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: background-color 0.2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.24s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    background: var(--white);
    padding: 1.5rem var(--gutter) 2.5rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
body.nav-open { overflow: hidden; }

.mobile-menu nav { display: grid; }
.mobile-menu nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 4px 2px;
    border-bottom: 1px solid var(--light-gray);
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--navy);
}
.mobile-menu nav a[aria-current="page"] { color: var(--orange-600); }
.mobile-menu nav a svg { color: var(--gray-400); }
.mobile-menu .btn-row { margin-top: 1.75rem; display: grid; gap: 12px; }
.mobile-menu .btn { width: 100%; }
.mobile-menu-contact {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
    display: grid;
    gap: 12px;
}
.mobile-menu-contact a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    font-weight: 600;
    color: var(--navy);
}
.mobile-menu-contact svg { color: var(--green); flex: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 55%, var(--charcoal) 100%);
    color: rgba(255, 255, 255, 0.86);
    overflow: hidden;
    padding-block: clamp(2rem, 3.6vw, 3.25rem) clamp(2.25rem, 4vw, 3.5rem);
}
.hero::before {
    content: "";
    position: absolute;
    top: -18%;
    right: -8%;
    width: 46rem;
    height: 46rem;
    background: radial-gradient(circle, rgba(253, 196, 18, 0.22) 0%, rgba(247, 151, 29, 0.08) 42%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 1.1rem; }
.hero h1 em {
    font-style: normal;
    color: var(--gold);
}
.hero-copy { font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.78); max-width: 50ch; }
.hero .btn-row { margin-top: 1.5rem; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-meta div {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.74);
}
.hero-meta svg { color: var(--gold); flex: none; }

/* Framed hero artwork with an offset accent edge */
.hero-figure { position: relative; }
.hero-figure::before {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 1.5px solid rgba(253, 196, 18, 0.45);
    border-radius: var(--radius-lg);
    pointer-events: none;
}
.hero-figure > img,
.hero-figure > svg {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
}

.hero-badge {
    position: absolute;
    left: -12px;
    bottom: 26px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 17rem;
}
.hero-badge svg { color: var(--green); flex: none; }
.hero-badge span {
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--navy);
}

/* Page hero for interior pages */
.page-hero {
    position: relative;
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-800) 70%, var(--charcoal) 100%);
    color: rgba(255, 255, 255, 0.82);
    padding-block: clamp(2rem, 3.6vw, 3.25rem);
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -6%;
    width: 34rem;
    height: 34rem;
    background: radial-gradient(circle, rgba(253, 196, 18, 0.18) 0%, transparent 68%);
    pointer-events: none;
}
.page-hero h1 { color: var(--white); max-width: 24ch; margin-bottom: 0; }
.page-hero p { color: rgba(255, 255, 255, 0.76); font-size: var(--fs-lead); max-width: 62ch; margin-bottom: 0; }
.page-hero > .container { position: relative; z-index: 1; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.85rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.82); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-hidden] { color: rgba(255, 255, 255, 0.35); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: clamp(1.15rem, 1.7vw, 1.6rem);
    transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}
.card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--gold));
    border-radius: var(--radius) var(--radius) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-200);
}
.card:hover::before { transform: scaleX(1); }
.card h3, .card h4 { margin-bottom: 0.5rem; }
.card p { color: var(--gray-600); margin-bottom: 0; }
.card .link-arrow { margin-top: 1.1rem; }

.card--plain::before { display: none; }
.card--plain:hover { transform: none; box-shadow: var(--shadow-sm); }

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 0.8rem;
    border-radius: var(--radius);
    background: var(--blue-100);
    color: var(--blue);
}
.icon-badge--green { background: var(--green-100); color: var(--green); }
.icon-badge--orange { background: var(--orange-100); color: var(--orange-600); }
.icon-badge svg { width: 22px; height: 22px; }

/* Trust strip sits half-overlapping the hero */
.trust-strip { position: relative; z-index: 2; margin-top: clamp(-3.5rem, -4vw, -2rem); }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.trust-item {
    padding: clamp(1.05rem, 1.6vw, 1.4rem);
    border-right: 1px solid var(--light-gray);
}
.trust-item:last-child { border-right: 0; }
.trust-item svg { color: var(--green); width: 24px; height: 24px; margin-bottom: 0.6rem; }
.trust-item h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}
.trust-item p { font-size: 0.9375rem; color: var(--gray-600); margin: 0; }

/* Benefit list with green checks */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    margin: 0;
}
.check-list svg { color: var(--green); margin-top: 3px; flex: none; }
.check-list strong { display: block; color: var(--navy); }
.check-list span { color: var(--gray-600); }
.section--navy .check-list span { color: rgba(255, 255, 255, 0.72); }
.section--navy .check-list svg { color: var(--gold); }

/* Numbered process steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.1rem, 1.8vw, 1.6rem);
    counter-reset: step;
}
.steps--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1024px) { .steps--five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .steps--five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .steps--five { grid-template-columns: 1fr; } }

.step { position: relative; padding-top: 1.35rem; }
.step::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--light-gray);
}
.step::after {
    content: "";
    position: absolute;
    top: -4px; left: 0;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-100);
}
.section--navy .step::before { background: rgba(255, 255, 255, 0.16); }
.section--navy .step::after { background: var(--gold); box-shadow: 0 0 0 4px rgba(253, 196, 18, 0.18); }
.step-num {
    display: block;
    font-family: var(--font-head);
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--light-gray);
    margin-bottom: 0.45rem;
}
.section--navy .step-num { color: rgba(255, 255, 255, 0.22); }
.step h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.step p { font-size: 0.9375rem; color: var(--gray-600); margin: 0; }
.section--navy .step p { color: rgba(255, 255, 255, 0.7); }

/* Before / after comparison */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.compare-col {
    padding: clamp(1.15rem, 1.8vw, 1.6rem);
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
    background: var(--white);
}
.compare-col--before { background: var(--off-white); }
.compare-col--after { border-color: rgba(50, 125, 57, 0.35); box-shadow: var(--shadow-sm); }
.compare-col h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-500);
}
.compare-col--after h3 { color: var(--green); }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.compare-col li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    margin: 0;
    color: var(--gray-600);
}
.compare-col svg { margin-top: 4px; flex: none; }
.compare-col--before svg { color: var(--gray-400); }
.compare-col--after svg { color: var(--green); }

/* ==========================================================================
   Media figures
   ========================================================================== */

.figure {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--light-gray);
    box-shadow: var(--shadow-md);
}
.figure img, .figure svg { width: 100%; display: block; }
.figure--framed::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(30, 41, 82, 0.08);
    border-radius: var(--radius-lg);
    pointer-events: none;
}
.figure-caption {
    padding: 12px 16px;
    background: var(--white);
    font-size: 0.8125rem;
    color: var(--gray-500);
    border-top: 1px solid var(--light-gray);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--light-gray);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    overflow: hidden;
}
.stat-strip div { background: var(--white); padding: 1.25rem 1.4rem; }
.stat-strip dt {
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 6px;
}
.stat-strip dd {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--navy);
}

/* ==========================================================================
   Gallery and lightbox
   ========================================================================== */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}
.filter-btn {
    min-height: 44px;
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.18s var(--ease);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn[aria-pressed="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 1.8vw, 1.5rem);
}
.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--charcoal);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    text-align: left;
    aspect-ratio: 4 / 3;
}
.gallery-item img, .gallery-item svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.gallery-item:hover img, .gallery-item:hover svg { transform: scale(1.045); }
.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem 1.1rem 1rem;
    background: linear-gradient(180deg, transparent, rgba(21, 22, 49, 0.88));
    color: var(--white);
    font-family: var(--font-head);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}
.gallery-item .tag {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}
.gallery-item.is-hidden { display: none; }

/* Masonry-ish feature sizing on the homepage preview */
.gallery--preview { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.gallery--preview .gallery-item { aspect-ratio: 1; }
.gallery--preview .gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(11, 12, 28, 0.94);
    backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox-inner {
    position: relative;
    width: min(100%, 1000px);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lightbox-stage {
    position: relative;
    background: var(--charcoal);
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 74vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-stage img, .lightbox-stage svg { max-height: 74vh; width: auto; max-width: 100%; }
.lightbox-caption { color: rgba(255, 255, 255, 0.9); display: grid; gap: 4px; }
.lightbox-caption strong { color: var(--white); font-family: var(--font-head); font-size: 1.0625rem; }
.lightbox-caption span { font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); }
.lightbox-note { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.18s var(--ease);
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-close {
    position: absolute;
    top: -52px; right: 0;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox-counter {
    position: absolute;
    top: -46px; left: 0;
    font-family: var(--font-head);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */

.accordion { border-top: 1px solid var(--light-gray); }
.accordion-item { border-bottom: 1px solid var(--light-gray); }
.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    min-height: 64px;
    padding: 1.1rem 0;
    background: none;
    border: 0;
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
}
.accordion-trigger:hover { color: var(--blue); }
.accordion-icon {
    position: relative;
    flex: none;
    width: 34px; height: 34px;
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.accordion-icon::before, .accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 13px; height: 2px;
    background: var(--navy);
    transform: translate(-50%, -50%);
    transition: transform 0.24s var(--ease), background-color 0.2s var(--ease);
}
.accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion-trigger[aria-expanded="true"] .accordion-icon {
    background: var(--orange);
    border-color: var(--orange);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon::before,
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { background: var(--charcoal); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s var(--ease);
}
.accordion-panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion-panel > div { overflow: hidden; }
.accordion-panel p {
    max-width: 78ch;
    padding-bottom: 1.4rem;
    color: var(--gray-600);
    margin: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 2.2vw, 1.9rem);
    box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1rem; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label, .field > .field-label {
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy);
}
.field .optional { color: var(--gray-400); font-weight: 500; font-family: var(--font-body); }

.input, .select, .textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
    appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #8A94A6; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-400); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: var(--ring);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; padding-top: 12px; }

.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235A6480' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: #C0392B; }
.field-error {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #C0392B;
}
.field.has-error .field-error { display: flex; }

.field-hint { font-size: 0.8125rem; color: var(--gray-500); }

.checkbox-row {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
}
.checkbox-row input[type="checkbox"] {
    width: 22px; height: 22px;
    margin: 1px 0 0;
    accent-color: var(--green);
    cursor: pointer;
}
.checkbox-row label { font-family: var(--font-body); font-weight: 400; font-size: 0.875rem; color: var(--gray-600); }
.checkbox-row a { text-decoration: underline; }

/* Radio pills for property type / contact preference */
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 18px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.18s var(--ease);
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:hover { border-color: var(--gray-400); }
.pill:has(input:checked) {
    border-color: var(--green);
    background: var(--green-100);
    color: var(--green-600);
    font-weight: 600;
}
.pill:has(input:focus-visible) { box-shadow: var(--ring); }
.pill-dot {
    width: 16px; height: 16px;
    border: 1.5px solid var(--gray-400);
    border-radius: 50%;
    flex: none;
    transition: all 0.18s var(--ease);
}
.pill:has(input:checked) .pill-dot { border-color: var(--green); border-width: 5px; }

.honeypot {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-note { font-size: 0.8125rem; color: var(--gray-500); }
.form-actions { display: grid; gap: 12px; margin-top: 1.15rem; }

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
    background: var(--off-white);
    font-size: 0.9375rem;
    color: var(--ink);
}
.alert svg { margin-top: 2px; flex: none; }
.alert strong { display: block; margin-bottom: 2px; }
.alert p { margin: 0; }
.alert--success { background: var(--green-100); border-color: rgba(50, 125, 57, 0.3); color: #1F5326; }
.alert--success svg { color: var(--green); }
.alert--error { background: #FDECEA; border-color: rgba(192, 57, 43, 0.3); color: #8E2A20; }
.alert--error svg { color: #C0392B; }
.alert--info { background: var(--blue-100); border-color: rgba(32, 89, 159, 0.28); color: #1A477E; }
.alert--info svg { color: var(--blue); }
.alert--warning { background: #FEF6E0; border-color: rgba(253, 196, 18, 0.5); color: #7A5B04; }
.alert--warning svg { color: #C79000; }

/* ==========================================================================
   Ticket tracking: lookup, status, timeline
   ========================================================================== */

.tracker-panel {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.tracker-panel-head {
    padding: clamp(1.25rem, 2.4vw, 1.9rem) clamp(1.25rem, 2.4vw, 2rem);
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.tracker-panel-head .ticket-number {
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--white);
    margin: 0;
}
.tracker-panel-head .ticket-sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0 0;
}
.tracker-panel-body { padding: clamp(1.25rem, 2.4vw, 2rem); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 12px;
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}
.status-badge svg { width: 14px; height: 14px; flex: none; }
.status-badge--orange { background: var(--orange-100); color: #92590A; border-color: rgba(247, 151, 29, 0.45); }
.status-badge--blue   { background: var(--blue-100); color: #16406F; border-color: rgba(32, 89, 159, 0.35); }
.status-badge--green  { background: var(--green-100); color: #1F5326; border-color: rgba(50, 125, 57, 0.35); }
.status-badge--navy   { background: #E5E8F1; color: var(--navy); border-color: rgba(30, 41, 82, 0.28); }
.status-badge--gold   { background: #FEF6E0; color: #7A5B04; border-color: rgba(253, 196, 18, 0.5); }
.status-badge--gray   { background: var(--light-gray); color: var(--gray-600); border-color: var(--gray-200); }
.status-badge--lg { font-size: 0.875rem; padding: 10px 18px 10px 15px; }
.status-badge--onnavy { background: rgba(255, 255, 255, 0.14); color: var(--white); border-color: rgba(255, 255, 255, 0.3); }

/* Progress track */
.progress-track { margin: 0 0 2rem; }
.progress-rail {
    position: relative;
    display: grid;
    gap: 0;
    margin-bottom: 1rem;
}
.progress-bar {
    position: relative;
    height: 6px;
    background: var(--light-gray);
    border-radius: 100px;
    overflow: hidden;
}
.progress-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, var(--orange), var(--gold));
    border-radius: 100px;
    transition: width 0.6s var(--ease);
}
.progress-bar--done span { background: linear-gradient(90deg, var(--green), #4FA758); }
.progress-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.8125rem;
    color: var(--gray-500);
}
.progress-meta strong { color: var(--navy); }

.progress-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 8px;
    margin-top: 1.5rem;
}
.progress-step {
    display: grid;
    gap: 6px;
    padding-top: 14px;
    border-top: 2px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray-500);
    position: relative;
}
.progress-step::before {
    content: "";
    position: absolute;
    top: -5px; left: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--light-gray);
}
.progress-step.is-done { border-top-color: var(--green); color: var(--green-600); }
.progress-step.is-done::before { background: var(--green); }
.progress-step.is-current { border-top-color: var(--orange); color: var(--navy); font-weight: 600; }
.progress-step.is-current::before { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-100); }
.progress-step span { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.02em; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
    position: relative;
    margin: 0;
    padding: 0 0 1.6rem 2.25rem;
    border-left: 2px solid var(--light-gray);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -8px; top: 3px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-400);
}
.timeline li.is-latest::before {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-100);
}
.timeline li.is-done::before { background: var(--green); border-color: var(--green); }
.timeline-when {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 5px;
}
.timeline-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
}
.timeline-body {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9375rem;
    white-space: pre-line;
}

/* Latest update callout */
.latest-update {
    padding: 1.25rem 1.4rem;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}
.latest-update .eyebrow { margin-bottom: 0.55rem; }
.latest-update p { margin: 0; white-space: pre-line; }
.latest-update time { display: block; margin-top: 8px; font-size: 0.8125rem; color: var(--gray-500); }

/* Live update pill */
.update-flag {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 90;
    transform: translate(-50%, 140%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 12px 18px;
    background: var(--navy);
    color: var(--white);
    border-radius: 100px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.35s var(--ease);
}
.update-flag.is-visible { transform: translate(-50%, 0); }
.update-flag span {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.update-flag .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.poll-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--gray-500);
}
.poll-status .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
}

/* Ticket number showcase on the success screen */
.ticket-showcase {
    text-align: center;
    padding: clamp(1.75rem, 4vw, 3rem);
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.ticket-showcase .eyebrow { justify-content: center; }
.ticket-number-display {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--navy);
    margin: 0.35rem 0 0.85rem;
    word-break: break-word;
}
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 16px;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.18s var(--ease);
}
.copy-btn:hover { border-color: var(--navy); color: var(--navy); }
.copy-btn.is-copied { background: var(--green-100); border-color: var(--green); color: var(--green-600); }

/* Compact home tracker */
.home-tracker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.tracker-form { display: grid; gap: 12px; }
.tracker-form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.input--ticket {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ==========================================================================
   Testimonials (structure ready for real quotes; nothing is invented)
   ========================================================================== */

.testimonial-empty {
    display: grid;
    gap: 1.25rem;
    justify-items: center;
    text-align: center;
    max-width: 58ch;
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--white);
    border: 1px dashed var(--gray-200);
    border-radius: var(--radius-lg);
}
.testimonial-empty svg { color: var(--gray-400); }
.quote-card {
    display: grid;
    gap: 1.1rem;
    padding: clamp(1.5rem, 2.6vw, 2.1rem);
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
}
.quote-card blockquote { margin: 0; font-size: var(--fs-lead); color: var(--ink); }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-initial {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
}
.quote-card cite { font-style: normal; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.quote-card small { display: block; color: var(--gray-500); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.66);
    padding-block: clamp(2rem, 3.4vw, 3rem) 0;
    font-size: 0.9375rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.6vw, 2.25rem);
    padding-bottom: clamp(1.5rem, 2.6vw, 2rem);
}
.footer-logo { display: inline-block; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 0.9rem; }
.footer-brand p { max-width: 34ch; color: rgba(255, 255, 255, 0.6); }
.footer-col h3 {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.7rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0; }
.footer-col a, .footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    color: rgba(255, 255, 255, 0.66);
}
.footer-col a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact svg { color: var(--green); flex: none; }
.footer-contact li { margin-bottom: 2px; }

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-block: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-bar a { color: rgba(255, 255, 255, 0.6); }
.footer-bar a:hover { color: var(--white); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Sticky mobile call bar */
.mobile-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 95;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--light-gray);
    box-shadow: 0 -6px 20px -8px rgba(21, 22, 49, 0.35);
}
.mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 56px;
    background: var(--white);
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
}
.mobile-cta a.is-primary { background: var(--orange); color: var(--charcoal); }
.mobile-cta svg { flex: none; }

/* ==========================================================================
   Motion
   ========================================================================== */

html.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    will-change: opacity, transform;
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    html.js [data-reveal] { opacity: 1; transform: none; }
    .btn:hover, .card:hover, .gallery-item:hover img { transform: none; }
}

/* ==========================================================================
   Responsive
   Breakpoints: 1180 / 1024 / 900 / 760 / 560 / 400
   ========================================================================== */

/* Header extras drop out in stages so the CTA is never clipped */
@media (max-width: 1150px) {
    /* Icon-only, but still obviously a button */
    .header-track span { display: none; }
    .header-track {
        width: 44px;
        padding: 0;
        justify-content: center;
        border: 1px solid var(--light-gray);
        color: var(--navy);
    }
}

@media (max-width: 1040px) {
    .header-phone { display: none; }
}

@media (max-width: 1090px) {
    .nav-desktop { gap: 0.5rem; }
    .nav-desktop a { font-size: 0.8125rem; }
}

@media (max-width: 1024px) {
    :root { --header-h: 70px; }
    .nav-desktop, .header-track { display: none; }
    .nav-toggle { display: inline-flex; }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-item:nth-child(2) { border-right: 0; }
    .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--light-gray); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery--preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery--preview .gallery-item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-figure { order: -1; }
    .hero-figure::before { inset: 10px -10px -10px 10px; }
    .hero-badge { left: 10px; bottom: 14px; }
    .split, .split--wide-right { grid-template-columns: 1fr; gap: 2.25rem; }
    .split .figure { order: -1; }
    .split--media-last .figure { order: 0; }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-tracker { grid-template-columns: 1fr; gap: 1.75rem; }
    .compare { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: 1fr; }
    .trust-strip { margin-top: 0; }
    .trust-grid { box-shadow: var(--shadow-md); }
}

@media (max-width: 760px) {
    .form-grid { grid-template-columns: 1fr; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .gallery-item figcaption { padding: 1.1rem 0.85rem 0.8rem; font-size: 0.8125rem; }
    .gallery--preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lightbox-close { top: auto; bottom: -54px; right: 50%; transform: translateX(50%); }
    .lightbox-counter { top: auto; bottom: -44px; left: 0; }
    .mobile-cta { display: grid; }
    body { padding-bottom: 56px; }
    .update-flag { bottom: 68px; }
    .progress-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
    .tracker-panel-head { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    :root { --header-h: 64px; }
    .brand img { height: 36px; }
    .site-header.is-scrolled .brand img { height: 32px; }
    .gallery { grid-template-columns: 1fr; }
    .gallery--preview { grid-template-columns: 1fr; }
    .gallery--preview .gallery-item:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { border-right: 0; border-bottom: 1px solid var(--light-gray); }
    /* Logo plus hamburger only: the consultation CTA lives in the menu and the
       sticky bar at the bottom of the screen. */
    .header-actions .btn { display: none; }
    .trust-item:last-child { border-bottom: 0; }
    .steps { grid-template-columns: 1fr; row-gap: 1.75rem; }
    .btn-row .btn { width: 100%; }
    .tracker-form-row { grid-template-columns: 1fr; }
    .hero-badge { position: static; margin-top: 14px; max-width: none; box-shadow: var(--shadow-md); }
    .hero-figure::before { display: none; }
    .pill { width: 100%; }
}

@media (max-width: 400px) {
    .container { padding-inline: 1.125rem; }
    .ticket-number-display { font-size: 1.5rem; letter-spacing: 0.04em; }
    .mobile-cta a { font-size: 0.75rem; gap: 6px; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .site-header, .site-footer, .mobile-cta, .update-flag, .btn, .lightbox { display: none !important; }
    body { padding: 0; color: #000; }
    .tracker-panel { box-shadow: none; border: 1px solid #999; }
    .tracker-panel-head { background: #fff !important; color: #000 !important; }
    .tracker-panel-head .ticket-number, .tracker-panel-head .ticket-sub { color: #000 !important; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.15rem; }
.mt-4 { margin-top: 1.6rem; }
.mt-5 { margin-top: 2.1rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.15rem; }
.mb-4 { margin-bottom: 1.6rem; }
.stack { display: grid; gap: 1rem; }
.stack--sm { display: grid; gap: 0.75rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.muted { color: var(--gray-500); }
.nowrap { white-space: nowrap; }
.full-width { width: 100%; }

/* FAQ page two-column layout collapses to a single column on tablets */
@media (max-width: 900px) {
    .faq-layout { grid-template-columns: 1fr !important; }
    .faq-layout aside { order: 2; }
}

/* ==========================================================================
   Footer social links
   ========================================================================== */

.footer-social {
    list-style: none;
    padding: 0;
    margin: 0.9rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-social li { margin: 0; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 14px 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-head);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.footer-social a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}
.footer-social svg { color: var(--gold); flex: none; }
.footer-social a:hover svg { color: var(--white); }

/* ==========================================================================
   Live chat widget
   ========================================================================== */

.chat {
    position: fixed;
    right: clamp(12px, 2vw, 24px);
    bottom: clamp(12px, 2vw, 24px);
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.chat-launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px 0 16px;
    background: var(--navy);
    border: 0;
    border-radius: 100px;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(21, 22, 49, 0.6);
    transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chat-launcher:hover { background: var(--navy-600); transform: translateY(-2px); }
.chat-launcher-icon { display: inline-flex; color: var(--gold); }
.chat-launcher-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4FA758;
    box-shadow: 0 0 0 3px rgba(79, 167, 88, 0.25);
}
.chat[data-open="true"] .chat-launcher { display: none; }

/* A class-level display rule outranks the UA rule for [hidden], so the panel
   would sit open on every first page load without this. */
.chat-panel[hidden] { display: none; }

.chat-panel {
    width: min(92vw, 380px);
    max-height: min(78vh, 620px);
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: chat-in 0.22s var(--ease);
}
@keyframes chat-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--navy);
    color: var(--white);
}
.chat-head-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.chat-head-id strong { display: block; font-family: var(--font-head); font-size: 0.9375rem; color: var(--white); }
.chat-status { display: block; font-size: 0.6875rem; color: rgba(255, 255, 255, 0.65); margin-top: 2px; }
.chat-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(253, 196, 18, 0.16);
    color: var(--gold);
    flex: none;
}
.chat-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
    flex: none;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.22); }

.chat-log {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    gap: 10px;
    align-content: start;
    background: var(--off-white);
    scrollbar-width: thin;
}
.chat-msg {
    max-width: 88%;
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.55;
}
.chat-msg p { margin: 0; }
.chat-msg p + p { margin-top: 0.5em; }
.chat-msg a { text-decoration: underline; overflow-wrap: anywhere; }
.chat-msg--bot {
    justify-self: start;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-bottom-left-radius: 4px;
    color: var(--ink);
}
.chat-msg--user {
    justify-self: end;
    background: var(--navy);
    border-bottom-right-radius: 4px;
    color: var(--white);
}
.chat-msg--user a { color: var(--gold); }
.chat-msg--error { background: #FDECEA; border-color: rgba(192, 57, 43, 0.3); color: #8E2A20; }

.chat-typing { display: inline-flex; gap: 4px; align-items: center; }
.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-400);
    animation: chat-bounce 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px 0;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
}
.chat-chip {
    min-height: 34px;
    padding: 7px 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.16s var(--ease);
}
.chat-chip:hover { border-color: var(--navy); color: var(--navy); }
.chat-suggestions[hidden] { display: none; }

.chat-form {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--white);
}
.chat-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink);
}
.chat-input:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.chat-send {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--orange);
    border: 0;
    border-radius: var(--radius);
    color: var(--charcoal);
    cursor: pointer;
    flex: none;
}
.chat-send:hover { background: var(--orange-600); }
.chat-send[disabled] { opacity: 0.5; cursor: default; }

.chat-foot {
    margin: 0;
    padding: 0 16px 12px;
    background: var(--white);
    font-size: 0.6875rem;
    color: var(--gray-500);
}
.chat-foot a { color: var(--blue); }

/* The sticky mobile call bar owns the bottom edge, so lift the widget above it */
@media (max-width: 760px) {
    .chat { bottom: 68px; right: 12px; }
    .chat-launcher-label { display: none; }
    .chat-launcher { padding: 0; width: 52px; justify-content: center; }
    .chat-launcher-dot { position: absolute; top: 8px; right: 8px; }
    .chat-panel { max-height: 72vh; }
}

@media (prefers-reduced-motion: reduce) {
    .chat-panel { animation: none; }
    .chat-typing span { animation: none; }
}
