/* Landing Page Styles */

:root {
    --primary-blue: #054A91;
    --secondary-blue: #3E7CB1;
    --light-blue: #81A4CD;
    --very-light-blue: #DBE4EE;
    --accent-orange: #f17300;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
}

.nav-brand p {
    color: var(--text-light);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-login {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(rgba(5, 74, 145, 0.7), rgba(5, 74, 145, 0.7)),
                url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?w=1920') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 60px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 74, 145, 0.8), rgba(62, 124, 177, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
    color: var(--white);
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 20px;
    font-weight: 400;
}

/* Appointment Form Card */
.appointment-form-card {
    background: var(--primary-blue);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.appointment-form-card h3 {
    color: var(--white);
    text-align: center;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 600;
}

.appointment-form .form-group {
    margin-bottom: 15px;
}

.appointment-form input,
.appointment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
}

.appointment-form input:focus,
.appointment-form textarea:focus {
    outline: 2px solid var(--accent-orange);
}

.appointment-form textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: var(--text-dark);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 115, 0, 0.3);
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: var(--very-light-blue);
    text-align: center;
}

.section-title {
    color: var(--secondary-blue);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.section-subtitle-small {
    color: var(--text-light);
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.about-content {
    max-width: 900px;
    margin: 40px auto;
    color: var(--text-dark);
    line-height: 1.8;
}

.btn-learn-more {
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-learn-more:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

/* Team Section */
.team-section {
    padding: 80px 20px;
    background: var(--white);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.team-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Default fallback gradient for clinics without custom images */
.team-image:not([style*="background-image"]) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 80px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.team-image:not([style*="background-image"])::before {
    content: attr(data-clinic-initial);
}

/* Logo placeholder styling */
.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    color: white;
    font-size: 60px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.logo-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Specific clinic logo classes */
.ardent-clinic {
    background-image: url('../../assets/images/ardent-dental.png');
}

.gamboa-clinic {
    background-image: url('../../assets/images/gamboa-dental.png');
}

.happy-teeth-dental-clinic {
    background-image: url('../../assets/images/happy-teeth-dental.png');
}

/* Fallback for new clinics without specific images */
.test-clinic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.testasd-clinic {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    background: var(--primary-blue);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.team-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.clinic-location {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.team-info p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 20px;
}

.clinic-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-view-profile,
.btn-book-now {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-view-profile {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-view-profile:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-book-now {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
}

.btn-book-now:hover {
    background: var(--secondary-blue);
    color: var(--white);
    border-color: var(--secondary-blue);
}

/* What We Do Section */
.what-we-do-section {
    padding: 80px 20px;
    background: var(--very-light-blue);
}

.what-we-do-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.what-we-do-image {
    flex: 1;
}

.what-we-do-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.what-we-do-text {
    flex: 1;
}

.what-we-do-text h2 {
    color: var(--secondary-blue);
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 700;
}

.what-we-do-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Testimonial Section */
.testimonial-section {
    padding: 80px 20px;
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
}

.testimonial-content {
    max-width: 900px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 100px;
    opacity: 0.3;
    line-height: 0.8;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background: var(--white);
}

.services-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.services-text {
    flex: 1;
}

.services-text h2 {
    color: var(--secondary-blue);
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 700;
}

.services-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

.services-image {
    flex: 1;
}

.services-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 25px 20px;
}

.footer p {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text h2 {
        font-size: 24px;
    }

    .what-we-do-content,
    .services-content {
        flex-direction: column;
    }

    .services-content {
        flex-direction: column-reverse;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text h2 {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .what-we-do-text h2,
    .services-text h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 15px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text h2 {
        font-size: 18px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .appointment-form-card {
        padding: 25px;
    }

    .section-title {
        font-size: 24px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-card,
.about-content,
.what-we-do-content,
.services-content {
    animation: fadeInUp 0.6s ease-out;
}
