:root {
    --brand: #0c61fe;
    --brand-dark: #0846bb;
    --ink: #121826;
    --muted: #5d667a;
    --line: #d9dfeb;
    --surface: #ffffff;
    --surface-soft: #f4f7fb;
    --surface-blue: #edf4ff;
    --footer: #111827;
    --radius: 8px;
    --shadow: 0 18px 45px rgba(18, 24, 38, 0.12);
    --section-y: 3.5rem;
    --container-x: 1rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    background: var(--surface);
    text-rendering: optimizeLegibility;
}

img,
iframe {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

a {
    color: var(--brand);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

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

.container {
    padding-right: var(--container-x);
    padding-left: var(--container-x);
}

.btn {
    --bs-btn-border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    font-weight: 750;
    line-height: 1.2;
    white-space: normal;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(12, 97, 254, 0.22);
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
}

.site-nav {
    background: rgba(17, 24, 39, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    transition: box-shadow 160ms ease, background-color 160ms ease;
}

.site-nav.is-scrolled {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.2);
}

.brand-logo {
    width: 2.5rem;
    aspect-ratio: 1;
    object-fit: contain;
}

.navbar-brand {
    min-width: 0;
    font-weight: 800;
    letter-spacing: 0;
}

.navbar-brand span {
    display: inline-block;
    max-width: 12.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-actions {
    gap: 0.35rem;
    padding-top: 0.75rem;
}

.nav-actions .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.nav-actions .nav-link:hover,
.nav-actions .nav-link:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.3), rgba(17, 24, 39, 0.86)),
        url("../img/bg-masthead-hero.webp") center / cover no-repeat;
    background-position: center, center;
    background-size: auto, cover;
    background-repeat: repeat, no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    z-index: -1;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0));
}

.hero-content {
    width: 100%;
    padding-top: 7rem;
    padding-bottom: 3rem;
}

.hero-logo {
    width: clamp(7rem, 32vw, 11rem);
    margin-bottom: 1rem;
    filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.32));
}

.hero-kicker,
.section-heading p {
    margin: 0 0 0.5rem;
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(2.15rem, 9vw, 4.5rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 40rem;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.05rem, 4vw, 1.35rem);
    line-height: 1.45;
}

.hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 28rem;
    margin-top: 1.35rem;
}

.ticker {
    overflow: hidden;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
}

.ticker-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: ticker-scroll 28s linear infinite;
}

.ticker-sequence {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-around;
    min-width: 100vw;
    gap: 2rem;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

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

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

.section-light {
    background: var(--surface-soft);
}

.section-heading {
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 8vw, 3.2rem);
    line-height: 1.05;
}

.booking-strip,
.map-cta {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.map-cta {
    margin: 2rem 0 0;
}

.contact-card,
.team-card {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(18, 24, 38, 0.06);
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem;
    text-align: center;
}

.contact-card h3,
.team-card h3,
.showcase-text h3 {
    margin: 0;
    font-size: clamp(1.2rem, 5vw, 1.45rem);
    line-height: 1.18;
    font-weight: 850;
}

.contact-card p,
.team-card p,
.showcase-text p {
    margin: 0;
    color: var(--muted);
}

.contact-card small {
    color: var(--muted);
}

.card-icon {
    color: var(--brand);
    font-size: 2.75rem;
}

.dual-icon {
    display: flex;
    gap: 0.85rem;
}

.icon-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: auto;
}

.icon-actions .btn {
    width: 3.1rem;
    min-height: 3.1rem;
    padding: 0;
    font-size: 1.35rem;
}

.showcase {
    overflow: hidden;
}

.showcase-row {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--surface);
}

.showcase-media {
    min-height: 16rem;
    background: #d7dee9;
}

.showcase-media img {
    width: 100%;
    height: 100%;
    min-height: 16rem;
    object-fit: cover;
}

.showcase-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 2.25rem var(--container-x);
}

.showcase-text h2 {
    margin: 0;
    font-size: clamp(1.8rem, 7vw, 3rem);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: 0;
}

.content-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.compact-list {
    gap: 0.4rem;
}

.stack-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.35rem;
}

.team-card img {
    width: 9.5rem;
    aspect-ratio: 1;
    object-fit: cover;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.gallery-shell {
    position: relative;
}

.gallery-track {
    display: grid;
    grid-auto-columns: minmax(17rem, 86%);
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0 1rem;
    scroll-behavior: smooth;
    scroll-padding-inline: 0.25rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.gallery-preview {
    position: relative;
    display: block;
    min-height: 20rem;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    background: #0b1220;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(18, 24, 38, 0.12);
    isolation: isolate;
    scroll-snap-align: start;
}

.gallery-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.08), rgba(11, 18, 32, 0.78));
}

.gallery-preview img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-preview:hover img,
.gallery-preview:focus-visible img {
    transform: scale(1.035);
}

.gallery-preview span {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    max-width: calc(100% - 2rem);
    padding: 0.65rem 0.8rem;
    color: #ffffff;
    font-weight: 850;
    line-height: 1.2;
    background: rgba(12, 97, 254, 0.92);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: none;
    width: 2.75rem;
    aspect-ratio: 1;
    place-items: center;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
}

.gallery-nav-prev {
    left: -0.7rem;
}

.gallery-nav-next {
    right: -0.7rem;
}

.review-band {
    padding: 2rem 0;
    background: var(--surface-blue);
}

.site-footer {
    padding: 3rem 0 2rem;
    color: rgba(255, 255, 255, 0.82);
    background: var(--footer);
}

.site-footer h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: clamp(1.4rem, 6vw, 2rem);
    font-weight: 850;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.social-links a {
    display: grid;
    width: 3rem;
    aspect-ratio: 1;
    place-items: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 1.35rem;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--brand);
}

.footer-contacts {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    font-style: normal;
}

.footer-contacts > span {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    align-items: start;
    gap: 0.65rem;
    min-width: 0;
}

.footer-contacts > span > i {
    color: var(--brand);
    margin-top: 0.35rem;
}

.footer-contacts a {
    color: #ffffff;
    overflow-wrap: anywhere;
}

.footer-logo-link {
    display: block;
    width: fit-content;
    margin: 2rem auto 1rem;
}

.footer-logo-link img {
    width: 8.5rem;
    opacity: 0.78;
}

.copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    text-align: center;
}

.footer-credit {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    text-align: center;
}

.footer-credit a {
    color: inherit;
    font-weight: 700;
}

.quote-page {
    background: var(--surface-soft);
}

.quote-hero {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.88), rgba(12, 97, 254, 0.74)),
        url("../img/bg-masthead.webp") center / cover no-repeat;
}

.quote-hero .container {
    min-height: 12rem;
    display: flex;
    align-items: end;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.quote-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #ffffff;
    font-size: clamp(1.35rem, 7vw, 2.1rem);
    font-weight: 900;
    line-height: 1.05;
    text-decoration: none;
}

.quote-brand:hover {
    color: #ffffff;
}

.quote-brand img {
    width: 4.5rem;
}

.quote-main {
    padding: 2rem 0 3rem;
}

.quote-section {
    max-width: 58rem;
}

.quote-heading {
    margin-bottom: 1.4rem;
}

.quote-heading p {
    margin: 0 0 0.35rem;
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.quote-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 8vw, 3.4rem);
    font-weight: 900;
    line-height: 1;
}

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

.quote-panel {
    margin: 0;
    padding: 1.1rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(18, 24, 38, 0.06);
}

.quote-panel legend {
    float: none;
    width: auto;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 1.18rem;
    font-weight: 850;
    line-height: 1.15;
}

.quote-panel .form-label {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.quote-panel .form-control {
    min-height: 3rem;
    border-color: var(--line);
    border-radius: var(--radius);
}

.quote-panel textarea.form-control {
    min-height: 8rem;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.items-container {
    display: grid;
    gap: 1rem;
}

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

.quote-actions {
    display: grid;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem 0 0.25rem;
}

.quote-actions p {
    margin: 0;
    color: var(--muted);
}

.quote-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.quote-document-wrap {
    padding: 2rem 0 3rem;
}

.quote-document {
    width: min(100% - 2rem, 56rem);
    margin: 0 auto;
    padding: 1rem;
    color: #111111;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.35;
}

.quote-doc-header {
    display: grid;
    gap: 0.8rem;
    text-align: center;
}

.quote-doc-header h1 {
    margin: 0;
    font-size: clamp(1.45rem, 7vw, 2rem);
    font-weight: 850;
}

.quote-doc-header p,
.quote-doc-header address {
    margin: 0;
    font-style: normal;
}

.quote-doc-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.quote-doc-logos img {
    max-height: 4.5rem;
    object-fit: contain;
}

.quote-document h2 {
    margin: 1.4rem 0 0.8rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #cccccc;
    font-size: 1.35rem;
}

.quote-document h3,
.quote-document h4 {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 850;
}

.quote-doc-box,
.quote-doc-grid section {
    padding: 0.8rem;
    background: #f8f8f8;
    border: 1px solid #cccccc;
    border-radius: 5px;
}

.quote-doc-box {
    display: grid;
    gap: 0.25rem;
}

.quote-doc-grid {
    display: grid;
    gap: 0.8rem;
    margin: 0.8rem 0;
}

.quote-lines {
    display: grid;
    gap: 0.2rem;
}

.quote-lines div {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) 1fr;
    gap: 0.5rem;
}

.quote-works {
    min-height: 2.5rem;
    margin: 0;
    padding: 0.8rem;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 5px;
}

.quote-document blockquote {
    margin: 0;
    padding: 0.75rem 1rem;
    color: #333333;
    background: #f8f8f8;
    border-left: 4px solid var(--brand);
}

.quote-document ul {
    margin: 0;
    padding-left: 1.1rem;
}

.quote-table {
    width: 100%;
    min-width: 48rem;
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.quote-table th,
.quote-table td {
    padding: 0.55rem 0.7rem;
    border: 2px solid #cccccc;
    vertical-align: top;
}

.quote-table th {
    font-weight: 850;
    background: #f1f5f9;
}

.quote-table tr:nth-child(even) td {
    background: #f8f8f8;
}

.quote-table .labor-row td {
    background: #9ad0ec;
}

.quote-table .total-row td {
    color: #ffffff;
    font-weight: 850;
    background: #5b6470;
}

.quote-doc-footer {
    margin-top: 1rem;
}

.quote-doc-footer p {
    padding: 0.75rem;
    background: #f8f8f8;
    border: 1px solid #cccccc;
    border-radius: 5px;
}

.quote-footer {
    padding-top: 2rem;
}

.error-page {
    min-height: 100vh;
    background: var(--footer);
}

.error-nav {
    position: static;
}

.error-main {
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.46), rgba(17, 24, 39, 0.94)),
        url("../img/bg-masthead.webp") center / cover no-repeat;
}

.error-hero {
    min-height: 64vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.error-hero .container {
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.error-logo {
    width: clamp(6rem, 28vw, 9rem);
    filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.32));
}

.error-hero h1 {
    max-width: 52rem;
    margin: 0;
    font-size: clamp(2.2rem, 10vw, 5rem);
    font-weight: 900;
    line-height: 1;
}

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

    .ticker-track {
        animation-duration: 36s !important;
        animation-iteration-count: infinite !important;
    }
}

@media (min-width: 480px) {
    :root {
        --container-x: 1.25rem;
    }

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

    .stack-actions .btn:last-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    :root {
        --section-y: 5rem;
    }

    .hero {
        min-height: 82vh;
    }

    .hero-content {
        padding-bottom: 4.5rem;
    }

    .hero-actions {
        display: flex;
        max-width: none;
    }

    .contact-card {
        padding: 1.7rem;
    }

    .gallery-track {
        grid-auto-columns: minmax(20rem, calc((100% - 1rem) / 2));
    }

    .quote-panel {
        padding: 1.35rem;
    }

    .quote-actions {
        grid-template-columns: 1fr auto;
    }

    .quote-document {
        padding: 1.5rem;
    }

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

@media (min-width: 992px) {
    :root {
        --section-y: 6rem;
    }

    .navbar-brand span {
        max-width: none;
    }

    .nav-actions {
        padding-top: 0;
    }

    .nav-actions .nav-link {
        padding: 0.55rem 0.72rem;
        font-size: 0.94rem;
    }

    .showcase-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 38rem;
    }

    .showcase-media,
    .showcase-media img {
        min-height: 38rem;
    }

    .showcase-text {
        padding: 4rem 5vw;
    }

    .gallery-track {
        grid-auto-columns: calc((100% - 2rem) / 3);
    }

    .gallery-nav {
        display: grid;
    }

    .social-links {
        justify-content: flex-start;
    }
}

@media (min-width: 1200px) {
    .nav-actions .nav-link {
        padding-right: 0.9rem;
        padding-left: 0.9rem;
    }

    .showcase-text {
        padding: 5.5rem 6.5vw;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body {
        background: #ffffff;
    }

    .quote-hero,
    .quote-toolbar,
    .quote-footer,
    #quote-step-one,
    #quote-step-two {
        display: none !important;
    }

    .quote-main,
    .quote-document-wrap {
        padding: 0;
    }

    .quote-document {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        font-size: 10px;
    }

    .quote-document .table-responsive {
        overflow: visible !important;
    }

    .quote-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        font-size: 9px;
    }

    .quote-table th,
    .quote-table td {
        padding: 0.28rem 0.32rem;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .quote-table th:nth-child(1),
    .quote-table td:nth-child(1) {
        width: 18%;
    }

    .quote-table th:nth-child(2),
    .quote-table td:nth-child(2) {
        width: 18%;
    }

    .quote-table th:nth-child(3),
    .quote-table td:nth-child(3) {
        width: 9%;
    }

    .quote-table th:nth-child(4),
    .quote-table td:nth-child(4) {
        width: 15%;
    }

    .quote-table th:nth-child(5),
    .quote-table td:nth-child(5) {
        width: 11%;
    }

    .quote-table th:nth-child(6),
    .quote-table td:nth-child(6) {
        width: 8%;
    }

    .quote-table th:nth-child(7),
    .quote-table td:nth-child(7) {
        width: 21%;
    }

    .quote-table,
    .quote-document blockquote,
    .quote-doc-box,
    .quote-doc-grid section {
        break-inside: avoid;
    }
}
