/* ========================================
   BEST DENTAL - MAIN STYLESHEET
   Professional Mobile & Desktop Experience
   ======================================== */

:root {
    --primary: #0b3b5f;
    --primary-dark: #062c48;
    --primary-light: #1a5a7d;
    --secondary: #2c9c8c;
    --secondary-light: #e0f2f0;
    --accent: #ffb74d;
    --accent-dark: #f5a623;
    --gray-100: #f8f9fc;
    --gray-200: #eef2f8;
    --gray-600: #4a5b6e;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.1);
    --shadow-3d: 0 20px 35px -10px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafd;
    color: #1a2c3e;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========= NAVBAR - MOBILE FIRST ========= */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.logo-icon {
    background: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.logo-text h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-text p {
    font-size: 0.6rem;
    color: var(--gray-600);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.btn-contact {
    background: var(--secondary);
    color: white !important;
    padding: 0.4rem 0.9rem;
    border-radius: 40px;
    font-size: 0.8rem !important;
}

/* ========= HERO SECTION - MOBILE OPTIMIZED ========= */
.hero {
    background: linear-gradient(135deg, #eef5fc 0%, #ffffff 100%);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    transition: transform 0.3s ease;
}

.stat h3 {
    font-size: 1.4rem;
    color: var(--secondary);
}

.stat p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.hero-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========= PROMO SECTION - MOBILE FIRST ========= */
.promo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.promo-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.promo-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-card h3 i {
    font-size: 1.5rem;
    color: var(--accent);
}

.promo-badge {
    background: var(--accent);
    color: var(--primary);
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.7rem;
    margin-bottom: 1rem;
}

.promo-offer {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0.8rem 0;
}

.promo-date {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 0.85rem;
}

.promo-date p {
    margin: 0.3rem 0;
}

.promo-btn {
    background: white;
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.promo-content-right {
    flex: 1;
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.promo-content-right h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.promo-content-right p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
}

.promo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.promo-features span {
    background: var(--secondary-light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--secondary);
}

/* ========= BUTTONS ========= */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

/* ========= SERVICES SECTION ========= */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.service-card .content {
    padding: 1.2rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.service-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ========= FEATURE SECTION ========= */
.feature-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(11,59,95,0.03) 0%, rgba(44,156,140,0.03) 100%);
    padding: 1.5rem;
    border-radius: 24px;
}

.feature-text h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-text ul {
    list-style: none;
    line-height: 1.8;
}

.feature-text li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.feature-text li i {
    color: var(--secondary);
    margin-right: 10px;
    width: 20px;
}

.feature-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

/* ========= TESTIMONIALS ========= */
.testimonials {
    background: var(--gray-200);
    border-radius: 24px;
    padding: 2rem 1rem;
    margin: 2rem 0;
}

.testimonials h2 {
    font-size: 1.5rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.testimonial-card {
    background: white;
    padding: 1.2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.testimonial-card i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.testimonial-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.testimonial-card h4 {
    font-size: 0.9rem;
    color: var(--primary);
}

/* ========= FOOTER ========= */
footer {
    background: var(--primary-dark);
    color: #d1e2ed;
    padding: 2rem 1rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}

.footer-content h3, .footer-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-content p {
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-content a {
    color: #d1e2ed;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.8rem;
}

.social-links a {
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.7rem;
}

/* ========= DESKTOP ENHANCEMENTS ========= */
@media (min-width: 768px) {
    /* Navbar Desktop */
    .navbar {
        padding: 1rem 2rem;
    }
    
    .logo-icon {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }
    
    .logo-text h2 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    .nav-links {
        gap: 1.8rem;
    }
    
    .nav-links a {
        font-size: 1rem;
    }
    
    .btn-contact {
        padding: 0.6rem 1.4rem;
        font-size: 1rem !important;
    }
    
    /* Hero Desktop */
    .hero {
        padding: 4rem 2rem;
    }
    
    .hero .container {
        flex-direction: row;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: left;
        flex: 1;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .hero-image {
        flex: 0.9;
    }
    
    /* Promo Desktop */
    .promo-wrapper {
        flex-direction: row;
        gap: 2rem;
    }
    
    .promo-card {
        flex: 0 0 380px;
        padding: 2rem;
    }
    
    .promo-card h3 {
        font-size: 1.8rem;
    }
    
    .promo-offer {
        font-size: 2rem;
    }
    
    /* Services Desktop */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Feature Desktop */
    .feature-section {
        flex-direction: row;
        gap: 2rem;
        padding: 2rem;
    }
    
    .feature-text h2 {
        font-size: 1.8rem;
    }
    
    /* Testimonials Desktop */
    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    /* Footer Desktop */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
}

/* ========= LARGE DESKTOP ========= */
@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* ========= SMALL MOBILE (under 380px) ========= */
@media (max-width: 380px) {
    .navbar {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .promo-card {
        padding: 1.2rem;
    }
    
    .promo-offer {
        font-size: 1.5rem;
    }
    
    .btn-primary, .btn-outline {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* ========= TOUCH OPTIMIZATIONS ========= */
@media (max-width: 768px) {
    /* Larger touch targets */
    .nav-links a,
    .btn-primary,
    .btn-outline,
    .promo-btn,
    .service-card,
    .testimonial-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Improve readability */
    body {
        font-size: 16px;
    }
    
    /* Better spacing for touch */
    .stat, 
    .service-card .content,
    .promo-features span {
        padding: 0.5rem;
    }
    
    /* Prevent zoom on input focus */
    input, select, textarea, button {
        font-size: 16px;
    }
}

/* ========= ANIMATIONS ========= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects only on devices that support hover */
@media (hover: hover) {
    .logo-area:hover {
        transform: scale(1.02);
    }
    
    .logo-icon:hover {
        transform: rotateY(180deg);
        background: var(--secondary);
    }
    
    .nav-links a:hover {
        color: var(--secondary);
        transform: translateY(-2px);
    }
    
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0%;
        height: 2px;
        background: var(--secondary);
        transition: width 0.3s ease;
    }
    
    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 100%;
    }
    
    .btn-contact:hover {
        background: var(--primary-light);
        transform: translateY(-3px) scale(1.02) !important;
        box-shadow: var(--shadow-md);
    }
    
    .hero-image:hover {
        transform: translateY(-10px) rotateX(3deg);
        box-shadow: var(--shadow-3d);
    }
    
    .hero-image:hover img {
        transform: scale(1.05);
    }
    
    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-md);
    }
    
    .promo-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
    
    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }
    
    .social-links a:hover {
        color: var(--accent);
        transform: translateY(-3px);
    }
}
/* Footer Logo Styles */
.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-logo-area h3 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.footer-logo-area p {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Mobile adjustment for footer logo */
@media (max-width: 768px) {
    .footer-logo-area {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .footer-logo-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo-area h3 {
        font-size: 1.3rem;
    }
}

/* Desktop footer logo adjustment */
@media (min-width: 768px) {
    .footer-logo-area {
        flex-direction: row;
        text-align: left;
    }
}
/* Logo Image Styles */
.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transition: all 0.3s ease;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-icon i {
    font-size: 1.6rem;
    color: white;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon i {
        font-size: 1.3rem;
    }
}
/* ========================================
   HAMBURGER MENU - MOBILE SLIDER
   ======================================== */

/* Hamburger Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation (when open) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Slider Menu Overlay */
.slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.slider-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slider Menu (75% width from left) */
.slider-menu {
    position: fixed;
    top: 0;
    left: -75%;
    width: 75%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 1003;
    padding: 2rem 1.5rem;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.slider-menu.active {
    left: 0;
}

/* Slider Menu Header */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-logo-text h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.slider-logo-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
}

.close-slider {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 5px;
}

.close-slider:hover {
    transform: rotate(90deg);
}

/* Slider Navigation Links */
.slider-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.slider-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-nav a i {
    width: 25px;
    font-size: 1.2rem;
    color: var(--accent);
}

.slider-nav a:hover {
    transform: translateX(8px);
    color: var(--accent);
}

.slider-nav a.active {
    color: var(--accent);
}

/* Slider Contact Info */
.slider-contact {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-contact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.slider-contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-contact p i {
    width: 20px;
    color: var(--accent);
}

.slider-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.slider-social a {
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.slider-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Slider Button */
.slider-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: white;
    transform: translateY(-2px);
}

/* Hide desktop nav links on mobile, show hamburger */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Show desktop nav on tablet/desktop, hide hamburger */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
    
    .slider-overlay,
    .slider-menu {
        display: none;
    }
}