:root {
    --ink: #111318;
    --graphite: #24282f;
    --muted: #626a73;
    --line: #e4e6e8;
    --paper: #fbfaf7;
    --white: #ffffff;
    --blue: #12324a;
    --blue-2: #0e2537;
    --wood: #b9793e;
    --shadow: 0 24px 60px rgba(17, 19, 24, 0.14);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.section-inner {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.section-pad {
    padding: 96px 0;
}

.section-muted {
    background: #f2f1ed;
}

.section-dark {
    background: var(--ink);
    color: var(--white);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 4vw, 48px);
    color: var(--white);
    transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(251, 250, 247, 0.96);
    box-shadow: 0 14px 36px rgba(17, 19, 24, 0.08);
    color: var(--ink);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 0.98rem;
    line-height: 1.1;
}

.brand small {
    margin-top: 2px;
    color: currentColor;
    font-size: 0.72rem;
    opacity: 0.72;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.9rem;
    font-weight: 700;
}

.main-nav a {
    opacity: 0.82;
    transition: opacity 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    opacity: 1;
}

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

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.18);
    backdrop-filter: blur(10px);
}

.site-header.is-scrolled .language-switcher,
.site-header.is-open .language-switcher {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.language-button {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 7px 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.language-button.is-active {
    background: var(--white);
    color: var(--ink);
}

.site-header.is-scrolled .language-button.is-active,
.site-header.is-open .language-button.is-active {
    background: var(--ink);
    color: var(--white);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.hero {
    position: relative;
    display: grid;
    min-height: 92vh;
    overflow: hidden;
    color: var(--white);
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(17, 19, 24, 0.86), rgba(17, 19, 24, 0.58) 48%, rgba(17, 19, 24, 0.2)),
        linear-gradient(0deg, rgba(17, 19, 24, 0.62), transparent 38%);
}

.hero-content {
    position: relative;
    z-index: 1;
    align-self: end;
    padding: 152px 0 72px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #d8e8f2;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0;
}

h1 {
    max-width: 720px;
    font-size: clamp(3rem, 8vw, 6.8rem);
}

h2 {
    max-width: 800px;
    font-size: clamp(2rem, 4.5vw, 4.4rem);
}

h3 {
    font-size: 1.05rem;
}

.hero-copy {
    max-width: 640px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2vw, 1.22rem);
}

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

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 12px 18px;
    font-size: 0.94rem;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button svg,
.contact-row svg,
.service-card svg,
.feature-list svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

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

.button-ghost {
    border-color: rgba(255, 255, 255, 0.44);
    color: var(--white);
}

.button-ghost:hover,
.button-ghost:focus-visible {
    border-color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.1);
}

.hero-metrics {
    display: grid;
    max-width: 760px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 64px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-metrics div {
    padding: 18px;
    background: rgba(17, 19, 24, 0.28);
    backdrop-filter: blur(12px);
}

.hero-metrics strong,
.hero-metrics span {
    display: block;
}

.hero-metrics strong {
    font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.hero-metrics span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
    gap: 64px;
    align-items: start;
}

.intro-grid p:last-child,
.sticky-copy p,
.cta p {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.section-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 42px;
}

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

.service-card {
    min-height: 310px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    background: var(--white);
}

.service-card svg {
    margin-bottom: 28px;
    color: var(--blue);
}

.service-card p {
    margin: 12px 0 18px;
    color: var(--muted);
    font-size: 0.94rem;
}

.service-card ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    color: var(--graphite);
    font-size: 0.9rem;
    list-style: none;
}

.service-card li {
    position: relative;
    padding-left: 17px;
}

.service-card li::before {
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wood);
    content: "";
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
    gap: 76px;
    align-items: start;
}

.sticky-copy {
    position: sticky;
    top: 120px;
}

.sticky-copy p {
    margin-top: 22px;
}

.feature-list {
    display: grid;
    gap: 12px;
}

.feature-list article {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding: 24px 0;
}

.feature-list svg {
    color: var(--blue);
}

.feature-list p {
    margin: 8px 0 0;
    color: var(--muted);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.12);
}

.process-grid article {
    min-height: 260px;
    padding: 24px;
    background: #181b21;
}

.process-grid span {
    display: block;
    margin-bottom: 54px;
    color: var(--wood);
    font-weight: 800;
}

.process-grid p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.68);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 12px;
}

.gallery-item {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    padding: 0;
    background: var(--graphite);
    color: var(--white);
    cursor: pointer;
    text-align: left;
}

.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 300ms ease, opacity 300ms ease;
}

.gallery-item::after {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(17, 19, 24, 0.82), transparent);
    content: "";
}

.gallery-item span {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
    z-index: 1;
    font-size: 0.9rem;
    font-weight: 800;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    opacity: 0.86;
    transform: scale(1.035);
}

.cta {
    background: var(--blue-2);
    color: var(--white);
}

.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
    gap: 80px;
    align-items: center;
}

.cta p {
    max-width: 620px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.76);
}

.contact-panel {
    display: grid;
    gap: 12px;
}

.contact-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 160ms ease, border-color 160ms ease;
}

a.contact-row:hover,
a.contact-row:focus-visible {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.13);
}

.contact-row strong,
.contact-row span {
    display: block;
}

.contact-row strong {
    margin-bottom: 2px;
}

.contact-row span {
    min-width: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.contact-row.muted {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer {
    padding: 26px 0;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

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

.footer-inner p {
    margin: 0;
}

.footer-inner a {
    font-weight: 800;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(17, 19, 24, 0.88);
}

.lightbox.is-open {
    display: grid;
}

.lightbox figure {
    width: min(100%, 1000px);
    max-height: calc(100vh - 70px);
    margin: 0;
}

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

.lightbox figcaption {
    margin-top: 12px;
    color: var(--white);
    font-weight: 800;
    text-align: center;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    cursor: pointer;
}

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

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

@media (max-width: 820px) {
    .section-inner {
        width: min(calc(100% - 32px), var(--max));
    }

    .section-pad {
        padding: 72px 0;
    }

    .site-header {
        padding: 14px 16px;
    }

    .language-switcher {
        gap: 4px;
        padding: 3px;
    }

    .language-button {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 0.72rem;
    }

    .nav-toggle {
        display: grid;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 8px;
        background: var(--white);
        color: var(--ink);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        border-radius: 6px;
        padding: 14px;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible {
        background: #f2f1ed;
    }

    .hero {
        min-height: 88vh;
    }

    .hero-overlay {
        background:
            linear-gradient(0deg, rgba(17, 19, 24, 0.88), rgba(17, 19, 24, 0.42)),
            linear-gradient(90deg, rgba(17, 19, 24, 0.72), rgba(17, 19, 24, 0.24));
    }

    .hero-content {
        padding: 128px 0 42px;
    }

    .hero-metrics,
    .intro-grid,
    .split,
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        margin-top: 42px;
    }

    .split,
    .cta-grid,
    .intro-grid {
        gap: 34px;
    }

    .sticky-copy {
        position: static;
    }

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

    .gallery-item.featured {
        grid-column: span 2;
    }
}

@media (max-width: 560px) {
    .brand {
        min-width: 0;
    }

    .brand strong {
        max-width: 80px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand small {
        display: none;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

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

    .gallery-item,
    .gallery-item.featured {
        grid-column: auto;
        grid-row: auto;
        min-height: 280px;
    }

    .service-card {
        min-height: 0;
    }

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

@media (max-width: 380px) {
    .language-button {
        width: 34px;
        padding: 0;
        font-size: 0;
    }

    .language-button::before {
        font-size: 1rem;
    }

    .language-button[data-lang-button="pt"]::before {
        content: "🇧🇷";
    }

    .language-button[data-lang-button="es"]::before {
        content: "🇪🇸";
    }
}