@font-face {
    font-family: 'Symphonie Calligraphy';
    src: url('./symphonie-calligraphy-demo/SymphonieCalligraphyDEMO-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-dark: #0A1128; /* Azul marinho escuro (Navy) da referência */
    --bg-darker: #050814;
    --gold: #C5A87C;
    --gold-bright: #e3c494;
    --gold-soft: rgba(197, 168, 124, 0.08);
    --cream: #f5f1e8;
    --text-muted: #9e978d;
    --border: rgba(197, 168, 124, 0.15);
    
    --font-sans: 'DM Sans', sans-serif;
    --font-serif: 'Merriweather', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--cream);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 400;
}

em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
}

/* Top Bar */
.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.8rem;
    padding: 0.5rem 0;
    color: #333;
}
.top-bar-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.top-bar-contact {
    display: flex;
    gap: 1.5rem;
}
.top-bar-link {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}
.top-bar-social {
    display: flex;
    gap: 1rem;
}
.top-bar-icon {
    color: #555;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}
.top-bar-icon:hover, .top-bar-link:hover {
    color: var(--gold);
}

/* Nav */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.8rem 0;
}

.nav-container, .hero-container, .areas-container, .gallery-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg-dark);
}

.nav-logo {
    height: 40px;
    object-fit: contain;
    animation: spinContinuous 4s infinite linear;
}

@keyframes spinContinuous {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-link {
    color: var(--bg-dark);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
    padding: 0.75rem 1.5rem;
    z-index: 1;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-btn-solid {
    background-color: var(--gold);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.nav-btn-solid:hover {
    background-color: var(--gold-bright);
}

.nav-highlighter {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    transition: transform 0.4s ease, width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.nav-highlighter svg rect {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1px;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.nav-highlighter.drawn svg rect {
    stroke-dashoffset: 0;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--bg-dark);
    transition: 0.3s;
}

/* Button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.btn-cta:hover {
    background: var(--gold);
    color: var(--bg-darker);
    box-shadow: 0 10px 20px rgba(197, 168, 124, 0.15);
}

.btn-cta .arrow {
    transition: transform 0.3s;
}

.btn-cta:hover .arrow {
    transform: translateX(4px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 0.85rem;
}

/* Animação da borda do botão */
.draw-border-btn {
    position: relative;
    border-color: transparent !important;
}

.btn-border-svg {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.btn-border-svg rect {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1px;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawBtnLoop 4s infinite ease-in-out;
}

@keyframes drawBtnLoop {
    0%, 15% { stroke-dashoffset: 100; }
    40%, 80% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 100; }
}

.wave-char {
    display: inline-block;
}

@keyframes charWavePulse {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.25) translateY(-2px); color: var(--gold-bright); }
}

/* Hero */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: stretch;
    padding-top: 80px;
    background-color: var(--bg-dark);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(197, 168, 124, 0.15);
    z-index: 10;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('escritorio/0.jpeg') center/cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent, black 30%);
    mask-image: linear-gradient(to right, transparent, black 30%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay azul marinho semi-transparente sobre a imagem */
    background: rgba(10, 17, 40, 0.85); 
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1.05fr;
    gap: 8rem;
    align-items: stretch;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    margin-top: -5rem;
}

.hero-title {
    font-family: 'Marcellus', 'Audrey', serif;
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--cream);
    font-weight: 400;
}

.hero-badges {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.hero-badge-plain {
    color: var(--cream);
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-family: var(--font-sans);
    opacity: 0.9;
}

.hero-badge-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.hero-badge {
    flex: 1;
    border: 1px solid rgba(197, 168, 124, 0.4);
    color: var(--text-muted);
    padding: 0.6rem 0.2rem;
    border-radius: 30px;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    background: transparent;
    text-align: center;
    line-height: 1.3;
}

.hero-badge strong {
    font-size: 0.75rem;
    color: var(--cream);
    display: block;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.hero-floating-box {
    display: none; /* Hide on desktop by default unless we want it there too */
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-hero-solid {
    background-color: var(--gold);
    color: #fff;
    text-decoration: none;
    padding: 0.9rem 2rem;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-hero-solid:hover {
    background-color: var(--gold-bright);
}

.btn-hero-outline {
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 2rem;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.btn-hero-outline:hover {
    border-color: #fff;
}

.hero-visual {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
}

.hero-person-img {
    width: auto;
    height: 80vh;
    max-height: 800px;
    max-width: 150%;
    object-fit: contain;
    object-position: bottom;
    transform: scaleX(-1);
    margin-bottom: -10px;
    pointer-events: none;
    z-index: 10;
}

/* Sections */
.areas {
    padding: 8rem 0;
    background: var(--bg-darker);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.divider {
    width: 50px;
    height: 1px;
    background: var(--gold);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-height: 680px;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(10, 8, 7, 0.5);
}

.areas-grid::-webkit-scrollbar {
    width: 6px;
}
.areas-grid::-webkit-scrollbar-track {
    background: rgba(10, 8, 7, 0.5);
    border-radius: 4px;
}
.areas-grid::-webkit-scrollbar-thumb {
    background-color: var(--gold);
    border-radius: 4px;
}

.area-card {
    padding: 2.5rem 2rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.area-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.area-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--cream);
}

.area-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Gallery */
.gallery {
    padding: 8rem 0;
}

.gallery-carousel-wrapper {
    position: relative;
    margin-top: 3rem;
}

.gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem; /* Espaço para a barra de rolagem */
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(10, 8, 7, 0.5);
    scroll-behavior: smooth;
}

/* Estilo da barra de rolagem no Chrome/Safari */
.gallery-grid::-webkit-scrollbar {
    height: 8px;
}
.gallery-grid::-webkit-scrollbar-track {
    background: rgba(10, 8, 7, 0.5);
    border-radius: 4px;
}
.gallery-grid::-webkit-scrollbar-thumb {
    background-color: var(--gold);
    border-radius: 4px;
}

.gallery-img-wrapper {
    flex: 0 0 320px;
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: 4px;
    height: 400px;
}

/* Botões do carrossel */
.carousel-btn {
    position: absolute;
    top: calc(50% - 1rem);
    transform: translateY(-50%);
    background: rgba(10, 8, 7, 0.85);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--bg-darker);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -24px;
}

.carousel-btn.next {
    right: -24px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.8s ease, opacity 0.5s ease;
    filter: grayscale(40%) contrast(1.1);
}

.gallery-img-wrapper:hover .gallery-img {
    opacity: 1;
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.footer {
    padding: 6rem 0 3rem;
    background: var(--bg-darker);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-zoom.in-view {
    opacity: 1;
    transform: scale(1);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive */
@media (max-width: 992px) {
    .top-bar-social {
        display: none;
    }
    
    .top-bar-contact {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding-top: 60px; /* Sobe o conteúdo mais para perto do menu */
    }

    .hero::before {
        width: 100%;
        -webkit-mask-image: none;
        mask-image: none;
        opacity: 0.4;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0; /* Tira o gap para o texto colar mais na foto */
        padding-top: 0;
        padding-bottom: 1rem; /* Reduz espaço inferior */
    }

    .hero-visual {
        order: -1; /* Foto aparece primeiro */
    }

    .hero-content {
        order: 1; /* Texto aparece depois */
        margin-top: -5rem; /* Puxa ainda mais o texto para cima */
        align-items: center;
        text-align: center;
        padding: 2rem 1rem 0; /* Espaço para o fade suave */
        position: relative;
        z-index: 10;
        width: 100%;
        /* Sombra/degradê azul escuro para destacar a letra sobre a foto */
        background: linear-gradient(to bottom, rgba(10, 17, 40, 0) 0%, var(--bg-dark) 20%, var(--bg-dark) 100%);
    }

    .hero-badges {
        align-items: center;
    }
    
    .hero-badge-row {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.3;
        color: var(--gold);
        text-transform: uppercase;
        font-family: var(--font-serif);
        margin-bottom: 0.5rem; /* Menor margem */
    }

    .hero-title em {
        color: var(--cream);
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .hero-subtitle {
        margin: 0 auto 1.2rem; /* Reduz margem de 2.5rem para 1.2rem */
        font-size: 0.9rem; /* Fonte levemente menor para caber melhor */
    }

    .hero-title br,
    .hero-subtitle br {
        display: none;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .btn-hero-solid {
        width: 100%;
        max-width: 300px;
        text-align: center;
        border-radius: 50px;
        background: linear-gradient(135deg, var(--gold-bright), var(--gold));
        color: var(--bg-darker);
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(197, 168, 124, 0.4);
    }

    .hero-visual {
        align-items: flex-end;
        justify-content: center;
        position: relative; /* Para posicionar a caixa flutuante */
    }

    .hero-person-img {
        position: static;
        height: auto;
        width: 100%;
        max-width: 320px; /* Reduzido de 450px para caber melhor na tela */
        margin: 0 auto;
        display: block;
        object-position: bottom center;
        transform: scaleX(-1);
    }
    
    .hero-floating-box {
        display: block;
        position: absolute;
        bottom: 10%;
        right: 5%;
        background: rgba(10, 8, 7, 0.5);
        border: 1px solid rgba(197, 168, 124, 0.3);
        border-radius: 8px;
        padding: 0.6rem 1rem;
        color: var(--cream);
        font-size: 0.65rem;
        text-align: center;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        max-width: 180px;
        z-index: 20;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.4;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 2rem;
        gap: 2rem;
        text-align: center;
        border-bottom: 2px solid var(--gold);
        backdrop-filter: blur(10px);
    }

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

    .mobile-toggle {
        display: flex;
        z-index: 200;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .areas, .gallery {
        padding: 4rem 0;
    }

    .areas-grid {
        max-height: 65vh;
        padding-right: 10px;
        padding-bottom: 1rem;
        align-content: start;
    }
}

/* Area Tags */
.areas-tags {
    margin-top: 4rem;
    text-align: center;
}

.areas-tags h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.area-tag {
    background: rgba(10, 8, 7, 0.4);
    border: 1px solid var(--border);
    color: var(--cream);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: default;
}

.area-tag:hover {
    border-color: var(--gold);
    color: var(--bg-darker);
    background: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 168, 124, 0.2);
}
