/* ===================================
   Demo Dental Clinic - Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #0077B6;
    --primary-dark: #005f8f;
    --primary-light: #0096c7;
    --secondary: #00B4D8;
    --accent: #48CAE4;
    --accent-light: #90E0EF;
    --text-dark: #1D3557;
    --text-medium: #457B9D;
    --text-light: #6c757d;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --success: #06D6A0;
    --warning: #FFD166;
    --danger: #EF476F;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--space-md);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

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

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

.btn-white:hover {
    background: var(--off-white);
    color: var(--primary-dark);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    font-weight: 500;
}

.header-phone:hover {
    color: var(--accent);
}

.header-hours {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent-light);
}

.header-hours .separator {
    opacity: 0.5;
}

.nav {
    padding: var(--space-md) 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo-icon svg {
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-medium);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    padding: var(--space-sm) 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li a {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    color: var(--text-dark);
}

.dropdown li a:hover {
    background: var(--off-white);
    color: var(--primary);
}

.dropdown li a::after {
    display: none;
}

.nav-cta {
    margin-left: var(--space-md);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all var(--transition-normal);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--secondary) 100%);
    opacity: 0.1;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-text h1 {
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: var(--space-xl);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-dark);
    font-weight: 500;
}

.hero-feature svg {
    color: var(--success);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-xl);
}

.rating-badge {
    background: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.stars {
    color: var(--warning);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.rating-badge span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-top: var(--space-xs);
}

/* ===================================
   Trust Bar
   =================================== */
.trust-bar {
    background: var(--text-dark);
    padding: var(--space-xl) 0;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.trust-item {
    color: var(--white);
}

.trust-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.trust-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===================================
   Services Section
   =================================== */
.services-section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header p {
    color: var(--text-medium);
    font-size: 1.125rem;
    margin-top: var(--space-sm);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    position: relative;
    display: block;
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--white) 0%, rgba(0,180,216,0.05) 100%);
}

.service-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, rgba(0,119,182,0.1), rgba(0,180,216,0.1));
    border-radius: var(--radius-lg);
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-card:hover .service-link {
    color: var(--primary-dark);
}

/* ===================================
   Why Section
   =================================== */
.why-section {
    padding: var(--space-3xl) 0;
    background: var(--off-white);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.why-text h2 {
    margin-bottom: var(--space-xl);
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.why-feature {
    display: flex;
    gap: var(--space-lg);
}

.why-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-md);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.why-feature-content h4 {
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
}

.why-feature-content p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin: 0;
}

.why-image {
    display: flex;
    justify-content: center;
}

.why-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-stats-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-medium);
}

/* ===================================
   Locations Section
   =================================== */
.locations-section {
    padding: var(--space-3xl) 0;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.location-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.location-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.location-1 { background: linear-gradient(135deg, #0077B6, #00B4D8); }
.location-2 { background: linear-gradient(135deg, #00B4D8, #48CAE4); }
.location-3 { background: linear-gradient(135deg, #48CAE4, #90E0EF); }

.location-content {
    padding: var(--space-xl);
}

.location-content h3 {
    margin-bottom: var(--space-md);
}

.location-address {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.location-phone {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--accent-light);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--accent-light);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--accent-light);
}

/* ===================================
   Chat Widget
   =================================== */
.chat-widget {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 1001;
}

.chat-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.chat-toggle .close-icon {
    display: none;
}

.chat-widget.open .chat-toggle .chat-icon {
    display: none;
}

.chat-widget.open .chat-toggle .close-icon {
    display: block;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--danger);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-widget.open .chat-notification {
    display: none;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.chat-widget.open .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    color: var(--white);
}

.chat-avatar {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
}

.chat-header-info {
    flex: 1;
}

.chat-header-info h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 2px;
}

.chat-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: var(--space-xs);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-height: 350px;
}

.chat-message {
    display: flex;
    gap: var(--space-sm);
}

.chat-message.assistant {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 85%;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
}

.chat-message.assistant .message-content {
    background: var(--off-white);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-bottom-right-radius: var(--radius-sm);
}

.message-content p {
    margin-bottom: var(--space-sm);
}

.message-content p:last-child {
    margin-bottom: 0;
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: 0 var(--space-lg) var(--space-md);
}

.quick-reply {
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-reply:hover {
    background: var(--primary);
    color: var(--white);
}

.chat-form {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--light-gray);
}

.chat-form input {
    flex: 1;
    padding: var(--space-md);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.chat-form input:focus {
    border-color: var(--primary);
}

.chat-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chat-form button:hover {
    transform: scale(1.05);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-content {
        grid-template-columns: 1fr;
    }
    
    .why-image {
        order: -1;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-image-card {
        max-width: 300px;
    }
    
    .trust-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .chat-window {
        width: calc(100vw - 32px);
        right: -8px;
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* ===================================
   Mobile Menu (Open State)
   =================================== */
.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    gap: var(--space-md);
}

.nav-links.open .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding-left: var(--space-lg);
}

/* ===================================
   Page Specific Styles
   =================================== */

/* Services Page */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: var(--space-md);
}

.page-hero p {
    color: var(--text-medium);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: var(--space-3xl) 0;
}

.content-section:nth-child(even) {
    background: var(--off-white);
}

/* Booking Page */
.booking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl);
}

.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
}

.booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    position: relative;
}

.booking-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--light-gray);
}

.booking-step:last-child::after {
    display: none;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-medium);
    position: relative;
    z-index: 1;
}

.booking-step.active .step-number {
    background: var(--primary);
    color: var(--white);
}

.booking-step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-medium);
}

.booking-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.booking-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-2xl);
}

.booking-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.booking-option {
    padding: var(--space-lg);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.booking-option:hover {
    border-color: var(--primary);
}

.booking-option.selected {
    border-color: var(--primary);
    background: rgba(0,119,182,0.05);
}

.booking-option h4 {
    margin-bottom: var(--space-xs);
}

.booking-option p {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin: 0;
}

.booking-option .price {
    display: block;
    margin-top: var(--space-sm);
    font-weight: 600;
    color: var(--primary);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* Dashboard Styles */
.dashboard {
    padding: var(--space-xl);
    background: var(--off-white);
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0,119,182,0.1), rgba(0,180,216,0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-medium);
}

.dashboard-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-xl);
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--light-gray);
}

.dashboard-section-header h3 {
    font-size: 1.125rem;
}

.task-list {
    padding: var(--space-md);
}

.task-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.task-item:hover {
    background: var(--off-white);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.task-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.task-meta {
    font-size: 0.8rem;
    color: var(--text-medium);
}

.task-priority {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.task-priority.high {
    background: rgba(239,71,111,0.1);
    color: var(--danger);
}

.task-priority.medium {
    background: rgba(255,209,102,0.1);
    color: #cc8800;
}

.task-priority.low {
    background: rgba(6,214,160,0.1);
    color: var(--success);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Typing Animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: var(--space-md);
    background: var(--off-white);
    border-radius: var(--radius-lg);
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-medium);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Mark Advance AI demo banner */
.ma-demo-bar{position:fixed;left:0;right:0;bottom:0;z-index:1500;display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;justify-content:space-between;padding:8px max(4vw,16px);background:#0a0a0f;color:#e5e7eb;font:14px/1.4 system-ui,sans-serif}
.ma-demo-bar strong{color:#22d3ee}
.ma-demo-bar a{color:#0a0a0f;background:#22d3ee;padding:6px 12px;border-radius:8px;font-weight:700;text-decoration:none;white-space:nowrap}
body{padding-bottom:64px}
.chat-widget{bottom:calc(var(--space-xl) + 56px)}
@media(max-width:600px){body{padding-bottom:96px}.chat-widget{bottom:104px}}
