:root {
    --navy: #0b2545;
    --navy-2: #123b5d;
    --blue: #146c94;
    --cyan: #5bb9c5;
    --cyan-soft: #e5f5f6;
    --orange: #d85f35;
    --orange-soft: #fff0e9;
    --ink: #172833;
    --muted: #516772;
    --line: #cfdde2;
    --paper: #ffffff;
    --wash: #f3f7f8;
    --success: #216746;
    --success-soft: #e9f6ef;
    --danger: #8f2929;
    --danger-soft: #fff0f0;
    --warning: #714600;
    --warning-soft: #fff5dd;
    --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
    --shadow-md: 0 18px 50px rgba(11, 37, 69, 0.12);
    --radius: 18px;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    margin: 0;
    background: var(--wash);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.modal-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

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

a {
    color: var(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--navy);
}

button,
input,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid #f4ad42;
    outline-offset: 3px;
}

.page {
    width: min(100% - 2rem, 1160px);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.7rem 1rem;
    border-radius: 9px;
    background: #ffffff;
    color: var(--navy);
    font-weight: 800;
    transform: translateY(-180%);
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(207, 221, 226, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.18;
    text-decoration: none;
}

.brand img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
}

.brand strong {
    font-size: 1.04rem;
    font-weight: 830;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 0.58rem 0.7rem;
    border-radius: 9px;
    color: #3d5663;
    font-size: 0.9rem;
    font-weight: 680;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--cyan-soft);
    color: var(--navy);
}

.main-nav .nav-cta {
    margin-left: 0.45rem;
    padding-inline: 1rem;
    background: var(--navy);
    color: #ffffff;
}

.main-nav .nav-cta:hover {
    background: var(--navy-2);
    color: #ffffff;
}

.nav-toggle {
    min-width: 92px;
    min-height: 46px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--navy);
    font-weight: 760;
    cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    width: 22px;
    height: 2px;
    display: block;
    position: relative;
    border-radius: 10px;
    background: currentColor;
    transition: transform 0.15s ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(rgba(20, 108, 148, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 108, 148, 0.04) 1px, transparent 1px),
        linear-gradient(135deg, #ffffff, #eef8f9);
    background-size: 32px 32px, 32px 32px, auto;
}

.hero::after {
    content: "";
    position: absolute;
    width: 34rem;
    height: 34rem;
    right: -16rem;
    bottom: -24rem;
    border-radius: 50%;
    background: rgba(91, 185, 197, 0.18);
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding-block: clamp(3.5rem, 8vw, 6.7rem);
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--cyan-soft);
    color: var(--navy-2);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    color: var(--navy);
    line-height: 1.2;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.45rem, 5.8vw, 4.8rem);
    font-weight: 820;
    letter-spacing: -0.05em;
}

h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    letter-spacing: -0.025em;
}

h3 {
    margin: 0 0 0.55rem;
    font-size: 1.2rem;
}

h4 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
}

.hero__lead {
    max-width: 64ch;
    margin: 1.2rem 0 0;
    color: #3f5a66;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero__actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.6rem;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 760;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: var(--navy);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--navy-2);
    color: #ffffff;
}

.button-secondary {
    border-color: #b9ccd3;
    background: #ffffff;
    color: var(--navy);
}

.button-secondary:hover {
    border-color: #86abb8;
    background: #f6fbfc;
}

.hero__visual {
    position: relative;
    padding: 0.65rem;
    border: 1px solid rgba(181, 207, 214, 0.9);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-md);
    transform: rotate(1.2deg);
}

.hero__visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 19px;
    object-fit: cover;
}

.hero__caption {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    max-width: 17rem;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 11px;
    background: rgba(11, 37, 69, 0.92);
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1.4;
}

.trust-strip {
    border-bottom: 1px solid var(--line);
    background: var(--navy);
    color: #f5fbfc;
}

.trust-strip ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-strip li {
    padding: 1rem 1.2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
    font-size: 0.88rem;
    font-weight: 680;
}

.trust-strip li:last-child {
    border-right: 0;
}

.section {
    padding-block: clamp(3.3rem, 7vw, 6rem);
}

.section-white {
    background: #ffffff;
}

.section-soft {
    border-block: 1px solid var(--line);
    background: #edf5f6;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading.center {
    margin-inline: auto;
    text-align: center;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

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

.service-card,
.content-card {
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.service-card {
    min-height: 245px;
    display: flex;
    flex-direction: column;
}

.service-number {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    border-radius: 50%;
    background: var(--cyan-soft);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 850;
}

.service-card p,
.content-card p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.service-tag {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 780;
}

.callout {
    padding: clamp(1.3rem, 3vw, 1.8rem);
    border: 1px solid;
    border-left-width: 5px;
    border-radius: 15px;
}

.callout h2,
.callout h3 {
    margin-top: 0;
}

.callout p:last-child,
.callout ul:last-child {
    margin-bottom: 0;
}

.callout-warning {
    border-color: #d7ad63;
    background: var(--warning-soft);
    color: #4f350d;
}

.callout-info {
    border-color: #8fc4cc;
    background: #edfafa;
    color: #183f47;
}

.callout-danger {
    border-color: #daa0a0;
    background: var(--danger-soft);
    color: #5d2020;
}

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

.gallery-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.gallery-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.gallery-button {
    width: 100%;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #dce9ec;
    cursor: zoom-in;
}

.gallery-button img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.gallery-button:hover img {
    filter: saturate(1.04) contrast(1.02);
    transform: scale(1.025);
}

.gallery-card figcaption {
    padding: 1.1rem 1.15rem 1.25rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.gallery-card figcaption strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--navy);
}

.gallery-card figcaption span {
    color: var(--muted);
    font-size: 0.9rem;
}

.gallery-project__images {
    height: 320px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.6rem;
    background: #dce9ec;
}

.gallery-project__images .gallery-button {
    height: 100%;
    border-radius: 10px;
}

.gallery-project__images .gallery-button--main {
    grid-row: 1 / 3;
}

.gallery-project__images .gallery-button img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.gallery-dialog {
    width: min(94vw, 1100px);
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #071827;
    color: #ffffff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.gallery-dialog::backdrop {
    background: rgba(4, 18, 30, 0.82);
}

.gallery-dialog__image-wrap {
    display: grid;
    place-items: center;
    min-height: 50vh;
    max-height: 78vh;
    background: #071827;
}

.gallery-dialog img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.gallery-dialog__footer {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--navy);
}

.gallery-dialog__footer p {
    margin: 0;
    font-size: 0.9rem;
}

.icon-button {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    counter-reset: process;
}

.process-step {
    position: relative;
    padding: 4rem 1.3rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #ffffff;
    counter-increment: process;
}

.process-step::before {
    content: counter(process, decimal-leading-zero);
    position: absolute;
    top: 1.1rem;
    left: 1.3rem;
    color: var(--orange);
    font-size: 1.25rem;
    font-weight: 850;
}

.process-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.list-check {
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
}

.list-check li {
    position: relative;
    margin-bottom: 0.55rem;
    padding-left: 1.7rem;
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 850;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 2rem;
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: 7rem;
}

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

.contact-email {
    display: inline-block;
    margin-top: 0.6rem;
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 800;
}

.contact-form {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label,
.form-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 750;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border: 1px solid #abc1ca;
    border-radius: 9px;
    background: #ffffff;
    color: var(--ink);
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(20, 108, 148, 0.15);
}

.form-help {
    margin: -0.35rem 0 1rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1rem 0;
    font-size: 0.88rem;
}

.checkbox-row input {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    margin-top: 0.18rem;
    accent-color: var(--navy);
}

.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.contact-status {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid;
    border-radius: 10px;
}

.contact-status.error {
    border-color: #d6a0a0;
    background: var(--danger-soft);
    color: var(--danger);
}

.contact-status.warning {
    border-color: #dab667;
    background: var(--warning-soft);
    color: var(--warning);
}

.page-hero {
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(rgba(20, 108, 148, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 108, 148, 0.04) 1px, transparent 1px),
        linear-gradient(135deg, #ffffff, #edf7f8);
    background-size: 32px 32px, 32px 32px, auto;
}

.page-hero .page {
    padding-block: clamp(3rem, 7vw, 5rem);
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-hero p:last-child {
    max-width: 70ch;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.content-main {
    padding-block: 2rem 5rem;
}

.content-main > * + * {
    margin-top: 1rem;
}

.content-card h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.content-card-wide {
    max-width: 900px;
    margin-inline: auto;
}

.content-card ul,
.callout ul {
    max-width: 82ch;
    margin: 0.7rem 0 0;
    padding-left: 1.35rem;
}

.content-card li,
.callout li {
    margin-bottom: 0.4rem;
}

.price-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.price-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.price-table caption {
    padding: 1.2rem;
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 800;
    text-align: left;
}

.price-table th,
.price-table td {
    padding: 1rem;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.price-table thead th {
    background: #eaf4f5;
    color: var(--navy);
    font-size: 0.86rem;
}

.price-table tbody th {
    color: var(--navy);
}

.price-table .price {
    white-space: nowrap;
    font-weight: 780;
}

.source-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.source-list li {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}

.source-list li:last-child {
    border-bottom: 0;
}

.source-list small {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid #173b57;
    background: var(--navy);
    color: #dce9ee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 1fr;
    gap: 2rem;
    padding-block: 2.5rem 1.8rem;
}

.footer-grid p {
    margin: 0.25rem 0 0.65rem;
}

.footer-brand,
.footer-heading {
    color: #ffffff;
    font-weight: 820;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li {
    margin-bottom: 0.42rem;
}

.site-footer a {
    color: #ffffff;
}

.footer-small {
    font-size: 0.84rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.error-card {
    width: min(100%, 650px);
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    text-align: center;
}

[id] {
    scroll-margin-top: 6.5rem;
}

@media (max-width: 1020px) {
    .card-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .trust-strip li:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 820px) {
    .page {
        width: min(100% - 1.25rem, 1160px);
    }

    .site-header__inner {
        min-height: 72px;
        flex-wrap: wrap;
        gap: 0.7rem;
        padding-block: 0.45rem;
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .nav-toggle:not([hidden]) {
        display: inline-flex;
    }

    .main-nav {
        width: 100%;
    }

    .site-header.nav-ready .main-nav ul:not(.is-open) {
        display: none;
    }

    .main-nav ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
        padding: 0.35rem 0 0.6rem;
    }

    .main-nav a {
        height: 100%;
        padding: 0.7rem;
        border: 1px solid var(--line);
        background: #ffffff;
    }

    .main-nav .nav-cta {
        margin-left: 0;
        border-color: var(--navy);
        background: var(--navy);
    }

    .hero__grid,
    .contact-grid,
    .split-grid {
        grid-template-columns: 1fr;
    }

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

    .hero__visual {
        max-width: 680px;
        transform: none;
    }

    .contact-copy {
        position: static;
    }

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

@media (max-width: 600px) {
    body {
        font-size: 0.97rem;
    }

    .main-nav ul,
    .card-grid,
    .gallery-grid,
    .process-grid,
    .form-grid,
    .footer-grid,
    .trust-strip ul {
        grid-template-columns: 1fr;
    }

    .trust-strip li,
    .trust-strip li:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .trust-strip li:last-child {
        border-bottom: 0;
    }

    .hero__actions .button,
    .button-row .button,
    .contact-form .button {
        width: 100%;
    }

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

    .gallery-project__images {
        height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body {
        background: #ffffff;
        color: #000000;
        font-size: 11pt;
    }

    .site-header,
    .site-footer,
    .hero__actions,
    .gallery-dialog,
    .contact-form {
        display: none !important;
    }

    .section,
    .content-main {
        padding-block: 1rem;
    }

    .service-card,
    .content-card,
    .gallery-card,
    .callout,
    .price-table-wrap {
        break-inside: avoid;
        box-shadow: none;
    }
}
