* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f7f3ec;
    --surface: #fbf8f2;
    --surface-strong: #f1ece2;
    --text: #22211e;
    --text-soft: #66615a;
    --line: rgba(34, 33, 30, 0.12);
    --line-strong: rgba(34, 33, 30, 0.18);
    --brand: #305f63;
    --brand-dark: #1f4548;
    --white: #ffffff;
    --container: 1200px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
    font: inherit;
}

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

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

.section {
    padding: 64px 0;
}

.section.compact {
    padding: 56px 0;
}

.section-line {
    border-top: 1px solid var(--line);
}

.section-head {
    margin-bottom: 36px;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.6rem, 4.8vw, 4.8rem);
}

h2 {
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    margin-bottom: 14px;
}

p {
    color: var(--text-soft);
    font-size: 0.98rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 243, 236, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(34, 33, 30, 0.08);
}

.site-header.is-scrolled {
    background: rgba(247, 243, 236, 0.98);
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand img {
    width: 54px;
    height: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 0.92;
    color: var(--brand);
}

.brand-text strong,
.brand-text span {
    letter-spacing: 0.12em;
}

.brand-text strong {
    font-size: 1.4rem;
    font-weight: 700;
}

.brand-text span {
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text);
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.btn-nav,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

.btn-nav,
.btn-primary {
    background: var(--brand-dark);
    color: var(--white);
    border: 1px solid var(--brand-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-dark);
    border: 1px solid rgba(31, 69, 72, 0.2);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-decoration: none;
}

.text-link::after {
    content: "";
    width: 38px;
    height: 1px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(31, 69, 72, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    margin: 4px auto;
    background: var(--brand);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
    position: relative;
    padding: 0;
}

.hero-media {
    width: 100%;
    min-height: clamp(360px, 62vh, 640px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

.hero-content {
    position: relative;
    margin-top: -64px;
}

.hero-copy {
    width: min(680px, 100%);
    padding: 36px 38px;
    background: rgba(251, 248, 242, 0.94);
    border: 1px solid rgba(34, 33, 30, 0.12);
}

.hero-copy p {
    max-width: 56ch;
}

.duo-grid,
.trio-grid,
.contact-grid {
    display: grid;
    gap: 32px;
    align-items: center;
}

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

.duo-copy {
    max-width: 520px;
}

.duo-copy p + p {
    margin-top: 14px;
}

.duo-media,
.trio-item,
.contact-card,
.contact-form-wrap {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}

.duo-media img,
.trio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duo-media {
    min-height: 520px;
}

.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 4px 0;
}

.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10%;
    z-index: 2;
    pointer-events: none;
}

.marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(247, 243, 236, 0) 100%);
}

.marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg) 0%, rgba(247, 243, 236, 0) 100%);
}

.marquee-track {
    --gap-marquee: 24px;
    display: flex;
    gap: var(--gap-marquee);
    width: max-content;
    padding: 0 16px;
    animation: marquee-left 42s linear infinite;
    will-change: transform;
}

@keyframes marquee-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - (var(--gap-marquee) / 2)));
    }
}

.trio-item {
    flex-shrink: 0;
    width: clamp(280px, 38vw, 420px);
    height: clamp(240px, 32vw, 340px);
    min-height: 0;
    position: relative;
}

.trio-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.contact-card,
.contact-form-wrap {
    padding: 34px;
    background: rgba(255, 255, 255, 0.42);
}

.contact-list {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.contact-list div {
    display: grid;
    gap: 6px;
}

.contact-list strong {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand);
}

.contact-list a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid rgba(48, 95, 99, 0.3);
}

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

.contact-form label {
    display: grid;
    gap: 8px;
}

.contact-form span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid rgba(34, 33, 30, 0.18);
    background: transparent;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand-dark);
}

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

.map-section {
    width: 100%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.map-embed {
    display: block;
    width: 100%;
    height: clamp(260px, 38vw, 420px);
    border: 0;
}

.site-footer {
    padding: 24px 0 28px;
    background: var(--surface);
}

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

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

.footer-brand img {
    width: 40px;
    height: auto;
}

.footer-brand strong {
    display: block;
    color: var(--brand);
    letter-spacing: 0.12em;
}

.footer-brand p,
.footer-inner > p {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.dev-credit {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    background: transparent;
    color: var(--text-soft);
}

.dev-credit-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 500;
}

.dev-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    text-decoration: none;
    white-space: nowrap;
}

.dev-whatsapp svg {
    width: 17px;
    height: 17px;
}

.page-redirect {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--bg);
}

.redirect-main {
    width: 100%;
    padding: 32px 16px;
}

.redirect-card {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 44px 32px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 16px;
}

.redirect-card img {
    width: 84px;
    height: auto;
}

.redirect-card p {
    max-width: 42ch;
}

.side-in {
    opacity: 0;
    transition:
        opacity 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--side-delay, 0ms);
    will-change: opacity, transform;
}

.side-in-left {
    transform: translateX(-56px);
}

.side-in-right {
    transform: translateX(56px);
}

.side-in-center {
    transform: translateY(18px) scale(0.988);
}

.side-in.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .side-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .marquee-track {
        animation: none;
    }
}

.btn-nav:active,
.btn-primary:active,
.btn-secondary:active,
.menu-toggle:active,
.dev-whatsapp:active,
.brand:active {
    transform: scale(0.985);
}

.btn-nav:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.menu-toggle:focus-visible,
.dev-whatsapp:focus-visible,
.nav-menu a:focus-visible,
.brand:focus-visible,
.text-link:focus-visible {
    outline: 2px solid rgba(48, 95, 99, 0.4);
    outline-offset: 3px;
}

@media (hover: hover) {
    .brand:hover,
    .btn-nav:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .menu-toggle:hover,
    .dev-whatsapp:hover {
        transform: translateY(-1px);
    }

    .marquee:hover .marquee-track {
        animation-play-state: paused;
    }

    .btn-nav:hover,
    .btn-primary:hover {
        background: #173538;
        border-color: #173538;
    }

    .btn-secondary:hover {
        border-color: rgba(31, 69, 72, 0.4);
    }

    .text-link:hover::after {
        transform: translateX(4px);
    }

    .nav-menu a:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 1080px) {
    .duo-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .duo-media {
        min-height: 460px;
    }

    .trio-item {
        width: clamp(280px, 52vw, 460px);
        height: clamp(240px, 40vw, 360px);
    }
}

@media (max-width: 920px) {
    .nav {
        min-height: 78px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .nav-menu {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        bottom: auto;
        height: auto;
        max-height: calc(100dvh - 78px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 18px 24px 22px;
        background: rgba(251, 248, 242, 0.98);
        overflow-y: auto;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        border-bottom: 1px solid var(--line);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(34, 33, 30, 0.08);
    }

    .nav-menu li:last-child a {
        border-bottom: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-content {
        margin-top: -34px;
    }

    .hero-copy {
        padding: 26px 24px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .section {
        padding: 48px 0;
    }

    .section.compact {
        padding: 40px 0;
    }

    .brand img {
        width: 46px;
    }

    .brand-text strong {
        font-size: 1.22rem;
    }

    .brand-text span {
        font-size: 0.86rem;
    }

    .hero-media {
        min-height: 320px;
    }

    .hero-content {
        margin-top: -24px;
    }

    .hero-copy {
        width: 100%;
        padding: 22px 20px;
    }

    .inline-actions {
        align-items: flex-start;
        gap: 12px;
    }

    .btn-nav,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 0 18px;
    }

    .duo-media {
        min-height: 340px;
    }

    .section-head {
        margin-bottom: 24px;
    }

    .trio-item {
        width: 82vw;
        height: 68vw;
        max-height: 360px;
    }

    .marquee-track {
        --gap-marquee: 16px;
        gap: var(--gap-marquee);
        animation-duration: 34s;
    }

    .contact-card,
    .contact-form-wrap,
    .redirect-card {
        padding: 24px 20px;
    }

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

    .side-in-left,
    .side-in-right {
        transform: none;
    }
}
