:root {
    --ink: #20313b;
    --muted: #5d717c;
    --paper: #edf8fd;
    --paper-strong: #dff0f7;
    --surface: #ffffff;
    --line: #cfe2eb;
    --slate: #263c48;
    --slate-soft: #3f5966;
    --accent: #2f8f87;
    --accent-dark: #1f5f68;
    --accent-soft: #d7f2ef;
    --danger: #8a1e1e;
    --shadow: 0 22px 60px rgba(31, 95, 104, .16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.6;
}

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

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

h1,
h2 {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.08;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 14px clamp(28px, 5vw, 72px);
    background: rgba(255, 255, 255, .84);
    border-bottom: 1px solid rgba(47, 143, 135, .18);
    box-shadow: 0 12px 34px rgba(31, 95, 104, .08);
    backdrop-filter: blur(16px);
}

.brand img {
    width: 230px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--slate);
}

.main-nav a:hover {
    color: #fff;
    background: var(--accent-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone {
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 14px 28px rgba(31, 95, 104, .24);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.button-small {
    min-height: 44px;
    padding: 10px 18px;
}

.button-ghost {
    color: #eafffb;
    background: linear-gradient(135deg, rgba(47, 143, 135, .28), rgba(31, 95, 104, .42));
    border: 1px solid rgba(215, 242, 239, .75);
    box-shadow: 0 14px 28px rgba(31, 95, 104, .18);
}

.hero {
    width: min(1320px, calc(100% - 56px));
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(440px, 1.1fr);
    gap: clamp(26px, 4vw, 58px);
    align-items: stretch;
    margin: 36px auto 0;
    padding: clamp(32px, 5vw, 72px);
    background: linear-gradient(135deg, #eaf7fc 0%, #d7edf6 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.hero > img {
    order: 2;
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero::after {
    content: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 680px;
    padding: clamp(28px, 4vw, 56px) 0;
    color: var(--ink);
    text-align: left;
}

.hero h1 {
    max-width: 640px;
    font-size: clamp(38px, 5.8vw, 42px);
}

.hero p {
    max-width: 620px;
    margin: 24px 0;
    color: var(--muted);
    font-size: clamp(17px, 1.6vw, 21px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--accent-dark);
}

.section {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto;
    padding: 88px 0;
}

.intro,
.split {
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(320px, 1.22fr);
    gap: clamp(32px, 7vw, 96px);
    align-items: start;
}

.intro {
    border-bottom: 1px solid var(--line);
}

.intro h2,
.split h2,
.section-heading h2 {
    font-size: clamp(30px, 3.2vw, 46px);
}

.intro > p,
.split > p {
    margin: 34px 0 0;
    color: var(--muted);
    font-size: 20px;
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: min(1180px, calc(100% - 56px));
}

.values article {
    min-height: 230px;
    padding: 34px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(31, 95, 104, .11);
    text-align: center;
}

.value-icon,
.service-icon {
    display: grid;
    width: 36px;
    height: 36px;
    margin: 0 auto 18px;
    place-items: center;
    color: var(--accent-dark);
    background: var(--accent-soft);
    border: 1px solid rgba(47, 143, 135, .22);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.values h2,
.service-grid h2,
.site-footer h2,
.text-group summary {
    font-family: "DM Sans", Arial, sans-serif;
}

.values h2,
.service-grid h2 {
    font-size: 25px;
}

.values p,
.service-grid p,
.contact-card p,
.site-footer p,
.legal-content p,
.about-layout p {
    color: var(--muted);
    margin: 0;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 30px;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
}

.section-heading a {
    color: var(--accent-dark);
    font-weight: 900;
}

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

.gallery-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 940px;
    padding: 0;
}

.gallery-grid figure {
    position: relative;
    grid-column: span 4;
    min-height: 240px;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--slate);
    box-shadow: var(--shadow);
}

.gallery-grid figure:nth-child(5n + 1) {
    grid-column: span 4;
}

.gallery-grid figure:nth-child(5n + 2) {
    grid-column: span 3;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-grid figure:hover img {
    transform: scale(1.04);
}

.gallery-grid figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 52px 22px 20px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(transparent, rgba(20, 41, 50, .9));
}

.gallery-grid.compact figure,
.gallery-grid.compact figure:nth-child(5n + 1),
.gallery-grid.compact figure:nth-child(5n + 2) {
    grid-column: auto;
    min-height: 220px;
}

.gallery-grid.compact img {
    min-height: 220px;
}

.gallery-grid.compact figcaption {
    padding: 36px 16px 14px;
    font-size: 15px;
}

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

.service-grid article,
.contact-card,
.owner-box,
.upload-zone,
.admin-card,
.legal-content,
.text-group {
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.service-grid article {
    min-height: 260px;
    padding: 34px 28px;
    text-align: center;
}

.testimonials {
    border-top: 1px solid var(--line);
}

blockquote {
    margin: 0;
    min-height: 245px;
    padding: 32px 28px;
    color: var(--ink);
    background: #fff;
    border-top: 5px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(31, 95, 104, .1);
    text-align: center;
}

cite {
    display: block;
    margin-top: 18px;
    color: var(--accent-dark);
    font-style: normal;
    font-weight: 900;
}

.reviews-meta {
    margin: 0;
    color: var(--muted);
    font-weight: 900;
}

.stars {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    letter-spacing: .12em;
}

cite small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.cta,
.page-hero,
.owner-screen {
    padding: 86px clamp(28px, 6vw, 88px);
}

.cta {
    display: grid;
    grid-template-columns: minmax(240px, .82fr) minmax(260px, 1fr) minmax(140px, auto);
    gap: 16px;
    align-items: center;
    margin: 0 clamp(28px, 6vw, 88px) 86px;
    padding: 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, .74);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(31, 95, 104, .1);
}

.cta > * {
    min-width: 0;
    border: 0 !important;
}

.cta,
.cta-copy,
.cta-detail,
.cta-action {
    border: 0 !important;
}

.cta .button {
    width: max-content;
    max-width: 100%;
    justify-self: end;
    white-space: nowrap;
}

.cta-copy {
    display: grid;
    align-content: center;
    justify-items: center;
    max-width: 720px;
    min-height: 150px;
    padding: clamp(18px, 3vw, 28px);
    background: transparent;
    border: 0;
    border-radius: 6px;
    text-align: center;
}

.cta-detail,
.cta-action {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 150px;
    padding: clamp(18px, 3vw, 28px);
    background: transparent;
    border: 0;
    border-radius: 6px;
}

.cta h2,
.page-hero h1 {
    font-size: clamp(38px, 5vw, 42px);
}

.cta h2 {
    font-size: clamp(30px, 3.4vw, 48px);
    overflow-wrap: anywhere;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 20px;
}

.cta p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 18px;
    overflow-wrap: anywhere;
}

.cta-detail p {
    margin: 0;
}

.cta-detail span {
    display: block;
    margin-top: 14px;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 900;
}

.cta-action {
    justify-items: center;
    background: transparent;
}

.cta .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}

.inline-icon {
    font-size: 19px;
    line-height: 1;
}

.page-hero {
    width: min(1180px, calc(100% - 56px));
    min-height: 300px;
    display: grid;
    align-content: center;
    margin: 36px auto 0;
    color: var(--ink);
    background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(223, 240, 247, .82));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(31, 95, 104, .1);
}

.page-hero p {
    color: var(--muted);
}

.about-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(320px, .92fr) minmax(360px, 1.08fr);
    gap: 42px;
    align-items: start;
}

.about-layout img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-layout p {
    font-size: 18px;
}

.about-layout > div {
    align-self: center;
}

.about-layout h2 {
    font-size: clamp(30px, 3.2vw, 46px);
}

.contact-form,
.contact-card {
    display: grid;
    gap: 18px;
    padding: 30px;
}

.contact-form {
    background: transparent;
}

label {
    display: grid;
    gap: 8px;
    color: var(--slate);
    font-weight: 900;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

textarea {
    resize: vertical;
}

.notice,
.error {
    padding: 14px 16px;
    border-radius: 6px;
    font-weight: 800;
}

.notice {
    color: #1f5f40;
    background: #d8f0df;
}

.error {
    color: var(--danger);
    background: #f4d8d8;
}

.site-footer {
    padding: 40px clamp(28px, 6vw, 88px) 28px;
    background: transparent;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, auto);
    gap: 42px;
    align-items: start;
}

.footer-logo {
    width: 190px;
    margin-bottom: 14px;
}

.site-footer h2 {
    font-size: 18px;
    margin: 10px 0;
}

.site-footer a:hover {
    color: var(--accent-dark);
}

.legal-trigger {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.legal-trigger:hover {
    color: var(--accent-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(20, 41, 50, .54);
    opacity: 1;
    visibility: visible;
    transition: opacity .18s ease, visibility .18s ease;
}

.legal-modal[aria-hidden="true"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.legal-modal-panel {
    position: relative;
    width: min(680px, 100%);
    padding: clamp(28px, 5vw, 46px);
    color: var(--ink);
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(20, 41, 50, .28);
}

.legal-modal-panel h2 {
    margin-bottom: 22px;
    font-size: clamp(30px, 4vw, 44px);
}

.legal-modal-panel p {
    color: var(--muted);
}

.legal-modal-panel a {
    color: var(--accent-dark);
    font-weight: 900;
}

.legal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--paper);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.owner-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--paper);
}

.owner-box {
    width: min(440px, 100%);
    padding: 34px;
    color: var(--ink);
    text-align: left;
}

.owner-box img {
    width: 230px;
    margin-bottom: 18px;
}

.owner-box h1 {
    margin-bottom: 22px;
    font-size: 32px;
}

.owner-admin {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto;
    padding: 64px 0 90px;
}

.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-help {
    max-width: 760px;
    margin: -8px 0 26px;
    color: var(--muted);
}

.admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-weight: 900;
}

.admin-links a {
    color: var(--accent-dark);
}

.upload-zone {
    display: flex;
    gap: 18px;
    align-items: end;
    margin-bottom: 28px;
    padding: 22px;
}

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

.admin-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 14px;
    padding: 16px;
}

.admin-card img {
    grid-row: span 5;
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 6px;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check input {
    width: auto;
}

.danger {
    color: var(--danger);
}

.sticky-save {
    width: auto;
    margin-top: 26px;
}

.texts-form {
    display: grid;
    gap: 20px;
}

.text-group {
    overflow: hidden;
}

.text-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
    list-style: none;
}

.text-group summary::-webkit-details-marker {
    display: none;
}

.text-group summary small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.text-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0 24px 24px;
    border-top: 1px solid var(--line);
}

.text-field span {
    display: block;
}

.text-field-wide {
    grid-column: 1 / -1;
}

.admin-savebar {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

@media (max-width: 1120px) {
    .site-header {
        gap: 22px;
        padding: 14px clamp(20px, 5vw, 44px);
    }

    .brand img {
        width: 205px;
    }

    .main-nav,
    .header-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding-top: 0;
        border-top: 0;
    }

    .main-nav {
        justify-content: center;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero > img {
        order: 0;
        min-height: 420px;
    }

    .hero-content {
        padding: 0;
    }

    .intro,
    .split,
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-header {
        grid-template-columns: 1fr;
    }

    .main-nav,
    .header-actions {
        justify-content: flex-start;
    }

    .hero {
        padding: 26px 20px 56px;
    }

    .hero > img {
        min-height: 320px;
    }

    .values,
    .service-grid,
    .quote-grid,
    .footer-grid,
    .admin-grid,
    .text-fields {
        grid-template-columns: 1fr;
    }

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

    .gallery-grid figure,
    .gallery-grid figure:nth-child(5n + 1),
    .gallery-grid figure:nth-child(5n + 2) {
        grid-column: auto;
    }

    .cta {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .cta-detail,
    .cta-action {
        min-height: auto;
        border: 0;
    }

    .cta .button {
        justify-self: start;
        white-space: normal;
    }

    .footer-bottom,
    .upload-zone,
    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .brand img {
        width: 190px;
    }

    .main-nav {
        gap: 6px;
        font-size: 14px;
    }

    .header-actions {
        display: none;
    }

    .actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .section {
        width: min(100% - 36px, 1180px);
        padding: 58px 0;
    }

    .admin-card {
        grid-template-columns: 1fr;
    }
}
    text-align: center;
