:root {
    --ink: #121820;
    --muted: #64707d;
    --line: #dce4ea;
    --panel: #ffffff;
    --soft: #f4f6f8;
    --accent: #d94b2b;
    --accent-dark: #a9321f;
    --gold: #f4b24d;
    --steel: #24384c;
    --deep: #0d141d;
    --shadow: 0 18px 55px rgba(13, 20, 29, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

.top-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 9px clamp(18px, 5vw, 76px);
    color: rgba(255, 255, 255, 0.82);
    background: var(--deep);
    font-size: 13px;
}

.top-strip a {
    color: var(--gold);
    font-weight: 800;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 5vw, 76px);
    border-bottom: 1px solid rgba(220, 228, 234, 0.8);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(13, 20, 29, 0.06);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
}

.brand-logo {
    display: block;
    width: min(340px, 52vw);
    max-height: 100px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--steel);
    font-size: 14px;
    font-weight: 800;
}

.site-nav a,
.nav-button {
    position: relative;
    padding: 10px 0;
}

.nav-button {
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.site-nav a::after,
.nav-button::after {
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 2px;
    content: "";
    background: var(--accent);
    transition: width 180ms ease;
}

.site-nav a:hover::after,
.nav-button:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
    width: 40px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--steel);
    border-radius: 2px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    color: #ffffff;
    background: var(--accent);
    border-radius: 8px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(217, 75, 43, 0.22);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.55fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: center;
    min-height: 720px;
    padding: 92px clamp(18px, 5vw, 76px) 76px;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(13, 20, 29, 0.92) 0%, rgba(13, 20, 29, 0.72) 45%, rgba(13, 20, 29, 0.25) 100%),
        url("../images/roofing-hero-modern.png") center/cover no-repeat;
}

.hero::after {
    position: absolute;
    right: clamp(18px, 5vw, 76px);
    bottom: 0;
    width: min(420px, 36vw);
    height: 8px;
    content: "";
    background: var(--accent);
}

.hero-copy,
.hero-panel {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-heading span,
.contact-section span,
.panel-kicker,
.confidence-band span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 790px;
    margin: 0;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.96;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 900;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 18px 35px rgba(217, 75, 43, 0.24);
}

.btn.primary:hover {
    background: var(--accent-dark);
}

.btn.secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
}

.btn.full {
    width: 100%;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.hero-trust span {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 800;
}

.hero-panel {
    align-self: end;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(13, 20, 29, 0.78);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.hero-panel strong {
    display: block;
    font-size: 25px;
    line-height: 1.18;
}

.hero-panel p {
    color: rgba(255, 255, 255, 0.76);
}

.estimate-card {
    display: grid;
    gap: 3px;
    margin: 22px 0;
    padding: 16px;
    border-left: 4px solid var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.estimate-card span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1180px;
    margin: -44px auto 0;
    padding: 0 clamp(18px, 3vw, 34px);
    position: relative;
    z-index: 2;
}

.stats-band div {
    padding: 28px;
    border-right: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.stats-band div:first-child {
    border-radius: 8px 0 0 8px;
}

.stats-band div:last-child {
    border-right: 0;
    border-radius: 0 8px 8px 0;
}

.stats-band strong {
    display: block;
    color: var(--accent);
    font-size: 28px;
    line-height: 1.1;
}

.stats-band span {
    color: var(--muted);
    font-weight: 800;
}

.section,
.contact-section,
.confidence-band,
.hail-section {
    padding: 88px clamp(18px, 5vw, 76px);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.wide-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
    gap: 28px;
    align-items: end;
    max-width: none;
}

.wide-heading p {
    color: var(--muted);
    margin: 0 0 4px;
}

.section-heading h2,
.contact-section h2,
.confidence-band h2 {
    margin: 0;
    font-size: clamp(31px, 4vw, 50px);
    line-height: 1.05;
}

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

.service-card {
    display: grid;
    gap: 22px;
    min-height: 290px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.98)),
        url("../images/project-roof.svg") center/cover no-repeat;
    box-shadow: 0 12px 34px rgba(13, 20, 29, 0.08);
}

.service-card:nth-child(2) {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.98)),
        url("../images/project-repair.svg");
}

.service-card:nth-child(3) {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.98)),
        url("../images/project-gutters.svg");
}

.service-card:nth-child(4) {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.98)),
        url("../images/hero-roof.svg");
}

.service-card:nth-child(n + 5) {
    min-height: 245px;
}

.service-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--steel);
    font-weight: 900;
}

.service-card h3,
.project-card h3,
.process-list h3 {
    margin: 0 0 8px;
}

.service-card p,
.project-card p,
.process-list p,
.testimonial-grid blockquote,
.confidence-grid p {
    margin: 0;
    color: var(--muted);
}

.hail-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
    gap: 36px;
    align-items: stretch;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 248, 0.94)),
        url("../images/project-repair.svg") center/cover no-repeat;
}

.hail-copy {
    max-width: 760px;
}

.hail-copy span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}

.hail-copy h2 {
    margin: 0;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 0.96;
    text-transform: uppercase;
}

.hail-copy p {
    max-width: 640px;
    color: var(--muted);
    font-size: 18px;
}

.hail-copy ul,
.hail-card ul {
    margin: 24px 0 0;
    padding-left: 20px;
}

.hail-copy li {
    margin: 7px 0;
    color: var(--deep);
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
}

.hail-card {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 28px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(145deg, var(--deep), var(--steel));
    box-shadow: var(--shadow);
}

.hail-card strong {
    font-size: 28px;
    text-transform: uppercase;
}

.hail-card ul {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 800;
}

.hail-card li {
    margin: 9px 0;
}

.btn.secondary.dark {
    color: var(--deep);
    border-color: transparent;
    background: #ffffff;
}

.confidence-band {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 42px;
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(13, 20, 29, 0.96), rgba(36, 56, 76, 0.92)),
        url("../images/roofing-hero-modern.png") center/cover no-repeat;
}

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

.confidence-grid article {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.confidence-grid b {
    display: block;
    color: var(--gold);
    margin-bottom: 20px;
}

.confidence-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.confidence-grid p {
    color: rgba(255, 255, 255, 0.74);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    gap: 44px;
    background: var(--soft);
}

.process-list {
    display: grid;
    gap: 14px;
}

.process-list article {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(13, 20, 29, 0.06);
}

.process-list article > span {
    color: var(--accent);
    font-weight: 900;
    font-size: 26px;
}

.project-grid,
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.project-card,
.testimonial-grid figure {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(13, 20, 29, 0.08);
}

.project-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--soft);
}

.project-card div {
    padding: 22px;
}

.project-card span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.testimonials {
    background: #ffffff;
}

.testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-grid figure {
    padding: 28px;
}

.testimonial-grid blockquote {
    font-size: 20px;
}

.testimonial-grid figcaption {
    margin-top: 18px;
    font-weight: 900;
}

.stars {
    color: var(--gold);
    margin-bottom: 12px;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
    gap: 48px;
    color: #ffffff;
    background: var(--deep);
}

.contact-section p {
    color: rgba(255, 255, 255, 0.76);
}

.contact-callout {
    display: grid;
    gap: 6px;
    margin-top: 28px;
    padding: 20px;
    border-left: 5px solid var(--gold);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.contact-callout span {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    text-transform: none;
    font-size: 15px;
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 900;
    font-size: 14px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cfd7df;
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(217, 75, 43, 0.24);
    border-color: var(--accent);
}

.form-success {
    padding: 12px;
    border-radius: 8px;
    color: #0f5132;
    background: #d1e7dd;
}

.form-error {
    padding: 12px;
    border-radius: 8px;
    color: #842029;
    background: #f8d7da;
}

.contact-form button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.modal-open {
    overflow: hidden;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    padding: clamp(16px, 4vw, 42px);
}

.gallery-modal.open {
    display: grid;
    place-items: center;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(244, 178, 77, 0.18), transparent 32%),
        rgba(8, 13, 19, 0.82);
    backdrop-filter: blur(14px);
}

.gallery-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(260px, 1fr) auto auto;
    gap: 18px;
    width: min(1120px, 100%);
    max-height: min(900px, 92vh);
    padding: clamp(16px, 2.4vw, 26px);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px) saturate(135%);
}

.gallery-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(13, 20, 29, 0.58);
    font-size: 30px;
    cursor: pointer;
}

.gallery-stage {
    position: relative;
    display: grid;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(8, 13, 19, 0.78);
}

.gallery-main-image {
    width: 100%;
    height: min(58vh, 580px);
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 48px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(13, 20, 29, 0.58);
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.gallery-nav.prev {
    left: 14px;
}

.gallery-nav.next {
    right: 14px;
}

.gallery-info {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.gallery-info.empty {
    justify-content: end;
}

.gallery-info.empty > div:first-child {
    display: none;
}

.gallery-info span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-info h2 {
    margin: 4px 0;
    font-size: clamp(24px, 4vw, 38px);
}

.gallery-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.gallery-counter {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 900;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumbs button {
    width: 92px;
    height: 68px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.gallery-thumbs button.active {
    border-color: var(--gold);
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-footer {
    display: grid;
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 24px;
    padding: 32px clamp(18px, 5vw, 76px);
    color: rgba(255, 255, 255, 0.76);
    background: #080d13;
}

.footer-main {
    display: grid;
    justify-self: start;
    gap: 6px;
}

.footer-center {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.footer-contact {
    display: grid;
    justify-self: end;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.site-footer p {
    margin: 6px 0 0;
}

.site-footer a {
    display: block;
    color: #ffffff;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.social-links a:hover {
    border-color: rgba(217, 75, 43, 0.72);
    background: var(--accent);
    transform: translateY(-1px);
}

.social-links svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.footer-policy-link {
    color: var(--gold);
    font-weight: 900;
}

.chat-widget {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    z-index: 90;
    display: grid;
    justify-items: end;
    gap: 12px;
    pointer-events: none;
}

.chat-panel,
.chat-launcher {
    pointer-events: auto;
}

.chat-panel {
    display: none;
    width: min(380px, calc(100vw - 32px));
    max-height: calc(100vh - 104px);
    overflow: hidden;
    border: 1px solid rgba(220, 228, 234, 0.95);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(13, 20, 29, 0.24);
}

.chat-panel.open {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--deep), var(--steel));
}

.chat-header span {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.chat-header strong {
    display: block;
    margin-top: 2px;
    font-size: 18px;
}

.chat-close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.chat-body {
    display: grid;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding: 16px;
    background: var(--soft);
}

.chat-message {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 14px;
}

.chat-message p {
    margin: 0;
}

.chat-message.bot {
    justify-self: start;
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(13, 20, 29, 0.08);
}

.chat-message.user {
    justify-self: end;
    color: #ffffff;
    background: var(--accent);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chat-options button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--steel);
    background: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.chat-options button:hover,
.chat-options button.active {
    color: #ffffff;
    border-color: var(--accent);
    background: var(--accent);
}

.chat-question-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 16px;
}

.chat-question-form input {
    min-width: 0;
    padding: 10px 11px;
    font-size: 14px;
}

.chat-question-form .btn {
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
}

.chat-status {
    grid-column: 1 / -1;
    min-height: 20px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.chat-status.success {
    color: #0f5132;
}

.chat-status.error {
    color: #842029;
}

.chat-direct {
    padding: 0 16px 16px;
}

.chat-direct a {
    display: block;
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
    text-align: center;
}

.chat-launcher {
    display: inline-grid;
    min-width: 72px;
    min-height: 56px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 18px 35px rgba(217, 75, 43, 0.28);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.chat-launcher:hover {
    background: var(--accent-dark);
}

.policy-page {
    padding: 82px clamp(18px, 5vw, 76px);
    background: var(--soft);
}

.policy-content {
    max-width: 920px;
    margin: 0 auto;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.policy-content > span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.policy-content h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
}

.policy-content article {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.policy-content h2 {
    margin: 0 0 10px;
}

.policy-content p {
    color: var(--muted);
}

.policy-content a {
    color: var(--accent);
    font-weight: 900;
}

@media (max-width: 1040px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px clamp(18px, 5vw, 76px) 16px;
        background: #fff;
        border-bottom: 1px solid rgba(220, 228, 234, 0.8);
        box-shadow: 0 16px 24px rgba(13, 20, 29, 0.1);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a,
    .site-nav .nav-button {
        width: 100%;
        padding: 12px 0;
        text-align: left;
    }

    .hero,
    .split-section,
    .contact-section,
    .confidence-band,
    .hail-section,
    .wide-heading {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .project-grid,
    .confidence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .top-strip,
    .site-header,
    .site-footer {
        align-items: flex-start;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .footer-center,
    .footer-contact {
        justify-self: start;
    }

    .footer-center {
        justify-items: start;
    }

    .footer-contact {
        justify-items: start;
        text-align: left;
    }

    .header-phone {
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .stats-band {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding: 0;
    }

    .stats-band div,
    .stats-band div:first-child,
    .stats-band div:last-child {
        border-radius: 0;
        border-right: 0;
        box-shadow: none;
        border-bottom: 1px solid var(--line);
    }

    .service-grid,
    .project-grid,
    .testimonial-grid,
    .confidence-grid {
        grid-template-columns: 1fr;
    }

    .gallery-info {
        align-items: start;
        flex-direction: column;
    }

    .gallery-main-image {
        height: min(46vh, 440px);
    }

    .section,
    .contact-section,
    .confidence-band,
    .hail-section {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .chat-widget {
        right: 12px;
        bottom: 12px;
    }

    .chat-panel {
        max-height: calc(100vh - 96px);
    }

    .chat-question-form {
        grid-template-columns: 1fr;
    }
}
