/* ===================================
   DENTAL FIT - MODERN PREMIUM DESIGN
   Clean, Elegant, Professional
   Based on TOP 2024 Dental Websites
   =================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Modern Color Palette */
    --color-primary: #1A5F7A;
    /* Deep Blue */
    --color-secondary: #57C5B6;
    /* Teal

 */
    --color-accent: #D4AF37;
    /* Champagne Gold */
    --color-dark: #0F2027;
    /* Almost Black */
    --color-light: #F8F9FA;
    /* Off White */
    --color-white: #FFFFFF;

    /* Grays */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background-color: var(--color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
}

p {
    font-size: 1.0625rem;
    color: var(--gray-600);
}

/* ========== UTILITIES ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-title-left {
    margin-bottom: var(--space-md);
    text-align: left;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

/* ========== BUTTONS ========== */
.btn-primary,
.btn-secondary,
.btn-nav,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-nav {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
}

.btn-nav:hover {
    background: var(--color-secondary);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.0625rem;
}

/* ========== LANGUAGE SELECTOR ========== */
.language-selector {
    display: flex;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 0.4rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 1;
    align-items: center;
}

.language-selector.hidden {
    opacity: 0;
    pointer-events: none;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 700;
}


/* ========== NAVIGATION ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
    position: relative;
}

.nav-logo img {
    height: 50px;
    width: auto;
    position: relative;
    z-index: 1002;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}

.hamburger-menu span {
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Navigation Menu Wrapper */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-menu a {
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ========== HERO SPLIT SECTION ========== */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
    align-items: start;
}

.hero-content-left {
    padding: var(--space-2xl) var(--space-2xl);
    padding-top: 8vh;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 90vh;
}

.hero-text {
    max-width: 600px;
}

.hero-tagline {
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.hero-title {
    margin-bottom: var(--space-md);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.hero-image-right {
    position: relative;
    height: 100%;
    min-height: 90vh;
}

.hero-image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero-badge i {
    font-size: 2rem;
    color: var(--color-accent);
}

.badge-title {
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.badge-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ========== SERVICES MODERN SECTION ========== */
.services-modern {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.service-card-modern {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray-200);
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-secondary);
}

.service-card-modern.highlighted {
    border: 2px solid var(--color-secondary);
    background: linear-gradient(135deg, var(--color-white) 0%, #F0FFFE 100%);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon-wrapper {
    margin-bottom: var(--space-md);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card-modern:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card-modern h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.service-card-modern>p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.service-features i {
    color: var(--color-secondary);
    font-size: 1rem;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    padding: var(--space-3xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-content {
    max-width: 600px;
}

.about-content p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.about-feature-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.about-feature-item i {
    font-size: 2rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.about-feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.about-feature-item p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.about-image .image-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    text-align: center;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* ========== FOOTER ========== */
.footer-modern {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo-col {
    max-width: 300px;
}

.footer-logo {
    height: 50px;
    margin-bottom: var(--space-md);
}

.footer-logo-col p {
    margin-bottom: var(--space-md);
    color: var(--gray-400);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 4px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-info li {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.footer-info i {
    color: var(--color-secondary);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-info a {
    color: var(--gray-400);
}

.footer-info a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-credit a {
    color: var(--color-secondary);
    font-weight: 600;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-image-right {
        order: -1;
        min-height: 60vh;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Language Selector - Mobile Adjustment */
    .language-selector {
        order: 3;
        margin-left: 0;
        margin-right: var(--space-sm);
        padding: 0.3rem;
        scale: 0.9;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8125rem;
    }

    /* Hamburger Menu - Order */
    .hamburger-menu {
        order: 4;
    }

    /* Logo - Order */
    .nav-logo {
        order: 1;
    }

    /* Show Hamburger Menu */
    .hamburger-menu {
        display: flex;
    }

    /* Mobile Menu Wrapper */
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: var(--shadow-xl);
        z-index: 999;
        transition: right 0.3s ease;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        overflow-y: auto;
    }

    .nav-menu-wrapper.active {
        right: 0;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: block;
    }

    /* Mobile Navigation Menu */
    .nav-menu {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: var(--space-sm) 0;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-menu a::after {
        display: none;
    }

    /* Mobile Book Appointment Button */
    .btn-nav-mobile {
        width: 100%;
        text-align: center;
        margin-top: var(--space-lg);
        display: block !important;
    }

    /* Hide desktop nav button */
    .nav-container>.btn-nav:not(.btn-nav-mobile) {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .services-grid-modern {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card-modern,
.about-content,
.about-image {
    animation: fadeIn 0.6s ease-out;
}

/* ========== ACCESSIBILITY ========== */
:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Smooth scroll offset */
html {
    scroll-padding-top: 100px;
}