:root {
    --ink: #073f48;
    --muted: #50666a;
    --teal: #07646b;
    --line: #d5e7e4;
    --pale: #ecf8f6;
    --accent: #ffab75;
    --accent-light: #fff3e9;
    --surface: #fff;
    font-family: 'Segoe UI',system-ui,sans-serif;
    color: var(--ink);
    background: var(--surface);
    font-synthesis: none;
}

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

[hidden] {
    display: none!important;
}

body {
    margin: 0;
    min-width: 300px;
    font-size: 1rem;
    line-height: 1.55;
}

h1,h2,h3,p {
    margin: 0;
}

a {
    color: inherit;
}

button,input,select,textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid #17848a;
    outline-offset: 4px;
}

::selection {
    background: var(--accent);
    color: var(--ink);
}

.wrap {
    width: min(1192px,calc(100% - 96px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 4;
    top: 10px;
    left: 10px;
    padding: 10px;
    background: white;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    background: white;
    border-bottom: 1px solid #deebe8;
}

.navigation,.footer-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    font-weight: 780;
    font-size: 1.8rem;
    letter-spacing: -.072em;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.brand-wordmark, .brand-mark {
    position: relative;
    display: block;
    overflow: hidden;
}

.brand-wordmark {
    width: 173px;
    aspect-ratio: 1036 / 252;
}

.brand-mark {
    width: 36px;
    aspect-ratio: 1;
}

/* Frame the supplied artwork and leave its original image intact. */
.brand-wordmark img, .brand-mark img {
    position: absolute;
    top: -6.35%;
    height: auto;
    max-width: none;
}

.brand-wordmark img {
    width: 164.77%;
    left: -32.82%;
}

.brand-mark img {
    width: 677.38%;
    left: -134.92%;
}

.navigation nav {
    display: flex;
    gap: 34px;
    align-items: center;
    color: #35565b;
}

.navigation nav a,.footer-content>a:last-child {
    font-size: .94rem;
    text-decoration: none;
    font-weight: 650;
}

.navigation nav a:hover,.footer-content>a:last-child:hover {
    color: var(--teal);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 9px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.25;
    text-align: center;
    transition: background .2s,border-color .2s;
}

.button.dark {
    background: var(--ink);
    color: white;
}

.button.dark:hover {
    background: #17616a;
}

.button.accent {
    background: var(--accent);
    color: #321c13;
}

.button.accent:hover {
    background: #ffc196;
}

.button.outline {
    border-color: #65a6a8;
    color: white;
    background: transparent;
}

.button.outline:hover {
    background: #12555c;
}

.nav-cta {
    min-height: 42px;
    padding: 0 16px;
}

.nav-cta.button {
    background: var(--accent);
    color: #321c13;
}

.nav-cta.button:hover {
    background: #ffc196;
}

.hero {
    background: #073741;
    color: white;
    overflow: hidden;
}

.hero-content {
    min-height: 535px;
    display: grid;
    grid-template-columns: 1.03fr 1fr;
    align-items: center;
    position: relative;
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 68px 0 76px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #89e1de;
    font-weight: 730;
    font-size: .88rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 19px;
}

.eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    transform: rotate(45deg);
}

.eyebrow.teal-text {
    color: var(--teal);
}

.eyebrow.teal-text span {
    background: var(--teal);
}

h1,h2 {
    font-weight: 770;
    line-height: 1.02;
    letter-spacing: -.068em;
}

h1 {
    font-size: clamp(3.4rem,5.62vw,5.65rem);
}

h1 em,.contact h2 em {
    color: var(--accent);
    font-style: normal;
}

.hero-description {
    max-width: 470px;
    margin-top: 25px;
    color: #daeae7;
    font-size: 1.11rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    margin-top: 31px;
}

.summary-strip {
    background: linear-gradient(105deg, #e7f8f5 18%, #f4fbf9 58%, var(--accent-light));
    border-bottom: 1px solid #d8eeeb;
}

.summary-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1.12fr;
    min-height: 79px;
    align-items: center;
    gap: 20px;
}

.summary-content>div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 36px;
    color: #1d535b;
    font-weight: 630;
}

.summary-content>div+div {
    border-left: 1px solid #c5e4df;
}

.summary-content strong,.summary-symbol {
    font-size: 1.65rem;
    line-height: 1;
    color: #096b71;
    font-weight: 760;
    letter-spacing: -.07em;
}

.section {
    padding-block: clamp(68px, 7vw, 100px);
    scroll-margin-top: 15px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 34px;
}

h2 {
    font-size: clamp(2.6rem,4.5vw,4.5rem);
}

.section-heading .eyebrow {
    margin-bottom: 12px;
}

.section-heading>p {
    max-width: 380px;
    color: var(--muted);
    font-size: 1.05rem;
    text-wrap: pretty;
}

.project-controls {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filters button {
    min-height: 40px;
    border-radius: 9px;
    padding: 5px 8px;
    border: 1px solid transparent;
    background: white;
    color: #38575b;
    font-size: .875rem;
    font-weight: 630;
    white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s;
}

.filters button:hover {
    background: #ebf8f6;
}

.filters button[aria-pressed=true] {
    background: #dcf5f1;
    color: #075b62;
    border-color: #bde6e1;
}

.search {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fbfa;
    min-width: 160px;
    max-width: 188px;
    min-height: 40px;
}

.search>span {
    display: block;
    position: relative;
    border: 1.7px solid #527177;
    width: 12px;
    height: 12px;
    flex: none;
    border-radius: 100%;
}

.search>span::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 1.7px;
    background: #527177;
    transform: rotate(45deg);
    top: 9px;
    left: 8px;
}

.search input {
    width: 100%;
    border: 0;
    padding: 7px 0;
    background: transparent;
    color: var(--ink);
    font-size: .88rem;
}

.search:focus-within {
    outline: 2px solid #17848a;
}

.search input:focus-visible {
    outline: 0;
}

.project-result {
    margin: 17px 0 11px;
    color: var(--muted);
    font-size: .89rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
}

.project-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: white;
    transition: box-shadow .2s,border-color .2s;
}

.project-card:hover {
    border-color: #8cccc6;
    box-shadow: 0 12px 30px #07545014;
}

.project-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 21px;
    flex: 1;
}

.category-label {
    color: var(--teal);
    font-size: .875rem;
    font-weight: 670;
    margin-bottom: 5px;
}

.project-body h3,.service-grid h3 {
    font-size: 1.28rem;
    line-height: 1.2;
    letter-spacing: -.032em;
    text-wrap: pretty;
}

.project-description {
    color: var(--muted);
    margin: 9px 0 18px;
    line-height: 1.58;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 16px;
    align-items: center;
}

.card-actions a {
    font-size: .9rem;
    font-weight: 700;
    color: #09696f;
    text-underline-offset: 4px;
}

.card-actions .card-enquiry {
    color: #2d565b;
}

.card-actions a:hover {
    color: #073f48;
}

.empty-projects {
    padding: 27px 0;
    color: var(--muted);
}

.services {
    background: #f6faf9;
    border-top: 1px solid var(--line);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

.service-grid article {
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 25px 22px;
    background: #fff;
    transition: translate .25s, box-shadow .25s, border-color .25s;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .service-grid article:hover {
        translate: 0 -3px;
        border-color: #a8cec6;
        box-shadow: 0 10px 25px #07545012;
    }
}

.service-grid p {
    margin-top: 10px;
    color: var(--muted);
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--pale);
    color: #09656c;
    display: grid;
    place-items: center;
    font-weight: 750;
    margin-bottom: 17px;
}

.contact {
    border-top: 1px solid var(--line);
    background: radial-gradient(ellipse at 95% 15%, #fff1e4, transparent 48%), #edf8f5;
    color: var(--ink);
}

.contact .eyebrow { color: var(--teal); }
.contact .eyebrow span { background: #ac5834; }
.contact h2 em { color: #a34825; }

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 68px;
    align-items: start;
}

.contact-grid>div {
    padding-top: 19px;
}

.contact-grid>div>p:last-child {
    color: var(--muted);
    max-width: 360px;
    margin-top: 22px;
    font-size: 1.1rem;
}

.inline-enquiry .enquiry-form {
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 14px 30px #073f480c;
}

.enquiry-form,.admin-form {
    background: white;
    color: var(--ink);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 12px 34px #063d4321;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.form-field.full {
    grid-column: 1/-1;
}

.form-field label {
    font-size: .91rem;
    font-weight: 650;
}

.form-field input,.form-field select,.form-field textarea,.admin-select {
    width: 100%;
    border: 1px solid #bcd7d2;
    border-radius: 7px;
    min-height: 43px;
    padding: 8px 10px;
    background: #fff;
    color: var(--ink);
}

select {
    appearance: none;
    background-image: linear-gradient(45deg,transparent 50%,#537476 50%),linear-gradient(135deg,#537476 50%,transparent 50%)!important;
    background-position: calc(100% - 15px) 54%,calc(100% - 10px) 54%!important;
    background-size: 5px 5px!important;
    background-repeat: no-repeat!important;
    padding-right: 24px!important;
}

.form-field textarea {
    resize: vertical;
}

.notice {
    padding: 10px 12px;
    border-radius: 7px;
    margin-bottom: 15px;
}

.notice.success {
    color: #175438;
    background: #e3f8ed;
}

.notice.error {
    color: #932626;
    background: #ffebeb;
}

.field-error {
    color: #932626;
    font-size: .89rem;
}

[aria-invalid=true] {
    border-color: #af3131!important;
}

.site-footer {
    background: white;
    color: #3a6064;
    border-top: 3px solid #38c4c4;
}

.site-footer .brand {
    color: var(--ink);
}

.footer-content p {
    font-size: .9rem;
}

.admin-page {
    background: #f2f9f7;
    min-height: 100vh;
}

.admin-main {
    padding-block: 48px 80px;
}

.admin-narrow {
    width: min(100%,470px);
    margin-inline: auto;
}

.admin-main h1 {
    font-size: clamp(2.6rem,5vw,4.1rem);
    margin-bottom: 12px;
}

.admin-intro {
    color: var(--muted);
    margin-bottom: 24px;
}

.admin-form .form-field {
    margin-bottom: 14px;
}

.admin-form .button {
    margin-top: 4px;
}

.inbox-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.inbox-head .admin-intro {
    margin-bottom: 0;
}

.inbox-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.inbox-filters a,.badge {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    padding: 6px 10px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 640;
}

.inbox-filters a[aria-current=page],.badge.new {
    background: #dcf5f1;
    color: #075b62;
}

.badge.contacted {
    background: #e3f8ed;
    color: #175438;
}

.enquiry-list {
    display: grid;
    gap: 13px;
}

.enquiry-record {
    background: #fff;
    padding: 19px 21px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.record-top,.record-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.record-top h2 {
    font-size: 1.42rem;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

.record-contact {
    margin: 7px 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.record-message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 10px 0 16px;
}

.record-actions form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.record-actions time {
    font-size: .9rem;
    color: var(--muted);
}

.record-actions .button {
    min-height: 39px;
}

.record-actions select {
    min-height: 39px;
    width: auto;
}

.pagination {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 20px;
}

@media(max-width:1080px) {
    .project-controls {
        flex-wrap: wrap;
    }
    .search {
        max-width: none;
    }
    .service-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:800px) {
    .wrap {
        width: calc(100% - 44px);
    }
    .hero-content {
        min-height: 480px;
    }
    .hero-description {
        max-width: 420px;
    }
    .summary-content {
        gap: 10px;
    }
    .summary-content>div {
        gap: 8px;
        font-size: .89rem;
    }
    .section {
        padding-block: 63px;
    }
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .project-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .contact-grid {
        gap: 28px;
        grid-template-columns: 1fr;
    }
    .contact-grid>div {
        padding-top: 0;
    }
}

@media(max-width:550px) {
    .wrap {
        width: calc(100% - 32px);
    }
    .navigation,.footer-content {
        min-height: 64px;
        gap: 12px;
    }
    .navigation nav {
        gap: 13px;
    }
    .navigation nav a {
        font-size: .88rem;
    }
    .brand {
        font-size: 1.55rem;
    }
    .brand-wordmark {
        width: 126px;
    }
    .brand-mark {
        width: 30px;
    }
    .nav-cta {
        display: none;
    }
    .hero-content {
        display: block;
        min-height: 0;
    }
    .hero-copy {
        padding: 47px 0 0;
    }
    .hero h1 {
        font-size: clamp(2.8rem,10.4vw,3.5rem);
    }
    .hero-description {
        font-size: 1rem;
        margin-top: 18px;
    }
    .hero-actions {
        gap: 8px;
        margin-top: 21px;
    }
    .hero-actions .button {
        padding: 0 13px;
    }
    .summary-content {
        grid-template-columns: 1fr 1fr;
        padding-block: 12px;
        gap: 7px;
    }
    .summary-content>div {
        min-height: 34px;
    }
    .summary-content>div:last-child {
        grid-column: 1/-1;
        border-left: 0;
        border-top: 1px solid #c5e4df;
        padding-top: 7px;
    }
    .project-grid,.service-grid {
        grid-template-columns: 1fr;
    }
.filters {
        gap: 4px;
    }
    .filters button {
        padding-inline: 8px;
        min-height: 42px;
    }
    .search {
        width: 100%;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .enquiry-form,.admin-form {
        padding: 17px;
    }
    .footer-content {
        flex-wrap: wrap;
        padding-block: 10px;
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        transition: none!important;
    }
}
