:root {
    --ink: #14212b;
    --muted: #667684;
    --steel: #263f4f;
    --blue: #135f78;
    --teal: #1f9aa0;
    --copper: #bd6f31;
    --cream: #f5efe3;
    --paper: #ffffff;
    --line: #dce6eb;
    --success: #207653;
    --danger: #b23b3b;
    --shadow: 0 18px 50px rgba(19, 45, 59, .1);
    --soft-shadow: 0 10px 30px rgba(19, 45, 59, .08);
    font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, #f7fbfc 0, #edf5f6 520px, #f5f8f8 100%);
    line-height: 1.6;
}

a { color: inherit; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.skip-link {
    position: fixed;
    top: 8px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 6px;
    color: #fff;
    background: var(--ink);
    text-decoration: none;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.inline-form { margin: 0; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; }
.consent-label input { width: auto; margin-top: 5px; }
.consent-label a { color: var(--blue); font-weight: 800; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(24px, 4vw, 60px);
    padding: 8px clamp(18px, 5vw, 70px);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    border-top: 4px solid var(--copper);
    box-shadow: 0 10px 35px rgba(19, 45, 59, .1);
    backdrop-filter: blur(14px);
}

.brand {
    position: relative;
    flex: 0 0 235px;
    display: flex;
    align-items: center;
    width: 235px;
    height: 112px;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    filter: drop-shadow(0 8px 15px rgba(20, 33, 43, .08));
}

.brand-logo {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.site-nav a {
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--ink);
    background: #edf5f6;
    transform: translateY(-1px);
}

.site-nav .nav-cta {
    padding-inline: 18px;
    color: #fff;
    background: linear-gradient(135deg, #bd6f31, #d58a45);
    box-shadow: 0 10px 22px rgba(189, 111, 49, .24);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
    color: #fff;
    background: linear-gradient(135deg, #a95e27, #c97935);
}

.hero {
    min-height: 620px;
    display: grid;
    align-items: end;
    padding: 92px clamp(18px, 5vw, 70px) 72px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(11,24,33,.94), rgba(20,45,58,.68), rgba(20,45,58,.16)),
        url('../images/service-new-metal-roof.png') center/cover;
}

.hero-content {
    max-width: 820px;
    padding: clamp(25px, 4vw, 46px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15,31,42,.72), rgba(20,45,58,.38));
    box-shadow: 0 26px 70px rgba(4, 16, 23, .3);
    backdrop-filter: blur(7px);
}

.eyebrow {
    color: #96eef0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero .eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 11px;
    border: 1px solid rgba(150,238,240,.35);
    border-radius: 999px;
    background: rgba(31,154,160,.16);
    font-size: 13px;
}

h1, h2, h3 { line-height: 1.1; margin: 0 0 14px; }
h1 { font-size: clamp(42px, 7vw, 82px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 22px; }
p { margin: 0 0 16px; }

.hero p {
    max-width: 650px;
    color: #e8f4f5;
    font-size: 20px;
}

.hero-service-line {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: clamp(25px, 3.3vw, 46px);
    font-weight: 700;
}

.local-service-section {
    background: linear-gradient(180deg, #f7fbfc, #eef6f7);
}

.service-intro {
    color: #fff;
    background: linear-gradient(135deg, var(--ink), var(--steel));
}

.service-intro .section-head {
    max-width: 900px;
    margin-bottom: 0;
}

.service-intro p {
    max-width: 760px;
    color: #dcebed;
    font-size: 19px;
}

.card h2 {
    font-size: clamp(25px, 2.4vw, 34px);
}

.faq-list {
    display: grid;
    gap: 14px;
    max-width: 980px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--copper);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(189, 111, 49, .22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button.secondary {
    background: #fff;
    color: var(--steel);
    box-shadow: 0 10px 22px rgba(19, 45, 59, .08);
}

.button.danger {
    background: var(--danger);
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(19, 45, 59, .14);
}

.section {
    padding: 58px clamp(18px, 5vw, 70px);
}

.section.alt { background: var(--cream); }

.section-head {
    max-width: 780px;
    margin-bottom: 28px;
}

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

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card-body { padding: 22px; }
.card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

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

.gallery-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--soft-shadow);
}

.gallery-item img,
.gallery-item video {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #0f171d;
}

.gallery-copy {
    padding: 18px;
}

.gallery-copy h2 {
    font-size: 22px;
}

.admin-gallery .gallery-item {
    box-shadow: none;
}

.note {
    border-left: 5px solid var(--teal);
    background: #ecfaf9;
    padding: 18px;
    border-radius: 8px;
}

.metric-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: -1px clamp(18px, 5vw, 70px) 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
    box-shadow: var(--soft-shadow);
    transform: translateY(-28px);
}

.metric-band div {
    padding: 22px;
    background: rgba(255,255,255,.96);
}

.metric-band strong,
.metric-band span {
    display: block;
}

.metric-band strong {
    margin-bottom: 4px;
    color: var(--steel);
    font-size: 22px;
}

.metric-band span {
    color: var(--muted);
    font-weight: 700;
}

.process-section {
    background: #fff;
}

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

.process-list article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f6fafb);
    box-shadow: var(--soft-shadow);
}

.process-list span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #ecfaf9;
    color: var(--teal);
    font-weight: 900;
}

.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(20,33,43,.96), rgba(38,63,79,.9)),
        url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.cta-section > div:first-child {
    max-width: 760px;
}

.cta-section p {
    color: #dce9ec;
}

.booking-map {
    position: sticky;
    top: calc(var(--header-height, 96px) + 10px);
    z-index: 12;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(10px);
}

.booking-map-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    color: var(--steel);
    font-weight: 800;
}

.booking-map-top strong {
    min-width: 44px;
    text-align: right;
    color: var(--copper);
}

.structure-map {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding-top: 16px;
}

.map-line {
    position: absolute;
    top: 31px;
    left: 10%;
    right: 10%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce8ec;
}

.map-line span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--copper));
    transition: width .25s ease;
}

.map-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

.map-step span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid #dce8ec;
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.map-step strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-step.complete span,
.map-step.current span {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}

.map-step.current span {
    transform: scale(1.08);
    box-shadow: 0 0 0 5px rgba(40, 160, 167, .14);
}

.map-step.current {
    color: var(--ink);
}

.form-wrap {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(18px, 4vw, 34px);
    box-shadow: var(--shadow);
}

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

label {
    display: grid;
    gap: 6px;
    color: var(--steel);
    font-weight: 800;
}

input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #cfd9de;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(31,154,160,.14);
}

textarea { min-height: 130px; resize: vertical; }
.full { grid-column: 1 / -1; }

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.alert.success { color: var(--success); background: #e8f6ef; }
.alert.error { color: var(--danger); background: #fae9e9; }

.admin-shell {
    min-height: 100vh;
    padding: 32px clamp(14px, 4vw, 42px);
    background: #f5f8f8;
}

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

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

th, td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th { background: #edf5f6; color: var(--steel); }
.status-pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef1f2;
    font-weight: 800;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.slim-form {
    max-width: 760px;
}

.login-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fbfc);
}

.reviews-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    gap: 22px;
    align-items: start;
}

.reviews-list {
    display: grid;
    gap: 16px;
}

.review-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--soft-shadow);
}

.review-card p {
    font-size: 18px;
}

.stars {
    color: var(--copper);
    font-size: 20px;
    letter-spacing: 1px;
}

.review-form {
    position: sticky;
    top: calc(var(--header-height, 96px) + 14px);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 32px clamp(18px, 5vw, 70px);
    color: #d9e5e8;
    background: var(--ink);
}

.site-footer span { display: block; }
.site-footer a { text-underline-offset: 3px; }

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

@media (max-width: 850px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-block: 8px 12px;
    }
    .brand {
        flex-basis: 195px;
        width: 195px;
        height: 94px;
    }
    .brand-logo {
        width: 100%;
        height: 100%;
    }
    .site-nav {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }
    .site-nav a {
        flex: 0 0 auto;
    }
    .site-footer,
    .admin-top,
    .cta-section {
        align-items: flex-start;
        flex-direction: column;
    }
    .hero {
        min-height: 560px;
        padding-top: 70px;
        background-position: 62% center;
    }
    .metric-band {
        grid-template-columns: 1fr;
        margin-inline: 18px;
        transform: translateY(-18px);
    }
    .booking-map {
        padding: 10px;
        top: calc(var(--header-height, 150px) + 8px);
    }
    .structure-map {
        gap: 4px;
    }
    .map-line {
        left: 8%;
        right: 8%;
    }
    .map-step span {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    .map-step strong {
        font-size: 11px;
    }
    .grid,
    .gallery-grid,
    .form-grid,
    .account-grid,
    .reviews-layout,
    .process-list {
        grid-template-columns: 1fr;
    }
    .review-form {
        position: static;
    }
    .full { grid-column: auto; }
}

@media (max-width: 520px) {
    h1 { font-size: 40px; }
    h2 { font-size: 30px; }
    .section {
        padding-block: 42px;
    }
    .site-header {
        position: relative;
    }
    .booking-map {
        top: 8px;
    }
    .hero {
        min-height: 620px;
        padding: 42px 16px;
    }
    .hero-content {
        padding: 24px 19px;
    }
    .actions,
    .button {
        width: 100%;
    }
    .actions .inline-form { width: 100%; }
    .button {
        text-align: center;
    }
    .map-step strong {
        display: none;
    }
    .map-line {
        top: 30px;
    }
}
