/* 
   SmileCare Clinic Styles
   Modern, responsive, and aesthetically pleasing design.
*/

:root {
    /* Color Palette */
    --primary-color: #4a3525;
    /* RJ Luxe Dark Brown */
    --primary-dark: #2c1f15;
    /* Darker Brown */
    --primary-light: #f5eedf;
    /* Off-white Cream */
    --accent-color: #d2b79a;
    /* Gold/Tan Accent */

    --text-main: #332418;
    /* Dark text */
    --text-muted: #7c6c59;
    /* Muted Brown */
    --bg-main: #faf8f5;
    /* Very Light background */
    --bg-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4a3525 0%, #634731 100%);
    --gradient-light: linear-gradient(135deg, #fffcf7 0%, #f5eedf 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-main: 'Outfit', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

/* Typography Utilities */
.highlight {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: #bae6fd;
    transform: translateY(-2px);
}

.btn-light {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-light:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 24px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.logo-icon {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
}

/* Page Header (Service/About pages) */
.page-header {
    position: relative;
    padding: 180px 0 80px;
    background-color: var(--bg-main);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-main);
    overflow: hidden;
}

.hero-background-shape {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: var(--gradient-light);
    z-index: 0;
    filter: blur(60px);
    opacity: 0.8;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-icon {
    color: #fbbf24;
    font-size: 1.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image-wrapper {
    position: relative;
}

.image-backdrop {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    border-radius: 30px;
    transform: rotate(3deg);
    z-index: -1;
    opacity: 0.1;
}

.hero-image {
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/5;
    width: 100%;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -40px;
    background: var(--bg-white);
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 6s ease-in-out infinite;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.floating-card strong {
    display: block;
    color: var(--text-main);
    font-size: 1rem;
}

.floating-card span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Services Section */
.services {
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-main);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    background: var(--bg-white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.service-link:hover {
    gap: 12px;
}

/* CTA Section */
.appointment-cta {
    padding: 100px 0;
    background: var(--bg-white);
}

.container-cta {
    position: relative;
    background: var(--gradient-primary);
    border-radius: 32px;
    padding: 80px 48px;
    text-align: center;
    color: white;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-background-circle {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Footer Section */
.footer {
    background-color: var(--text-main);
    color: #f1f5f9;
    padding: 80px 0 32px;
}

/* Treatment Page Split Layout */
.treatment-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.treatment-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.benefits-list i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-logo {
    color: white;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-info ul li {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    justify-content: flex-start !important;
}

.contact-list i {
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-list a,
.contact-list span {
    color: #94a3b8;
}

.contact-list a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1000;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Invisible bridge to prevent hover loss */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-main) !important;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: var(--bg-main);
    color: var(--primary-color) !important;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Smile Gallery Comparison Slider */
.smile-gallery {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: #eee;
}

.img-after,
.img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.img-before {
    width: 50%;
    border-right: 3px solid white;
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 5;
    color: white;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.comparison-slider:hover .slider-handle {
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-labels {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    width: 80%;
    pointer-events: none;
    z-index: 5;
}

.gallery-labels span {
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.gallery-labels span:first-child {
    color: var(--text-muted);
}

.gallery-labels span:last-child {
    color: var(--primary-color);
}

/* Google Reviews */
.google-reviews {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.review-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.reviewer-initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1.125rem;
}

.reviewer-info .review-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.review-stars {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 16px;
}

.review-text {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
}

.google-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    font-weight: 600;
}

.google-badge img {
    height: 30px;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-item h4 i {
    color: var(--primary-color);
    margin-top: 4px;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 28px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 24px;
        box-shadow: var(--shadow-md);
        text-align: center;
        gap: 16px;
        /* Added gap to make touches easier */
    }

    .dropdown {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .dropdown-content {
        visibility: visible;
        position: static;
        display: flex;
        flex-direction: column;
        box-shadow: none;
        opacity: 1;
        transform: translateY(0);
        min-width: 100%;
        padding: 16px 0 0 0;
        margin-top: 12px;
        border-top: 1px solid #f1f5f9;
        border-radius: 0;
        gap: 8px;
        text-align: center;
    }

    .dropdown:hover .dropdown-content {
        transform: translateY(0);
    }

    .dropdown-content a {
        padding: 8px 0;
        font-size: 1.1rem;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .treatment-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .treatment-image {
        grid-row: 1;
        /* Moves image above text on mobile */
    }
}