/* ==========================================================================
   Eswari Knitting Works – site stylesheet
   Theme: Modern Teal & Neutral (Template 3)
   Requires Bootstrap 5.3 (grid, navbar, modal, utilities).
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
    --font-base: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --c-teal: #0f7472;
    --c-teal-hover: #0b5d5c;
    --c-teal-deep: #0b4f55;
    --c-teal-darkest: #0b3b40;
    --c-teal-tint: #e3f1ef;
    --c-amber: #f0a43a;
    --c-amber-tint: #fff1dc;
    --c-amber-ink: #7a4d0a;
    --c-bg: #ffffff;
    --c-surface: #ffffff;
    --c-surface-alt: #f3f6f6;
    --c-text: #15292c;
    --c-text-soft: #3b5053;
    --c-heading: #0e3a3f;
    --c-muted: #556a6d;
    --c-border: #dce6e5;
    --c-border-strong: #c5dedb;
    --c-focus: var(--c-teal);
    --c-focus-on-dark: var(--c-amber);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow: 0 16px 40px rgba(11, 79, 85, .10);
    --shadow-sm: 0 2px 10px rgba(11, 79, 85, .05);
    --header-h: 76px;
    --section-y: clamp(3.5rem, 7vw, 6rem);
}

/* --- Base ------------------------------------------------------------------ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-base);
    color: var(--c-text);
    background: var(--c-bg);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--c-heading);
    letter-spacing: -0.02em;
}

a {
    color: var(--c-teal);
    text-underline-offset: 3px;
}

    a:hover {
        color: var(--c-teal-deep);
    }

img {
    max-width: 100%;
    height: auto;
}

.icon {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    vertical-align: -0.15em;
}

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

.topbar, .policy-card, .site-footer {
    --c-focus: var(--c-focus-on-dark);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--c-teal);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
}

    .skip-link:focus {
        top: 1rem;
        color: #fff;
    }

/* --- Top bar --------------------------------------------------------------- */
.topbar {
    background: var(--c-teal-deep);
    color: #cfe5e2;
    font-size: .8125rem;
    padding: .45rem 0;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: inherit;
    text-decoration: none;
}

a.topbar__item:hover {
    color: #fff;
}

/* --- Header / navigation ---------------------------------------------------- */
.site-header {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid #e6eeed;
    transition: box-shadow .2s;
}

    .site-header.is-scrolled {
        box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
    }

    .site-header .navbar {
        min-height: var(--header-h);
        padding: .6rem 0;
    }

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    margin-right: 1rem;
    min-width: 0;
    flex: 0 1 auto;
    white-space: normal;
}

.brand__mark {
    display: block;
    flex-shrink: 0;
    width: 46px;
    height: 58px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--c-border);
}

    .brand__mark img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand__name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--c-heading);
    letter-spacing: -0.01em;
}

.brand__tag {
    font-size: .72rem;
    color: #b42318;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: .2rem;
}

.site-header .nav-link {
    color: var(--c-text);
    font-weight: 500;
    font-size: .9375rem;
    padding: .5rem .8rem !important;
    border-radius: var(--radius);
}

    .site-header .nav-link:hover {
        color: var(--c-teal);
    }

    .site-header .nav-link.active {
        color: var(--c-teal);
        font-weight: 600;
    }

.navbar-toggler {
    border-color: #e6eeed;
    padding: .35rem .55rem;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px var(--c-focus);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230e3a3f' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 992px) {
    .site-header .nav-link {
        position: relative;
    }

        .site-header .nav-link.active::after {
            content: "";
            position: absolute;
            left: .8rem;
            right: .8rem;
            bottom: .2rem;
            height: 2px;
            background: var(--c-amber);
        }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: .75rem 0 1rem;
    }

    .site-header .nav-link {
        padding: .65rem .25rem !important;
        border-bottom: 1px solid #e6eeed;
    }

    .nav-cta {
        margin-top: 1rem;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .brand__name {
        font-size: 1.02rem;
    }

    .brand__tag {
        font-size: .64rem;
    }

    .brand__mark {
        width: 38px;
        height: 48px;
    }
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: .75rem 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-sm {
    padding: .5rem 1.1rem;
    font-size: .875rem;
}

.btn-brand {
    background: var(--c-teal);
    color: #fff;
    border: 2px solid var(--c-teal);
}

    .btn-brand:hover, .btn-brand:focus-visible, .btn-brand:active {
        background: var(--c-teal-hover) !important;
        border-color: var(--c-teal-hover) !important;
        color: #fff !important;
    }

.btn-outline-brand {
    background: transparent;
    color: var(--c-teal);
    border: 2px solid var(--c-teal);
}

    .btn-outline-brand:hover, .btn-outline-brand:focus-visible, .btn-outline-brand:active {
        background: var(--c-teal) !important;
        color: #fff !important;
        border-color: var(--c-teal) !important;
    }

.btn-light-brand {
    background: #fff;
    color: var(--c-teal-deep);
    border: 2px solid #fff;
}

    .btn-light-brand:hover, .btn-light-brand:focus-visible {
        background: var(--c-teal-tint);
        border-color: var(--c-teal-tint);
        color: var(--c-teal-deep);
    }

/* --- Sections & headings ---------------------------------------------------- */
.eyebrow {
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--c-teal);
    margin-bottom: .75rem;
}

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

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

.section__head {
    max-width: 720px;
    margin-bottom: 0.5rem;
}

.section__head--split {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
}

    .section__head--split > div {
        max-width: 720px;
    }

.section__title {
    font-size: clamp(1.225rem, 2.24vw, 1.68rem); /* 30% smaller than the original 1.75rem / 3.2vw / 2.4rem */
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section__lead {
    font-size: 1.0625rem;
    color: var(--c-muted);
    margin: 0;
}

.section p, .page-hero p {
    color: var(--c-text-soft);
}

.prose p {
    margin-bottom: 1.1rem;
}

/* --- Home hero -------------------------------------------------------------- */
.hero {
    background: radial-gradient(700px 420px at 90% 10%, rgba(240, 164, 58, .14), transparent 60%), linear-gradient(160deg, var(--c-teal-tint) 0%, #f4f8f8 100%);
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4.5rem, 9vw, 7rem);
    position: relative;
    overflow: hidden;
}

    .hero .container {
        position: relative;
        z-index: 1;
    }

.hero__title {
    font-size: clamp(1.575rem, 3.5vw, 2.52rem); /* 30% smaller than 2.25rem / 5vw / 3.6rem */
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero__lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--c-text-soft);
    max-width: 34rem;
    margin: 0;
}

.hero__media {
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 3vw, 2rem);
    box-shadow: 0 24px 50px rgba(11, 79, 85, .16);
    max-width: 540px;
    position: relative;
}

    .hero__media::before {
        content: "";
        position: absolute;
        inset: auto -18px -18px auto;
        width: 70%;
        height: 70%;
        background: var(--c-teal);
        border-radius: var(--radius-lg);
        z-index: -1;
        opacity: .9;
    }

    .hero__media img {
        display: block;
        width: 100%;
    }

@media (max-width: 575.98px) {
    .hero__media::before {
        inset: auto -10px -10px auto;
    }
}

/* --- Inner page hero -------------------------------------------------------- */
.page-hero {
    background: radial-gradient(600px 300px at 95% 0%, rgba(240, 164, 58, .13), transparent 60%), linear-gradient(160deg, var(--c-teal-tint) 0%, #f4f8f8 100%);
    padding: clamp(2.25rem, 5vw, 3.75rem) 0;
    border-bottom: 1px solid var(--c-border);
}

    .page-hero h1 {
        font-size: clamp(1.4rem, 3.15vw, 2.1rem); /* 30% smaller than 2rem / 4.5vw / 3rem */
        line-height: 1.15;
        margin: 0 0 .75rem;
    }

.page-hero__lead {
    font-size: 1.0625rem;
    max-width: 46rem;
    margin: 0;
}
/* Tighter spacing, switched on per page with <body class="compact"> */
.compact .page-hero {
    padding-top: 20px;
    padding-bottom: 10px;
}

/* 20px top + 20px bottom = 40px between sections */
.compact .section {
    padding-top: 20px;
    padding-bottom: 20px;
}

    /* No extra trailing margin after the last item in a column */
    .compact .section .row > [class*="col"] > :last-child {
        margin-bottom: 0;
    }

.compact .page-hero + .section {
    padding-top: 20px;
}

.compact .hero {
    padding-top: 20px;
}

.breadcrumb {
    font-size: .875rem;
    margin-bottom: 1rem;
    --bs-breadcrumb-divider-color: var(--c-muted);
    --bs-breadcrumb-item-active-color: var(--c-muted);
}

    .breadcrumb a {
        text-decoration: none;
        font-weight: 600;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

/* --- Stats ------------------------------------------------------------------ */
.stats {
    position: relative;
    z-index: 2;
    margin-top: -2.5rem;
}

.stats__row {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--c-border);
    overflow: hidden;
}

.stat {
    padding: 1.5rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.stat__value {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--c-teal);
    line-height: 1.2;
}

.stat__label {
    font-size: .875rem;
    color: var(--c-muted);
}

@media (min-width: 992px) {
    .stat {
        border-bottom: 0;
    }

        .stat:last-child {
            border-right: 0;
        }
}

@media (max-width: 991.98px) {
    .stat:nth-child(2n) {
        border-right: 0;
    }

    .stat:nth-child(n+3) {
        border-bottom: 0;
    }
}

/* --- Cards: leaders, policy, timeline --------------------------------------- */
.leaders {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .leaders {
        grid-template-columns: 1fr 1fr;
    }
}

.leader {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}

    .leader strong {
        display: block;
        color: var(--c-heading);
        margin-bottom: .15rem;
        font-size: 1.05rem;
    }

.leader__role {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--c-teal);
    margin-bottom: .35rem;
}

.leader p {
    font-size: .9rem;
    color: var(--c-muted);
    line-height: 1.55;
    margin: 0;
}

.icon-tile {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--c-teal-tint);
    color: var(--c-teal);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

    .icon-tile .icon {
        width: 22px;
        height: 22px;
    }

.policy-card {
    background: var(--c-teal-deep);
    color: #d4e8e5;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow);
}

.policy-card__title {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: .7rem;
}

    .check-list li {
        display: flex;
        align-items: center;
        gap: .75rem;
        font-weight: 500;
    }

    .check-list .icon {
        color: var(--c-amber);
        width: 1.2em;
        height: 1.2em;
    }

.policy-card__quote {
    margin: 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

    .policy-card__quote p {
        color: #d4e8e5 !important;
        font-size: 1.02rem;
        margin-bottom: .6rem;
    }

    .policy-card__quote footer {
        font-size: .875rem;
        color: #a9cfca;
        font-weight: 600;
    }

.timeline {
    list-style: none;
    margin: 0;
    padding: 1.75rem;
    background: var(--c-teal-tint);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 1.5rem;
}

    .timeline li {
        display: grid;
        grid-template-columns: 88px 1fr;
        gap: 1rem;
        align-items: baseline;
    }

.timeline__year {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--c-teal);
    line-height: 1;
}

.timeline strong {
    display: block;
    color: var(--c-heading);
}

.timeline__note {
    display: block !important;
    padding-top: 1.25rem;
    border-top: 1px solid var(--c-border-strong);
    color: var(--c-text-soft);
    font-size: .95rem;
}

.timeline span:not(.timeline__year) {
    color: var(--c-text-soft);
    font-size: .95rem;
}

/* --- Facility cards (home overview) ------------------------------------------ */
.facility {
    position: relative;
    display: flex;
    height: 100%;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
}

    .facility:hover {
        box-shadow: var(--shadow);
    }

.facility__img {
    width: 38%;
    max-width: 220px;
    object-fit: cover;
    flex-shrink: 0;
    align-self: stretch;
    height: auto;
    min-height: 100%;
}

.facility__body {
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
}

    .facility__body h3 {
        font-size: 1.15rem;
        margin-bottom: .5rem;
    }

    .facility__body p {
        font-size: .9rem;
        line-height: 1.6;
        margin-bottom: .9rem;
    }

.tag {
    margin-top: auto;
    align-self: flex-start;
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .75rem;
    border-radius: var(--radius-pill);
    background: var(--c-amber-tint);
    color: var(--c-amber-ink);
}

@media (max-width: 575.98px) {
    .facility {
        flex-direction: column;
    }

    .facility__img {
        width: 100%;
        max-width: none;
        height: 170px;
        min-height: 0;
    }
}

/* --- Facility units (Facilities page) ---------------------------------------- */
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .quick-nav a {
        display: inline-block;
        padding: .4rem .9rem;
        border-radius: var(--radius-pill);
        background: #fff;
        border: 1px solid var(--c-border-strong);
        color: var(--c-teal-deep);
        font-size: .875rem;
        font-weight: 600;
        text-decoration: none;
    }

        .quick-nav a:hover {
            background: var(--c-teal);
            border-color: var(--c-teal);
            color: #fff;
        }

.units {
    display: grid;
    gap: 1.5rem;
}

.unit {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .unit {
        grid-template-columns: 280px 1fr;
    }
}
/* Source photos are ~230-280px wide, so they are shown close to native size */
.unit__media {
    margin: 0;
    background: var(--c-surface-alt);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

    .unit__media img {
        width: 100%;
        max-width: 360px;
        height: auto;
        border-radius: var(--radius);
        display: block;
    }

.unit__body {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.unit__num {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 800;
    color: var(--c-amber-ink);
    background: var(--c-amber-tint);
    border-radius: var(--radius-pill);
    padding: .15rem .6rem;
    margin-bottom: .6rem;
}

.unit__body h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    margin-bottom: .75rem;
}

.unit__body p {
    margin-bottom: .9rem;
}

    .unit__body p:last-child {
        margin-bottom: 0;
    }

.chip-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

    .chip-list li {
        padding: .3rem .75rem;
        border-radius: var(--radius-pill);
        background: var(--c-teal-tint);
        color: var(--c-teal-deep);
        font-size: .8125rem;
        font-weight: 600;
    }

.unit__meta {
    font-size: .9rem;
    color: var(--c-muted);
}

    .unit__meta strong {
        color: var(--c-heading);
    }

.steps {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: .9rem;
}

    .steps li {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
    }

.steps__num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--c-amber);
    color: var(--c-text);
    font-weight: 800;
}

.steps strong {
    display: block;
    color: var(--c-heading);
}

.steps span:not(.steps__num) {
    color: var(--c-muted);
    font-size: .95rem;
}

.jobwork {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--c-teal-tint);
    border: 1px solid var(--c-border-strong);
}

    .jobwork p {
        margin: 0;
        color: var(--c-text) !important;
        font-size: 1.05rem;
    }

/* --- Machine table ------------------------------------------------------------ */
.table-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.machine-table {
    margin: 0;
    font-size: .9375rem;
    --bs-table-striped-bg: var(--c-surface-alt);
}

    .machine-table caption {
        caption-side: top;
        padding: 1rem 1.25rem;
        color: var(--c-muted);
        font-size: .875rem;
    }

    .machine-table thead th {
        background: var(--c-teal-deep);
        color: #fff;
        font-weight: 600;
        font-size: .8125rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        white-space: nowrap;
        border: 0;
        padding: .85rem 1rem;
    }

    .machine-table td, .machine-table tbody th {
        padding: .75rem 1rem;
        vertical-align: middle;
        border-color: var(--c-border);
    }

    .machine-table tbody th {
        font-weight: 700;
        color: var(--c-teal);
    }

    .machine-table .num {
        text-align: center;
        white-space: nowrap;
    }

.badge-lycra {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    padding: .15rem .55rem;
    border-radius: var(--radius-pill);
    background: var(--c-amber-tint);
    color: var(--c-amber-ink);
}

/* --- Gallery ------------------------------------------------------------------ */
.gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.gallery__item {
    margin: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-border);
    aspect-ratio: 4 / 3;
}

    .gallery__item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: .75rem;
        display: block;
    }

.gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: 441 / 254;
}

    .gallery__item--wide img {
        object-fit: cover;
        padding: 0;
    }

@media (min-width: 992px) {
    .gallery {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .gallery__item--wide {
        grid-column: auto;
    }

    .gallery__item:not(.gallery__item--wide) {
        aspect-ratio: auto;
    }
}

.showroom {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .showroom img {
        display: block;
        width: 100%;
    }

.photo-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.photo-grid a {
    display: block;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    transition: box-shadow .2s, border-color .2s;
}

    .photo-grid a:hover {
        box-shadow: var(--shadow);
        border-color: var(--c-border-strong);
    }

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .75rem;
    display: block;
}

.lightbox .modal-content {
    border: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.lightbox .modal-body {
    padding: 0;
    background: #fff;
    position: relative;
}

.lightbox__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
}

.lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    border-top: 1px solid var(--c-border);
}

.lightbox__caption {
    margin: 0;
    font-size: .9rem;
    color: var(--c-text-soft);
}

.lightbox__nav {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.lightbox__btn {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
}

.lightbox .btn-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 2;
    background-color: #fff;
    border-radius: 50%;
    padding: .6rem;
    opacity: .9;
    box-shadow: var(--shadow-sm);
}

/* --- Profile ------------------------------------------------------------------ */
.profile-list {
    margin: 0;
    border-top: 1px solid var(--c-border);
}

    .profile-list > div {
        display: grid;
        grid-template-columns: 1fr;
        gap: .15rem 1.5rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--c-border);
    }

@media (min-width: 576px) {
    .profile-list > div {
        grid-template-columns: 210px 1fr;
    }
}

.profile-list dt {
    font-weight: 600;
    color: var(--c-heading);
    font-size: .95rem;
}

.profile-list dd {
    margin: 0;
    color: var(--c-text-soft);
}

.profile-list ul {
    margin: 0;
    padding-left: 1.1rem;
}

.markets {
    background: var(--c-teal-tint);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.markets__title {
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
}

.markets__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

    .markets__list li {
        padding: .4rem .85rem;
        border-radius: var(--radius-pill);
        background: #fff;
        color: var(--c-teal-deep);
        font-size: .875rem;
        font-weight: 500;
        border: 1px solid var(--c-border-strong);
    }

/* Same chips as the markets list, but each one is a link (Facilities page) */
.markets__list--links li {
    padding: 0;
}

.markets__list--links a {
    display: block;
    padding: .4rem .85rem;
    border-radius: var(--radius-pill);
    color: inherit;
    text-decoration: none;
}

    .markets__list--links a:hover,
    .markets__list--links a:focus-visible {
        background: var(--c-teal);
        color: #fff;
    }

.markets--inline {
    background: transparent;
    padding: 0;
}

/* --- Contact & forms ------------------------------------------------------------ */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
}

    .contact-list li {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
        color: var(--c-text-soft);
    }

    .contact-list strong {
        display: block;
        color: var(--c-heading);
        font-size: .8125rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-bottom: .15rem;
    }

    .contact-list address {
        margin: 0;
    }

    .contact-list a {
        word-break: break-word;
    }

.contact-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow);
    height: 100%;
}

/* Profile page: card stacked under the markets box must not fill the column */
.markets + .contact-card {
    height: auto;
}

.contact-card h2 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.enquiry .form-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--c-heading);
}

    .enquiry .form-label .req {
        color: #b42318;
    }

.enquiry .form-control {
    border-radius: 10px;
    border-color: #cfdcdb;
    padding: .65rem .85rem;
    background: #f8fbfb;
    color: var(--c-text);
}

    .enquiry .form-control:focus {
        border-color: var(--c-teal);
        box-shadow: 0 0 0 3px rgba(15, 116, 114, .2);
        background: #fff;
    }

    .enquiry .was-validated .form-control:invalid, .enquiry .form-control.is-invalid {
        border-color: #b42318;
    }

.enquiry .invalid-feedback {
    color: #b42318;
    font-weight: 500;
}

.form-note {
    font-size: .875rem;
    color: var(--c-muted);
}

.thanks {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.thanks__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--c-teal-tint);
    color: var(--c-teal);
    display: grid;
    place-items: center;
    margin: 0 auto 1.5rem;
}

    .thanks__icon .icon {
        width: 36px;
        height: 36px;
    }

/* --- CTA band ------------------------------------------------------------------- */
.cta-band {
    background: var(--c-teal-deep);
    color: #d4e8e5;
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    --c-focus: var(--c-focus-on-dark);
}

    .cta-band h2 {
        color: #fff;
        font-size: clamp(.98rem, 1.82vw, 1.295rem); /* 30% smaller than 1.4rem / 2.6vw / 1.85rem */
        margin: 0 0 .35rem;
    }

    .cta-band p {
        margin: 0;
        color: #d4e8e5;
    }

/* --- Footer --------------------------------------------------------------------- */
.site-footer {
    background: var(--c-teal-darkest);
    color: #bfd8d5;
    padding: 3.5rem 0 1.5rem;
    font-size: .9375rem;
}

    .site-footer .brand__name {
        color: #fff;
    }

    .site-footer .brand__tag {
        color: #8fb5b1;
    }

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

.site-footer__about {
    max-width: 26rem;
}

.site-footer__heading {
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    margin-bottom: 1rem;
}

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .45rem;
}

.site-footer a {
    color: #bfd8d5;
    text-decoration: none;
}

    .site-footer a:hover {
        color: var(--c-amber);
        text-decoration: underline;
    }

.site-footer__contact {
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.site-footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    font-size: .8125rem;
    color: #8fb5b1;
}

/* --- Utilities ------------------------------------------------------------------ */
.error-code {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    color: var(--c-teal);
    line-height: 1;
    letter-spacing: -0.04em;
}

/* --- About Us: owner photo beside the story text ---------------------------------- */
.owner-photo {
    float: left;
    width: 180px;
    margin: .35rem 20px 10px 0;
}

    .owner-photo img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: var(--radius);
        border: 1px solid var(--c-border);
        box-shadow: var(--shadow-sm);
    }

/* Keep the floated photo inside its column */
.prose::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 575.98px) {
    .owner-photo {
        width: 120px;
        margin-right: 14px;
    }
}
