/* =========================================================
   RESET / BASE
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;

    color: #203040;
    background: #ffffff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

a:focus-visible,
summary:focus-visible {
    outline: 3px solid #1db4d5;
    outline-offset: 4px;
}


/* =========================================================
   GLOBAL LAYOUT
========================================================= */

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
}

.section {
    padding: 88px 0;
}

.section-light {
    background: #f3f7fa;
}

.section-label {
    color: #2877a8;

    text-transform: uppercase;

    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: bold;

    margin-bottom: 12px;
}

.section-label-light {
    color: #a8d9f5;
}

.section-heading {
    max-width: 720px;

    margin-bottom: 44px;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h1 {
    font-weight: 700;
}

h2 {
    font-size:
        clamp(2rem, 4vw, 3rem);

    margin-bottom: 24px;
}

h3 {
    font-size: 1.3rem;
}

p {
    color: #425966;
}

p + p {
    margin-top: 18px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    background:
        linear-gradient(
            180deg,
            #f8fcfe 0%,
            #eef7fb 100%
        );

    border-top: 4px solid #1db4d5;
    border-bottom: 1px solid #cbdde6;

    box-shadow:
        0 4px 18px rgba(15, 52, 72, 0.07);

    position: sticky;
    top: 0;

    z-index: 100;
}

.header-inner {
    min-height: 110px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.brand {
    display: flex;
    align-items: center;

    text-decoration: none;

    flex-shrink: 0;
}

.site-logo {
    display: block;

    width: auto;
    height: 80px;

    max-width: 440px;

    object-fit: contain;
}

.main-nav {
    display: flex;

    gap: 8px;

    padding: 6px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.68);

    border:
        1px solid rgba(35, 100, 135, 0.10);
}

.main-nav a {
    position: relative;

    padding: 10px 18px;

    border-radius: 999px;

    text-decoration: none;
    font-weight: bold;

    color: #24475b;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover {
    background: #dcecf4;

    color: #164f73;

    transform: translateY(-1px);
}

.main-nav a.active {
    background: #164f73;

    color: #ffffff;

    box-shadow:
        0 3px 10px rgba(22, 79, 115, 0.16);
}


/* =========================================================
   HOMEPAGE HERO
========================================================= */

.hero {
    display: grid;

    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(0, 1.08fr);

    min-height: 650px;

    background: #123f5c;
}

.hero-copy {
    display: flex;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            #0b334c 0%,
            #155a80 100%
        );

    position: relative;
}

.hero-copy::after {
    content: "";

    position: absolute;

    top: 0;
    right: -50px;

    width: 100px;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #155a80 0%,
            rgba(21, 90, 128, 0) 100%
        );

    z-index: 2;

    pointer-events: none;
}

.hero-copy-inner {
    width:
        min(560px, 82%);

    margin-left: auto;
    margin-right: 70px;

    padding:
        80px 0;
}

.hero-image {
    min-height: 650px;

    background-image:
        url("../images/imperial-feature.jpg");

    background-size: cover;

    background-position:
        center center;

    background-repeat:
        no-repeat;
}

.eyebrow {
    color: #9ce5f7;

    text-transform: uppercase;

    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: bold;

    margin-bottom: 20px;
}

.hero h1 {
    max-width: 620px;

    color: #ffffff;

    font-size:
        clamp(3rem, 5.5vw, 5.4rem);

    margin-bottom: 28px;
}

.hero h1 span {
    display: block;

    margin-top: 6px;

    color: #9fe2f5;
}

.hero-text {
    max-width: 540px;

    font-size: 1.18rem;

    color: #eaf7fb;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 16px;

    margin-top: 34px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-block;

    padding: 14px 22px;

    text-decoration: none;
    font-weight: bold;

    border-radius: 5px;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: #ffffff;

    color: #164f73;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.12);
}

.button-primary:hover {
    background: #eefaff;
}

.button-secondary {
    color: #ffffff;

    border:
        1px solid rgba(255, 255, 255, 0.62);

    background:
        rgba(255, 255, 255, 0.06);
}

.button-secondary:hover {
    background:
        rgba(255, 255, 255, 0.14);
}


/* =========================================================
   ABOUT
========================================================= */

.narrow p {
    max-width: 720px;
}


/* =========================================================
   SERVICES
========================================================= */

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}

.service-card {
    background: #ffffff;

    padding: 32px;

    border: 1px solid #dde7ed;
    border-radius: 7px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);

    border-color: #b9d7e5;

    box-shadow:
        0 14px 34px rgba(20, 63, 88, 0.09);
}

.service-number {
    color: #49a5c8;

    font-size: 0.75rem;
    font-weight: bold;

    margin-bottom: 28px;
}

.service-card h3 {
    margin-bottom: 14px;

    color: #164f73;
}

.service-card p {
    color: #5d707c;
}


/* =========================================================
   HOMEPAGE FEATURED WORK
========================================================= */

.featured-work {
    overflow: hidden;
}

.split-section {
    display: grid;

    grid-template-columns:
        0.85fr 1.15fr;

    gap: 70px;

    align-items: center;
}

.featured-work-copy {
    max-width: 460px;
}

.text-link {
    display: inline-block;

    margin-top: 26px;

    color: #2877a8;
    font-weight: bold;

    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}


/* Homepage image preview */

.home-gallery-preview {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    grid-template-rows:
        260px 190px;

    gap: 14px;
}

.home-gallery-preview a {
    display: block;

    position: relative;

    overflow: hidden;

    border-radius: 8px;

    background: #dcebf3;

    box-shadow:
        0 8px 24px rgba(20, 63, 88, 0.08);
}

.home-gallery-main {
    grid-column:
        1 / -1;
}

.home-gallery-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.home-gallery-preview a:hover img {
    transform: scale(1.035);

    filter:
        brightness(1.03);
}

.home-gallery-preview a::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 55%,
            rgba(4, 35, 52, 0.18) 100%
        );

    pointer-events: none;
}


/* =========================================================
   SERVICE AREA
========================================================= */

.service-area {
    background:
        linear-gradient(
            180deg,
            #edf5f8 0%,
            #e4f0f5 100%
        );
}

.service-area-details {
    margin-top: 30px;

    border:
        1px solid #c9dce6;

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.78);

    overflow: hidden;

    box-shadow:
        0 6px 18px rgba(22, 79, 115, 0.05);
}

.service-area-details summary {
    cursor: pointer;

    padding: 18px 22px;

    color: #164f73;

    font-weight: bold;

    list-style: none;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.service-area-details summary::-webkit-details-marker {
    display: none;
}

.service-area-details summary::after {
    content: "+";

    width: 30px;
    height: 30px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #ffffff;

    background: #2877a8;

    font-size: 1.25rem;
    font-weight: normal;

    line-height: 1;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.service-area-details summary:hover {
    background: #f7fbfd;
}

.service-area-details[open] summary {
    border-bottom:
        1px solid #d7e4ea;
}

.service-area-details[open] summary::after {
    content: "−";

    background: #164f73;
}

.town-list {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        12px 24px;

    padding:
        24px 22px 28px;
}

.town-list span {
    position: relative;

    padding-left: 14px;

    color: #49616f;

    font-size: 0.95rem;
}

.town-list span::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0.7em;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #49a5c8;
}

.service-area-note {
    margin-top: 18px;

    font-size: 0.88rem;

    color: #6b7f89;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    padding: 80px 0;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #103b56 0%,
            #164f73 100%
        );
}

.contact-inner {
    display: grid;

    grid-template-columns:
        1.3fr 0.7fr;

    gap: 60px;

    align-items: center;
}

.contact-section h2 {
    margin-bottom: 15px;
}

.contact-section p {
    color: #dfeef5;
}

.contact-details {
    display: grid;

    gap: 20px;
}

.contact-details strong {
    color: #ffffff;
}

.contact-details a {
    color: #bfeaff;

    text-underline-offset: 3px;
}

.contact-details a:hover {
    color: #ffffff;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 28px 0;

    background: #092b3f;

    color: #a9c0ce;
}

.footer-inner {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-size: 0.85rem;
}

.footer-inner p {
    color: #a9c0ce;
}


/* =========================================================
   PORTFOLIO HERO
========================================================= */

.portfolio-hero {
    padding:
        95px 0 82px;

    background:
        linear-gradient(
            135deg,
            #eef7fb 0%,
            #dbeaf2 100%
        );
}

.portfolio-hero-inner {
    display: grid;

    grid-template-columns:
        1.15fr 0.85fr;

    gap: 80px;

    align-items: end;
}

.portfolio-hero h1 {
    max-width: 720px;

    font-size:
        clamp(3rem, 6vw, 5.4rem);

    color: #17394d;

    margin: 0;
}

.portfolio-hero h1 span {
    display: block;

    color: #2877a8;
}

.portfolio-hero-copy {
    padding-bottom: 10px;
}

.portfolio-hero-copy p {
    font-size: 1.08rem;
}


/* =========================================================
   FEATURED PORTFOLIO PROJECT
========================================================= */

.portfolio-feature {
    padding:
        90px 0;
}

.feature-project {
    display: grid;

    grid-template-columns:
        1.35fr 0.65fr;

    gap: 56px;

    align-items: center;
}

.feature-project-image {
    overflow: hidden;

    border-radius: 8px;

    box-shadow:
        0 18px 44px rgba(20, 63, 88, 0.10);
}

.feature-project-image img {
    width: 100%;
    height: 520px;

    object-fit: cover;
}

.feature-project-caption h2 {
    color: #17394d;
}


/* =========================================================
   PORTFOLIO GALLERY
========================================================= */

.gallery-section {
    padding:
        90px 0 105px;

    background: #f4f8fa;
}

.gallery-heading {
    max-width: 680px;

    margin-bottom: 46px;
}

.gallery-heading p:last-child {
    font-size: 1.05rem;
}

.work-gallery {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.work-photo {
    position: relative;

    min-height: 360px;

    overflow: hidden;

    border-radius: 8px;

    background: #dbe9ef;

    box-shadow:
        0 8px 24px rgba(20, 63, 88, 0.06);
}

.work-photo-wide {
    grid-column:
        1 / -1;

    min-height: 430px;
}

.work-photo-tall {
    min-height: 480px;
}

.work-photo img {
    width: 100%;
    height: 100%;

    position: absolute;

    inset: 0;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}

.work-photo:hover img {
    transform: scale(1.025);
}

.work-photo::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(7, 34, 49, 0) 52%,
            rgba(7, 34, 49, 0.75) 100%
        );

    pointer-events: none;
}

.work-photo figcaption {
    position: absolute;

    left: 24px;
    bottom: 22px;

    z-index: 2;

    color: #ffffff;

    font-size: 1.05rem;
    font-weight: bold;

    text-shadow:
        0 2px 7px rgba(0, 0, 0, 0.35);
}

.work-photo figcaption span {
    display: block;

    margin-bottom: 3px;

    color: #bfeaff;

    text-transform: uppercase;

    letter-spacing: 0.13em;

    font-size: 0.72rem;
}


/* =========================================================
   PORTFOLIO MESSAGE
========================================================= */

.portfolio-message {
    padding:
        90px 0;

    background:
        linear-gradient(
            135deg,
            #0d3a55 0%,
            #176388 100%
        );

    color: #ffffff;
}

.portfolio-message h2 {
    color: #ffffff;
}

.portfolio-message p {
    color: #dceef6;
}

.portfolio-message .section-label {
    color: #9fe2f5;
}


/* =========================================================
   PORTFOLIO CTA
========================================================= */

.portfolio-cta {
    padding: 80px 0;

    background: #092b3f;

    color: #ffffff;

    text-align: center;
}

.portfolio-cta h2 {
    max-width: 760px;

    margin:
        0 auto 18px;
}

.portfolio-cta p {
    max-width: 660px;

    margin: 0 auto;

    color: #dfeef5;
}

.portfolio-cta .button {
    margin-top: 28px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .header-inner {
        gap: 20px;
    }

    .site-logo {
        height: 66px;
        max-width: 350px;
    }


    /* Hero */

    .hero {
        grid-template-columns:
            1fr 1fr;
    }

    .hero-copy-inner {
        width: 82%;

        margin-right: 42px;
    }

    .hero-copy::after {
        right: -30px;

        width: 60px;
    }


    /* Services */

    .service-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    /* Homepage work */

    .split-section {
        grid-template-columns:
            1fr;

        gap: 45px;
    }

    .featured-work-copy {
        max-width: 700px;
    }


    /* Town list */

    .town-list {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    /* Contact */

    .contact-inner {
        grid-template-columns:
            1fr;
    }


    /* Portfolio */

    .portfolio-hero-inner {
        grid-template-columns:
            1fr;

        gap: 34px;
    }

    .portfolio-hero-copy {
        max-width: 700px;
    }

    .feature-project {
        grid-template-columns:
            1fr;

        gap: 38px;
    }

    .feature-project-image img {
        height: 460px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .section {
        padding: 64px 0;
    }


    /* Header */

    .header-inner {
        min-height: auto;

        flex-direction: column;
        justify-content: center;

        padding:
            14px 0 16px;

        gap: 12px;
    }

    .brand {
        width: 100%;

        justify-content: center;
    }

    .site-logo {
        height: auto;

        width:
            min(100%, 320px);

        max-height: 68px;
    }

    .main-nav {
        width: auto;

        gap: 4px;

        justify-content: center;
    }

    .main-nav a {
        padding:
            8px 13px;

        font-size: 0.94rem;
    }


    /* Homepage Hero */

    .hero {
        display: flex;

        flex-direction: column;

        min-height: 0;
    }

    .hero-copy {
        width: 100%;
    }

    .hero-copy::after {
        display: none;
    }

    .hero-copy-inner {
        width: 90%;

        margin:
            0 auto;

        padding:
            58px 0;
    }

    .hero h1 {
        font-size:
            clamp(
                2.65rem,
                12vw,
                4rem
            );
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }

    .hero-image {
        width: 100%;

        min-height: 340px;

        background-position:
            center center;
    }


    /* Services */

    .service-grid {
        grid-template-columns:
            1fr;
    }


    /* Homepage work */

    .home-gallery-preview {
        grid-template-columns:
            1fr;

        grid-template-rows: none;
    }

    .home-gallery-main {
        grid-column: auto;
    }

    .home-gallery-preview a {
        height: 260px;
    }

    .home-gallery-main {
        height: 320px !important;
    }


    /* Service Area */

    .town-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            10px 18px;
    }


    /* Portfolio Hero */

    .portfolio-hero {
        padding:
            66px 0 58px;
    }

    .portfolio-hero h1 {
        font-size:
            clamp(
                2.7rem,
                12vw,
                4.2rem
            );
    }


    /* Portfolio feature */

    .portfolio-feature {
        padding:
            64px 0;
    }

    .feature-project-image img {
        height: 330px;
    }


    /* Portfolio gallery */

    .gallery-section {
        padding:
            64px 0 76px;
    }

    .work-gallery {
        grid-template-columns:
            1fr;

        gap: 16px;
    }

    .work-photo,
    .work-photo-wide,
    .work-photo-tall {
        grid-column: auto;

        min-height: 330px;
    }

    .work-photo figcaption {
        left: 18px;
        bottom: 18px;
    }


    /* Portfolio message */

    .portfolio-message {
        padding:
            68px 0;
    }


    /* Footer */

    .footer-inner {
        flex-direction: column;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .town-list {
        grid-template-columns:
            1fr;
    }

    .service-area-details summary {
        padding:
            16px 18px;
    }

    .town-list {
        padding:
            20px 18px 24px;
    }

    .home-gallery-preview a {
        height: 230px;
    }

    .home-gallery-main {
        height: 280px !important;
    }

    .feature-project-image img {
        height: 280px;
    }

    .work-photo,
    .work-photo-wide,
    .work-photo-tall {
        min-height: 280px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;
    }

}