/* ==========================================================================
   Garcia Family Medicine - Complete Styles
   ========================================================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FF5500 0%, #0047AB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

/* Header */
header {
    background: linear-gradient(135deg, #FF5500 0%, #0047AB 100%);
    color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.header-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.95;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.phone-button {
    display: inline-block;
    background: white;
    color: #FF5500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.phone-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

header nav a:hover {
    opacity: 0.8;
}

/* Spanish Banner */
.spanish-banner {
    background: linear-gradient(135deg, #0047AB 0%, #FF5500 100%);
    color: white;
    padding: 0.75rem 0;
    text-align: center;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.banner-text {
    font-size: 0.95rem;
}

.hidden {
    display: none !important;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 85, 0, 0.8);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
    border-radius: 5px;
}

.carousel-button:hover {
    background: rgba(255, 85, 0, 1);
}

.carousel-button-left {
    left: 20px;
}

.carousel-button-right {
    right: 20px;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #FF5500;
    transform: scale(1.3);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.05) 0%, rgba(0, 71, 171, 0.05) 100%);
}

.lead-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: #555;
}

.mission-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.mission-box h3 {
    color: #FF5500;
    margin-bottom: 1rem;
}

/* Team Section */
.team-section {
    padding: 4rem 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.team-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 85, 0, 0.2);
}

.team-photo img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.photo-placeholder {
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.1) 0%, rgba(0, 71, 171, 0.1) 100%);
    border-radius: 10px;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.team-info h3 {
    color: #FF5500;
    margin-bottom: 0.5rem;
}

.team-title {
    color: #0047AB;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    margin-bottom: 1rem;
}

.team-bio-full {
    margin-top: 1rem;
}

.read-more-toggle {
    background: linear-gradient(135deg, #FF5500 0%, #0047AB 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 1rem;
}

.read-more-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 85, 0, 0.4);
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.05) 0%, rgba(0, 71, 171, 0.05) 100%);
}

.services-grid {
    display: grid;
    gap: 3rem;
}

.service-box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 85, 0, 0.2);
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    color: #FF5500;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.service-short {
    margin-bottom: 1rem;
}

.service-full {
    margin-top: 1rem;
}

.service-benefits {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.service-benefits li {
    margin-bottom: 0.5rem;
}

.pricing-badge {
    background: linear-gradient(135deg, #FF5500 0%, #0047AB 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.cta-button {
    background: linear-gradient(135deg, #FF5500 0%, #0047AB 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 85, 0, 0.4);
}

/* Video Placeholder */
.video-placeholder {
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.1) 0%, rgba(0, 71, 171, 0.1) 100%);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.video-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-section,
.written-testimonials-section {
    padding: 4rem 0;
    background: white;
}

.testimonials-grid,
.testimonials-grid-written {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card,
.testimonial-card-written {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.testimonial-author {
    font-weight: 600;
    color: #FF5500;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.05) 0%, rgba(0, 71, 171, 0.05) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: #FF5500;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #0047AB;
    text-decoration: none;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.submit-btn {
    background: linear-gradient(135deg, #FF5500 0%, #0047AB 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 85, 0, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #FF5500 0%, #0047AB 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    height: 100px;
    margin-bottom: 1rem;
}

footer p {
    margin: 0.5rem 0;
}

footer .spanish {
    font-style: italic;
    margin-top: 1rem;
}

.footer-credits {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #FF5500 0%, #0047AB 100%);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.back-to-top span {
    font-size: 0.65rem;
    margin-top: 0.15rem;
    font-weight: 500;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-left {
        flex-direction: column;
        text-align: center;
    }
    
    header nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
