:root {
    --color-forest: #2D4A3E;
    --color-forest-dark: #1E342B;
    --color-forest-light: #3E6152;
    --color-champagne: #C9A962;
    --color-champagne-dark: #A88A47;
    --color-champagne-light: #D9BF82;
    --color-cream: #F8F4ED;
    --color-cream-dark: #EFE8D8;
    --color-blush: #D4A5A5;
    --color-blush-light: #EAC6C6;
    --color-brown: #3A3226;
    --color-brown-light: #5A4E3E;

    --font-serif-display: 'Playfair Display', serif;
    --font-serif-body: 'Lora', serif;
    --font-script-1: 'Great Vibes', cursive;
    --font-script-2: 'Dancing Script', cursive;

    --shadow-soft: 0 10px 40px rgba(45, 74, 62, 0.08);
    --shadow-hover: 0 20px 60px rgba(45, 74, 62, 0.15);
    --shadow-glow: 0 0 60px rgba(201, 169, 98, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif-body);
    color: var(--color-brown);
    background-color: var(--color-cream);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif-display);
    color: var(--color-forest-dark);
    line-height: 1.25;
}

.serif-display {
    font-family: var(--font-serif-display);
}

.serif-body {
    font-family: var(--font-serif-body);
}

.script-caption {
    font-family: var(--font-script-2);
    color: var(--color-champagne-dark);
    font-size: 1.4rem;
    letter-spacing: 0.3px;
}

.script-highlight {
    font-family: var(--font-script-1);
    color: var(--color-champagne);
    font-weight: 400;
    font-size: 1.25em;
    line-height: 1;
    display: inline-block;
    padding: 0 0.15em;
}

.script-highlight-soft {
    font-family: var(--font-script-2);
    color: var(--color-forest);
    font-weight: 600;
    font-size: 1.15em;
    line-height: 1;
    display: inline-block;
    padding: 0 0.15em;
}

.section-eyebrow {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-forest-dark);
}

.section-title em {
    font-style: normal;
}

.section-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-champagne), transparent);
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-champagne);
    top: 50%;
    transform: translateY(-50%);
}

.section-divider::before {
    left: -4px;
}

.section-divider::after {
    right: -4px;
}

.py-lg-7 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Navbar */
#mainNav {
    background-color: transparent;
    transition: all 0.35s ease;
    padding: 1.25rem 0;
    z-index: 1050;
}

#mainNav.navbar-solid {
    background-color: rgba(30, 52, 43, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.6rem 0;
}

.nav-brand-script {
    font-family: var(--font-script-1);
    font-size: 2.3rem !important;
    color: var(--color-champagne-light) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    line-height: 1;
    padding: 0 !important;
}

#mainNav:not(.navbar-solid) .nav-link {
    color: rgba(248, 244, 237, 0.9);
}

#mainNav.navbar-solid .nav-link,
#mainNav.navbar-solid .navbar-brand {
    color: var(--color-cream) !important;
    text-shadow: none;
}

.navbar-nav .nav-link {
    font-family: var(--font-serif-display);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0 !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--color-champagne);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--color-champagne-light) !important;
}

.navbar-toggler {
    border: 1.5px solid rgba(248, 244, 237, 0.7);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    filter: invert(1) brightness(1.1);
}

#mainNav.navbar-solid .navbar-toggler {
    border-color: rgba(248, 244, 237, 0.9);
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('../img/01.jpg') no-repeat center center / cover fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(30, 52, 43, 0.55) 0%,
            rgba(30, 52, 43, 0.72) 40%,
            rgba(30, 52, 43, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 0 5rem;
    width: 100%;
    animation: heroFadeIn 1.4s ease-out both;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-size: 1.05rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-champagne-light);
    font-weight: 400;
    opacity: 0.95;
}

.logo-text {
    font-family: var(--font-script-1);
    font-size: clamp(4rem, 10vw, 7.5rem);
    line-height: 1;
    color: var(--color-cream);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    margin: 0.5rem 0 1rem;
    padding: 0.3em 0;
    position: relative;
    display: inline-block;
}

.logo-text::before,
.logo-text::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-serif-body);
    font-size: 0.22em;
    color: var(--color-champagne);
    opacity: 0.85;
}

.logo-text::before {
    left: -1.6em;
}

.logo-text::after {
    right: -1.6em;
}

.hero-subtitle {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 400;
    max-width: 780px;
    margin: 0 auto 3rem;
    color: rgba(248, 244, 237, 0.96);
}

.hero-subtitle em {
    font-style: italic;
}

.video-wrapper {
    max-width: 860px;
    width: 100%;
}

.video-frame {
    border-radius: 8px;
    overflow: hidden;
    border: 2.5px solid rgba(201, 169, 98, 0.85);
    box-shadow: var(--shadow-glow), 0 25px 70px rgba(0, 0, 0, 0.35);
    background: #000;
}

.video-frame iframe {
    border: 0;
    display: block;
}

.video-caption {
    color: var(--color-champagne-light);
    font-size: 1.4rem;
    opacity: 0.95;
}

/* Botões */
.btn-hero,
.btn-ghost,
.btn-submit {
    font-family: var(--font-serif-display);
    font-size: 1.05rem;
    letter-spacing: 0.6px;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    border: none;
    transition: all 0.35s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    min-height: 44px;
    text-decoration: none;
}

.btn-hero {
    background-color: var(--color-champagne);
    color: var(--color-forest-dark);
    box-shadow: 0 8px 24px rgba(201, 169, 98, 0.35);
}

.btn-hero:hover,
.btn-hero:focus-visible {
    background-color: var(--color-champagne-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(201, 169, 98, 0.5);
    outline: none;
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-cream);
    border: 1.5px solid rgba(248, 244, 237, 0.8);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background-color: rgba(248, 244, 237, 0.1);
    border-color: var(--color-champagne);
    color: var(--color-champagne-light);
    transform: translateY(-2px);
    outline: none;
}

.btn-submit {
    background-color: var(--color-forest);
    color: var(--color-cream);
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(45, 74, 62, 0.28);
}

.btn-submit:hover,
.btn-submit:focus-visible {
    background-color: var(--color-forest-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(45, 74, 62, 0.4);
    outline: none;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(248, 244, 237, 0.8);
    font-size: 1.3rem;
    animation: bounceDown 2s ease-in-out infinite;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(248, 244, 237, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-scroll-indicator:hover {
    color: var(--color-champagne-light);
    border-color: var(--color-champagne);
    transform: translateX(-50%) translateY(3px);
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.75;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 1;
    }
}

/* About */
.about-section {
    background-color: var(--color-cream);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-image-frame {
    position: relative;
    padding: 0 1.5rem 1.5rem 0;
}

.about-image-frame::before {
    content: '';
    position: absolute;
    inset: 2rem -1.5rem -1.5rem 2rem;
    border: 1.5px solid var(--color-champagne);
    border-radius: 6px;
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    object-fit: cover;
    max-height: 620px;
}

.about-image-badge {
    position: absolute;
    right: 0.5rem;
    bottom: -1rem;
    z-index: 2;
    background: var(--color-cream);
    padding: 1.1rem 1.5rem;
    border-radius: 4px;
    max-width: 220px;
    box-shadow: var(--shadow-soft);
    border-left: 3px solid var(--color-champagne);
    font-size: 1.35rem;
    text-align: center;
    color: var(--color-forest-dark);
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-brown-light);
    line-height: 1.85;
}

.feature-item {
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(201, 169, 98, 0.3);
    transition: all 0.3s ease;
}

.feature-icon {
    font-size: 1.75rem;
    color: var(--color-champagne-dark);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-forest-dark);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--color-brown-light);
    line-height: 1.6;
    margin: 0;
}

.feature-item:hover {
    transform: translateY(-3px);
    background: rgba(201, 169, 98, 0.05);
    border-top-color: var(--color-champagne);
    border-radius: 4px;
}

/* Divider */
.divider-section {
    background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-dark) 100%);
    position: relative;
    overflow: hidden;
}

.divider-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(201, 169, 98, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 165, 165, 0.12), transparent 55%);
}

.divider-leaf {
    color: var(--color-champagne);
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.divider-quote {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--color-cream);
    font-weight: 400;
    font-style: italic;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.divider-quote em {
    font-style: normal;
}

/* Gallery */
.gallery-section {
    background-color: var(--color-cream);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -12%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(212, 165, 165, 0.09), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.gallery-intro {
    max-width: 620px;
    color: var(--color-brown-light);
    font-size: 1.05rem;
}

.gallery-grid {
    margin-top: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: zoom-in;
    box-shadow: var(--shadow-soft);
    margin: 0;
    height: 100%;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1), filter 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.08);
    filter: brightness(1.05) saturate(1.08);
}

.gallery-item-featured .gallery-image {
    height: 100%;
    min-height: 320px;
}

.gallery-caption {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 45%,
        rgba(30, 52, 43, 0.55) 75%,
        rgba(30, 52, 43, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.5rem 1.3rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin: 0;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.gallery-caption h5 {
    color: var(--color-cream);
    font-size: 1.3rem;
    margin: 0 0 0.25rem;
    font-weight: 500;
}

.gallery-caption p {
    color: var(--color-champagne-light);
    margin: 0;
}

.gallery-empty-tile {
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, rgba(201, 169, 98, 0.12) 100%);
    border: 2px dashed rgba(201, 169, 98, 0.5);
    border-radius: 6px;
    min-height: 320px;
    color: var(--color-champagne-dark);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.gallery-empty-tile i {
    font-size: 2.5rem;
    color: var(--color-champagne);
}

.gallery-empty-tile h5 {
    color: var(--color-forest-dark);
    font-weight: 500;
}

.gallery-empty-tile p {
    font-size: 1.6rem;
    color: var(--color-champagne-dark);
    margin: 0;
}

/* Galeria Modal */
.gallery-modal-content {
    background: transparent;
    border: none;
}

.gallery-modal-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    color: #fff !important;
    font-size: 1.8rem;
    opacity: 0.95;
    z-index: 10;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.gallery-modal-close:hover {
    color: var(--color-champagne-light) !important;
    opacity: 1;
}

.gallery-modal-img {
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.modal-backdrop.show {
    opacity: 0.88;
}

/* Contact */
.contact-section {
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 74, 62, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-card {
    background: #fffdfa;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-champagne-dark), var(--color-champagne-light), var(--color-blush-light), var(--color-champagne));
}

.contact-intro {
    max-width: 560px;
    color: var(--color-brown-light);
    font-size: 1.05rem;
}

.contact-form .form-label {
    font-size: 0.95rem;
    color: var(--color-forest-dark);
    font-weight: 500;
    margin-bottom: 0.4rem;
    padding-left: 0.3rem;
}

.input-field-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-champagne-dark);
    font-size: 0.95rem;
    z-index: 2;
    pointer-events: none;
}

.input-field {
    padding-left: 2.6rem !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    border: 1.5px solid rgba(201, 169, 98, 0.35) !important;
    border-radius: 6px !important;
    font-family: var(--font-serif-body) !important;
    color: var(--color-brown) !important;
    background-color: var(--color-cream) !important;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.input-field-textarea {
    padding-left: 1rem !important;
    padding-top: 0.85rem !important;
    resize: vertical;
    min-height: 110px;
}

.input-field:focus {
    border-color: var(--color-champagne) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3.5px rgba(201, 169, 98, 0.15) !important;
}

.input-field::placeholder {
    color: rgba(58, 50, 38, 0.45);
    font-style: italic;
}

.form-control.is-invalid {
    border-color: var(--bs-form-invalid-border-color) !important;
    background-image: none !important;
    padding-right: 0.75rem;
}

.form-success-message {
    background: linear-gradient(90deg, rgba(45, 74, 62, 0.06), rgba(201, 169, 98, 0.1));
    border-left: 4px solid var(--color-forest);
    border-radius: 6px;
    padding: 1.5rem 1rem;
    animation: fadeSlideIn 0.6s ease-out both;
}

.form-success-icon {
    font-size: 2.5rem;
    color: var(--color-forest);
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.site-footer {
    background: var(--color-forest-dark);
    color: var(--color-cream);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-champagne), transparent);
}

.footer-brand {
    color: var(--color-champagne-light) !important;
    font-size: 2rem;
    text-decoration: none;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(248, 244, 237, 0.25);
    color: var(--color-cream);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
}

.social-link:hover {
    background-color: var(--color-champagne);
    border-color: var(--color-champagne);
    color: var(--color-forest-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(201, 169, 98, 0.4);
}

.footer-copy {
    font-size: 0.9rem;
    color: rgba(248, 244, 237, 0.75);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(248, 244, 237, 0.08);
}

.footer-tagline {
    color: rgba(248, 244, 237, 0.7);
    font-size: 0.95rem;
}

.footer-tagline em {
    color: var(--color-champagne-light);
    font-size: 1.2rem;
    margin-left: 0.35rem;
}

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.reveal-on-scroll:nth-child(6) { transition-delay: 0.40s; }

/* Responsividade */
@media (max-width: 991.98px) {
    #mainNav {
        background-color: rgba(30, 52, 43, 0.95);
        backdrop-filter: blur(6px);
        padding: 0.8rem 0;
    }
    #mainNav .navbar-nav {
        padding-top: 1rem;
        gap: 0.25rem;
    }
    #mainNav .navbar-nav .nav-link {
        color: var(--color-cream) !important;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .logo-text::before,
    .logo-text::after {
        display: none;
    }

    .gallery-image {
        height: 260px;
    }

    .gallery-empty-tile {
        min-height: 260px;
    }
}

@media (max-width: 767.98px) {
    .py-lg-7 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-content {
        padding: 7rem 0 4rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    .btn-hero,
    .btn-ghost,
    .btn-submit {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .about-image-badge {
        right: 1rem;
        bottom: -0.5rem;
        max-width: 180px;
        padding: 0.9rem 1.1rem;
    }

    .about-image-frame {
        padding: 0 1rem 1rem 0;
    }

    .gallery-modal-close {
        top: -2rem;
    }

    .footer-copy {
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .gallery-image {
        height: 230px;
    }

    .gallery-empty-tile {
        min-height: 230px;
    }

    .section-divider {
        width: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
    .hero-content {
        animation: none !important;
    }
}

::selection {
    background: var(--color-champagne);
    color: var(--color-forest-dark);
}
