*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --teal: #3490ae;
    --teal-dark: #287087;
    --text: #737373;
    --heading: #3490ae;
    --white: #ffffff;
    --header-bg: #737373;
    --footer-bg: #f3f3f3;
    --border: #e6e6e6;
    --max: 1100px;
    --header-height: 280px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Lato, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    color: var(--teal);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: Montserrat, "Segoe UI", sans-serif;
    font-weight: 400;
    color: var(--heading);
    line-height: 1.35;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--teal);
    color: var(--white);
    padding: 8px 16px;
    z-index: 2000;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    min-height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header--home {
    background-color: var(--header-bg);
    background-image: url("images/hero-sdb.jpg");
    background-size: cover;
    background-position: center 40%;
}

.header-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo img {
    height: 168px;
    width: auto;
    max-width: min(520px, 52vw);
    object-fit: contain;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: var(--white);
    font-family: Montserrat, "Segoe UI", sans-serif;
    font-size: 15px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 12px;
    border: 2px solid transparent;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    border-color: var(--white);
    text-decoration: none;
}

/* Layout */
.wrap {
    width: min(100% - 48px, var(--max));
    margin-inline: auto;
}

.page {
    padding: 56px 0 72px;
}

.page--tight {
    padding-top: 40px;
}

.center {
    text-align: center;
}

.lead {
    max-width: 820px;
    margin: 12px auto 0;
    color: var(--text);
}

.section-title {
    font-size: 30px;
    margin-bottom: 10px;
}

.section-title--md {
    font-size: 26px;
}

.section-title--sm {
    font-size: 22px;
}

.mt-lg {
    margin-top: 56px;
}

.mt-md {
    margin-top: 36px;
}

.mt-sm {
    margin-top: 18px;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    font-family: Lato, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.2;
    padding: 8px 18px;
    border-radius: 20px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn:hover {
    background: var(--teal-dark);
    color: var(--white);
    text-decoration: none;
}

.btn-row {
    margin-top: 22px;
}

.btn-row--center {
    text-align: center;
}

/* Cards / grids */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 36px;
}

.card {
    text-align: left;
}

.card img,
.media img {
    width: 100%;
    object-fit: cover;
}

.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card h2,
.card h3 {
    margin: 16px 0 8px;
    font-size: 22px;
}

.card p {
    margin-bottom: 14px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.split--center {
    align-items: center;
}

.split img {
    width: 100%;
    object-fit: cover;
}

.band {
    background: #fafafa;
    padding: 48px 0;
    margin: 48px 0 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contact-block {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0;
    margin-top: 48px;
    align-items: stretch;
}

.contact-block img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center;
}

.contact-copy {
    padding: 36px 40px;
}

.contact-copy h2 {
    font-size: 28px;
    margin-bottom: 22px;
}

.contact-copy p {
    margin-bottom: 8px;
}

.contact-copy .label {
    font-weight: 700;
    color: #555;
    margin-top: 22px;
    margin-bottom: 6px;
}

/* Realisations */
.gallery-hero {
    display: grid;
    grid-template-columns: 1.45fr 0.7fr;
    gap: 16px;
    margin-top: 28px;
}

.gallery-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-hero img,
.gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-hero .main-shot {
    aspect-ratio: 1 / 1.02;
}

.gallery-side img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.caption {
    margin-top: 12px;
}

.gallery-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-3 img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 720px;
}

.gallery-2 img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* Forms */
.form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.form label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 600;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
    color: #333;
    background: var(--white);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: 2px solid rgba(52, 144, 174, 0.35);
    border-color: var(--teal);
}

.form-message {
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.form-message-success {
    background: #e8f6ec;
    color: #1b7a3a;
}

.form-message-error {
    background: #fdecea;
    color: #b3261e;
}

.form-message-info {
    background: #e7f3fb;
    color: var(--teal-dark);
}

.info-list p {
    margin-bottom: 6px;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: #888;
    padding: 22px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-top: 1px solid #ececec;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    cursor: zoom-out;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 90vh;
    object-fit: contain;
}

.zoomable {
    cursor: zoom-in;
}

/* About extras */
.hours {
    white-space: pre-line;
}

/* Responsive */
@media (max-width: 980px) {
    :root {
        --header-height: 150px;
    }

    .header-inner {
        padding: 10px 20px;
    }

    .logo img {
        height: 96px;
    }

    .cards-3,
    .gallery-3 {
        grid-template-columns: 1fr 1fr;
    }

    .split,
    .contact-block,
    .gallery-hero {
        grid-template-columns: 1fr;
    }

    .contact-block img {
        min-height: 280px;
        max-height: 360px;
    }

    .contact-copy {
        padding: 28px 8px 0;
    }

    .gallery-2 {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        gap: 4px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
        z-index: 20;
    }

    .nav.is-open {
        display: flex;
    }

    .nav-link {
        text-align: center;
    }

    .site-header {
        position: sticky;
    }

    .cards-3,
    .gallery-3,
    .gallery-2,
    .split {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .page {
        padding: 36px 0 56px;
    }

    .wrap {
        width: min(100% - 32px, var(--max));
    }

    .site-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 18px 16px;
    }
}
