:root {
    --green-dark: #1f3b2b;
    --green: #3f6545;
    --green-light: #6f8f5b;
    --sand: #d8c3a5;
    --sand-light: #eee3d1;
    --cream: #f7f4ed;
    --white: #fff;
    --text: #242824;
    --muted: #5b625c;
    --border: #dfe4dd;
    --shadow: 0 18px 45px rgba(22, 48, 31, .12);
    --radius: 18px;
    --header-height: 92px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: break-word;
}

body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

a {
    color: var(--green);
}

a:hover {
    color: var(--green-dark);
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--green-dark);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.16;
    text-wrap: balance;
}

h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.55rem, 6vw, 5rem);
    letter-spacing: -.035em;
}

h2 {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    letter-spacing: -.025em;
    text-align: center;
}

h3 {
    margin-bottom: .7rem;
    font-size: 1.35rem;
}

p {
    color: var(--muted);
}

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

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 3000;
    padding: 12px 18px;
    color: var(--white);
    background: var(--green-dark);
    border-radius: 8px;
    transform: translateY(-180%);
}

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

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid transparent;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.header.scrolled {
    border-color: var(--border);
    box-shadow: 0 8px 28px rgba(22, 48, 31, .1);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: var(--header-height);
    gap: 28px;
}

.logo-link {
    display: inline-flex;
    flex: 0 0 auto;
}

.logo {
    width: 174px;
    height: auto;
}

#nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.4vw, 32px);
    margin-left: auto;
}

#nav a {
    position: relative;
    padding-block: 12px;
    color: var(--green-dark);
    font-size: .95rem;
    font-weight: 650;
    text-decoration: none;
}

#nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 6px;
    left: 0;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

#nav a:hover::after,
#nav a.active::after {
    transform: scaleX(1);
}

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

.nav-button,
.nav-whatsapp {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 17px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

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

.nav-button:hover {
    color: var(--white);
    background: var(--green-dark);
}

.nav-whatsapp {
    color: var(--green-dark);
    background: var(--sand-light);
}

.menu-button {
    display: none;
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    color: var(--green-dark);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
    position: absolute;
    left: 10px;
    width: 28px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.menu-button::before {
    color: currentColor;
    content: "☰";
    font-size: 1.8rem;
    line-height: 1;
}

.menu-button[aria-expanded="true"]::before {
    content: "×";
    font-size: 2.2rem;
}

.menu-button > span {
    display: none;
}

.menu-button span {
    top: 23px;
}

.menu-button span::before {
    top: -8px;
    left: 0;
}

.menu-button span::after {
    top: 8px;
    left: 0;
}

.menu-button[aria-expanded="true"] span {
    background: transparent;
}

.menu-button[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: max(700px, 100svh);
    padding: calc(var(--header-height) + 80px) 0 90px;
    background-color: var(--green-dark);
    background-image:
        linear-gradient(90deg, rgba(12, 29, 19, .86) 0%, rgba(12, 29, 19, .63) 52%, rgba(12, 29, 19, .28) 100%),
        url("images/galerie21.jpg");
    background-position: center;
    background-size: cover;
}

.hero-content {
    position: relative;
}

.hero h1 {
    max-width: 850px;
    color: var(--white);
}

.hero h1 span {
    display: block;
    color: var(--sand);
}

.eyebrow,
.section-kicker {
    margin-bottom: 1rem;
    color: var(--sand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-kicker {
    color: var(--green);
}

.centered {
    text-align: center;
}

.hero-intro {
    max-width: 650px;
    margin-bottom: 2rem;
    color: #f6f5f1;
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    line-height: 1.65;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 25px;
    border: 2px solid var(--green);
    color: var(--white);
    background: var(--green);
    border-radius: 999px;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.button:hover {
    color: var(--white);
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
}

.button-light {
    color: var(--green-dark);
    background: var(--sand);
    border-color: var(--sand);
}

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

.advantages {
    padding: 28px 0;
    background: var(--green-dark);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.advantage-grid div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    font-size: .96rem;
    font-weight: 700;
    text-align: center;
}

.advantage-grid span {
    color: var(--sand);
    font-size: 1.25rem;
}

.section {
    padding: clamp(72px, 9vw, 120px) 0;
}

.background {
    background: var(--cream);
}

.about {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(42px, 7vw, 90px);
}

.about-media {
    position: relative;
}

.about-media::after {
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: -1;
    background: var(--sand-light);
    border-radius: var(--radius);
    content: "";
}

.about img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content h2,
.about-content .section-kicker {
    text-align: left;
}

.about-content h2 {
    margin-bottom: 1.6rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

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

.service {
    position: relative;
    min-height: 210px;
    padding: 32px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(22, 48, 31, .06);
}

.service h3 {
    position: relative;
    padding-top: 24px;
}

.service-number {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--sand-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1;
}

.service p {
    position: relative;
    margin-bottom: 0;
}

.process {
    overflow: hidden;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: steps;
}

.steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
}

.steps li:not(:last-child)::after {
    position: absolute;
    top: 34px;
    left: calc(50% + 48px);
    width: calc(100% - 72px);
    height: 1px;
    background: var(--sand);
    content: "";
}

.steps span {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    color: var(--white);
    background: var(--green);
    border: 7px solid var(--cream);
    border-radius: 50%;
    font-family: "Segoe UI", Roboto, sans-serif;
    font-size: .9rem;
}

.gallery-section {
    background: #f2f3ef;
}

.gallery-text {
    max-width: 620px;
    margin: -1.5rem auto 2.5rem;
    text-align: center;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 170px;
    gap: 16px;
}

.gallery-item {
    grid-column: span 4;
    grid-row: span 2;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    background: var(--green-dark);
    border: 0;
    border-radius: var(--radius);
    cursor: zoom-in;
}

.gallery-item:first-child,
.gallery-item:nth-child(5) {
    grid-column: span 6;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(4) {
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .25s ease, transform .35s ease;
}

.gallery-item:hover img {
    opacity: .88;
    transform: scale(1.025);
}

.gallery-button-container {
    margin-top: 36px;
    text-align: center;
}

.gallery-all-button {
    margin: 0;
}

.contact {
    padding: clamp(75px, 9vw, 110px) 0;
    background: var(--green-dark);
    text-align: center;
}

.contact-inner {
    max-width: 800px;
}

.contact h2 {
    margin-bottom: 1.25rem;
    color: var(--white);
}

.contact p:not(.section-kicker) {
    margin-bottom: 2rem;
    color: #e8ede9;
    font-size: 1.15rem;
}

.centered-buttons {
    justify-content: center;
}

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

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

.button-outline {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, .72);
}

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

footer {
    padding: 58px 0 20px;
    color: var(--white);
    background: #15241a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr .65fr;
    gap: 50px;
}

.footer-brand img {
    width: 155px;
    margin-bottom: 16px;
    padding: 5px;
    background: var(--white);
    border-radius: 8px;
}

footer p,
footer address {
    color: #dbe3dc;
}

footer address {
    font-style: normal;
}

footer strong {
    display: block;
    margin-bottom: 12px;
    color: var(--sand);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

footer a {
    color: #f1f4f1;
    text-underline-offset: 3px;
}

footer a:hover {
    color: var(--sand);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-bottom {
    padding-top: 24px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.footer-bottom p {
    margin: 0;
    font-size: .85rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 90px 40px;
    background: rgba(8, 14, 10, .96);
}

.lightbox figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}

.lightbox img {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 145px);
    border-radius: 10px;
    object-fit: contain;
}

.lightbox figcaption {
    min-height: 28px;
    padding-top: 10px;
    color: var(--white);
    font-size: .9rem;
}

.lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    color: var(--white);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    cursor: pointer;
}

.lightbox button:hover {
    background: rgba(255, 255, 255, .2);
}

.lightbox-close {
    top: 18px;
    right: 18px;
    font-size: 2rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    font-size: 2.5rem;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.legal-page main {
    min-height: 70vh;
    padding-top: var(--header-height);
}

.legal-content {
    width: min(calc(100% - 40px), 850px);
    margin-inline: auto;
}

.legal-content h1 {
    margin-bottom: 2.5rem;
    color: var(--green-dark);
    font-size: clamp(2.4rem, 6vw, 4rem);
}

.legal-content h2 {
    margin: 2.4rem 0 .75rem;
    font-size: 1.55rem;
    text-align: left;
}

.legal-content ul {
    color: var(--muted);
}

.legal-content a {
    overflow-wrap: anywhere;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1080px) {
    .header-actions {
        display: none;
    }

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

    .gallery-preview {
        grid-auto-rows: 150px;
    }
}

@media (max-width: 800px) {
    :root {
        --header-height: 78px;
    }

    .container {
        width: min(calc(100% - 32px), 1200px);
    }

    .logo {
        width: 145px;
    }

    .menu-button {
        display: block;
        margin-left: auto;
    }

    #nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 12px 16px 22px;
        margin: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 14px 24px rgba(22, 48, 31, .12);
    }

    #nav.active {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #nav a {
        min-height: 48px;
        padding: 11px 8px;
        font-size: 1rem;
    }

    #nav a::after {
        display: none;
    }

    .hero {
        min-height: 720px;
        background-position: 58% center;
    }

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

    .advantage-grid div {
        justify-content: flex-start;
        text-align: left;
    }

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

    .about-content {
        max-width: 680px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 36px;
    }

    .steps li::after {
        display: none;
    }

    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }

    .gallery-item,
    .gallery-item:first-child,
    .gallery-item:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-item:first-child {
        grid-row: span 2;
    }

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

    .footer-links {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .container,
    .legal-content {
        width: min(calc(100% - 28px), 1200px);
    }

    .hero {
        min-height: 680px;
        padding-bottom: 65px;
        background-position: 64% center;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .service {
        min-height: 0;
        padding: 27px;
    }

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

    .gallery-preview {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .gallery-item:first-child {
        grid-row: auto;
    }

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

    .footer-links {
        grid-column: auto;
    }

    .lightbox {
        padding: 70px 12px 85px;
    }

    .lightbox img {
        max-height: calc(100vh - 190px);
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .lightbox-prev {
        left: calc(50% - 65px);
    }

    .lightbox-next {
        right: calc(50% - 65px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
