:root {
    color-scheme: dark;
    --bg: #0f0f0f;
    --bg-soft: #1a1a1a;
    --bg-card: #181818;
    --accent: #ff6a00;
    --accent-strong: #ff7d1f;
    --text: #ffffff;
    --muted: #b0b0b0;
    --line: rgba(255, 255, 255, .12);
    --shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(255, 106, 0, .8);
    outline-offset: 3px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.08;
}

h1 {
    font-size: clamp(3rem, 12vw, 7.75rem);
    max-width: 10ch;
    margin-bottom: 1.25rem;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(2rem, 7vw, 4.25rem);
    margin-bottom: 1rem;
    letter-spacing: 0;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: .75rem;
}

p {
    color: var(--muted);
}

.site-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 15, 15, .88);
    backdrop-filter: blur(18px);
}

.nav-container,
.section-container {
    width: min(100% - 2rem, 1180px);
    margin-inline: auto;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 106, 0, .55);
    background: linear-gradient(135deg, rgba(255, 106, 0, .24), rgba(255, 255, 255, .04));
    color: var(--accent);
    font-weight: 900;
}

.brand-name,
.brand-subtitle {
    display: block;
}

.brand-name {
    font-weight: 800;
}

.brand-subtitle {
    color: var(--muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.mobile-menu-button {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--text);
}

.mobile-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: -7px 0;
    background: var(--text);
}

.nav-links {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    min-height: calc(100vh - 76px);
    padding: 2rem;
    background: rgba(15, 15, 15, .98);
}

.nav-links.is-open {
    display: grid;
    align-content: start;
    gap: 1.25rem;
}

.nav-links a {
    color: var(--muted);
    font-weight: 700;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--text);
}

.nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .85rem 1.15rem;
    border: 1px solid transparent;
    font-weight: 800;
}

.nav-cta,
.btn-primary {
    background: var(--accent);
    color: #111111 !important;
}

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

.btn-secondary {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
    color: var(--text);
}

.hero {
    position: relative;
    display: grid;
    min-height: calc(100svh - 76px);
    isolation: isolate;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media {
    z-index: -2;
    background:
        linear-gradient(115deg, rgba(15, 15, 15, .38), rgba(15, 15, 15, .9)),
        url("/images/hero-construction.svg") center / cover no-repeat;
}

.hero-overlay {
    z-index: -1;
    background: linear-gradient(0deg, var(--bg), rgba(15, 15, 15, .08) 42%, rgba(15, 15, 15, .55));
}

.hero-content {
    display: grid;
    align-content: center;
    padding: 4rem 0 7rem;
}

.hero-content > p:not(.eyebrow),
.page-hero p {
    max-width: 690px;
    font-size: clamp(1.05rem, 3vw, 1.35rem);
}

.hero-actions,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.eyebrow {
    margin-bottom: .85rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.section,
.page-hero,
.cta-section {
    padding: clamp(4rem, 9vw, 7rem) 0;
}

.page-hero {
    background:
        linear-gradient(135deg, rgba(255, 106, 0, .12), transparent 38%),
        var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.75rem, 9vw, 6.5rem);
}

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

.section-header {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.service-grid,
.project-grid,
.testimonial-grid,
.feature-grid,
.footer-grid,
.contact-layout,
.split-section,
.form-grid {
    display: grid;
    gap: 1rem;
}

.service-card,
.project-card,
.testimonial-card,
.form-card,
.contact-panel,
.stats-panel,
.feature-grid > div {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
    box-shadow: var(--shadow);
}

.service-card,
.project-card {
    overflow: hidden;
}

.service-card img,
.project-card img,
.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    background: #222222;
}

.service-card > div,
.project-card-body,
.testimonial-card,
.form-card,
.contact-panel,
.stats-panel,
.feature-grid > div {
    padding: 1.25rem;
}

.card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    place-items: center;
    background: rgba(255, 106, 0, .14);
    color: var(--accent);
    font-weight: 900;
}

.service-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem .75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.service-card li,
.project-meta,
.form-note {
    color: var(--muted);
    font-size: .92rem;
}

.service-card li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: .45rem;
    background: var(--accent);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.project-meta span {
    color: var(--accent);
    font-weight: 900;
}

.split-section {
    align-items: start;
}

.feature-grid > div,
.stats-panel > div {
    display: grid;
    gap: .4rem;
}

.feature-grid strong,
.stats-panel strong {
    font-size: 1.1rem;
}

.feature-grid span,
.stats-panel span,
.testimonial-card figcaption span {
    color: var(--muted);
}

.testimonial-card {
    margin: 0;
}

.testimonial-card blockquote {
    margin: 0 0 1.25rem;
    color: var(--text);
    font-size: 1.08rem;
}

.testimonial-card figcaption {
    display: grid;
}

.cta-section {
    background:
        linear-gradient(135deg, rgba(255, 106, 0, .22), transparent 45%),
        #111111;
}

.cta-inner {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.gallery-grid {
    columns: 1;
    column-gap: 1rem;
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    break-inside: avoid;
}

.gallery-item:nth-child(2n) img {
    aspect-ratio: 4 / 5;
}

.gallery-item span {
    position: absolute;
    left: .85rem;
    bottom: .85rem;
    padding: .35rem .65rem;
    background: rgba(15, 15, 15, .82);
    color: var(--text);
    font-size: .8rem;
    font-weight: 800;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .9);
}

.lightbox img {
    max-height: 82vh;
    border: 1px solid var(--line);
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    min-height: 44px;
    border: 1px solid var(--line);
    background: var(--accent);
    color: #111111;
    font-weight: 900;
}

.narrow-container {
    max-width: 920px;
}

.form-card {
    display: grid;
    gap: 1rem;
}

label {
    display: grid;
    gap: .45rem;
    color: var(--text);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: #101010;
    color: var(--text);
    padding: .8rem .9rem;
}

textarea {
    resize: vertical;
}

.validation-message,
.validation-summary-errors {
    color: #ff9b68;
}

.contact-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.contact-panel a,
.footer a,
.social-links a {
    color: var(--muted);
}

.contact-panel a:hover,
.footer a:hover,
.social-links a:hover {
    color: var(--accent);
}

.map-placeholder {
    display: grid;
    min-height: 260px;
    place-items: center;
    border: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        #121212;
    background-size: 36px 36px;
    color: var(--muted);
    font-weight: 900;
}

.stats-panel {
    display: grid;
    gap: 1rem;
}

.stats-panel strong {
    color: var(--accent);
    font-size: 2.5rem;
}

.footer {
    border-top: 1px solid var(--line);
    background: #090909;
    padding-top: 3rem;
}

.footer h2 {
    font-size: 1rem;
}

.footer-grid {
    gap: 2rem;
}

.footer-grid > div {
    display: grid;
    align-content: start;
    gap: .7rem;
}

.footer-brand {
    margin-bottom: .5rem;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-size: .9rem;
}

.success-hero {
    min-height: 68vh;
    display: grid;
    align-items: center;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0;
    z-index: 1000;
    padding: 1rem 3rem 1rem 1rem;
    background: #b32121;
    color: #ffffff;
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 1rem;
    top: .75rem;
    cursor: pointer;
}

@media (min-width: 640px) {
    .service-grid,
    .project-grid,
    .testimonial-grid,
    .feature-grid,
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        columns: 2;
    }
}

@media (min-width: 900px) {
    .mobile-menu-button {
        display: none;
    }

    .nav-links {
        position: static;
        display: flex;
        align-items: center;
        min-height: 0;
        padding: 0;
        background: transparent;
        gap: 1.25rem;
    }

    .service-grid,
    .project-grid,
    .testimonial-grid,
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split-section,
    .contact-layout,
    .cta-inner {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    }

    .gallery-grid {
        columns: 3;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .btn,
    .project-card,
    .service-card,
    .gallery-item {
        transition: transform .18s ease, border-color .18s ease, background .18s ease;
    }

    .btn:hover,
    .project-card:hover,
    .service-card:hover,
    .gallery-item:hover {
        transform: translateY(-3px);
    }
}
