/*
Theme Name: IRB Prime Care
Theme URI: https://irbprimecare.com.br/
Author: Gemini CLI
Description: Custom WordPress theme for IRB Prime Care clinic.
Version: 1.0
Text Domain: irb-prime-care
*/

/* 
Global Variables & Reset 
*/
:root {
    --primary: #1152d4;
    --primary-hover: #0d44b1;
    --background-light: #f6f6f8;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Base Layout Structure */
.site-container {
    display: flex;
    min-h-screen: 100vh;
}

#main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    padding-top: 80px; /* Space for fixed header */
}

body.sidebar-collapsed #main-content {
    margin-left: var(--sidebar-collapsed);
}

/* Fixed Header */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: 80px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
    transition: left 0.3s ease;
}

body.sidebar-collapsed .site-header {
    left: var(--sidebar-collapsed);
}

.header-logo img {
    height: 50px;
}

/* Sidebar */
.site-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--border);
    z-index: 200;
    transition: width 0.3s ease;
    overflow: hidden;
}

body.sidebar-collapsed .site-sidebar {
    width: var(--sidebar-collapsed);
}

.sidebar-toggle {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 30px;
    color: var(--text-muted);
    gap: 15px;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li.active a {
    color: var(--primary);
    background: rgba(17, 82, 212, 0.05);
}

.sidebar-nav .nav-text {
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

body.sidebar-collapsed .sidebar-nav .nav-text {
    opacity: 0;
    pointer-events: none;
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
}

.action-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
}

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    animation: waPulse 2.5s infinite;
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

.wa-float img {
    width: 35px;
    height: 35px;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-container {
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 0 80px;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 600px;
    color: var(--white);
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

.slide-content .badge {
    background: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    display: inline-block;
}

.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}

.nav-dot.active {
    background: var(--white);
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 80px;
}

.action-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.action-card span {
    font-size: 48px;
    color: var(--primary);
}

.action-card h3 {
    font-size: 20px;
    color: var(--text-dark);
}

.action-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(17, 82, 212, 0.2);
}

/* Specialties Section */
.specialties-section {
    padding: 80px;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.specialty-item {
    padding: 20px;
    background: var(--background-light);
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.specialty-item:hover {
    background: var(--primary);
    color: var(--white);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
}

.btn-paciente {
    background: var(--primary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
}

/* Team Section */
.team-section {
    padding: 80px;
}

.team-placeholder {
    height: 300px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    padding: 60px 80px;
    background: var(--text-dark);
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-btn {
    opacity: 0.7;
}

.social-btn:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #main-content {
        margin-left: 0;
    }
    
    .site-sidebar {
        transform: translateX(-100%);
    }
    
    body.sidebar-open .site-sidebar {
        transform: translateX(0);
    }
    
    .site-header {
        left: 0;
    }
}

@media (max-width: 768px) {
    .action-cards {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
    
    .hero-carousel {
        height: 400px;
    }
    
    .carousel-slide {
        padding: 0 20px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .specialties-section {
        padding: 40px 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
