/* =========================================================================
   CONTATO.CSS - Instituto Longevinté
   Design System: IM8 Health / Antigravity Refined
   Aesthetic: Brutalist Minimalist, Dark Luxury, Clinical Precision
   ========================================================================= */

:root {
    --c-bg: #041611;          /* Dark Emerald — padrão IM8 */
    --c-primary: #D4AF37;     /* Clinical Gold */
    --c-primary-light: #E8D5B7;
    --c-primary-dark: #C9A961;
    --c-accent: #858481;
    --c-text: #f8f8f7;        /* Off-white */
    --c-text-muted: #858481;
    --c-footer-bg: #030f0c;
    --c-glass: rgba(26, 26, 25, 0.4);
    --c-glass-border: rgba(212, 175, 55, 0.15);
    
    --font-heading: 'ABC Arizona Flare', serif;
    --font-body: 'Aeonik', sans-serif;
    --font-mono: 'NB Architekt', monospace;
    
    --trans-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --trans-reveal: 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.ds-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================================================
   NAVBAR (Synchronized Framework)
   ========================================================================= */
.ds-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(212, 175, 55, 0);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ds-navbar.scrolled {
    height: 80px;
    background: rgba(4, 22, 17, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    flex-shrink: 1;
    min-width: 0;
}

.nav-logo img {
    height: 140px;
    width: auto;
    max-width: clamp(160px, 15vw, 220px);
    object-fit: contain;
    transition: var(--trans-smooth);
}

.nav-logo:hover img {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.nav-menu {
    display: flex;
    gap: clamp(15px, 2.5vw, 40px);
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
    color: var(--c-text);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--trans-fast);
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--c-primary);
}

.nav-toggle { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 54px;
    padding: 0 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--c-primary) !important;
    color: #041611 !important;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--c-primary-light) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.contact-hero {
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4,22,17,0.4) 0%, var(--c-bg) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 300;
    color: #fff;
    letter-spacing: -0.02em;
}

/* =========================================================================
   CONVERSION GRID
   ========================================================================= */
.conversion-section {
    padding: 100px 0;
}

.conversion-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.glass-card {
    background: var(--c-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--c-glass-border);
    padding: 40px;
    margin-bottom: 24px;
}

/* Technical Labels */
.card-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 20px;
    display: block;
}

.card-value {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--c-text);
    margin-bottom: 4px;
    display: block;
}

.card-subtext {
    font-size: 14px;
    color: var(--c-accent);
    margin-bottom: 12px;
}

/* Operational Hours Table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 13px;
    font-family: var(--font-body);
}

.hours-day { color: var(--c-text); }
.hours-time { color: var(--c-accent); text-align: right; font-family: var(--font-mono); }

/* =========================================================================
   MASTER FOOTER (Synchronized)
   ========================================================================= */
.ds-footer {
    background-color: #030f0c;
    padding: 120px 0 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.footer-col-brand img {
    width: 180px;
    margin-bottom: 24px;
}

.footer-brand-text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--c-text-muted);
    max-width: 280px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-bottom: 32px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--c-text-muted);
    transition: all var(--trans-fast);
    display: block;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--c-primary);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.footer-contact-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-primary-light);
    opacity: 0.6;
}

.footer-contact-value {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--c-text-muted);
}

.footer-social-icons {
    display: flex;
    gap: 20px;
}

.footer-social-link {
    color: var(--c-text-muted);
    transition: color 0.4s ease, transform 0.4s ease;
}

.footer-social-link:hover {
    color: var(--c-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(133, 132, 129, 0.5);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(133, 132, 129, 0.5);
    text-decoration: none;
}

/* =========================================================================
   APPOINTMENT FORM
   ========================================================================= */
.appointment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group.full { grid-column: span 2; }

.form-group label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--c-primary);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    opacity: 0.8;
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--c-text);
    border-radius: 0;
    appearance: none;
    transition: var(--trans-fast);
}

/* Specific fix for Select visibility */
select.form-control {
    background-color: transparent;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C5A059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 24px;
}

select.form-control option {
    background-color: #111 !important;
    color: #fff !important;
    padding: 10px;
}

.form-control:focus {
    outline: none;
    border-bottom-color: #fff;
    box-shadow: 0 4px 12px rgba(255,255,255,0.05);
}

.form-control::placeholder {
    color: #444;
}

/* =========================================================================
   MAP CONTAINER
   ========================================================================= */
.integrated-map {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--c-glass-border);
    position: relative;
    background: #041611;
}

.integrated-map iframe {
    width: 100% !important;
    height: 100% !important;
    filter: grayscale(1) invert(0.9) contrast(1.2) opacity(0.8);
    transition: filter 0.4s ease;
}

.integrated-map:hover iframe {
    filter: grayscale(0.2) invert(0) contrast(1);
}





/* SHINE EFFECT */
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(30deg);
    transition: 0.6s;
}

.btn-shine:hover::after {
    left: 150%;
}

/* =========================================================================
   CINEMATICS & OVERLAYS
   ========================================================================= */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04; /* Requested 3-5% */
    mix-blend-mode: overlay;
    background-image: url('data:image/svg+xml,%3Csvg viewBox=\'0 0 256 256\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cfilter id=\'noise\'%3E%3CfeTurbulence type=\'fractalNoise\' baseFrequency=\'0.65\' numOctaves=\'3\' stitchTiles=\'stitch\'/%3E%3C/filter%3E%3Crect width=\'100%25\' height=\'100%25\' filter=\'url(%23noise)\'/%3E%3C/svg%3E');
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   FOOTER MANIFESTO
   ========================================================================= */
.footer-manifesto {
    padding: 120px 0;
    text-align: center;
}

.manifesto-title {
    font-family: var(--font-heading);
    font-size: 40px;
    color: var(--c-text);
    margin-bottom: 30px;
}

.manifesto-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--c-accent);
}

/* WhatsApp Float Master - Premium Clinical Style */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background: #fff;
    border: 1px solid var(--c-primary); /* Champagne Gold Border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 20px rgba(197, 160, 89, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden; /* Added to clip shine/animations */
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--c-primary);
}

.whatsapp-float svg { 
    fill: #000; 
    width: 30px; 
    transition: fill 0.3s;
}

.whatsapp-float:hover svg {
    fill: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .conversion-grid { grid-template-columns: 1fr; gap: 40px; }

    /* Navbar & Hamburger */
    .nav-toggle {
        display: flex;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
        position: relative;
    }
    .hamburger { width: 24px; height: 2px; background: var(--c-text); display: block; position: relative; transition: 0.3s; }
    .hamburger::before, .hamburger::after { content: ''; position: absolute; width: 24px; height: 2px; background: var(--c-text); left: 0; transition: 0.3s; }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    .menu-open .hamburger { background: transparent; }
    .menu-open .hamburger::before { top: 0; transform: rotate(45deg); }
    .menu-open .hamburger::after { bottom: 0; transform: rotate(-45deg); }

    .nav-menu {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(4, 22, 17, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 40px; opacity: 0; visibility: hidden; transition: var(--trans-smooth);
    }
    .nav-menu.open { display: flex !important; opacity: 1; visibility: visible; }
    .nav-link { font-size: 24px; }
    .btn-nav-wrapper { display: none; }
}

@media (max-width: 768px) {
    .appointment-form { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
    .form-group.full { grid-column: span 1; }
    .hero-title { font-size: 42px; }
    .form-panel { padding: 40px 20px; }
    .hero-bg { height: 100%; top: 0; }
    .conversion-section { padding: 60px 0; }
    .glass-card { padding: 24px 20px; }
    .card-value { font-size: 15px; }
    .integrated-map { height: 200px; }
    .footer-manifesto { padding: 40px 0; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 34px; }
    .section-title { font-size: 28px; }
    .form-control { font-size: 15px; }
    .contact-hero { min-height: 50vh; }
    .hours-table td { font-size: 12px; padding: 12px 0; }
}

/* =========================================================================
           MOBILE RESPONSIVENESS - NAVBAR & HAMBURGER
           ========================================================================= */
        @media (max-width: 991px) {
            .nav-toggle {
                display: flex !important;
                background: transparent;
                border: none;
                cursor: pointer;
                z-index: 1001;
                padding: 10px;
                position: relative;
            }
            .hamburger {
                width: 24px;
                height: 2px;
                background: #d4a843;
                display: block;
                position: relative;
                transition: 0.3s;
            }
            .hamburger::before, .hamburger::after {
                content: '';
                position: absolute;
                width: 24px;
                height: 2px;
                background: #d4a843;
                left: 0;
                transition: 0.3s;
            }
            .hamburger::before { top: -8px; }
            .hamburger::after { bottom: -8px; }
            .menu-open .hamburger { background: transparent; }
            .menu-open .hamburger::before { top: 0; transform: rotate(45deg); }
            .menu-open .hamburger::after { bottom: 0; transform: rotate(-45deg); }
            .nav-menu {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                width: 100% !important;
                height: 100vh !important;
                background: rgba(4, 22, 17, 0.98) !important;
                backdrop-filter: blur(20px) !important;
                flex-direction: column !important;
                justify-content: center !important;
                align-items: center !important;
                gap: 40px !important;
                opacity: 0 !important;
                visibility: hidden !important;
                transition: all 0.3s ease !important;
                z-index: 1000 !important;
            }
            .nav-menu.open {
                display: flex !important;
                opacity: 1 !important;
                visibility: visible !important;
            }
            .nav-link { font-size: 24px !important; }
            .btn-nav-wrapper { display: none !important; }
            body, html { overflow-x: hidden; width: 100%; }
            .ds-container { padding: 0 20px !important; }
        }

        @media (max-width: 991px) {
            /* Hero */
            .contact-hero {
                min-height: 40vh !important;
                padding: 120px 20px 60px !important;
                text-align: center;
            }
            .contact-hero h1 { font-size: clamp(36px, 10vw, 60px) !important; }

            /* Conversion Grid */
            .conversion-grid {
                grid-template-columns: 1fr !important;
                gap: 40px;
            }
            .conversion-left img {
                width: 100% !important;
                height: 260px !important;
                object-fit: cover !important;
                border-radius: 12px;
            }
            .conversion-right { padding: 0 !important; }

            /* Form */
            .form-row {
                flex-direction: column !important;
                gap: 16px !important;
            }
            .form-group { width: 100% !important; }
            .btn-submit { width: 100% !important; }

            /* Footer */
            .footer-grid {
                grid-template-columns: 1fr !important;
                gap: 32px;
            }
            .footer-manifesto { text-align: center; }
        }
        @media (max-width: 480px) {
            .contact-hero h1 { font-size: clamp(28px, 9vw, 42px) !important; }
        }
