/* 
  Vivance Instituto - Landing Page Styles
  Palette:
  - White #FFFFFF (Main backgrounds)
  - Marble Light #F9F9F9 (Alternate backgrounds)
  - Marble Gray #ECECEC (Borders, subtle elements)
  - Gold #D4AF37 (Primary accents, CTAs)
  - Dark #1A1A1A (Primary text)
  - Dark Gray #4A4A4A (Secondary text)
*/

:root {
    --color-white: #FFFFFF;
    --color-marble-light: #F9F9F9;
    --color-marble-gray: #ECECEC;
    --color-gold: #C9A050;
    --color-gold-hover: #B38D44;
    --color-dark: #1A1A1A;
    --color-dark-gray: #4A4A4A;

    --font-serif: 'Newsreader', serif;
    --font-sans: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

/* Typography */
h1, h2, h3, h4, .serif-title {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.mono-text {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.sans-subtitle {
    font-family: var(--font-sans);
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-normal);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.bg-dark { background-color: var(--color-dark); color: var(--color-white); }
.bg-white { background-color: var(--color-white); }
.bg-marble { background-color: var(--color-marble-light); }

.text-dark { color: var(--color-dark); }
.text-white { color: var(--color-white); }
.text-gold { color: var(--color-gold); }
.text-gray { color: var(--color-dark-gray); }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary, .btn-gold {
    background-color: var(--color-gold);
    color: #fff;
}

.btn-gold:hover, .btn-primary:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 160, 80, 0.3);
}

.btn-outline-gold {
    background-color: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.bg-dark .btn-outline-gold {
    color: var(--color-white);
    border-color: var(--color-gold);
}

.btn-outline-gold:hover {
    background-color: rgba(201, 160, 80, 0.1);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-dark);
    transition: padding var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

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

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.mobile-socials {
    display: none;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    color: var(--color-dark-gray);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: width var(--transition-fast);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-menu, .header-cta {
        display: none;
    }
    .header-container {
        justify-content: center;
    }
    .mobile-toggle {
        display: block;
        z-index: 1000;
        position: absolute;
        right: 1.5rem;
    }
    .header .logo {
        z-index: 1000;
        position: relative;
    }
    .header.menu-open .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--color-white);
        padding: 2rem;
        gap: 2.5rem;
        z-index: 999;
    }
    .header.menu-open .nav-menu a {
        font-size: 1.75rem;
        font-family: var(--font-serif);
        color: var(--color-dark);
        font-weight: 400;
    }
    .header.menu-open ~ .floating-whatsapp {
        display: none;
    }
    .mobile-socials {
        display: flex;
        gap: 2rem;
        margin-top: 2rem;
        align-items: center;
        justify-content: center;
    }
    .mobile-socials a {
        color: var(--color-dark);
    }
    .mobile-socials a::after {
        display: none;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem; /* for header */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-marble-light) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
}

.eyebrow {
    display: block;
    margin-bottom: 1rem;
    color: var(--color-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.subtitle-wrap {
    margin-bottom: 2.5rem;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark-gray);
}

.signature-line {
    width: 200px;
    height: 40px;
    display: block;
}

.path-anim {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawPath 2.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: rgba(201, 160, 80, 0.05);
    border: 1px dashed rgba(201, 160, 80, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image-placeholder::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid var(--color-gold);
    border-radius: 12px;
    opacity: 0.3;
    pointer-events: none;
}

.placeholder-box {
    text-align: center;
    padding: 2rem;
    color: var(--color-dark-gray);
}

.divider-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 4vw;
    min-height: 40px;
    z-index: 1;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .hero-image-placeholder {
        aspect-ratio: 1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .eyebrow {
        text-align: center;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    .subtitle-wrap {
        text-align: center !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .hero h1 {
        text-align: center;
    }
}

/* Sobre Section */
.sobre-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--color-marble-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(26, 26, 26, 0.1);
}

.sobre-image-placeholder .placeholder-box {
    color: var(--color-gold);
}

.sobre-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.sobre-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--color-dark-gray);
}

.signature-line-small {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .sobre-image-placeholder {
        order: 2;
    }
    .sobre-content {
        order: 1;
    }
}

/* Serviços Section */
.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-dark-gray);
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Focus hover effect for the entire grid */
.grid-services:has(.service-card:hover) .service-card:not(:hover) {
    opacity: 0.4;
    filter: blur(1.5px);
    transform: scale(0.98);
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(201, 160, 80, 0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: var(--color-gold);
    z-index: 10;
    position: relative;
}

.service-card .icon-wrap {
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    background: rgba(201, 160, 80, 0.08);
    border-radius: 50%;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-dark-gray);
}

/* Metodologia */
.metodologia-content h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0 1.5rem;
}

.metodologia-content p {
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
}

.diferenciais-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.diferenciais-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.li-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.metodologia-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.border-gold {
    border: 1px dashed var(--color-gold);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Instituto Vivance */
.clinica-gallery {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.clinica-gallery::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.clinica-gallery .clinica-image {
    flex: 0 0 85%;
    max-width: 400px;
    scroll-snap-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.clinica-gallery .clinica-image:hover {
    transform: scale(1.02);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--color-gold);
    transform: scale(1.4);
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
}

.clinica-gallery .placeholder-box {
    aspect-ratio: 16/9;
    background: var(--color-marble-light);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
}

.social-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-marble-gray);
    border-radius: 40px;
    color: var(--color-dark);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
}

.social-card:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(201, 160, 80, 0.2);
}

@media (max-width: 768px) {
    .clinica-gallery {
        grid-template-columns: 1fr;
    }
}

/* Localização */
.loc-content h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0 1.5rem;
}

.loc-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--color-dark-gray);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-sans);
    font-size: 1.05rem;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
}

.badge-crm {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }
    .footer-links {
        text-align: center;
        width: 100%;
    }
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    animation: pulse 2s infinite;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.floating-whatsapp.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
