/* Reset e Variáveis */
/* 
 * NOTA: Croogla não está disponível no Google Fonts.
 * Se você tiver a fonte Croogla localmente, adicione @font-face no início do arquivo:
 * @font-face {
 *   font-family: 'Croogla';
 *   src: url('fonts/Croogla.woff2') format('woff2'),
 *        url('fonts/Croogla.woff') format('woff');
 *   font-weight: 400;
 *   font-style: normal;
 * }
 * E então substitua 'Poppins' por 'Croogla' nos títulos (.hero-title, .section-title, etc.)
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00A8A8;
    --primary-dark: #008A8A;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #E0E0E0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Top Bar */
.header-top {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-top-left i {
    font-size: 20px;
}

.header-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.header-top-center {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}

.header-top-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-top-right a {
    color: var(--white);
    font-size: 18px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-top-right a:hover {
    opacity: 0.8;
}

/* Main Header */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
    font-weight: 600;
}

.btn-agendar {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
}

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

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    max-width: 700px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 40px;
    max-width: 700px;
    font-weight: 400;
}

.btn-agendar-hero {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-agendar-hero:hover {
    background-color: var(--primary-dark);
}

/* Sobre Section */
.sobre {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.sobre-image {
    position: relative;
}

.doctor-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sobre-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.sobre-text p {
    margin-bottom: 20px;
}

.sobre-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Atendimentos Section */
.atendimentos {
    padding: 80px 0;
    background-color: var(--primary-color);
}

.section-title-white {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.atendimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.atendimento-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.atendimento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--bg-light);
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.atendimento-card:hover .card-image img {
    transform: scale(1.1);
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 20px 20px 15px;
    margin: 0;
}

.btn-card {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.2s;
}

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

/* Convênios Section */
.convenios {
    padding: 80px 0;
    background-color: var(--white);
}

.convenios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.convenio-logo {
    width: 100%;
    max-width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: transform 0.3s;
}

.convenio-logo:hover {
    transform: scale(1.05);
}

.convenio-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Contato Section */
.contato {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.contato-card {
    text-align: left;
    background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(0, 168, 168, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contato-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contato-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 168, 168, 0.15);
    border-color: rgba(0, 168, 168, 0.3);
}

.contato-card:hover::before {
    transform: scaleX(1);
}

.contato-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0, 168, 168, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.contato-card:hover .contato-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 168, 168, 0.35);
}

.contato-icon i {
    font-size: 28px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.contato-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.contato-info {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 6px;
    line-height: 1.6;
    font-weight: 400;
}

.contato-info:last-child {
    margin-bottom: 0;
}

.contato-info a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.contato-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s ease;
}

.contato-info a:hover {
    color: var(--primary-color);
}

.contato-info a:hover::after {
    width: 100%;
}

.contato-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-header .container {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 15px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
        margin-top: 20px;
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .sobre-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .atendimentos-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-top-center {
        font-size: 12px;
    }

    .header-top-right {
        gap: 10px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title,
    .section-title-white {
        font-size: 32px;
    }

    .atendimentos-grid {
        grid-template-columns: 1fr;
    }

    .convenios-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 100%;
    }

    .contato-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contato-card {
        padding: 30px 25px;
        text-align: center;
    }

    .contato-icon {
        margin: 0 auto 20px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 45px;
    }

    .btn-agendar {
        padding: 10px 16px;
        font-size: 12px;
    }

    .btn-agendar span {
        display: none;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-title,
    .section-title-white {
        font-size: 28px;
    }

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

    .convenio-logo {
        max-width: 100%;
        height: 80px;
        padding: 10px;
    }

    .contato-card {
        padding: 25px 20px;
    }

    .contato-icon {
        width: 56px;
        height: 56px;
    }

    .contato-icon i {
        font-size: 24px;
    }

    .contato-title {
        font-size: 16px;
    }

    .contato-info {
        font-size: 14px;
    }
}
