/* ===================================
   CLÍNICA JARDINS BIRIGUI - STYLES.CSS
   ================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #666666;
    background-color: #ffffff;
    overflow-x: hidden;
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #c9a498;
    letter-spacing: 0.5px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p { margin-bottom: 1rem; }

a {
    color: #c9a498;
    text-decoration: none;
    transition: color 300ms ease-in-out;
}

a:hover {
    color: #d4a9a0;
}

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

/* ===== HEADER ===== */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #d4a9a0;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 1rem;
}

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

.navbar {
    display: flex;
    justify-content: center;
    margin: 0 2rem;
    gap: 2rem;
    flex: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #2d2d2d;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c9a498;
    transition: width 300ms ease-in-out;
}

.nav-link:hover,
.nav-link.active {
    color: #c9a498;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #c9a498;
    transition: all 300ms ease-in-out;
}

.header-cta {
    display: flex;
    align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 300ms ease-in-out;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn-primary {
    background-color: #4f1e0d;
    color: #ffffff;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #6b2e18;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 164, 152, 0.3);
}

.btn-secondary {
    background-color: #40190d;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #40190d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #c9a498;
    color: #c9a498;
}

.btn-outline:hover {
    background-color: #c9a498;
    color: #ffffff;
}

.btn-lg { 
    padding: 1.5rem 3rem; 
    font-size: 1.125rem; 
}

.btn-sm { 
    padding: 0.5rem 1.5rem; 
    font-size: 0.875rem; 
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 300ms ease-in-out;
}

.btn-whatsapp:hover {
    background-color: #1eae50;
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #c9a498, #d4a9a0);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(216, 74, 122, 0.7);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== SECTIONS ===== */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #a67c52;
    border-radius: 2px;
}

/* ===== SERVICES/CARDS ===== */
.services-grid, 
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card, 
.card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 300ms ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-card:hover, 
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: #e8d5d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.service-card h3, 
.card h3 {
    margin-bottom: 1rem;
    color: #c9a498;
}

.service-card p, 
.card p {
    color: #666666;
    margin-bottom: 1.5rem;
}

.service-link {
    color: #a67c52;
    font-weight: 600;
    display: inline-block;
    transition: all 300ms ease-in-out;
}

.service-link:hover {
    color: #ffb733;
    transform: translateX(4px);
}

/* ===== GALLERY ===== */
.gallery {
    padding: 4rem 0;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 300ms ease-in-out;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 300ms ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #c9a498, #d4a9a0);
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 { 
    color: #ffffff; 
}

.cta-section p { 
    font-size: 1.125rem; 
    margin-bottom: 2rem; 
    opacity: 0.95; 
}

/* ===== FORM ===== */
form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d2d2d;
}

input, 
textarea, 
select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d4a9a0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 300ms ease-in-out;
}

input:focus, 
textarea:focus, 
select:focus {
    outline: none;
    border-color: #c9a498;
    box-shadow: 0 0 0 3px rgba(201, 164, 152, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #6b5341;
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer p,
.footer li,
.footer-column p {
    color: #ffffff;
}

.footer-column a {
    color: #ffffff;
    transition: color 300ms ease-in-out;
}

.footer-column a:hover {
    color: #c9a498;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 1rem;
}

/* ===== UTILITÁRIOS ===== */
.text-center { 
    text-align: center; 
}

.mt-4 { 
    margin-top: 2rem; 
}

.mb-4 { 
    margin-bottom: 2rem; 
}

.py-4 { 
    padding: 2rem 0; 
}

/* ===== GRID ESPECÍFICAS ===== */
.responsavel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 768px) {
    /* Header */
    .header-container {
        padding: 0.75rem 1rem;
    }

    .header-logo img {
        height: 40px;
    }

    .menu-toggle { 
        display: flex; 
        order: 3;
    }
    
    .navbar {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #ffffff;
        padding: 1rem;
        gap: 0.5rem;
        z-index: 1050;
        border-bottom: 1px solid #d4a9a0;
    }

    .navbar.active { 
        display: flex; 
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .header-cta {
        order: 2;
    }

    .btn-whatsapp {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    /* Hero */
    .hero { 
        height: 500px; 
    }

    .hero-title { 
        font-size: 1.75rem; 
    }

    .hero-subtitle { 
        font-size: 1rem; 
    }

    /* Typografia */
    h1 { 
        font-size: 1.75rem; 
    }

    h2 { 
        font-size: 1.5rem; 
    }

    .section-title { 
        font-size: 1.5rem; 
    }

    /* Grids */
    .services-grid, 
    .card-grid { 
        grid-template-columns: 1fr; 
    }

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

    /* Responsável */
    .responsavel-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .responsavel-grid img {
        order: -1;
    }

    /* Buttons */
    .btn { 
        width: 100%; 
        display: block;
    }

    .container { 
        padding: 0 1rem; 
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 480px) {
    /* Header */
    .header-container { 
        padding: 0.5rem 0.75rem; 
    }

    .header-logo img { 
        height: 35px; 
    }

    .navbar {
        top: 55px;
    }

    .btn-whatsapp {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Hero */
    .hero { 
        height: 350px; 
    }

    .hero-title { 
        font-size: 1.5rem; 
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Typografia */
    h1 { 
        font-size: 1.5rem; 
    }

    h2 { 
        font-size: 1.25rem; 
    }

    h3 { 
        font-size: 1.1rem; 
    }

    .section-title { 
        font-size: 1.25rem; 
    }

    /* Grids */
    .gallery-grid { 
        grid-template-columns: 1fr; 
    }

    .gallery-item img { 
        height: 180px; 
    }

    .service-icon { 
        width: 60px; 
        height: 60px; 
        font-size: 2rem;
    }

    /* Sections */
    section {
        padding: 2rem 0;
    }

    .container { 
        padding: 0 1rem; 
    }

    .cta-section {
        padding: 2rem 0;
    }
}
