/* OntGreen — consolidated site stylesheet. Mobile menu breakpoint: 900px. */

/* 01. Base, shared components and accessibility */

:root {
    --brand: #177a43;
    --text: #17271e;
    --muted: #59685f;
    --brand-dark: #116035;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.65;
}

a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding-block: clamp(48px, 8vw, 0px);
}

.section h2 {
    max-width: 850px;
    margin: 0 0 20px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

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

.section-body {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

.page-intro {
    padding-top: clamp(28px, 4vw, 48px);
    padding-bottom: 24px;
}

.page-intro h1 {
    margin-block: 24px 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.2;
    overflow-wrap: anywhere;
    margin-bottom: 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 10px;
}

.breadcrumbs a {
    color: var(--brand);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 12px 18px;
    transform: translateY(-180%);
    background: var(--brand);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
}

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

#main-content {
    scroll-margin-top: 110px;
}

/* 02. Header and navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e1e9e4;
}

.brand {
    min-width: 0;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    max-width: 220px;
    color: var(--brand);
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
}

.header-inner {
    flex-wrap: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 88px;
    padding-block: 12px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.site-nav a {
    padding-block: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #26382d;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: #edf7f0;
    color: var(--brand);
}

.site-nav a[aria-current="page"] {
    font-weight: 700;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    background: #edf7f0;
    border: 1px solid #d8e8dd;
    border-radius: 10px;
    color: var(--brand);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.menu-toggle:focus-visible {
    outline: 3px solid #78b48f;
    outline-offset: 4px;
}

.site-logo {
    display: block;
    width: auto;
    height: 60px;
    max-width: 180px;
    object-fit: contain;
}

.site-nav .nav-contact {
    margin-left: 10px;
    padding-inline: 20px;
    background: var(--brand);
    color: #fff;
}

.site-nav .nav-contact:hover,
.site-nav .nav-contact[aria-current="page"] {
    background: var(--brand-dark);
    color: #fff;
}

.site-header a:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}

/* 03. Hero */

.hero {
    background: #f0f7f2;
    padding-block: clamp(70px, 12vw, 140px);
}

.hero h2 {
    font-size: clamp(36px, 6vw, 68px);
    letter-spacing: -0.035em;
}

.hero h1 {
    max-width: 850px;
    margin: 0 0 20px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.2;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.hero-layout {
    display: grid;
    gap: 40px;
    align-items: center;
}

.hero-layout.has-image {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.hero-content,
.hero-media {
    min-width: 0;
}

.hero-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgb(20 45 30 / 12%);
}

.hero-layout.has-image :is(h1,
h2) {
    font-size: clamp(34px, 4.5vw, 58px);
}

/* 04. Services */

.services-section {
    padding-block: clamp(36px, 5vw, 64px);
    background: #f5f8f6;
}

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

.services-section .service-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    padding: 28px;
    background: #fff;
    border: 1px solid #dfe8e2;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgb(23 39 30 / 3%);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.services-section .service-card h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.services-section .service-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.services-section .service-card > p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.services-section .service-link {
    padding-block: 8px;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    min-height: 44px;
    margin-top: auto;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.services-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

.services-heading .eyebrow {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.services-heading h2 {
    margin: 0 0 16px;
    color: var(--text);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.services-heading .section-body {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    background: #edf7f0;
    border-radius: 14px;
    color: var(--brand);
}

.services-section .service-link:hover,
.services-section .service-card h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.services-section a:focus-visible,
.text-section a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}

.services-more {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.services-more .button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

/* 05. Text module */

.text-section {
    padding-block: clamp(28px, 4vw, 56px);
}

.text-panel {
    box-sizing: border-box;
    padding: clamp(24px, 4vw, 48px);
    background: #fff;
    border: 1px solid #dfe8e2;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgb(23 39 30 / 4%);
}

.text-intro {
    max-width: 800px;
    margin: 0 0 18px;
    color: var(--brand);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.8;
}

.text-panel h2 {
    margin: 0 0 22px;
    color: var(--text);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.text-content {
    max-width: 850px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.text-actions {
    margin-top: 30px;
}

.text-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    min-height: 48px;
    padding: 13px 22px;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    margin-top: 0;
}

.text-actions .button:hover {
    background: var(--brand-dark);
}

/* 06. Portfolio and project details */

.portfolio-grid {
    margin-block: 32px;
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0e9e3;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgb(23 39 30 / 4%);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-image {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef4f0;
}

.portfolio-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 240ms ease;
}

.portfolio-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.portfolio-category {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-card h3 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.portfolio-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.portfolio-summary {
    margin: 0 0 24px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.portfolio-link {
    margin-top: auto;
    padding-block: 8px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.portfolio-card a:hover {
    color: var(--brand);
}

.projects-page,
.project-detail {
    padding-block: clamp(40px, 6vw, 80px);
}

.projects-page > .eyebrow,
.project-heading > .eyebrow {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.projects-page > h1,
.project-heading > h1 {
    max-width: 850px;
    margin: 0 0 18px;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.projects-page > .section-body,
.project-heading > .section-body {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
}

.portfolio-card-content > .eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-card-content h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.portfolio-card-content h3 a {
    color: var(--text);
    text-decoration: none;
}

.portfolio-card-content > p:not(.eyebrow):not(.portfolio-category) {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.portfolio-link:hover,
.portfolio-card-content h3 a:hover {
    color: var(--brand);
    text-underline-offset: 4px;
}

.project-detail .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.875rem;
}

.project-detail .breadcrumbs li {
    min-width: 0;
    overflow-wrap: anywhere;
}

.project-detail .breadcrumbs li + li::before {
    content: "/";
    margin-right: 12px;
    color: #89988f;
}

.project-detail .breadcrumbs a {
    color: var(--brand);
    text-decoration: none;
}

.project-detail .breadcrumbs a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.project-heading {
    margin-bottom: 32px;
}

.project-cover {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    max-height: 560px;
    margin: 0 0 40px;
    padding: 12px;
    object-fit: contain;
    object-position: center;
    background: #f2f6f3;
    border: 1px solid #e0e9e3;
    border-radius: 20px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    align-items: start;
    gap: clamp(24px, 4vw, 48px);
}

.project-detail-grid > section,
.project-information {
    min-width: 0;
}

.project-detail-grid h2 {
    margin: 0 0 18px;
    color: var(--text);
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.3;
}

.project-description {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.project-information {
    box-sizing: border-box;
    padding: 28px;
    background: #f4f8f5;
    border: 1px solid #e0e9e3;
    border-radius: 18px;
}

.project-information dl {
    margin: 0 0 24px;
}

.project-information dt {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-information dt:first-child {
    margin-top: 0;
}

.project-information dd {
    margin: 6px 0 0;
    color: var(--text);
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.project-information .button {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease;
    margin-top: 0;
}

.project-information .button:hover {
    background: var(--brand-dark);
}

.project-information > p {
    margin: 20px 0 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.project-information > p a {
    color: var(--brand);
    text-underline-offset: 4px;
}

.portfolio-card a:focus-visible,
.project-detail a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}

/* 07. Contact */

.contact-form {
    margin-top: 30px;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.contact-form textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-success,
.contact-error {
    padding: 16px;
    border-radius: 8px;
    margin: 0 0 24px;
}

.contact-success {
    background: #e8f4eb;
    color: #175b2c;
}

.contact-error {
    background: #fff0f0;
    color: #932525;
}

.honeypot {
    display: none;
}

.contact-details {
    margin: 28px 0 0;
}

.contact-details a {
    color: var(--brand);
    overflow-wrap: anywhere;
}

.contact-address {
    white-space: pre-line;
}

.contact-page {
    padding-block: clamp(40px, 6vw, 80px);
}

.contact-heading {
    max-width: 760px;
    margin-bottom: 40px;
}

.contact-heading .eyebrow {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-heading h1 {
    margin: 0 0 18px;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.contact-heading > p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 32px;
}

.contact-information,
.contact-form-panel {
    box-sizing: border-box;
    min-width: 0;
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid #e0e9e3;
    border-radius: 20px;
}

.contact-information {
    background: #f2f8f4;
}

.contact-form-panel {
    background: #fff;
    box-shadow: 0 12px 36px rgb(23 39 30 / 5%);
}

.contact-grid h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1.3;
    max-width: none;
}

.contact-information p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.contact-information strong {
    color: var(--text);
}

.contact-information a {
    color: var(--brand);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.contact-information address {
    margin-top: 24px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.8;
    white-space: pre-line;
}

.contact-form-panel > p {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.contact-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contact-form select,
.contact-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid #ccd9d0;
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--brand);
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgb(23 122 67 / 8%);
}

.contact-form button[type="submit"],
.contact-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 10px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
    background: var(--brand-dark);
}

.contact-page a:focus-visible,
.contact-form button:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}

.contact-form [aria-invalid="true"] {
    border-color: #b42318;
}

/* 08. Call to action */

.cta {
    background: #173e29;
    color: #fff;
}

.cta .section-body,
.cta .eyebrow {
    color: #d5e9db;
}

.cta .button {
    background: #fff;
    color: #173e29;
}

/* 09. Footer */

.site-footer {
    padding: 60px 0 0;
    background: #102c20;
    border-top: 0;
    color: #d0dfd5;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding-bottom: 44px;
}

.footer-grid > * {
    min-width: 0;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 18px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-company > p {
    margin: 0 0 24px;
    color: #c1d3c7;
    line-height: 1.8;
    white-space: pre-line;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #a9e2bd;
    font-weight: 700;
    text-decoration: none;
}

.footer-column h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
}

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

.footer-column li + li {
    margin-top: 4px;
}

.footer-column a {
    display: inline-block;
    padding-block: 8px;
    color: #c1d3c7;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-contact > a {
    display: block;
}

.footer-contact address {
    margin-top: 14px;
    color: #c1d3c7;
    font-style: normal;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.site-footer a:hover {
    color: #fff;
    text-underline-offset: 4px;
}

.site-footer a:focus-visible {
    outline: 3px solid #a9e2bd;
    outline-offset: 4px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 22px;
    border-top: 1px solid #355343;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.8;
}

.footer-bottom a {
    padding-block: 8px;
    color: #c1d3c7;
    text-decoration: none;
}

/* 10. Responsive layouts, hover and motion preferences */

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

    .project-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-cover {
        max-height: 460px;
    }

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

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        min-height: 76px;
    }

    .site-logo {
        height: 50px;
        max-width: 150px;
    }

    .site-nav {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        max-height: calc(100dvh - 110px);
        overflow-y: auto;
        padding: 12px 0;
        border-top: 1px solid #e1e9e4;
    }

    .site-nav a {
        justify-content: flex-start;
        padding-inline: 16px;
    }

    .site-nav .nav-contact {
        justify-content: center;
        margin: 8px 0 0;
    }

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

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .contact-heading {
        margin-bottom: 28px;
    }
}

@media (max-width: 767px) {
    .hero-layout.has-image {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 28px;
    }

    .portfolio-card-content,
    .project-information {
        padding: 22px;
    }

    .project-heading {
        margin-bottom: 24px;
    }

    .project-cover {
        max-height: 320px;
        margin-bottom: 28px;
        padding: 6px;
        border-radius: 12px;
    }

    .project-detail .breadcrumbs {
        margin-bottom: 24px;
        font-size: 0.8rem;
    }

    .services-section .services-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .services-section .service-card {
        padding: 24px;
    }

    .text-panel {
        padding: 24px;
        border-radius: 14px;
    }

    .text-actions .button {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .site-footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding-bottom: 32px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .contact-information,
    .contact-form-panel {
        padding: 22px;
        border-radius: 14px;
    }

    .contact-form button[type="submit"],
    .contact-form input[type="submit"] {
        width: 100%;
    }
}

@media (hover: hover) and (pointer: fine) {
    .portfolio-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgb(23 39 30 / 9%);
    }

    .portfolio-card:hover .portfolio-image img {
        transform: scale(1.035);
    }

    .services-section .service-card:hover {
        transform: translateY(-4px);
        border-color: #b8d6c2;
        box-shadow: 0 16px 32px rgb(23 39 30 / 8%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-card,
    .portfolio-image img,
    .project-information .button {
        transition: none;
    }

    .portfolio-card:hover,
    .portfolio-card:hover .portfolio-image img {
        transform: none;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        transition: none;
    }

    .services-section .service-card {
        transition: none;
    }

    .services-section .service-card:hover {
        transform: none;
    }
}

/* about us page
*/

/* Formatted HTML inside the existing Text module */
.text-section .text-content.og-rich-content {
    max-width: 100%;
    white-space: normal;
    font-size: 16px;
    line-height: 1.8;
}

.text-section .text-content.og-rich-content p {
    margin: 0 0 18px;
}

.text-section .text-content.og-rich-content h2 {
    max-width: 100%;
    margin: 36px 0 16px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.3;
}

.text-section .text-content.og-rich-content h3 {
    margin: 26px 0 12px;
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.4;
}

.text-section .text-content.og-rich-content > :first-child {
    margin-top: 0;
}

.text-section .text-content.og-rich-content > :last-child {
    margin-bottom: 0;
}

.text-section .text-content.og-rich-content ul,
.text-section .text-content.og-rich-content ol {
    margin: 16px 0 24px;
    padding-left: 24px;
}

.text-section .text-content.og-rich-content li {
    margin: 0 0 12px;
    padding-left: 4px;
}

.text-section .text-content.og-rich-content li p {
    margin: 0;
}

.text-section .text-content.og-rich-content hr {
    margin: 32px 0;
    border: 0;
    border-top: 1px solid #dfe8e2;
}

@media (max-width: 600px) {
    .text-section .text-panel {
        padding: 22px 18px;
    }

    .text-section .text-content.og-rich-content {
        font-size: 15px;
        line-height: 1.75;
    }
}