/* 
   Dra. Salma González - Theme Styles
   Based on Facebook Branding Colors (Pastels, Medical imagery, Softness)
*/

:root {
    /* Color Palette */
    --heart-pink: #E57373;
    --heart-pink-light: #FFCDD2;
    --brain-blue: #81D4FA;
    --brain-blue-light: #B3E5FC;
    --lungs-green: #a0d4a4;
    /* Adjusted Sage Green */
    --lungs-green-light: #C8E6C9;

    /* Neturals */
    --text-dark: #374151;
    /* Charcoal, softer than black */
    --text-muted: #6B7280;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-sky: #E8F5E9;
    /* Very soft pastel background */
    --bg-sky-blue: #E1F5FE;

    /* Typography */
    --font-script: 'Great Vibes', cursive;
    /* For the Doctor's name */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* UI Defaults */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Base Styles & Reset
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--heart-pink);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(229, 115, 115, 0.4);
}

.btn-primary:hover {
    background-color: #EF5350;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 115, 115, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: var(--heart-pink);
    border-color: var(--heart-pink);
}

.btn-outline:hover {
    background-color: var(--heart-pink-light);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--heart-pink);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

/* =========================================
   Typography Accents
   ========================================= */
.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--heart-pink);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-normal);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-name {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--text-dark);
    line-height: 1;
}

.logo-specialty {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    font-family: var(--font-heading);
}

.nav-links li a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--lungs-green);
    transition: var(--transition-normal);
}

.nav-links li a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--lungs-green);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-normal);
}

.btn-nav:hover {
    background-color: #81C784;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(165, 214, 167, 0.5);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for navbar */
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-sky-blue) 0%, var(--bg-white) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* CSS Clouds */
.cloud {
    position: absolute;
    background: #fff;
    border-radius: 50px;
    opacity: 0.7;
    animation: moveClouds linear infinite;
}

.cloud::after,
.cloud::before {
    content: '';
    position: absolute;
    background: #fff;
}

.cloud1 {
    width: 120px;
    height: 40px;
    top: 20%;
    left: -200px;
    animation-duration: 40s;
}

.cloud1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 15px;
    border-radius: 50%;
}

.cloud1::after {
    width: 70px;
    height: 70px;
    top: -35px;
    right: 15px;
    border-radius: 50%;
}

.cloud2 {
    width: 80px;
    height: 26px;
    top: 40%;
    left: -100px;
    animation-duration: 60s;
    opacity: 0.5;
}

.cloud2::before {
    width: 33px;
    height: 33px;
    top: -16px;
    left: 10px;
    border-radius: 50%;
}

.cloud2::after {
    width: 46px;
    height: 46px;
    top: -23px;
    right: 10px;
    border-radius: 50%;
}

.cloud3 {
    width: 150px;
    height: 50px;
    top: 15%;
    left: 100%;
    animation-duration: 50s;
    animation-direction: reverse;
}

.cloud3::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 20px;
    border-radius: 50%;
}

.cloud3::after {
    width: 80px;
    height: 80px;
    top: -45px;
    right: 20px;
    border-radius: 50%;
}

@keyframes moveClouds {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(120vw);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, var(--text-dark) 0%, var(--brain-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Curved divider */
.hero-shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-shape-divider .shape-fill {
    fill: var(--bg-white);
}

/* =========================================
   About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--bg-sky-blue), var(--heart-pink-light));
    padding: 1rem;
    box-shadow: var(--shadow-lg);
}

.photo-carousel {
    aspect-ratio: 4/5;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.photo-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.photo-carousel img.active {
    opacity: 1;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 4px solid var(--lungs-green-light);
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 5px;
}

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.about-features i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.about-features li:nth-child(1) i {
    background-color: var(--heart-pink-light);
    color: var(--heart-pink);
}

.about-features li:nth-child(2) i {
    background-color: var(--brain-blue-light);
    color: var(--brain-blue);
}

.about-features li:nth-child(3) i {
    background-color: var(--lungs-green-light);
    color: var(--lungs-green);
}

/* =========================================
   Services / Focus Section
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border-top: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card.pink {
    border-top-color: var(--heart-pink);
}

.service-card.blue {
    border-top-color: var(--brain-blue);
}

.service-card.green {
    border-top-color: var(--lungs-green);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: var(--transition-normal);
}

.service-card.pink .service-icon {
    background-color: var(--heart-pink-light);
    color: var(--heart-pink);
}

.service-card.blue .service-icon {
    background-color: var(--brain-blue-light);
    color: var(--brain-blue);
}

.service-card.green .service-icon {
    background-color: var(--lungs-green-light);
    color: var(--lungs-green);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* =========================================
   CTA Section
   ========================================= */
.cta {
    background: linear-gradient(135deg, var(--brain-blue-light), var(--heart-pink-light));
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 4rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-name,
.footer-brand .logo-specialty {
    color: var(--bg-white);
}

.footer-desc {
    color: #9CA3AF;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background-color: var(--heart-pink);
    transform: translateY(-3px);
}

.footer h3 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--lungs-green);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: #9CA3AF;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--brain-blue-light);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #9CA3AF;
}

.footer-contact i {
    color: var(--heart-pink);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* =========================================
   Animations
   ========================================= */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
}

.fade-in-up {
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {

    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1000;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .experience-badge {
        width: 90px;
        height: 90px;
        padding: 1rem;
        right: -10px;
        bottom: -10px;
    }

    .experience-badge .number {
        font-size: 1.5rem;
    }

    .experience-badge .text {
        font-size: 0.6rem;
    }
}