/* site-radius-home.css — Clínica Radius (home) v1.1 */

:root {
    --primary-color: #00A19C;
    --primary-dark: #008B87;
    --secondary-color: #2C3E50;
    --accent-color: #3498DB;
    --text-dark: #2C3E50;
    --text-light: #64748b;
    --white: #FFFFFF;
    --light-gray: #F8FAFB;
    --border-color: #E9ECEF;
    --container: 72rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 5rem;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    overflow-x: hidden;
    font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Popup modal */
.form-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.form-modal-overlay.show { display: flex; }

.form-modal-container { width: min(520px, 100%); }

.form-modal-container--banner { width: min(640px, 100%); }

.lead-form-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 28px;
    position: relative;
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.35);
}

.lead-form-card--banner {
    padding: 18px 18px 14px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 0;
    background: #f1f5f9;
    color: #64748b;
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.lead-form-header { margin-bottom: 20px; }

.lead-tag {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    border-radius: var(--radius-full);
}

.lead-form-header h2 {
    margin: 12px 0 4px;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #0f172a;
}

.lead-form-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.lead-form { display: grid; gap: 14px; }

#site-popup-frame {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 14px;
    height: min(70vh, 720px);
}

/* Top bar */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-bar-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-info, .top-menu, .social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-info a, .top-menu a, .social-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i, .social-links i {
    margin-right: 5px;
}

.social-links a {
    margin: 0 10px;
    font-size: 14px;
}

.contact-info a:hover, .top-menu a:hover, .social-links a:hover {
    opacity: 0.85;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    height: 56px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after,
.nav-links a:not(.btn-primary):focus-visible::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.35rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 998;
    border: 0;
    cursor: pointer;
}

.nav-overlay.active { display: block; }

/* Hero */
.hero {
    position: relative;
    min-height: clamp(420px, 72vh, 640px);
    background:
        linear-gradient(rgba(0, 40, 38, 0.55), rgba(0, 40, 38, 0.65)),
        url('../images/rad.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 42rem;
    padding: var(--space-8) var(--space-4);
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 3.25rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.2rem);
    margin-bottom: var(--space-8);
    opacity: 0.95;
    font-weight: 300;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn-outline-light {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.85);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Trust bar */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-4) 0;
}

.trust-bar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6) var(--space-8);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

a.trust-item-link {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

a.trust-item-link:hover {
    color: var(--primary-dark);
}

a.trust-item-link:hover i {
    transform: scale(1.08);
}

/* Slideshow */
.slideshow-section {
    max-width: var(--container);
    margin: var(--space-12) auto;
    padding: 0 var(--space-4);
}

.slideshow-container {
    height: clamp(220px, 42vw, 420px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: relative;
    background: #0f172a;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    color: var(--white);
    padding: 48px 24px 24px;
    text-align: center;
}

.slide-content h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 8px;
    font-weight: 600;
}

.slide-content p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.slideshow-dots button {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.slideshow-dots button.active,
.slideshow-dots button:hover {
    background: var(--primary-color);
    transform: scale(1.15);
}

/* Content sections */
.section-container {
    max-width: var(--container);
    margin: var(--space-16) auto;
    padding: 0 var(--space-4);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-8);
}

.info-box {
    background: var(--white);
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.info-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.info-box h2 {
    color: var(--text-dark);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    margin-bottom: var(--space-6);
    font-weight: 600;
    position: relative;
}

.info-box h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.info-box p {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: var(--space-4);
}

.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    color: var(--text-light);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 24px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.services-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.services-list li:last-child { border-bottom: none; }

/* Convênios chips */
#convenios {
    scroll-margin-top: 100px;
}

#convenios:target {
    box-shadow: 0 0 0 3px rgba(0, 161, 156, 0.35);
    transition: box-shadow 0.4s ease;
}

.chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.chip:hover {
    border-color: var(--primary-color);
    background: rgba(0, 161, 156, 0.08);
}

/* Map */
.mapa-container {
    padding: var(--space-16) var(--space-4);
    background: var(--light-gray);
    text-align: center;
}

.mapa-container h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: var(--space-8);
    color: var(--text-dark);
    font-weight: 600;
}

.mapa-wrapper {
    max-width: var(--container);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    max-height: 480px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.mapa-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* WhatsApp flutuante — igual contato/quemsomos */
.whatsapp-icon {
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom, 24px));
    right: max(24px, env(safe-area-inset-right, 24px));
    z-index: 1000;
}

.whatsapp-icon a {
    display: block;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 50px;
    line-height: 60px;
    text-decoration: none;
    box-shadow: 1px 1px 2px #888;
    transition: background-color 0.3s;
}

.whatsapp-icon a:hover {
    background-color: #128C7E;
}

/* Footer */
.rodape {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--space-16) var(--space-4) var(--space-8);
}

.footer-content {
    max-width: var(--container);
    margin: 0 auto;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-section p {
    margin: 10px 0;
    font-size: 0.95rem;
    opacity: 0.92;
}

.footer-section i {
    margin-right: 10px;
    width: 18px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 12px;
}

.footer-social a {
    color: var(--white);
    font-size: 20px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-social a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-6);
    font-size: 0.875rem;
    opacity: 0.85;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover { text-decoration: underline; }

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.96);
    color: var(--white);
    padding: var(--space-4);
    text-align: center;
    display: none;
    z-index: 9999;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.cookie-banner a { color: var(--primary-color); }

.cookie-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    margin-left: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-btn:hover { background: var(--primary-dark); }

.hide-mobile { display: flex; }

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }

    .top-bar-content {
        justify-content: center;
        text-align: center;
    }

    .contact-info, .top-menu, .social-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .mobile-menu-btn { display: block; }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 88vw);
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px var(--space-6) var(--space-6);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        gap: 8px;
    }

    .nav-links.active { transform: translateX(0); }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links .btn-primary {
        text-align: center;
        margin-top: 12px;
    }

    .hero { min-height: 55vh; }

    .section-container {
        margin: var(--space-12) auto;
        gap: var(--space-6);
    }

    .info-box { padding: var(--space-6) var(--space-4); }

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

    .footer-social { justify-content: center; }

    .whatsapp-icon {
        bottom: max(80px, calc(env(safe-area-inset-bottom, 0px) + 80px));
    }
}

@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;
    }
    .info-box:hover { transform: none; }
}
