@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&display=swap');

/* ---------- Colour palette & basics ---------- */
:root {
    --brand: #3d5a2a;        /* deep field green */
    --brand-dark: #2a3f1d;
    --accent: #c99a3c;       /* warm tan */
    --text: #ffffff;
    --muted: #ffffff;
    --bg: #3f6a81;
    --bg-alt: #f5f1e8;
    --border: #e2ddd0;
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
}

img { max-width: 100%; }

h1, h2, h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: #ffffff;
    margin-top: 0;
    text-transform: uppercase;
    font-weight: normal;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }

a { color: var(--brand); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Header & nav ---------- */
header {
    background: var(--bg);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0 1.5rem;
    height: 160px;
}

.header-photo {
    width: 30%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    flex-shrink: 0;
    margin-left: -1rem;
}

.logo {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: bold;
    font-size: 1.3rem;
    color: #ffffff;
    text-decoration: none;
}

.logo:hover {
    color: #001f5b;
}

nav a {
    margin-left: 1.25rem;
    text-decoration: none;
    color: var(--text);
    font-size: 1rem;
}

nav a:hover,
nav a.active {
    color: #001f5b;
    border-bottom: 2px solid #001f5b;
}

/* Hamburger button — hidden on desktop, shown at the mobile breakpoint */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
    margin: 0 auto;
    transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    background-color: #3f6a81;
    background-size: 30%;
    background-repeat: no-repeat;
    background-position: left center;
    color: #fff;
    min-height: 160px;
    max-height: 160px;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.45);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2.8rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1.75rem;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #b7862b;
}

.btn-white {
    background: #9fbdc3;
    color: #ffffff;
}

.btn-white:hover {
    background: #8aadb4;
}

/* ---------- Sections ---------- */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: #9fbdc3;
}

.navy-bg {
    background: #3f6a81;
}

/* ---------- Photo strip ---------- */
.photo-strip {
    display: flex;
    width: 100%;
    height: 220px;
    background: #3f6a81;
}

.photo-strip-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.welcome-section {
    background: #3f6a81;
    color: #ffffff;
}

.welcome-section h2 {
    color: #ffffff;
}

.page-header {
    background: #9fbdc3;
    padding: 0.6rem 0;
    border-bottom: none;
}

.page-header h1 {
    margin: 0;
}

/* ---------- Cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.photo-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.photo-card-img {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.photo-card-label {
    background: #9fbdc3;
    color: #ffffff;
    text-align: center;
    padding: 0.75rem 1rem;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-card-desc {
    background: #001f5b;
    color: #ffffff;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enquire-box {
    background: #9fbdc3;
    color: #ffffff;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1rem;
    letter-spacing: 0.03em;
    display: inline-block;
    text-decoration: none;
}

a.enquire-box:hover {
    background: #8aadb4;
}

/* ---------- Two-column layouts ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.two-col-3-2 {
    grid-template-columns: 3fr 2fr;
}

@media (max-width: 700px) {
    .two-col,
    .two-col-3-2 { grid-template-columns: 1fr; }
}

.rounded {
    width: 100%;
    border-radius: 6px;
    display: block;
}

/* Fixed-ratio photo sizes (overridden on small screens) */
.img-tall,
.img-med,
.img-short {
    object-fit: cover;
}

.img-tall { height: 440px; }
.img-med { height: 380px; }
.img-short { height: 280px; }

.approach-photo {
    max-height: 320px;
    overflow: hidden;
    border-radius: 6px;
}

.approach-photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}

/* ---------- Services list ---------- */
.service {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.service:last-child { border-bottom: none; }

.service-card-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

/* ---------- Checklist ---------- */
.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #001f5b;
    font-weight: bold;
}

/* ---------- Gallery / Instagram ---------- */
.instagram-heading {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.instagram-handle {
    text-align: center;
    margin-bottom: 2rem;
}

.instagram-handle a {
    color: #ffffff;
    text-decoration: none;
}

.instagram-handle a:hover {
    text-decoration: underline;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}

.lightbox-close:hover { opacity: 1; }

/* ---------- Form ---------- */
form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

form button {
    margin-top: 1.25rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.form-checkbox label {
    margin-top: 0;
    font-weight: normal;
}

.btn-secondary {
    background: #9fbdc3;
}

.btn-secondary:hover {
    background: #8aadb4;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 700px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* ---------- Footer ---------- */
footer {
    background: var(--bg);
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
    margin-top: 0.5rem;
}

footer p { margin: 0.25rem 0; }

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.footer-logos img {
    height: 60px;
    width: auto;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: -1rem;
}

.partner-logos img {
    height: 140px;
    width: auto;
}

.footer-trademark {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-trademark a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* ---------- Tablet / small laptop ---------- */
@media (max-width: 900px) {
    .header-inner { height: 120px; }
    .header-photo { width: 34%; }
    nav a { margin-left: 0.9rem; font-size: 0.95rem; }
    .partner-logos { gap: 2rem; }
    .partner-logos img { height: 100px; }
    .photo-strip { height: 180px; }
}

/* ---------- Mobile: collapsed nav ---------- */
@media (max-width: 820px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: 76px;
        padding: 0.6rem 1rem;
    }

    .header-photo {
        width: auto;
        flex: 1 1 auto;
        max-width: 260px;
        height: 72px;
        margin-left: 0;
        background-position: left center;
    }

    .nav-toggle { display: flex; }

    nav {
        display: none;
        flex-basis: 100%;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        margin-top: 0.5rem;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    nav.open { display: block; }

    nav a {
        display: block;
        margin: 0;
        padding: 0.9rem 0.25rem;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    nav a:last-child { border-bottom: none; }

    nav a:hover,
    nav a.active {
        color: #ffffff;
        border-bottom-color: rgba(255, 255, 255, 0.15);
        border-left: 3px solid #001f5b;
        padding-left: 0.6rem;
    }
}

/* ---------- Mobile: layout ---------- */
@media (max-width: 700px) {
    .container { padding: 0 1.1rem; }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }

    .section { padding: 2.5rem 0; }

    .page-header { padding: 0.8rem 0; }

    .header-photo { height: 62px; max-width: 230px; }

    /* Homepage photo strip becomes a 2x2 grid instead of 4 slivers */
    .photo-strip {
        flex-wrap: wrap;
        height: auto;
    }

    .photo-strip-item {
        flex: 0 0 50%;
        height: 140px;
    }

    /* Cards */
    .cards { gap: 1.25rem; margin-top: 1.5rem; }
    .card { padding: 1.25rem; }
    .photo-card-img { height: 220px; }
    .photo-card-label { min-height: 0; padding: 0.8rem 1rem; }
    .photo-card-desc { min-height: 0; padding: 0.7rem 1rem; }

    .enquire-box { display: block; text-align: center; }

    /* Stacked two-column sections */
    .two-col { gap: 1.75rem; }
    .service { padding: 1.25rem 0; }

    /* Keep the heading above its photo when the photo comes first in the markup */
    .service .col-media { order: 2; }

    .approach-photo,
    .approach-photo img { max-height: 240px; height: 240px; }

    /* Photos that are fixed-height on desktop */
    .img-tall,
    .img-med { height: 300px; }
    .img-short { height: 220px; }

    /* Gallery: two-up on phones */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .gallery img { height: 150px; }

    /* Logos */
    .partner-logos {
        flex-wrap: wrap;
        gap: 1.25rem;
        padding: 0 1rem;
        margin-top: 1.5rem;
        margin-bottom: 0;
    }

    .partner-logos img { height: 72px; }

    .footer-logos { flex-wrap: wrap; gap: 1rem; }

    footer { padding: 1.75rem 0; }
    footer p { margin: 0.4rem 0; }

    /* Contact form */
    .contact-layout { gap: 2rem; }
    form input,
    form textarea,
    form select { font-size: 16px; padding: 0.7rem; }
    form button { width: 100%; padding: 0.9rem 1.5rem; }

    /* Hero (if used) */
    .hero { max-height: none; }
    .hero h1 { font-size: 2rem; }
    .hero-overlay { padding: 3rem 0; }
    .hero p { font-size: 1.05rem; }
}

/* ---------- Small phones ---------- */
@media (max-width: 420px) {
    .container { padding: 0 1rem; }

    .header-photo { height: 54px; max-width: 190px; }

    .photo-strip-item { height: 115px; }

    .gallery { gap: 0.5rem; }
    .gallery img { height: 125px; }

    .partner-logos img { height: 60px; }

    .img-tall,
    .img-med { height: 250px; }

    .lightbox-close { top: 0.5rem; right: 0.75rem; }
}

/* Larger tap target for the lightbox close button on touch devices */
@media (hover: none) {
    .lightbox-close {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
