/* ===== CTS Saúde Premium - Unique Styles ===== */
/* Font pairing: Lato + Merriweather */
/* Palette: Health Green, Calm Blue, White */

:root {
    --primary: #15803d;
    --primary-dark: #166534;
    --primary-light: #22c55e;
    --primary-bg: #f0fdf4;
    --secondary: #1d4ed8;
    --secondary-light: #3b82f6;
    --secondary-bg: #eff6ff;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --warm: #fef9ee;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Lato', 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --radius: 10px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--primary-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-dark);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.logo-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.2;
}

.logo-text small {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 400;
}

.main-nav {
    display: none;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    transition: color var(--transition);
    position: relative;
}

.nav-list a::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
    border-radius: 1px;
}

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

.nav-list a:hover::before {
    width: 60%;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 30%, #eff6ff 70%, #dbeafe 100%);
    padding: 60px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(21,128,61,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(29,78,216,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 800px;
}

.hero-body h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin: 34px 0 14px;
    position: relative;
    padding-left: 18px;
}

.hero-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
}

.hero-body p {
    margin-bottom: 16px;
    font-size: 0.97rem;
    color: var(--text);
}

.hero-body a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 35px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21,128,61,0.3);
}

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

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

/* ===== SECTIONS ===== */
.section {
    padding: 70px 0;
}

.section-alt {
    background: var(--light-gray);
}

.section h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 16px;
}

.section-intro {
    text-align: center;
    max-width: 680px;
    margin: -16px auto 40px;
    color: var(--text-light);
}

/* ===== TREATMENT GRID ===== */
.treatment-grid {
    display: grid;
    gap: 22px;
}

.treatment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(21,128,61,0.08);
}

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

.treatment-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.treatment-card h3 {
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.treatment-card p {
    color: var(--text-light);
    font-size: 0.93rem;
}

/* ===== TEAM GRID ===== */
.team-grid {
    display: grid;
    gap: 22px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    margin: 0 auto 14px;
}

.team-card h3 {
    color: var(--primary-dark);
    font-family: var(--font-heading);
    margin-bottom: 8px;
    font-size: 1rem;
}

.team-card p {
    color: var(--text-light);
    font-size: 0.88rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    gap: 24px;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    border-radius: var(--radius-lg);
    padding: 30px;
    border-left: 4px solid var(--primary);
}

.testimonial-text {
    font-style: italic;
    color: var(--text);
    margin-bottom: 12px;
    font-size: 0.97rem;
    line-height: 1.7;
}

.testimonial-author {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== CONTACT CARDS ===== */
.contact-cards {
    display: grid;
    gap: 20px;
    max-width: 700px;
    margin: 30px auto 0;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark-gray);
    color: rgba(255,255,255,0.65);
    padding: 45px 0 35px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-about p {
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.footer-about a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.92rem;
    margin-bottom: 12px;
}

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

.footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition);
}

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

/* ===== WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: fadeInUp 0.7s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .menu-toggle { display: none; }
    .main-nav { display: block; }

    .hero h1 { font-size: 2.3rem; }
    .hero { padding: 80px 0 90px; }

    .treatment-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-about { max-width: 50%; }
}

@media (min-width: 1024px) {
    .hero h1 { font-size: 2.6rem; }
}
