:root {
    --ink: #111827;
    --muted: #5b6678;
    --subtle: #eef2f7;
    --panel: #ffffff;
    --line: #d8e0ea;
    --field: #f8fafc;
    --brand: #b31414;
    --brand-dark: #8f1010;
    --navy: #101827;
    --navy-2: #182234;
    --steel: #344154;
    --success: #176b4d;
    --warning: #8a5200;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
    --radius: 8px;
    /* Swap these URLs for assets/images/*.jpg when you have your own photos. */
    --image-hero: url("https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&q=82&w=2200");
    --image-page-hero: url("https://images.unsplash.com/photo-1581092921461-eab62e97a780?auto=format&fit=crop&q=82&w=1800");
    --image-fdm: url("https://images.unsplash.com/photo-1631217868264-e5b90bb7e133?auto=format&fit=crop&q=82&w=900");
    --image-sla: url("https://images.unsplash.com/photo-1581093588401-fbb62a02f120?auto=format&fit=crop&q=82&w=900");
    --image-laser: url("https://images.unsplash.com/photo-1565043666747-69f6646db940?auto=format&fit=crop&q=82&w=900");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: inherit;
}

.site-shell {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(238, 242, 247, 0.74), rgba(255, 255, 255, 0) 360px),
        #ffffff;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 18px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid rgba(216, 224, 234, 0.95);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(179, 20, 20, 0.35);
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #5f1111);
    font-size: 0.8rem;
    letter-spacing: 0;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(179, 20, 20, 0.25);
    border-radius: var(--radius);
    object-fit: contain;
    background: var(--navy);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    border-radius: 6px;
    padding: 9px 12px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

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

.nav-links .nav-cta,
.btn-primary {
    color: #ffffff;
    background: var(--brand);
}

.nav-links .nav-cta:hover,
.btn-primary:hover {
    color: #ffffff;
    background: var(--brand-dark);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: min(760px, calc(100vh - 74px));
    display: grid;
    align-items: end;
    padding: 82px clamp(20px, 5vw, 72px) 42px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(10, 16, 27, 0.96) 0%, rgba(10, 16, 27, 0.78) 48%, rgba(10, 16, 27, 0.36) 100%),
        var(--image-hero) center / cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(0deg, rgba(10, 16, 27, 0.85), rgba(10, 16, 27, 0));
    pointer-events: none;
}

.hero-inner,
.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #c9d3df;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(2.45rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy,
.page-hero p {
    max-width: 690px;
    margin: 22px 0 0;
    color: #d8e0ea;
    font-size: clamp(1rem, 2vw, 1.24rem);
}

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

.btn-primary,
.btn-secondary,
.btn-quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 12px 17px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

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

.btn-quiet {
    color: var(--ink);
    border-color: var(--line);
    background: #ffffff;
}

.hero-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 940px;
    margin-top: 58px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.14);
}

.metric {
    padding: 18px;
    background: rgba(16, 24, 39, 0.7);
}

.metric strong {
    display: block;
    color: #ffffff;
    font-size: 1.1rem;
}

.metric span {
    color: #c9d3df;
    font-size: 0.9rem;
}

.section,
.page-hero,
.quote-layout {
    padding: 72px clamp(20px, 5vw, 72px);
}

.section-inner,
.page-hero-inner,
.quote-layout {
    max-width: 1180px;
    margin: 0 auto;
}

.page-hero {
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(16, 24, 39, 0.98), rgba(24, 34, 52, 0.9)),
        var(--image-page-hero) center / cover;
}

.section-title {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-title h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.06;
}

.section-title p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
}

.grid-3,
.grid-2 {
    display: grid;
    gap: 18px;
}

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

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

.panel,
.service-card,
.quote-card,
.notice,
.admin-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.panel,
.service-card,
.quote-card,
.notice {
    padding: 26px;
}

.service-card {
    overflow: hidden;
    padding: 0;
}

.service-media {
    min-height: 190px;
    display: flex;
    align-items: end;
    padding: 18px;
    color: #ffffff;
    background: var(--navy);
    background-size: cover;
    background-position: center;
}

.service-media.image-fdm {
    background-image: linear-gradient(rgba(16, 24, 39, 0.22), rgba(16, 24, 39, 0.74)), var(--image-fdm);
}

.service-media.image-sla {
    background-image: linear-gradient(rgba(16, 24, 39, 0.18), rgba(16, 24, 39, 0.74)), var(--image-sla);
}

.service-media.image-laser {
    background-image: linear-gradient(rgba(16, 24, 39, 0.16), rgba(16, 24, 39, 0.74)), var(--image-laser);
}

.service-media span {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(16, 24, 39, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-body {
    padding: 24px;
}

.service-body h3,
.panel h3,
.quote-card h2,
.notice h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 1.12rem;
}

.service-body p,
.panel p,
.notice p {
    margin: 0;
    color: var(--muted);
}

.clean-list {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: var(--steel);
    font-size: 0.94rem;
}

.clean-list li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--brand);
}

.trust-band {
    background: var(--navy);
    color: #ffffff;
}

.trust-band .section-title h2,
.trust-band .panel h3 {
    color: #ffffff;
}

.trust-band .section-title p,
.trust-band .panel p,
.trust-band .clean-list {
    color: #c9d3df;
}

.trust-band .panel {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.quote-page {
    background: #f5f7fb;
}

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.quote-card {
    margin-bottom: 18px;
}

.quote-card h2 {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--subtle);
    color: var(--steel);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.input-group {
    margin-top: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--steel);
    font-size: 0.85rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 12px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
}

textarea {
    min-height: 116px;
    resize: vertical;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    color: var(--steel);
    font-weight: 800;
}

.check-row input {
    width: auto;
    min-height: 0;
    margin-top: 5px;
}

.upload-area {
    border: 1px dashed #a8b4c4;
    border-radius: var(--radius);
    padding: 28px;
    color: var(--steel);
    background: #ffffff;
    cursor: pointer;
}

.upload-area.dragover {
    border-color: var(--brand);
    background: #fff7f7;
}

.upload-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.summary-card {
    position: sticky;
    top: 92px;
    border-radius: var(--radius);
    padding: 26px;
    color: #ffffff;
    background: linear-gradient(180deg, var(--navy), #0b101c);
    box-shadow: var(--shadow);
}

.summary-card .line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 8px 0;
    color: #c9d3df;
    font-size: 0.92rem;
}

.summary-card .price-tag {
    margin: 18px 0;
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1;
}

.summary-card .divider {
    margin: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.summary-card button {
    width: 100%;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.parts-list {
    display: grid;
    gap: 12px;
}

.part-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--field);
}

.part-row p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.part-row > div:last-child {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.notice {
    border-left: 4px solid var(--brand);
}

.notice.compact {
    padding: 18px;
    font-size: 0.92rem;
}

.footer {
    padding: 34px clamp(20px, 5vw, 72px);
    color: #c9d3df;
    background: #0b101c;
    font-size: 0.86rem;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.admin-body {
    margin: 0;
    background: #f5f7fb;
}

.admin-wrapper {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    padding: 28px;
    color: #ffffff;
    background: var(--navy);
}

.admin-main {
    padding: 36px;
}

.admin-card {
    padding: 22px;
    margin-bottom: 18px;
}

.admin-nav a {
    display: block;
    margin-top: 8px;
    border-radius: 6px;
    padding: 10px;
    color: #c9d3df;
    text-decoration: none;
    font-weight: 800;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--subtle);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 900;
}

.badge.ok {
    color: var(--success);
    background: #e4f6ef;
}

.badge.off {
    color: #8f1010;
    background: #ffe6e6;
}

@media (max-width: 900px) {
    .nav,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
    }

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

    .hero-metrics,
    .grid-3,
    .grid-2,
    .quote-layout,
    .admin-wrapper {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .form-grid,
    .form-grid.three,
    .part-row {
        grid-template-columns: 1fr;
    }

    .part-row > div:last-child {
        justify-items: start;
    }

    .hero-actions,
    .section-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-quiet {
        width: 100%;
    }
}
