/* Landing Page Styles */

:root {
    --primary-blue: #0b4f8c;
    --secondary-blue: #3182ce;
    --light-blue: #8bb7e5;
    --very-light-blue: #eef5fc;
    --accent-orange: #f4a261;
    --accent-emerald: #2dd4bf;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --card-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --radius-lg: 16px;
    --radius-sm: 10px;
}

* {
    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.7;
    overflow-x: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(49, 130, 206, 0.08), transparent 25%), radial-gradient(circle at 80% 10%, rgba(13, 148, 136, 0.08), transparent 22%), #f8fafc;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    padding: 14px 0;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.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: 800;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.nav-brand p {
    color: var(--text-light);
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 4px;
    position: relative;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--accent-emerald));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white) !important;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    box-shadow: 0 12px 30px rgba(49, 130, 206, 0.25);
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(49, 130, 206, 0.32);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 620px;
    background: linear-gradient(120deg, rgba(11, 79, 140, 0.82), rgba(49, 130, 206, 0.82)),
                url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?w=1920&auto=format&fit=crop&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 70px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1), transparent 35%), linear-gradient(135deg, rgba(5, 74, 145, 0.78), rgba(62, 124, 177, 0.58));
}

.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: 50px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.15;
}

.hero-text h2 {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.92;
}

/* Appointment Form Card */
.appointment-form-card {
    background: rgba(255, 255, 255, 0.12);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.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: linear-gradient(135deg, var(--accent-orange), var(--primary-blue));
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 26px rgba(11, 79, 140, 0.35);
}

/* About Section */
.about-section {
    padding: 90px 20px;
    background: var(--very-light-blue);
    text-align: center;
}

.section-title {
    color: var(--secondary-blue);
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.section-subtitle-small {
    color: var(--text-light);
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 34px;
}

.about-content {
    max-width: 900px;
    margin: 38px auto;
    color: var(--text-dark);
    line-height: 1.9;
    background: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.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: 90px 20px;
    background: #f9fbff;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
    border-color: rgba(49, 130, 206, 0.2);
}

.team-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Default fallback gradient for clinics without custom images */
.team-image:not([style*="background-image"]) {
    background: linear-gradient(135deg, #5b8def 0%, #3ac8b6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 72px;
    font-weight: 800;
    text-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.team-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.25));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.team-card:hover .team-image::after {
    opacity: 1;
}

/* 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(--white);
    color: var(--text-dark);
    padding: 26px 22px 28px;
    text-align: center;
}

.team-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.clinic-location {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.team-info p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.88;
    margin-bottom: 10px;
}

.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(49, 130, 206, 0.08);
    color: var(--primary-blue);
    border: 1px solid rgba(49, 130, 206, 0.35);
}

.btn-view-profile:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-book-now {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border: none;
    box-shadow: 0 14px 26px rgba(49, 130, 206, 0.22);
}

.btn-book-now:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    box-shadow: 0 18px 32px rgba(49, 130, 206, 0.28);
}

/* What We Do Section */
.what-we-do-section {
    padding: 90px 20px;
    background: var(--very-light-blue);
}

.what-we-do-content {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.what-we-do-image {
    flex: 1;
}

.what-we-do-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.what-we-do-text {
    flex: 1;
}

.what-we-do-text h2 {
    color: var(--secondary-blue);
    font-size: 32px;
    margin-bottom: 18px;
    font-weight: 800;
}

.what-we-do-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 18px;
}

/* Testimonial Section */
.testimonial-section {
    padding: 90px 20px;
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.08), transparent 30%), 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: 26px;
    font-style: italic;
    opacity: 0.96;
}

.testimonial-author {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Services Section */
.services-section {
    padding: 90px 20px;
    background: var(--white);
}

.services-content {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.services-text {
    flex: 1;
}

.services-text h2 {
    color: var(--secondary-blue);
    font-size: 32px;
    margin-bottom: 18px;
    font-weight: 800;
}

.services-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 18px;
}

.services-image {
    flex: 1;
}

.services-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 28px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer p {
    font-size: 14px;
    opacity: 0.92;
}

/* 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;
}
