:root {
    --font-scale: 0.9;
    --font-bump: 3px;
    --field-bump: 1px;
    --field-border: 2px;
    --brand-blue: #1f91e5;
    --brand-blue-dark: #0d5fa8;
    --brand-blue-soft: #e8f5ff;
    --ink: #0d1b2a;
    --muted: #5c6b7a;
    --line: #dbe7f1;
    --surface: #ffffff;
    --surface-alt: #f6fbff;
    --shadow: 0 24px 70px rgba(13, 95, 168, 0.14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --container: 1200px;
    --narrow: 820px;
    --layout-gutter: 44px;
    --section-y: 56px;
    --font-sans: "Outfit", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    font-size: calc(100% * var(--font-scale) + var(--font-bump));
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fcff 0%, #ffffff 32%);
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--brand-blue-dark);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

a:hover {
    color: var(--brand-blue);
}

h1,
h2,
h3 {
    margin: 0 0 16px;
    color: var(--ink);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

h1 {
    font-size: clamp(1.85rem, calc(6vw - 6px), 4.6rem);
    letter-spacing: -0.06em;
}

h2 {
    font-size: clamp(1.75rem, calc(2.7vw + 3px), 2.85rem);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.475rem;
}

p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.125rem;
    overflow-wrap: anywhere;
}

.container {
    width: min(var(--container), calc(100% - var(--layout-gutter)));
    margin: 0 auto;
}

.narrow {
    max-width: var(--narrow);
}

.section {
    padding: var(--section-y) 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 20;
    padding: 10px 14px;
    color: #fff;
    background: var(--brand-blue-dark);
    border-radius: 999px;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(219, 231, 241, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 96px;
}

.brand img,
.footer-brand img {
    width: 245px;
    height: auto;
}

.footer-brand img {
    margin-bottom: 18px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
}

.primary-nav a {
    padding: 10px 13px;
    color: var(--ink);
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 999px;
}

.primary-nav a:not(.nav-cta):hover,
.primary-nav a:not(.nav-cta).active {
    color: var(--brand-blue-dark);
    background: var(--brand-blue-soft);
}

.primary-nav .nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    font-weight: 800;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.primary-nav .nav-cta,
.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible,
.primary-nav .nav-cta.active,
.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    box-shadow: 0 14px 30px rgba(31, 145, 229, 0.28);
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible,
.button-primary:hover {
    color: #fff;
    transform: translateY(-2px);
}

.primary-nav .nav-cta {
    min-height: 38px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 1.05rem;
    box-shadow: 0 10px 22px rgba(31, 145, 229, 0.22);
}

.button-secondary {
    color: var(--brand-blue-dark);
    background: var(--brand-blue-soft);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.nav-toggle {
    display: none;
    padding: 10px 14px;
    color: var(--brand-blue-dark);
    background: var(--brand-blue-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 800;
}

.site-banner {
    width: 100%;
    max-height: 320px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.site-banner img {
    display: block;
    width: 100%;
    height: clamp(180px, 28vw, 320px);
    object-fit: cover;
    object-position: center;
}

.home-banner {
    overflow: hidden;
    padding: 0.85rem 0;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    min-height: calc(clamp(11.75rem, 23vw, 23rem) + 1.7rem);
}

.home-banner-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: home-banner-marquee 70s linear infinite;
    animation-play-state: paused;
}

.home-banner.is-ready .home-banner-track {
    animation-play-state: running;
}

.home-banner-slide {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 0.85rem;
    border: 0;
    box-shadow: none;
    aspect-ratio: 2 / 1;
    background: var(--brand-blue-soft);
}

.home-banner-track picture {
    display: block;
    line-height: 0;
    height: 100%;
}

.home-banner-track img {
    display: block;
    width: clamp(18.75rem, 46vw, 46rem);
    height: clamp(11.75rem, 23vw, 23rem);
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.home-banner:not(.is-ready) .home-banner-slide:first-child img {
    visibility: hidden;
}

.home-banner.is-ready .home-banner-track img {
    visibility: visible;
}

.home-banner-label {
    position: absolute;
    bottom: 0.65rem;
    z-index: 1;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(13, 95, 168, 0.9);
    color: #fff;
    font-size: clamp(0.62rem, 1.4vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(13, 95, 168, 0.25);
}

.home-banner-label-before {
    left: 25%;
    transform: translateX(-50%);
}

.home-banner-label-after {
    left: 75%;
    transform: translateX(-50%);
}

@keyframes home-banner-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-banner-track {
        animation: none;
        transform: translateX(0);
    }
}

.hero {
    position: relative;
    overflow: hidden;
    padding-top: 42px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 50%;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(31, 145, 229, 0.18), rgba(31, 145, 229, 0));
    transform: translate(-10%, -32%);
    pointer-events: none;
}

.hero-grid,
.two-column,
.contact-grid,
.split-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 48px;
    align-items: center;
}

.hero-copy,
.hero-card,
.info-card,
.form-card,
.service-card,
.blog-card,
.service-row {
    position: relative;
}

.hero-copy h1 {
    font-size: clamp(1.65rem, calc(5vw + 2px), 3.85rem);
    letter-spacing: -0.05em;
}

.hero-lead {
    max-width: 680px;
    font-size: 1.28rem;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--brand-blue-dark);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-card,
.info-card,
.form-card,
.service-card,
.blog-card,
.service-row {
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.sparkle-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 22px;
    place-items: center;
    color: #fff;
    background: var(--brand-blue);
    border-radius: 20px;
    font-size: 2.225rem;
    font-weight: 900;
}

.check-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--ink);
    font-weight: 650;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 14px;
    height: 14px;
    background: var(--brand-blue);
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px #fff;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 40px;
}

.card-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.blog-grid {
    align-items: stretch;
}

.service-card,
.blog-card {
    box-shadow: none;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card p {
    flex: 1;
    margin-bottom: 24px;
}

.service-card-button {
    width: fit-content;
    margin-top: auto;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-band {
    background: linear-gradient(135deg, var(--brand-blue-soft), #ffffff);
}

.feature-band .section-heading h2 {
    font-size: clamp(1.4rem, calc(1.8vw + 2px), 2.25rem);
    letter-spacing: -0.035em;
}

.split-panel {
    padding: 42px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    gap: 16px;
}

.stats-grid div {
    padding: 22px;
    background: var(--surface-alt);
    border-radius: var(--radius-md);
}

.stats-grid strong,
.stats-grid span {
    display: block;
}

.stats-grid strong {
    color: var(--brand-blue-dark);
    font-size: 1.625rem;
}

.reviews-section {
    padding-top: var(--section-y);
}

.reviews-section .section-heading {
    margin-bottom: 44px;
    padding: 12px 8px 0;
}

.reviews-layout {
    display: grid;
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.reviews-score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(180deg, var(--brand-blue-soft) 0%, #fff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.reviews-score-label {
    margin: 0 0 10px;
    color: var(--brand-blue-dark);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reviews-score-value {
    margin: 0;
    color: var(--brand-blue-dark);
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1;
}

.reviews-score-stars {
    margin: 10px 0 0;
    color: #f4b400;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}

.reviews-score-count {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.98rem;
    font-weight: 600;
}

.reviews-score-card .reviews-trust {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.reviews-score-card .review-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 22px;
}

.reviews-score-card .review-actions .button {
    width: 100%;
    justify-content: center;
}

.reviews-content {
    min-width: 0;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.google-rating {
    color: var(--ink);
    font-weight: 800;
}

.google-rating span {
    color: var(--brand-blue-dark);
    font-size: 1.8rem;
}

.google-rating small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.google-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.google-review-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 22px;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.google-review-quote {
    flex: 1;
    margin: 0;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.65;
}

.google-review-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.google-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.google-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.google-review-author cite {
    display: block;
    color: var(--ink);
    font-style: normal;
    font-weight: 800;
}

.google-review-author small,
.google-review-source {
    display: block;
    color: var(--muted);
    font-weight: 600;
}

.google-review-stars {
    color: #f4b400;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.testimonials-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.testimonials-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 18px) / 2);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 8px;
    scrollbar-width: none;
}

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

.testimonials-track .google-review-card {
    scroll-snap-align: start;
    height: 100%;
}

.testimonials-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--brand-blue);
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.testimonials-nav:hover {
    background: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
    color: #fff;
}

.testimonials-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.testimonials-nav-prev {
    left: -12px;
}

.testimonials-nav-next {
    right: -12px;
}

.testimonials-nav span {
    font-size: 1.6rem;
    line-height: 1;
    color: #fff;
}

.page-hero {
    text-align: center;
    background: radial-gradient(circle at top, rgba(31, 145, 229, 0.14), transparent 48%);
}

.page-hero h1 {
    font-size: clamp(1.8rem, calc(3vw + 6px), 3rem);
}

.page-hero .narrow {
    margin: 0 auto;
}

.about-story {
    padding-top: 42px;
}

.about-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: stretch;
}

.about-mission-grid .info-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-mission-grid .info-card p:last-child {
    margin-bottom: 0;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.about-values-grid .info-card h3 {
    margin-bottom: 12px;
}

.about-values-grid .info-card p:last-child {
    margin-bottom: 0;
}

.service-list,
.faq-list {
    display: grid;
    gap: 18px;
}

.services-overview {
    padding-top: 42px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.service-detail-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 18px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.service-detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    color: var(--brand-blue-dark);
    background: var(--brand-blue-soft);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.service-icon {
    display: grid;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.service-detail-card h2 {
    font-size: clamp(1.25rem, calc(1vw + 0.95rem), 1.55rem);
    letter-spacing: -0.03em;
}

.service-detail-card p {
    margin-bottom: 0;
}

.service-highlights {
    margin-top: 0;
}

.service-detail-button {
    width: fit-content;
    margin-top: auto;
}

.services-process .section-heading {
    margin-bottom: 28px;
}

.services-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.services-step {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.services-step .service-icon {
    margin-bottom: 16px;
}

.services-step h3 {
    font-size: 1.2rem;
}

.services-step p {
    margin-bottom: 0;
}

.services-trust .check-list {
    margin-top: 18px;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: none;
}

.service-quote-button {
    width: fit-content;
    min-height: 40px;
    padding: 9px 15px;
    font-size: 1.1rem;
    white-space: nowrap;
}

.blog-card-button {
    width: fit-content;
    margin-top: auto;
    font-size: 1.05rem;
}

.blog-card span {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 7px 12px;
    color: var(--brand-blue-dark);
    background: var(--brand-blue-soft);
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 800;
}

.blog-card h2 {
    font-size: clamp(1.35rem, calc(1.35vw + 0.95rem), 1.65rem);
    letter-spacing: -0.03em;
}

.blog-card p {
    flex: 1;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

@media (min-width: 921px) {
    .blog-card h2 {
        min-height: 3.35em;
    }
}

.faq-item {
    padding: 24px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.faq-item summary {
    color: var(--ink);
    font-size: 1.225rem;
    font-weight: 800;
    cursor: pointer;
}

.faq-item p {
    margin-top: 14px;
    margin-bottom: 0;
}

.contact-grid {
    align-items: start;
}

.contact-sidebar {
    display: grid;
    gap: 22px;
}

.map-card {
    height: 280px;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-faq .eyebrow {
    margin-bottom: 10px;
}

.faq-list.compact {
    gap: 12px;
}

.faq-list.compact .faq-item {
    padding: 18px;
    box-shadow: none;
}

.form-card {
    display: grid;
    gap: 11px;
    padding: 24px;
}

.form-card label {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.form-card label + input,
.form-card label + select,
.form-card label + textarea {
    margin-bottom: 2px;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    min-height: calc(42px + var(--field-bump));
    padding: calc(10px + var(--field-bump)) calc(12px + var(--field-bump));
    color: var(--ink);
    background: var(--surface-alt);
    border: var(--field-border) solid #b8cfdf;
    border-radius: calc(12px + var(--field-bump));
    font: inherit;
    font-size: calc(0.95rem + var(--field-bump));
    font-weight: 400;
}

.form-card textarea {
    min-height: calc(108px + var(--field-bump));
    resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: 3px solid rgba(31, 145, 229, 0.2);
    border-color: var(--brand-blue);
    border-width: var(--field-border);
}

.quote-submit-button {
    min-height: 44px;
    padding: 11px 18px;
    font-size: 1.05rem;
}

.form-success,
.form-errors {
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 750;
}

.form-success {
    color: #0a5b33;
    background: #e9f8ef;
}

.form-errors {
    color: #8a1f1f;
    background: #fff0f0;
}

.form-errors p {
    margin: 0;
    color: inherit;
}

.hidden-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-security-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 61, 46, 0.14);
    border-radius: 10px;
    background: rgba(15, 61, 46, 0.04);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.form-security-check input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-security-check span {
    flex: 1;
}

.cta-strip {
    padding-top: 32px;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.cta-inner > div {
    flex: 1 1 260px;
    min-width: 0;
}

.cta-inner h2,
.cta-inner p {
    color: #fff;
}

.cta-inner p {
    margin-bottom: 0;
    opacity: 0.9;
}

.cta-inner .button-primary {
    color: var(--brand-blue-dark);
    background: #fff;
    box-shadow: none;
    flex: 0 0 auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.site-footer {
    padding: 58px 0 24px;
    background: #07111f;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 0;
}

.footer-grid > div {
    padding: 0 24px;
}

.footer-grid > div:first-child {
    padding-left: 0;
}

.footer-grid > div:last-child {
    padding-right: 0;
}

.footer-grid > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.footer-social a:hover {
    color: #fff;
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.site-footer h2 {
    color: #fff;
    font-size: calc(1.15rem - 0.5px);
    letter-spacing: 0;
}

.site-footer p,
.site-footer a {
    font-size: calc(1.2rem - 0.5px);
    color: rgba(255, 255, 255, 0.78);
}

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

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    font-size: calc(1.2rem - 0.5px);
}

.footer-divider {
    margin: 0 0.25em;
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 82px;
    }

    .brand img,
    .footer-brand img {
        width: 210px;
    }

    .nav-toggle {
        display: inline-flex;
        padding: 12px 18px;
        font-size: 1.25rem;
    }

    .primary-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        max-height: calc(100vh - 100px);
        padding: 14px;
        overflow-y: auto;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: var(--shadow);
    }

    .primary-nav.open {
        display: flex;
    }

    .primary-nav {
        font-family: var(--font-sans);
    }

    .primary-nav a {
        padding: 14px 16px;
        text-align: center;
        font-size: 1.25rem;
    }

    .primary-nav .nav-cta {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 1.15rem;
    }

    .hero-grid,
    .two-column,
    .contact-grid,
    .split-panel {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .blog-grid,
    .google-review-grid,
    .footer-grid,
    .services-grid,
    .services-steps,
    .about-values-grid,
    .about-mission-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid > div {
        padding: 20px 0 0;
    }

    .footer-grid > div:first-child {
        padding-top: 0;
    }

    .footer-grid > div + div {
        border-left: none;
        border-top: none;
    }

    .footer-divider {
        display: none;
    }

    .service-row,
    .reviews-layout,
    .cta-inner {
        align-items: stretch;
        gap: 24px;
    }

    .reviews-layout {
        grid-template-columns: 1fr;
    }

    .reviews-score-card .review-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .reviews-score-card .review-actions .button {
        width: auto;
        flex: 1 1 180px;
    }

    .cta-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-inner > div {
        flex: 1 1 auto;
    }

    .cta-inner .button-primary {
        width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        align-self: stretch;
        box-sizing: border-box;
        text-align: center;
    }

    .testimonials-track {
        grid-auto-columns: min(100%, 100%);
    }

    .testimonials-carousel {
        padding: 0 40px;
    }

    .testimonials-nav-prev {
        left: 0;
    }

    .testimonials-nav-next {
        right: 0;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 1rem;
    }

    p {
        font-size: 1.05rem;
    }

    .container {
        width: min(100% - 28px, var(--container));
    }

    .hero {
        padding-top: 48px;
    }

    .brand img {
        width: 160px;
    }

    h1 {
        font-size: clamp(2rem, 11vw, 3.1rem);
        letter-spacing: -0.045em;
    }

    .hero-copy h1 {
        font-size: clamp(1.75rem, 9vw, 2.75rem);
    }

    .page-hero h1 {
        font-size: clamp(1.7rem, 9vw, 2.4rem);
    }

    h2 {
        font-size: clamp(1.45rem, 7.5vw, 2.15rem);
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-lead {
        font-size: 1.125rem;
    }

    .eyebrow {
        font-size: 0.875rem;
    }

    .hero-card,
    .info-card,
    .form-card,
    .service-card,
    .service-detail-card,
    .services-step,
    .blog-card,
    .service-row,
    .split-panel,
    .reviews-content,
    .reviews-score-card,
    .cta-inner {
        padding: 20px;
        border-radius: 22px;
    }

    .button-row,
    .reviews-score-card .review-actions {
        gap: 10px;
    }

    .reviews-score-card .review-actions .button {
        width: 100%;
        flex: 1 1 auto;
    }

    .button {
        width: 100%;
        min-height: 46px;
        padding: 12px 16px;
        text-align: center;
    }

    .service-quote-button,
    .service-detail-button {
        width: 100%;
        text-align: center;
    }

    .primary-nav a {
        font-family: var(--font-sans);
        font-size: 1.2rem;
    }

    .primary-nav .nav-cta {
        font-size: 1.1rem;
    }

    .nav-toggle {
        font-family: var(--font-sans);
        padding: 11px 16px;
        font-size: 1.25rem;
    }

    .reviews-section .section-heading {
        margin-bottom: 28px;
        padding: 8px 0 0;
    }

    .reviews-content {
        overflow: hidden;
        padding: 20px 16px;
    }

    .reviews-score-card {
        padding: 24px 20px;
    }

    .service-row {
        gap: 16px;
    }

    .google-review-card {
        padding: 16px;
        min-width: 0;
    }

    .google-review-quote {
        font-size: 0.98rem;
        overflow-wrap: anywhere;
    }

    .google-review-author {
        min-width: 0;
    }

    .google-review-author cite {
        overflow-wrap: anywhere;
    }

    .google-review-stars {
        font-size: 0.9rem;
        letter-spacing: 0.04em;
    }

    .testimonials-track {
        grid-auto-columns: 100%;
        gap: 14px;
        padding: 2px 0 6px;
    }

    .testimonials-carousel {
        padding: 0 34px;
    }

    .testimonials-nav {
        width: 32px;
        height: 32px;
    }

    .testimonials-nav span {
        font-size: 1.35rem;
    }

    .map-card {
        height: 230px;
    }

    .site-footer p,
    .site-footer a,
    .footer-bottom p {
        font-size: calc(1.05rem - 0.5px);
    }
}

@media (max-width: 380px) {
    .container {
        width: min(100% - 20px, var(--container));
    }

    .brand img {
        width: 138px;
    }

    .nav-toggle {
        padding: 10px 14px;
        font-size: 1.2rem;
    }

    .hero-card,
    .info-card,
    .form-card,
    .service-card,
    .service-detail-card,
    .services-step,
    .blog-card,
    .service-row,
    .split-panel,
    .reviews-content,
    .reviews-score-card,
    .cta-inner {
        padding: 16px;
    }
}
