/* ==========================================================================
   site - design system and components
   Built on Bootstrap 5.3 (grid + utilities) and Font Awesome 7.
   ========================================================================== */

:root {
    --primary: #cd2122;
    --primary-dark: #a81a1b;
    --blue: #4389e6;
    --orange: #f68f06;
    --ink: #282828;
    --text: #535353;
    --muted: #727272;
    --line: #e3e8ef;
    --surface: #ffffff;
    --surface-alt: #f4f8fd;
    --surface-soft: #f2f2f2;

    --font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 10px 30px rgba(40, 40, 40, .08);
    --shadow-sm: 0 4px 14px rgba(40, 40, 40, .07);
    --container: 1320px;

    /* Bootstrap runs on the brand palette. */
    --bs-primary: #cd2122;
    --bs-primary-rgb: 205, 33, 34;
    --bs-secondary-color: #535353;
    --bs-body-color: #535353;
    --bs-body-font-family: var(--font-body);
    --bs-body-font-size: 1rem;
    --bs-body-color-rgb: 83, 83, 83;
    --bs-border-color: #e3e8ef;
    --bs-border-radius: .375rem;
    --bs-link-color: #cd2122;
    --bs-link-color-rgb: 205, 33, 34;
    --bs-link-hover-color: #a81a1b;
    --bs-link-hover-color-rgb: 168, 26, 27;
    --bs-heading-color: #282828;
    --bs-heading-font-family: var(--font-head);
    --bs-emphasis-color: #282828;
}

/* Brand orange as a text colour. */
.text-orange {
    color: var(--orange) !important;
}

/* The call to action is an orange button with white text. */
.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-bg: #f68f06;
    --bs-btn-border-color: #f68f06;
    --bs-btn-hover-bg: #dd7a05;
    --bs-btn-hover-border-color: #dd7a05;
    --bs-btn-active-bg: #c96f05;
    --bs-btn-active-border-color: #c96f05;
    box-shadow: 0 8px 13px rgba(255, 194, 67, .35);
}

.btn-warning:hover {
    box-shadow: 0 10px 18px rgba(246, 143, 6, .4);
}

/* ── Base ────────────────────────────────────────────────────────────────── */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: .75rem 1.25rem;
    background: var(--primary);
    color: #fff;
}

.skip-link:focus {
    left: 0;
}

.container {
    max-width: var(--container);
}

/* Bootstrap keeps a badge on a single line. Long ones have to wrap,
   otherwise they stretch out of their column and widen the page. */
.badge {
    white-space: normal;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
    --bs-btn-padding-y: .7rem;
    --bs-btn-padding-x: 1.4rem;
    --bs-btn-font-size: .95rem;
    --bs-btn-font-weight: 700;
    --bs-btn-border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-head);
    letter-spacing: .01em;
    text-transform: uppercase;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn--accent {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
}

.btn--accent:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 8px 20px rgba(205, 33, 34, .28);
}

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem 1.5rem;
    border-radius: 5px;
    background: linear-gradient(to top, #f68f06 0%, #f8ac48 98%, #f8ac48 100%);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    box-shadow: 0 8px 13px rgba(255, 194, 67, .49);
}

.btn-call:hover {
    background: #f68f06;
    color: #fff;
    text-decoration: none;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.header {
    position: relative;
    z-index: 20;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.header__top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.header__logo:hover {
    text-decoration: none;
}

.header__logo-img {
    width: auto;
    max-height: 56px;
}

.header__brand {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.header__brand strong {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
}

.header__brand small {
    font-size: .75rem;
}

.header__contact {
    margin-left: auto;
    text-align: right;
}

.header__schedule {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
    font-size: .8rem;
    color: var(--muted);
}

.header__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #35b56b;
    box-shadow: 0 0 0 3px rgba(53, 181, 107, .18);
}

.header__phone {
    display: block;
    font-family: var(--font-head);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ink);
}

.header__phone:hover {
    color: var(--primary);
    text-decoration: none;
}

.header__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
}

.header__area {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: var(--muted);
}

.header__area:hover,
.header__area:focus-visible {
    color: var(--ink);
}

.header__area i {
    color: var(--primary);
}

.header__area .header__location-caret {
    color: var(--muted);
    font-size: .65rem;
}

.header__burger {
    display: none;
    width: 44px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 9px 10px;
}

.header__burger span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */

.nav {
    border-top: 1px solid var(--line);
    background: #fff;
}

.nav__list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .9rem 1rem;
    font-family: var(--font-head);
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink);
}

.nav__link:hover,
.nav__item.is-active > .nav__link {
    color: var(--primary);
    text-decoration: none;
}

.nav__caret {
    font-size: .65rem;
    opacity: .6;
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    min-width: 260px;
    margin: 0;
    padding: .4rem 0;
    list-style: none;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    max-height: 70vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity .18s ease, visibility .18s;
}

.nav__item:hover > .nav__dropdown,
.nav__item:focus-within > .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown .nav__link {
    padding: .55rem 1.25rem;
    font-weight: 600;
    font-size: .88rem;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav__list > .nav__item > .nav__link {
        padding-right: .5rem;
        padding-left: .5rem;
        font-size: .82rem;
    }
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.section {
    position: relative;
    padding-top: var(--pad-top-lg, 0);
    padding-bottom: var(--pad-bottom-lg, 0);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* Full-bleed sections use a full-width row, whose negative gutters would
       otherwise push the page sideways. */
    overflow-x: clip;
}

@media (max-width: 991.98px) {
    .section {
        padding-top: var(--pad-top-md, var(--pad-top-lg, 0));
        padding-bottom: var(--pad-bottom-md, var(--pad-bottom-lg, 0));
    }
}

@media (max-width: 575.98px) {
    .section {
        padding-top: var(--pad-top-xs, var(--pad-top-md, 0));
        padding-bottom: var(--pad-bottom-xs, var(--pad-bottom-md, 0));
    }
}

.section .row {
    row-gap: 1.5rem;
}

/* ── Shared hero component ────────────────────────────────────────────────── */

.site-hero {
    display: flex;
    align-items: center;
    min-height: 600px;
    color: #fff;
    background-color: #111a23;
    background-image: var(--hero-background-image, none);
    background-position: center;
    background-size: cover;
}

.site-hero h1 {
    max-width: 18ch;
    text-wrap: balance;
}

@media (max-width: 991.98px) {
    .site-hero {
        min-height: 0;
    }
}

/* ── Accordion ───────────────────────────────────────────────────────────── */

.accordion {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.accordion__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.accordion__summary::-webkit-details-marker {
    display: none;
}

.accordion__summary:hover {
    color: var(--primary);
}

.accordion__marker {
    flex: 0 0 auto;
    font-size: .8rem;
    color: var(--primary);
    transition: transform .2s ease;
}

.accordion__item[open] .accordion__marker {
    transform: rotate(180deg);
}

.accordion__body {
    padding: 0 1.25rem 1.25rem;
    font-size: .97rem;
    line-height: 1.65;
}

/* ── Gallery ─────────────────────────────────────────────────────────────── */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery__item {
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-soft);
    cursor: zoom-in;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.image-carousel {
    overflow: hidden;
}

.image-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease;
}

.image-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.image-carousel__slide .gallery__item {
    display: block;
    width: 100%;
    height: 100%;
}

.image-carousel .gallery__item img {
    height: 100%;
    max-height: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .image-carousel__slide {
        transition: none;
    }
}

.lightbox {
    border: 0;
    border-radius: var(--radius);
    padding: 0;
    background: rgba(20, 20, 20, .92);
    max-width: 92vw;
    max-height: 92vh;
}

.lightbox::backdrop {
    background: rgba(20, 20, 20, .8);
}

.lightbox__image {
    display: block;
    max-width: 92vw;
    max-height: 88vh;
}

.lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    cursor: pointer;
}

/* ── Carousel (Embla) ────────────────────────────────────────────────────── */

.embla {
    position: relative;
}

.embla__viewport {
    overflow: hidden;
}

.embla__container {
    display: flex;
    gap: 1rem;
}

.embla__slide {
    flex: 0 0 calc(33.333% - .67rem);
    min-width: 0;
}

.embla__slide img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.embla__slide--image img {
    height: auto;
    max-height: none;
    object-fit: contain;
}

.embla__slide--image img {
    height: auto;
    max-height: none;
    object-fit: contain;
}

.embla__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease, background-color .2s ease;
}

.embla:hover .embla__arrow {
    opacity: 1;
}

.embla__arrow--prev { left: -12px; }
.embla__arrow--next { right: -12px; }

.embla__arrow:disabled {
    opacity: .3;
    cursor: default;
}

@media (max-width: 991.98px) {
    .embla__slide { flex-basis: calc(50% - .5rem); }
}

@media (max-width: 575.98px) {
    .embla__slide { flex-basis: 100%; }
    .embla__arrow { opacity: 1; }
}

/* ── Tabs ────────────────────────────────────────────────────────────────── */

.tabs .nav-tabs {
    --bs-nav-tabs-link-active-color: var(--primary);
    --bs-nav-link-color: var(--muted);
    --bs-nav-link-hover-color: var(--primary);
}

.tabs .nav-link {
    font-family: var(--font-head);
    font-weight: 700;
}

/* ── Subheader ───────────────────────────────────────────────────────────── */

.subheader {
    padding: 3rem 0;
    background: var(--surface-alt);
}

.subheader__title {
    margin: 0 0 .5rem;
    font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
}

.subheader__subtitle {
    margin: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
    margin-top: 3rem;
    padding: 3rem 0 1.5rem;
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
}

.footer__columns {
    row-gap: 2rem;
}

.footer__title {
    margin-bottom: 1rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}

.footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__list li {
    margin-bottom: .5rem;
}

.footer__list a {
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
}

.footer__list a:hover {
    color: #fff;
    text-decoration: none;
}

.footer__phone {
    display: block;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.footer__mail {
    display: block;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .72);
}

.footer__cta {
    margin-top: .5rem;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    white-space: normal;
    justify-content: center;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .88rem;
}

.footer__bottom p {
    margin: 0;
}

.footer__bottom a {
    color: rgba(255, 255, 255, .72);
}

.footer__bottom a:hover {
    color: #fff;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .header__top {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header__contact {
        order: 3;
        margin-left: auto;
    }

    .header__logo { order: 1; }

    .header__actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        order: 4;
    }

    .header__actions .btn--accent {
        display: none;
    }

    .header__burger {
        order: 2;
        display: block;
        margin-left: auto;
    }

    .header__burger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .header__burger.is-active span:nth-child(2) { opacity: 0; }
    .header__burger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .nav {
        display: none;
    }

    .nav.is-open {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        justify-content: flex-start;
        padding-bottom: .75rem;
    }

    .nav__dropdown {
        position: static;
        display: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 1rem;
    }

    .nav__item--has-children.is-open > .nav__dropdown {
        display: block;
    }

    .nav__caret {
        margin-left: auto;
    }

    .c-request {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.25rem;
    }

    .c-request__col:last-child {
        flex: 1 1 auto;
        width: 100%;
    }

    .c-request__photo {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .header__top {
        flex-wrap: wrap;
        gap: .75rem;
        padding: .75rem 0;
    }

    .header__logo {
        order: 1;
        gap: .5rem;
    }

    .header__logo-img {
        max-height: 40px;
    }

    .header__brand strong {
        font-size: 1.05rem;
    }

    .header__brand small {
        display: none;
    }

    .header__burger {
        order: 2;
        margin-left: auto;
    }

    .header__contact {
        order: 3;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        width: 100%;
        margin-left: 0;
        text-align: left;
    }

    .header__schedule {
        justify-content: flex-start;
        font-size: .72rem;
    }

    .header__phone {
        font-size: 1.15rem;
    }
}

/* ── Print ───────────────────────────────────────────────────────────────── */

@media print {
    .header__actions,
    .nav,
    .footer,
    .embla__arrow {
        display: none !important;
    }
}

/* ── 404 page ────────────────────────────────────────────────────────────── */

.error-page__title {
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
}

.error-page__subtitle {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.error-page__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.error-page__list li {
    margin-bottom: .5rem;
}

.error-page__list a {
    color: var(--primary);
}
