:root {
    --color-white: #FFFFFF;
    --color-off-white: #F7F6F3;
    --color-black-soft: #1A1A1A;
    --color-gray-medium: #6B6B6B;
    --color-gray-light: #E2E0DA;
    --color-accent: #C9A84C;
    --color-accent-strong: #B99432;
    --color-focus: #2C5F8A;
    --shadow-soft: 0 18px 48px rgba(26, 26, 26, 0.08);
    --site-max-width: 1180px;
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --gold: #B08A4A;
    --cream: #F7F2E8;
    --hair: #E6DFD0;
    --navy-deep: #0F2950;
    --ease-standard: cubic-bezier(.2, 0, 0, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-off-white);
    color: var(--color-black-soft);
    font-family: var(--font-sans);
}

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

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

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 4px;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 18px 0;
    border-bottom: 1px solid transparent;
    transition: background 240ms var(--ease-standard), border-color 240ms, padding 240ms;
}

.nav.is-scrolled {
    background: rgba(247, 242, 232, 0.88);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    border-bottom-color: var(--hair);
    padding: 12px 0;
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav__brand img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4));
    transform: scale(1.65);
    transform-origin: left center;
    transition: filter 240ms;
}

.nav:not(.is-scrolled) .nav__brand img {
    filter: invert(1) brightness(1.9) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.nav__links {
    display: flex;
    gap: 36px;
    margin: 0 auto;
}

.nav__menu {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 24px;
}

.nav__link {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-black-soft);
    padding: 6px 0;
    position: relative;
    transition: color 200ms;
}

.nav:not(.is-scrolled) .nav__link {
    color: rgba(255, 255, 255, 0.9);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--gold);
}

.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 14px;
    height: 1px;
    background: var(--gold);
    transform: translateX(-50%);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--color-black-soft);
    border: 1px solid var(--color-black-soft);
    padding: 10px 20px;
    border-radius: 1px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 200ms, color 200ms, border-color 200ms;
}

.nav__cta:hover {
    background: var(--color-black-soft);
    color: var(--cream);
}

.nav:not(.is-scrolled) .nav__cta {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-deep);
}

.nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid currentColor;
    border-radius: 1px;
    background: transparent;
    color: var(--color-black-soft);
    padding: 0;
}

.nav:not(.is-scrolled) .nav__toggle {
    color: #fff;
}

.nav__toggle span {
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform 220ms ease, opacity 160ms ease;
}

.nav.is-open .nav__toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav.is-open .nav__toggle span:nth-child(2) {
    opacity: 0;
}

.nav.is-open .nav__toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button--primary {
    border: 1px solid var(--color-accent);
    background: var(--color-accent);
    color: var(--color-black-soft);
}

.button--primary:hover {
    border-color: var(--color-accent-strong);
    background: var(--color-accent-strong);
    transform: translateY(-1px);
}

.button {
    padding: 0 20px;
}

.button--secondary {
    border: 1px solid var(--color-gray-light);
    background: var(--color-white);
    color: var(--color-black-soft);
}

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

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    padding: 88px 0;
    background:
        linear-gradient(90deg, rgba(247, 246, 243, 0.9), rgba(247, 246, 243, 0.62) 43%, rgba(247, 246, 243, 0.18)),
        url('/images/hero-rcAlves.jpg') center right / cover no-repeat;
}

.hero__content,
.section__inner {
    width: min(100% - 32px, var(--site-max-width));
    margin: 0 auto;
}

.hero__content {
    max-width: 650px;
    margin-left: max(16px, calc((100vw - var(--site-max-width)) / 2));
}

.hero__eyebrow,
.section__eyebrow {
    margin: 0 0 14px;
    color: var(--color-accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.section h2 {
    margin: 0;
    color: var(--color-black-soft);
    line-height: 1.05;
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(2.6rem, 5.5vw, 4.9rem);
    letter-spacing: 0;
}

.hero__text {
    max-width: 560px;
    margin: 22px 0 0;
    color: var(--color-gray-medium);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.65;
}

.hero__quote {
    max-width: 590px;
    margin: 28px 0 0;
    padding-left: 18px;
    border-left: 4px solid var(--color-accent);
    color: var(--color-black-soft);
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    font-weight: 650;
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.section {
    padding: 86px 0;
    background: var(--color-white);
}

.section--alt {
    background: var(--color-off-white);
}

.section h2 {
    max-width: 680px;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.section__inner--split,
.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.section__inner--split p:last-child {
    margin: 0;
    color: var(--color-gray-medium);
    font-size: 1.12rem;
    line-height: 1.75;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.service-card {
    min-height: 220px;
    padding: 28px;
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    background: var(--color-off-white);
    box-shadow: var(--shadow-soft);
}

.service-card h3 {
    margin: 0 0 14px;
    font-size: 1.2rem;
}

.service-card p {
    margin: 0;
    color: var(--color-gray-medium);
    line-height: 1.65;
}

.contact-panel {
    padding: 34px;
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    background: var(--color-off-white);
}

.contact-panel .button {
    justify-self: end;
}

.footer {
    background: #0F2950;
    color: rgba(255, 255, 255, 0.64);
    padding: 58px 0 28px;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.footer__inner {
    width: min(100% - 32px, var(--site-max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(4, minmax(140px, 0.75fr));
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.footer__brand {
    display: inline-flex;
    margin-bottom: 26px;
}

.footer__brand img {
    height: 34px;
    width: auto;
    filter: invert(1) brightness(1.9);
    opacity: 0.85;
    transform: scale(1.65);
    transform-origin: left center;
}

.footer__brand-block p,
.footer__section p {
    margin: 0;
    max-width: 34ch;
    line-height: 1.75;
}

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

.footer__section h2,
.footer__section h3 {
    margin: 0 0 12px;
    color: var(--color-accent);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.footer__section a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    line-height: 1.5;
}

.footer__section a:hover {
    color: #fff;
}

.footer__link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font: inherit;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

.footer__link-button:hover {
    color: #fff;
}

.footer__section strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.footer__muted {
    color: rgba(255, 255, 255, 0.48);
}

.footer__bottom {
    width: min(100% - 32px, var(--site-max-width));
    margin: 42px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    text-align: left;
    line-height: 1.65;
}

.footer__legal b {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.legal-hero {
    background: var(--navy-deep);
    color: #fff;
    padding: clamp(132px, 15vw, 190px) 0 clamp(72px, 9vw, 112px);
}

.legal-container {
    width: min(100% - 32px, var(--site-max-width));
    margin: 0 auto;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--gold-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.legal-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.legal-hero h1 {
    max-width: 14ch;
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.05;
}

.legal-hero p {
    max-width: 62ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(17px, 1.4vw, 21px);
    font-style: italic;
    line-height: 1.6;
}

.legal-page {
    background: var(--color-off-white);
    padding: clamp(56px, 8vw, 96px) 0;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.legal-note {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--hair);
    background: #fff;
    color: var(--color-gray-medium);
    line-height: 1.55;
}

.legal-note strong {
    color: var(--navy-deep);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.legal-note span {
    color: var(--color-black-soft);
    font-weight: 700;
}

.legal-note small {
    color: var(--color-gray-medium);
    font-size: 12px;
}

.legal-content {
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--hair);
    background: #fff;
    color: var(--color-black-soft);
}

.legal-content h2 {
    margin: 38px 0 12px;
    color: var(--navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 500;
    line-height: 1.2;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 16px;
    color: var(--color-gray-medium);
    font-size: 16px;
    line-height: 1.75;
}

.legal-content a {
    color: var(--gold);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 24px 0 30px;
}

.legal-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-table th,
.legal-table td {
    padding: 14px;
    border: 1px solid var(--hair);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: var(--color-off-white);
    color: var(--navy-deep);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-map__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(15, 41, 80, 0.95), rgba(26, 58, 107, 0.9));
    color: #fff;
    text-align: center;
}

.contact-map__placeholder > div {
    max-width: 360px;
    padding: 26px;
    border: 1px solid rgba(217, 194, 142, 0.5);
    background: rgba(15, 41, 80, 0.84);
}

.contact-map__placeholder strong {
    display: block;
    margin-bottom: 10px;
    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 500;
}

.contact-map__placeholder p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.contact-map__consent {
    display: inline-flex;
    justify-content: center;
    padding: 13px 20px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid rgba(176, 138, 74, 0.45);
    background: rgba(15, 41, 80, 0.97);
    color: #fff;
    box-shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.55);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
    display: none;
}

.cookie-banner__copy strong {
    display: block;
    margin-bottom: 6px;
    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 500;
}

.cookie-banner__copy p {
    margin: 0;
    max-width: 64ch;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.55;
}

.cookie-banner__actions,
.cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-btn {
    display: inline-flex;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.cookie-btn--gold {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--navy-deep);
}

.cookie-btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.72);
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 41, 80, 0.58);
}

.cookie-modal__panel {
    width: min(100%, 640px);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    padding: 28px;
    border: 1px solid var(--hair);
    background: #fff;
    color: var(--color-black-soft);
    box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.45);
}

.cookie-modal__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--hair);
}

.cookie-modal__head span {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.cookie-modal__head h2 {
    margin: 0;
    color: var(--navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 500;
}

.cookie-modal__close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--hair);
    background: #fff;
    color: var(--color-black-soft);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--hair);
}

.cookie-option strong {
    display: block;
    margin-bottom: 5px;
    color: var(--navy-deep);
}

.cookie-option p {
    margin: 0;
    color: var(--color-gray-medium);
    line-height: 1.55;
}

.cookie-option span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cookie-option input {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.cookie-modal__actions {
    margin-top: 24px;
}

.cookie-modal .cookie-btn--ghost {
    border-color: var(--hair);
    color: var(--navy-deep);
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-note {
        position: static;
    }

    .cookie-banner {
        grid-template-columns: 1fr;
    }

    .cookie-banner__actions,
    .cookie-modal__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .nav,
    .nav.is-scrolled,
    .nav.is-open {
        padding: 10px 0;
        background: rgba(247, 242, 232, 0.94);
        border-bottom-color: var(--hair);
        backdrop-filter: blur(18px) saturate(1.1);
        -webkit-backdrop-filter: blur(18px) saturate(1.1);
    }

    .nav__inner {
        position: relative;
        min-height: 50px;
    }

    .nav__brand img,
    .nav:not(.is-scrolled) .nav__brand img {
        height: 46px;
        transform: scale(1.35);
        filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4));
    }

    .nav__toggle {
        display: inline-flex;
        margin-left: auto;
        color: var(--color-black-soft);
    }

    .nav__menu {
        position: absolute;
        top: calc(100% + 10px);
        left: clamp(24px, 5vw, 64px);
        right: clamp(24px, 5vw, 64px);
        display: grid;
        gap: 0;
        padding: 18px;
        border: 1px solid var(--hair);
        background: rgba(251, 248, 241, 0.98);
        box-shadow: 0 24px 50px -28px rgba(15, 41, 80, 0.45);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .nav.is-open .nav__menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav__links {
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin: 0;
    }

    .nav__link,
    .nav:not(.is-scrolled) .nav__link {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--hair);
        color: var(--color-black-soft);
    }

    .nav__link.is-active::after {
        left: 0;
        bottom: 8px;
        transform: none;
    }

    .nav__cta,
    .nav:not(.is-scrolled) .nav__cta {
        width: 100%;
        justify-content: center;
        margin-top: 18px;
        background: var(--gold);
        border-color: var(--gold);
        color: var(--navy-deep);
    }

    .hero {
        min-height: auto;
        padding: 76px 0 58px;
        background:
            linear-gradient(90deg, rgba(247, 246, 243, 0.92), rgba(247, 246, 243, 0.72)),
            url('/images/hero-rcAlves.jpg') center right / cover no-repeat;
    }

    .section {
        padding: 64px 0;
    }

    .section__inner--split,
    .contact-panel,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-panel .button {
        justify-self: start;
    }

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

@media (max-width: 540px) {
    .cookie-banner__actions,
    .cookie-modal__actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}
