/* 
   Dental Website Design System 
   Clean, Trustworthy, Professional
*/

:root {
    /* Color Palette */
    --primary-blue: #0056b3;
    /* Trust, Professionalism */
    --primary-dark: #004494;
    /* Hover states */
    --secondary-blue: #e6f0ff;
    /* Background accents */
    --accent-color: #007bff;
    /* Highlights */
    --text-dark: #333333;
    /* Main text */
    --text-light: #666666;
    /* Secondary text */
    --background-white: #ffffff;
    /* Clean background */
    --background-gray: #f8f9fa;
    /* Soft background */
    --border-color: #e9ecef;
    /* Subtle borders */
    --white: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */

    /* Container Width */
    --container-width: 1200px;

    /* Transitions */
    --transition-speed: 0.3s;
}

/* Base Reset & Typography */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-dark);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-bg-gray {
    background-color: var(--background-gray);
}

.hero-section {
    background: linear-gradient(135deg, var(--background-gray) 0%, #eef6ff 100%);
    position: relative;
    overflow: hidden;
}

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

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    /* Allows wrapping on small screens */
}

/* CTA Actions - used for inline button groups in CTA sections */
.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Generic btn-group flex wrapper */
.btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        /* Full width buttons on very small screens */
        gap: 0.75rem;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin: 0 !important;
        /* Override any lingering margins */
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cta-actions .btn {
        display: block;
        width: 100%;
        margin: 0 !important;
        text-align: center;
    }

    .cta-actions .cta-separator {
        display: none;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .btn-group .btn {
        display: block;
        width: 100%;
        margin: 0 !important;
        text-align: center;
    }
}

/* Forms */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
    transform: translateY(-2px);
}

/* Header & Navigation */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    /* More transparency for blur */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    /* Subtle border-like shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    /* Optimal height */
    transition: height 0.4s ease;
}

.site-header.scrolled .header-container {
    height: 70px;
    /* Shrink on scroll */
}

.logo {
    font-size: 1.75rem;
    /* Slightly smaller, more refined */
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    letter-spacing: -0.03em;
    text-decoration: none;
    transition: transform 0.3s ease;
    margin-right: 2rem;
    /* Added spacing to separate from nav */
}

.logo:hover {
    transform: scale(1.02);
}

/* Main Nav Items */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    /* Reduced from 3rem to fit items better */
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 600;
    /* Increased from 500 for better contrast */
    font-size: 0.95rem;
    padding: 1rem 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    /* Prevent wrapping for top-level links */
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-blue);
}

/* Minimalist Underline Hover */
.main-nav>ul>li>a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0.5rem;
    left: 0;
    background-color: var(--primary-blue);
    transform-origin: bottom right;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-nav>ul>li>a:hover::after,
.main-nav>ul>li>a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Dropdown Menu - Simple & Premium */
.has-dropdown {
    position: relative;
}

/* Remove arrow if desired, or keep it subtle */
.has-dropdown>a {
    padding-right: 1.25rem;
    display: inline-flex;
    align-items: center;
}

.has-dropdown>a::before {
    content: '';
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(45deg);
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -3px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.has-dropdown:hover>a::before {
    transform: rotate(-135deg);
    margin-top: 2px;
    color: var(--primary-blue);
    opacity: 1;
}

/* Specificity fix: Ensure dropdown overrides .main-nav ul flex display */
.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(10px);
    background: var(--white);
    min-width: 12rem;
    /* Slightly wider */
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Softer, more premium shadow */
    opacity: 0;
    visibility: hidden;
    display: block;
    /* Forces vertical stacking */
    z-index: 1100;
    transition: all 0.2s cubic-bezier(0.1, 0.7, 0.1, 1);
}

/* Remove center triangle for cleaner look */
/* Remove center triangle for cleaner look */
.dropdown-menu::before,
.main-nav .dropdown-menu::before {
    display: none;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Target children with higher specificity if needed */
.main-nav .dropdown-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/*
.dropdown-menu li:last-child {
    border-bottom: none;
}
*/

.main-nav .dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.5rem 1.5rem;
    /* Increased vertical padding */
    /* Better vertical breathing room */
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    font-size: 0.95rem;
}

.main-nav .dropdown-menu a:hover {
    color: var(--primary-blue);
    /* Pop of color */
    background-color: #f8f9fa;
    /* Light gray hover */
    padding-left: 1.5rem;
    transform: none;
}

/* Contact Button in Nav */
.main-nav .btn-primary {
    padding: 0.75rem 1.75rem !important;
    background: var(--primary-blue) !important;
    color: white !important;
    font-size: 0.9rem;
    margin-left: 1rem;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
    border: 1px solid transparent;
}

.main-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.35);
    background: var(--primary-dark) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    /* Circular touch target */
    transition: background-color 0.2s;
    z-index: 2000;
    /* Ensure it stays on top of the overlay */
    position: relative;
    /* Needed for z-index */
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    /* Subtle hover */
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    /* Slightly wider */
    height: 2px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy transition */
    margin: 0 auto;
}

/* Mobile Navigation - Ultra Premium Overlay */
/* Mobile Navigation - Ultra Premium Overlay */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        /* Fallback */
        background: linear-gradient(135deg, rgba(240, 244, 252, 0.98), rgba(255, 255, 255, 0.95));
        /* Premium gradient */
        -webkit-backdrop-filter: blur(20px);
        /* Glassmorphism */
        backdrop-filter: blur(20px);
        transform: translateY(-100%);
        /* Slide form top for a distinct feel, or opacity fade */
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        /* Behind toggle, above header */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0;
        gap: 1.5rem;
        /* Spacious */
        align-items: center;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        /* Allow scroll if needed on short screens */
    }

    .main-nav li {
        width: 100%;
        text-align: center;
        border-bottom: none;
        /* Clean look */
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    /* Staggered animation */
    .main-nav.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav.active li:nth-child(1) {
        transition-delay: 0.15s;
    }

    .main-nav.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .main-nav.active li:nth-child(3) {
        transition-delay: 0.25s;
    }

    .main-nav.active li:nth-child(4) {
        transition-delay: 0.3s;
    }

    .main-nav.active li:nth-child(5) {
        transition-delay: 0.35s;
    }

    .main-nav.active li:nth-child(6) {
        transition-delay: 0.4s;
    }

    .main-nav a {
        font-size: 1.5rem;
        /* Larger, tappable font */
        font-weight: 700;
        color: var(--primary-dark);
        padding: 0.5rem;
        display: inline-block;
        position: relative;
    }

    .main-nav a:hover {
        color: var(--accent-color);
    }

    /* Dropdown in Mobile - Accordion Style centered */
    .main-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-top: 1rem;
        text-align: center;
        display: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: auto;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .main-nav .dropdown-menu a {
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-light);
        padding: 0.5rem;
    }

    .has-dropdown>a::after {
        content: '\f078';
        /* FontAwesome Chevron Down */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.8rem;
        margin-left: 0.75rem;
        transition: transform 0.3s;
        display: inline-block;
        vertical-align: middle;
        position: static;
        background: none;
        width: auto;
        height: auto;
        opacity: 0.5;
    }

    .has-dropdown.active>a::after {
        transform: rotate(180deg);
    }

    /* Hide the old CSS chevrons if present */
    .has-dropdown>a::before {
        display: none;
    }

    /* Button specific style override for mobile menu */
    .main-nav .btn-primary {
        margin: 2rem auto 0;
        width: auto;
        min-width: 200px;
        font-size: 1.1rem;
        box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-blue);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition-speed);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-top: 0.5rem;
}

/* Footer style */
.site-footer {
    background-color: #111;
    /* Darker, more premium background */
    color: #e0e0e0;
    /* Softer white text */
    padding: 5rem 0 3rem;
    /* Increased padding */
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Optimized for 4 columns */
    gap: 2rem;
    /* Balanced gap */
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
    /* Larger headings */
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-bottom: 0;
    border-bottom: none;
    /* Removed border for cleaner look */
}

.footer-col p {
    color: #aaa;
    /* Softer paragraph text */
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.85rem;
}

.footer-col a {
    color: #bbb;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
    /* Subtle hover movement */
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border */
    margin-top: 5rem;
    padding-top: 2rem;
    color: #777;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #999;
}


.footer-bottom a:hover {
    color: var(--white);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
    color: var(--white);
    padding-left: 0;
    /* Override generic footer link hover */
}

/* Mobile Responsiveness Adjustments */
/* Mobile Responsiveness Adjustments */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        /* Reduce section padding */
    }

    h1 {
        font-size: 2rem;
        /* Smaller hero heading locally */
    }

    h2 {
        font-size: 1.75rem;
        /* Smaller section headings */
    }

    .hero-section {
        padding: 4rem 0 !important;
        /* Override inline style if possible, or handle via class */
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin: 0 !important;
        /* Override any lingering margins */
        text-align: center;
    }
}

/* Breadcrumbs */
.breadcrumbs-area {
    background-color: var(--background-gray);
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs-area a {
    color: var(--text-light);
    font-weight: 500;
}

.breadcrumbs-area a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.breadcrumbs-area .separator {
    margin: 0 0.5rem;
    color: #ccc;
}

.breadcrumbs-area .current {
    color: var(--primary-blue);
    font-weight: 600;
}