@import 'variables.css';

/* ------------------------------------------------------------------
   RESET & BASE
------------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.about-list {
    list-style: none;
    margin-top: 25px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-main);
}

.check-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

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

/* ------------------------------------------------------------------
   TYPOGRAPHY
------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.25;
}

h1 { font-weight: 700; margin-bottom: 1rem; }
h2 { font-weight: 600; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }

/* ------------------------------------------------------------------
   COMPONENTS & UTILITIES
------------------------------------------------------------------ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section { padding: 100px 0; }
.bg-white { background-color: var(--bg-body); }
.bg-alt { background-color: var(--bg-alt); }

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* GRIDS */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

.text-center { text-align: center; }

/* ------------------------------------------------------------------
   NAVBAR
------------------------------------------------------------------ */
.navbar {
    height: var(--header-height);
    background-color: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-highlight { color: var(--primary); }

.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: block;
}

.nav-link {
    font-weight: 500;
    color: var(--text-body);
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 4px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .mobile-toggle { display: flex; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column !important;
        padding: 40px;
        gap: 20px;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.4s ease;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-actions .btn-primary {
        display: none;
    }
}

/* ------------------------------------------------------------------
   HERO & ABOUT
------------------------------------------------------------------ */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .headline { font-size: 2.5rem; }
}

.headline {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(90deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.doctor-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}
.video-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.experience-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
}

/* ------------------------------------------------------------------
   CARDS & SPECIALTIES
------------------------------------------------------------------ */
.service-card {
    background: #fff;
    padding: 35px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon {
    width: 32px; height: 32px; fill: var(--primary);
}

/* ------------------------------------------------------------------
   CONVÊNIOS PREMIUM
------------------------------------------------------------------ */
.logo-card {
    background: var(--white);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.logo-card:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.logo-card img {
    max-height: 90px;
    max-width: 85%;
    object-fit: contain;
}

/* ------------------------------------------------------------------
   FOOTER & BOTTOM
------------------------------------------------------------------ */
.footer {
    background-color: #f1f5f9;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    color: var(--text-muted);
}

/* ------------------------------------------------------------------
   ANIMATIONS & REVEAL
------------------------------------------------------------------ */
.revealed { opacity: 1 !important; transform: translate(0, 0) !important; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-img, .experience-card {
    animation: float 6s ease-in-out infinite;
}

/* ------------------------------------------------------------------
   PREMIUM PLUS COMPONENTS
------------------------------------------------------------------ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.whatsapp-icon { width: 24px; height: 24px; fill: currentColor; }

@media (max-width: 768px) {
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 15px; right: 20px; bottom: 20px; }
}

.location-card.premium {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid #eef2f6;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-card.premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #0066cc;
}

.location-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.location-badge { background: #e3f2fd; color: #0066cc; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.loc-icon { width: 18px; height: 18px; stroke: #0066cc; fill: none; stroke-width: 2; margin-right: 10px; }

.location-actions { display: flex; gap: 10px; margin-top: 25px; }

.cta-premium {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.cta-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(37, 99, 235, 0.6) 100%);
    z-index: 1;
}

.cta-premium .container {
    position: relative;
    z-index: 2;
}

.cta-premium h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-premium p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background-color: #fff;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-white:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.btn-sm { padding: 10px 16px; font-size: 0.85rem; flex: 1; text-align: center; }

/* Service Image Card Premium */
.service-image-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.service-image-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image-card:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.service-content p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.service-content .btn-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    margin-top: auto;
}

.service-content .btn-link:hover {
    color: var(--accent);
}
