:root {
    --bg: #f6f8f5;
    --surface: #ffffff;
    --surface-soft: #eef6f2;
    --ink: #173332;
    --muted: #647976;
    --line: rgba(23, 51, 50, 0.12);
    --teal: #16766f;
    --teal-dark: #0b4845;
    --blue: #315d88;
    --gold: #c79a4b;
    --shadow: 0 18px 55px rgba(18, 52, 52, 0.12);
    --shadow-soft: 0 10px 28px rgba(18, 52, 52, 0.08);
    --wrap: min(1180px, calc(100vw - 40px));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

p,
ul {
    margin-top: 0;
}

.wrap {
    width: var(--wrap);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    background: #fff;
    padding: 10px 14px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.top-strip {
    background: var(--teal-dark);
    color: #fff;
    font-size: 0.86rem;
}

.top-strip-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.top-strip-inner span {
    margin-right: auto;
    color: rgba(255, 255, 255, 0.82);
}

.header-shell {
    min-height: 82px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand img {
    width: 76px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-family: Newsreader, serif;
    font-size: 1.7rem;
    line-height: 1;
}

.brand small {
    color: var(--muted);
    font-weight: 700;
}

.header-nav,
.header-actions,
.hero-actions,
.hero-badges {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-nav {
    color: var(--muted);
    font-weight: 700;
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-toggle {
    display: none;
    appearance: none;
    border: 1px solid var(--line);
    background: #fff;
    min-height: 46px;
    padding: 0 14px;
    font-weight: 800;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 800;
}

.button-primary {
    background: var(--teal);
    color: #fff;
}

.button-secondary {
    background: #fff;
    color: var(--teal-dark);
    border-color: var(--line);
}

.button-block {
    width: 100%;
}

.hero {
    background: linear-gradient(110deg, #f8fbf9 0%, #e7f3ee 58%, #fdfbf6 100%);
    padding: 82px 0 54px;
}

.services-hero {
    padding: 78px 0 58px;
    background: linear-gradient(110deg, #f7fbf8 0%, #e9f5f1 100%);
}

.hero-grid,
.services-hero-grid,
.split-grid,
.contact-panel,
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.services-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.footer-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr) minmax(260px, 0.7fr);
}

.hero h1,
.services-hero h1,
.section h2,
.site-footer h2 {
    font-family: Newsreader, serif;
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero h1 {
    margin: 0 0 20px;
    max-width: 11ch;
    font-size: clamp(3.3rem, 7vw, 6.4rem);
}

.services-hero h1 {
    margin: 0 0 18px;
    max-width: 12ch;
    font-size: clamp(3rem, 6vw, 5.8rem);
}

.hero-copy p,
.services-hero p,
.section-heading p,
.lead,
.feature-card p,
.service-card p,
.team-card p,
.contact-panel p {
    color: var(--muted);
    font-size: 1.02rem;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 56ch;
}

.eyebrow,
.info-grid span {
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 800;
}

.hero-actions {
    flex-wrap: wrap;
    margin: 30px 0;
}

.hero-badges {
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
}

.hero-badges li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 700;
    color: var(--teal-dark);
}

.hero-media {
    border: 10px solid #fff;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.services-hero-media {
    aspect-ratio: 16 / 10;
    border: 10px solid #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-media img,
.services-hero-media img,
.feature-card img,
.team-card img,
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-band {
    padding: 20px 0;
    background: var(--teal-dark);
    color: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 20px;
}

.info-grid span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
}

.section {
    padding: 94px 0;
}

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

.section-heading {
    max-width: 820px;
    margin-bottom: 40px;
}

.section h2,
.site-footer h2 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.lead {
    font-size: 1.28rem;
    color: var(--teal-dark);
}

.feature-card,
.service-card,
.team-card,
.contact-card,
.footer-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.service-card,
.team-card,
.gallery-grid img {
    box-shadow: var(--shadow-soft);
}

.feature-card {
    padding: 28px;
}

.feature-card img {
    margin-top: 20px;
    aspect-ratio: 16 / 9;
}

.feature-card h3,
.service-card h3,
.team-card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

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

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.service-detail-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.service-detail-media {
    position: relative;
    min-height: 270px;
}

.service-detail-media .service-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-media .service-icon {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: 64px;
    height: 64px;
    object-fit: contain;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.service-detail-copy {
    padding: 28px;
}

.service-detail-copy h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.service-detail-copy p,
.service-detail-copy li {
    color: var(--muted);
}

.service-detail-copy ul {
    margin-bottom: 0;
    padding-left: 18px;
}

.service-card {
    padding: 26px;
    min-height: 264px;
}

.service-card img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    margin-bottom: 22px;
    padding: 11px;
    background: var(--surface-soft);
    border-radius: 8px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.team-card {
    overflow: hidden;
}

.team-card img {
    aspect-ratio: 4 / 3;
}

.team-card div {
    padding: 26px;
}

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

.gallery-grid img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

.gallery-grid img:nth-child(1),
.gallery-grid img:nth-child(6) {
    grid-column: span 2;
}

.contact-panel {
    align-items: stretch;
    padding: clamp(28px, 4vw, 48px);
    background: var(--teal-dark);
    color: #fff;
    border-radius: 8px;
}

.contact-panel p,
.contact-panel .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.contact-card {
    padding: 28px;
    color: var(--ink);
}

.contact-card p {
    color: var(--muted);
}

.site-footer {
    padding: 58px 0 26px;
    background: #0b3331;
    color: #fff;
}

.footer-logo {
    width: 96px;
    margin-bottom: 24px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.footer-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.footer-card p,
.footer-card a,
.footer-meta {
    color: rgba(255, 255, 255, 0.78);
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-meta a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (max-width: 1020px) {
    .top-strip-inner,
    .header-shell,
    .hero-grid,
    .services-hero-grid,
    .split-grid,
    .contact-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .top-strip-inner {
        display: grid;
        gap: 4px;
        padding: 8px 0;
    }

    .header-shell {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 12px 0;
    }

    .header-nav,
    .header-actions .button {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
    }

    .header-shell.is-open .header-nav {
        display: grid;
        grid-column: 1 / -1;
        gap: 12px;
    }

    .header-shell.is-open .header-menu {
        display: grid;
        gap: 12px;
    }

    .header-shell.is-open .header-actions .button {
        display: inline-flex;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-detail-grid,
    .service-detail-card {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid img:nth-child(1),
    .gallery-grid img:nth-child(6) {
        grid-column: span 1;
    }
}

@media (max-width: 720px) {
    .wrap {
        width: min(100% - 28px, 1180px);
    }

    .brand img {
        width: 58px;
    }

    .brand strong {
        font-size: 1.3rem;
    }

    .hero,
    .services-hero,
    .section {
        padding: 62px 0;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(3rem, 13vw, 4.4rem);
    }

    .info-grid,
    .service-grid,
    .service-detail-grid,
    .team-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        padding: 24px;
    }

    .footer-meta {
        flex-direction: column;
    }
}
