* {
    box-sizing: border-box;
}

:root {
    --ink: #1f2722;
    --muted: #5f6b62;
    --green: #2f6542;
    --green-dark: #173d2a;
    --green-soft: #e8f1e8;
    --clay: #9a5839;
    --ochre: #c69343;
    --stone: #f6f3eb;
    --stone-strong: #ebe6dc;
    --white: #ffffff;
    --border: #ddd8ce;
    --danger: #b8453d;
    --success-bg: #e5f5e8;
    --success: #1f6b35;
    --shadow: 0 18px 45px rgba(31, 39, 34, 0.12);
    --shadow-soft: 0 10px 26px rgba(31, 39, 34, 0.08);
    --radius: 8px;
    --header-height: 72px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--stone);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Outfit", "Segoe UI", Arial, sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(246, 243, 235, 0.94);
    border-bottom: 1px solid rgba(31, 39, 34, 0.12);
    backdrop-filter: blur(16px);
}

.site-nav {
    width: min(1240px, calc(100% - 40px));
    height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green-dark);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.brand-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.nav-menu a,
.nav-cta,
.text-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    font-size: 0.94rem;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.is-active {
    color: var(--green-dark);
    border-bottom-color: var(--green);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    color: var(--white);
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 6px;
}

.nav-cta:hover {
    background: var(--green-dark);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 78vh;
    margin-top: var(--header-height);
    display: flex;
    align-items: center;
    color: var(--white);
    background-image:
        linear-gradient(90deg, rgba(13, 28, 19, 0.82), rgba(13, 28, 19, 0.54), rgba(13, 28, 19, 0.22)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-subpage {
    min-height: 68vh;
}

.hero-short {
    min-height: 52vh;
}

.hero-content {
    padding: 92px 0 82px;
    max-width: 800px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--ochre);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.section h2,
.project-summary h2,
.form-intro h2 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 820px;
    font-size: 4rem;
}

.hero-lead {
    max-width: 690px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.22rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(31, 39, 34, 0.14);
}

.button-primary {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
}

.button-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.button-secondary {
    color: var(--ink);
    background: var(--white);
    border-color: rgba(31, 39, 34, 0.18);
}

.button-secondary:hover {
    border-color: var(--green);
}

.section {
    padding: 86px 0;
}

.muted-section,
.intro-panel {
    background: var(--white);
}

.intro-grid,
.presentation-grid,
.image-feature-grid,
.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
}

.intro-grid h2,
.presentation-copy h2,
.section-heading h2,
.image-feature h2,
.contact-strip h2 {
    color: var(--green-dark);
    font-size: 2.45rem;
}

.intro-copy p,
.presentation-copy p,
.image-feature p,
.contact-strip p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 1.05rem;
}

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

.section-heading h2 {
    margin-top: 0;
}

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

.sector-card {
    display: grid;
    grid-template-rows: 300px 1fr;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.sector-card img,
.gallery-tile img,
.project-cover img,
.image-feature-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sector-body {
    padding: 28px;
}

.sector-body span,
.gallery-tile span,
.project-summary span,
.contact-card span,
.value-card span,
.step span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--clay);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.sector-body h3,
.service-card h3,
.category-block h3,
.step h3,
.value-card h2,
.contact-card a {
    margin: 0 0 12px;
    color: var(--green-dark);
    font-size: 1.25rem;
    line-height: 1.2;
}

.sector-body p,
.service-card p,
.step p,
.value-card p,
.review-card blockquote,
.project-summary p {
    margin: 0 0 18px;
    color: var(--muted);
}

.text-link {
    color: var(--green);
    border-bottom: 2px solid rgba(47, 101, 66, 0.22);
}

.text-link:hover {
    border-bottom-color: var(--green);
}

.steps,
.service-grid,
.review-grid,
.values-grid,
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.step,
.service-card,
.review-card,
.value-card,
.contact-card,
.category-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.muted-section .step,
.muted-section .service-card,
.muted-section .review-card,
.muted-section .category-block {
    background: var(--stone);
}

.step,
.service-card,
.value-card,
.contact-card,
.category-block {
    padding: 24px;
}

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

.service-card {
    min-height: 170px;
}

.gallery-preview-grid {
    grid-template-columns: 1.15fr 0.9fr 0.95fr;
}

.gallery-tile {
    position: relative;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    isolation: isolate;
    box-shadow: var(--shadow-soft);
}

.gallery-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.gallery-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(15, 30, 20, 0.08), rgba(15, 30, 20, 0.86));
}

.gallery-tile span,
.gallery-tile strong {
    margin-left: 24px;
    margin-right: 24px;
}

.gallery-tile strong {
    margin-bottom: 24px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.review-card {
    margin: 0;
    padding: 28px;
    border-top: 3px solid var(--green);
    display: flex;
    flex-direction: column;
}

.review-quote-mark {
    color: var(--green-soft);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
    color: var(--ochre);
}

.review-card blockquote {
    font-size: 1.03rem;
    font-style: italic;
    flex: 1;
}

.review-card figcaption {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--green-dark);
    font-weight: 800;
    font-size: 0.93rem;
}

.contact-strip {
    background: var(--green-dark);
    color: var(--white);
}

.contact-strip h2,
.contact-strip p {
    color: var(--white);
}

.contact-strip .eyebrow {
    color: var(--ochre);
}

.contact-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
}

.image-feature-grid {
    align-items: center;
}

.image-feature-grid.reverse img {
    order: 2;
}

.image-feature-grid img {
    min-height: 460px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-feature-grid--compact img {
    min-height: 320px;
    max-height: 360px;
}

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

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
    font-size: 0.93rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
}

/* Enhanced category block */
.category-block {
    padding: 0;
    border-top: 3px solid var(--green);
    display: flex;
    flex-direction: column;
}

.category-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 0;
}

.category-block-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--green-soft);
    border-radius: 10px;
    color: var(--green);
    flex-shrink: 0;
}

.category-count {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: var(--stone);
    border-radius: 20px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.category-block h3 {
    margin: 14px 22px 14px;
    color: var(--green-dark);
    font-size: 1.05rem;
    font-weight: 800;
}

.category-block .check-list {
    flex: 1;
    padding: 0 22px 22px;
}

/* Feature perks (stavarina exteriéry) */
.feature-perks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 24px;
}

.feature-perk {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.93rem;
}

.feature-perk svg {
    flex-shrink: 0;
    color: var(--green);
}

.project-list {
    display: grid;
    gap: 28px;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.project-cover {
    min-height: 360px;
}

.project-summary {
    padding: 34px;
    align-self: center;
}

.project-summary h2 {
    color: var(--green-dark);
    font-size: 2rem;
}

.project-photos {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0 18px 18px;
}

.js .project-photos {
    display: none;
}

.project-card.is-open .project-photos {
    display: grid;
}

.project-photos a {
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius);
}

.project-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.project-photos a:hover img {
    transform: scale(1.04);
}

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

.value-card {
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--green);
}

.value-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.value-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--green-soft);
    border-radius: 12px;
    color: var(--green);
    flex-shrink: 0;
}

.value-card-num {
    font-family: "Outfit", "Segoe UI", Arial, sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    color: var(--green-soft);
    letter-spacing: -0.02em;
    user-select: none;
}

.contact-page-grid {
    align-items: stretch;
}

.contact-form,
.contact-info-col,
.gallery-projects-grid {
    scroll-margin-top: calc(var(--header-height) + 18px);
}

.contact-card-list {
    display: grid;
    gap: 18px;
}

.contact-card a {
    display: inline-block;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--green);
}

.contact-form {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.form-intro {
    margin-bottom: 24px;
}

.form-intro h2 {
    color: var(--green-dark);
    font-size: 1.8rem;
}

.form-intro p {
    margin: 10px 0 0;
    color: var(--muted);
}

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

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--green-dark);
    font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(47, 101, 66, 0.15);
}

.error-message {
    display: none;
    margin-top: 6px;
    color: var(--danger);
    font-size: 0.9rem;
}

.error-message.is-visible {
    display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--danger);
}

.form-success {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid rgba(31, 107, 53, 0.22);
    border-radius: 6px;
    font-weight: 700;
}

.form-success.is-visible {
    display: block;
}

.form-success.is-error {
    color: var(--danger);
    background: #fdebea;
    border-color: rgba(184, 69, 61, 0.24);
}

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

/* ===== CONTACT PAGE ===== */

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-intro .eyebrow {
    color: var(--clay);
}

.contact-intro h2 {
    margin: 8px 0 12px;
    color: var(--green-dark);
    font-size: 2rem;
    line-height: 1.1;
}

.contact-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--green-soft);
    border-radius: 12px;
    color: var(--green);
}

.contact-card-body {
    flex: 1;
    min-width: 0;
}

.contact-card-body span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-card-body a {
    display: inline-block;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--green-dark);
    font-size: 1.08rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
    transition: color 140ms ease;
}

.contact-card-body a:hover {
    color: var(--green);
}

.contact-card-note {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.contact-promise {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--green-soft);
    border-radius: var(--radius);
    color: var(--green-dark);
    font-size: 0.93rem;
    font-weight: 700;
}

.promise-item svg {
    flex-shrink: 0;
    color: var(--green);
}

/* ===== END CONTACT PAGE ===== */

/* ===== GALLERY PAGE ===== */

.gallery-projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 360px;
    gap: 14px;
}

/* Alternating wide/narrow layout: wide-narrow / narrow-wide */
.gallery-project-tile:nth-child(4n+1) { grid-column: span 7; }
.gallery-project-tile:nth-child(4n+2) { grid-column: span 5; }
.gallery-project-tile:nth-child(4n+3) { grid-column: span 5; }
.gallery-project-tile:nth-child(4n+4) { grid-column: span 7; }

.gallery-project-tile {
    position: relative;
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    isolation: isolate;
    transition: box-shadow 300ms ease;
}

.gallery-project-tile:hover,
.gallery-project-tile:focus-visible {
    box-shadow: var(--shadow);
    outline: none;
}

.gallery-project-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
    pointer-events: none;
}

.gallery-project-tile:hover img,
.gallery-project-tile:focus-visible img {
    transform: scale(1.06);
}

.gallery-project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 24px;
    background: linear-gradient(
        to top,
        rgba(10, 20, 14, 0.92) 0%,
        rgba(10, 20, 14, 0.45) 45%,
        rgba(10, 20, 14, 0.06) 100%
    );
    color: white;
    text-align: left;
    transition: background 300ms ease;
}

.gallery-project-tile:hover .gallery-project-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 20, 14, 0.96) 0%,
        rgba(10, 20, 14, 0.65) 55%,
        rgba(10, 20, 14, 0.18) 100%
    );
}

.gallery-project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-project-cat {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 3px 9px;
    background: rgba(47, 101, 66, 0.8);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gallery-project-name {
    display: block;
    margin-bottom: 8px;
    font-family: "Outfit", "Segoe UI", Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
}

.gallery-project-desc {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.87rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 300ms ease 60ms, transform 300ms ease 60ms;
}

.gallery-project-tile:hover .gallery-project-desc,
.gallery-project-tile:focus-visible .gallery-project-desc {
    opacity: 1;
    transform: translateY(0);
}

.gallery-project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.gallery-photo-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    font-weight: 600;
}

.gallery-open-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    opacity: 0;
    transition: opacity 300ms ease;
}

.gallery-project-tile:hover .gallery-open-hint,
.gallery-project-tile:focus-visible .gallery-open-hint {
    opacity: 1;
}

/* ===== LIGHTBOX ===== */

body.lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: stretch;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 8, 0.96);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.gallery-lightbox-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding-bottom: 16px;
}

.gallery-lightbox-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    flex-shrink: 0;
    color: white;
}

.gallery-lightbox-title {
    flex: 1;
    min-width: 0;
}

.gallery-lightbox-category {
    display: block;
    margin-bottom: 2px;
    color: var(--ochre);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gallery-lightbox-name {
    display: block;
    font-family: "Outfit", "Segoe UI", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-lightbox-counter {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    min-width: 48px;
    text-align: center;
}

.gallery-lightbox-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 160ms ease;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    min-height: 0;
}

.gallery-lightbox-photo-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-lightbox-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity 180ms ease, transform 180ms ease;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-lightbox-photo.is-fading {
    opacity: 0;
    transform: scale(0.975);
}

.gallery-lightbox-nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

.gallery-lightbox-nav:disabled {
    opacity: 0.25;
    cursor: default;
    transform: none;
}

.gallery-lightbox-thumbs {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    padding: 14px 24px 0;
    overflow-x: auto;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 76px;
    height: 54px;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.4;
    border: 2px solid transparent;
    background: none;
    padding: 0;
    transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.gallery-thumb:hover {
    opacity: 0.72;
    transform: translateY(-2px);
}

.gallery-thumb.is-active {
    opacity: 1;
    border-color: var(--green);
    transform: translateY(-2px);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* ===== END GALLERY PAGE ===== */

.site-footer {
    background: #17291e;
    color: rgba(255, 255, 255, 0.72);
    padding: 0 0 0;
}

.footer-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--green) 0%, var(--ochre) 50%, var(--green) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 48px;
    padding: 56px 0 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-tagline {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.93rem;
    line-height: 1.6;
}

.footer-contact-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-links a {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.93rem;
    transition: color 140ms ease;
}

.footer-contact-links a:hover {
    color: var(--white);
}

.footer-contact-links svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.5;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li {
    margin: 0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 140ms ease;
}

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

.footer-links--info li {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 0.92rem;
}

.footer-info-label {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.38);
}

.footer-mescon {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
    font-weight: 600;
    transition: color 160ms ease;
}

.footer-mescon img {
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.35;
    transition: opacity 160ms ease;
}

.footer-mescon:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-mescon:hover img {
    opacity: 0.7;
}

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 360ms ease, transform 360ms ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1040px) {
    .site-nav {
        width: min(100% - 28px, 1240px);
    }

    .nav-toggle {
        position: fixed;
        top: 14px;
        right: 14px;
        z-index: 70;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .nav-panel {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        padding: 22px;
        background: var(--stone);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-panel.is-open {
        display: block;
    }

    .nav-menu {
        display: grid;
        gap: 4px;
    }

    .nav-menu a {
        min-height: 46px;
        border-bottom: 0;
    }

    .nav-cta {
        width: 100%;
        margin-top: 14px;
    }

    .hero h1 {
        font-size: 3.25rem;
    }

    .intro-grid,
    .presentation-grid,
    .image-feature-grid,
    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .sector-grid,
    .category-list {
        grid-template-columns: 1fr;
    }

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

    .footer-col--brand {
        grid-column: 1 / -1;
    }

    .service-grid,
    .steps,
    .review-grid,
    .values-grid,
    .gallery-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .project-cover {
        min-height: 300px;
    }

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

    .image-feature-grid.reverse img {
        order: 0;
    }

    /* Gallery responsive */
    .gallery-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }

    .gallery-project-tile:nth-child(4n+1),
    .gallery-project-tile:nth-child(4n+2),
    .gallery-project-tile:nth-child(4n+3),
    .gallery-project-tile:nth-child(4n+4) {
        grid-column: span 1;
    }

    .gallery-lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 720px) {
    .container,
    .site-nav {
        width: calc(100% - 28px);
    }

    .hero,
    .hero-subpage,
    .hero-short {
        min-height: 62vh;
        background-image:
            linear-gradient(90deg, rgba(13, 28, 19, 0.86), rgba(13, 28, 19, 0.62)),
            var(--hero-image);
    }

    .hero-content {
        padding: 74px 0 64px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-lead {
        font-size: 1.05rem;
    }

    .section {
        padding: 62px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading .text-link {
        display: inline-block;
        margin-top: 14px;
    }

    .intro-grid h2,
    .presentation-copy h2,
    .section-heading h2,
    .image-feature h2,
    .contact-strip h2 {
        font-size: 2rem;
    }

    .sector-card {
        grid-template-rows: 230px 1fr;
    }

    .service-grid,
    .steps,
    .review-grid,
    .values-grid,
    .gallery-preview-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .gallery-tile {
        min-height: 260px;
    }

    .contact-strip-inner {
        display: block;
    }

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

    .project-summary,
    .contact-form {
        padding: 22px;
    }

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

    .footer-col--brand {
        grid-column: auto;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .image-feature-grid img {
        min-height: 320px;
    }

    /* Gallery mobile */
    .gallery-projects-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }

    .gallery-project-desc {
        display: none;
    }

    .gallery-lightbox-stage {
        padding: 0 8px;
        gap: 8px;
    }

    .gallery-lightbox-nav {
        width: 36px;
        height: 36px;
    }

    .gallery-lightbox-thumbs {
        padding: 10px 12px 0;
        justify-content: flex-start;
    }

    .gallery-thumb {
        width: 60px;
        height: 44px;
    }

    .contact-card {
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
    }

    .contact-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .contact-card-body a {
        font-size: 1rem;
    }

    .contact-promise {
        gap: 8px;
    }

    .promise-item {
        align-items: flex-start;
        padding: 12px 14px;
    }

    .gallery-lightbox-header {
        gap: 10px;
        padding: 12px 14px;
    }

    .gallery-lightbox-name {
        font-size: 0.95rem;
    }

    .gallery-lightbox-counter {
        min-width: 42px;
        font-size: 0.82rem;
    }

    .gallery-lightbox-close {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 420px) {
    .brand {
        font-size: 0.96rem;
    }

    .brand-mark {
        width: 26px;
        height: 26px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .button {
        width: 100%;
    }

    .contact-card {
        padding: 16px;
    }

    .contact-card-body a {
        font-size: 0.94rem;
    }

    .contact-intro h2,
    .form-intro h2 {
        font-size: 1.72rem;
    }

    .gallery-lightbox-nav {
        width: 34px;
        height: 34px;
    }
}
