:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Smooth color transitions */
    transition: --color-accent-primary 0.6s ease,
                --color-accent-primary-hover 0.6s ease,
                --gradient-hero 0.6s ease,
                --gradient-subtle 0.6s ease;
}

[data-theme="light"] {
    --color-bg-primary: #fefefe;
    --color-bg-secondary: #f7f7f5;
    --color-bg-tertiary: #f0efeb;
    --color-bg-elevated: #ffffff;
    
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #545454;
    --color-text-tertiary: #787774;
    --color-text-inverse: #ffffff;
    
    --color-border-primary: #e5e4e0;
    --color-border-secondary: #d4d3ce;
    
    --color-accent-primary: #d97758;
    --color-accent-primary-hover: #c56548;
    --color-accent-secondary: #5fb069;
    --color-accent-tertiary: #f39c39;
    --color-accent-gold: #f4b643;
    --color-accent-purple: #9b8afb;
    --color-accent-green: #10b981;
    
    --color-surface-overlay: rgba(26, 26, 26, 0.03);
    --gradient-hero: linear-gradient(135deg, #d97758 0%, #e09572 50%, #f4b643 100%);
    --gradient-premium: linear-gradient(135deg, #f4b643 0%, #f39c39 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafaf9 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(217, 119, 88, 0.05) 0%, rgba(244, 182, 67, 0.05) 100%);
}

[data-theme="dark"] {
    --color-bg-primary: #18181a;
    --color-bg-secondary: #202023;
    --color-bg-tertiary: #26262a;
    --color-bg-elevated: #2d2d32;
    
    --color-text-primary: #f5f5f3;
    --color-text-secondary: #c7c7c5;
    --color-text-tertiary: #9a9a97;
    --color-text-inverse: #18181a;
    
    --color-border-primary: #3a3a3f;
    --color-border-secondary: #47474d;
    
    --color-accent-primary: #3b82f6;
    --color-accent-primary-hover: #60a5fa;
    --color-accent-secondary: #10b981;
    --color-accent-tertiary: #f59e0b;
    --color-accent-gold: #f5c156;
    --color-accent-purple: #a799ff;
    --color-accent-green: #6fbf7b;
    
    --color-surface-overlay: rgba(245, 245, 243, 0.06);
    --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93bbfd 100%);
    --gradient-premium: linear-gradient(135deg, #f5c156 0%, #f4a94e 100%);
    --gradient-card: linear-gradient(145deg, #26262a 0%, #202023 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    transition: var(--transition-base);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Load Animation */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: pageEnter 0.6s ease-out;
}

.navbar {
    animation: pageEnter 0.4s ease-out;
}

.hero-content {
    animation: pageEnter 0.8s ease-out 0.2s backwards;
}

.services-grid > * {
    animation: pageEnter 0.6s ease-out;
    animation-fill-mode: both;
}

.services-grid > *:nth-child(1) { animation-delay: 0.1s; }
.services-grid > *:nth-child(2) { animation-delay: 0.15s; }
.services-grid > *:nth-child(3) { animation-delay: 0.2s; }
.services-grid > *:nth-child(4) { animation-delay: 0.25s; }
.services-grid > *:nth-child(5) { animation-delay: 0.3s; }
.services-grid > *:nth-child(6) { animation-delay: 0.35s; }
.services-grid > *:nth-child(7) { animation-delay: 0.4s; }
.services-grid > *:nth-child(8) { animation-delay: 0.45s; }
.services-grid > *:nth-child(9) { animation-delay: 0.5s; }

/* Add subtle texture to light theme */
[data-theme="light"] body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(217, 119, 88, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(244, 182, 67, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border-primary);
    z-index: 1000;
    backdrop-filter: blur(20px);
    background-color: rgba(var(--color-bg-primary-rgb, 255, 255, 255), 0.85);
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background-color: rgba(10, 10, 10, 0.85);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text-primary);
    position: relative;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logo-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border-radius: 3px;
    font-size: 0.5rem;
    font-weight: 700;
    margin-left: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: rotate(-5deg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-stamp::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    animation: shimmer 3s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.logo:hover .logo-stamp {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.logo:hover .logo-stamp::before {
    animation: shimmer 0.6s ease-in-out;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent-primary);
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.75rem;
}

[data-theme="dark"] .dropdown-menu {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--color-bg-elevated);
    border-left: 1px solid var(--color-border-primary);
    border-top: 1px solid var(--color-border-primary);
    transform: translateX(-50%) rotate(45deg);
}

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

.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.dropdown-link:hover {
    background-color: var(--color-surface-overlay);
    color: var(--color-accent-primary);
}

.call-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-accent-primary);
    color: var(--color-text-inverse);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.call-btn:hover {
    background-color: var(--color-accent-primary-hover);
    color: var(--color-text-inverse);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--color-surface-overlay);
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--color-text-primary);
    margin: 4px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* Hero Section */
main {
    margin-top: 80px;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-bg-primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.08;
    pointer-events: none;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--color-accent-primary) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--color-accent-secondary) 0%, transparent 50%),
        radial-gradient(circle at 1px 1px, var(--color-border-primary) 1px, transparent 1px);
    background-size: 600px 600px, 600px 600px, 40px 40px;
    opacity: 0.05;
    animation: patternMove 30s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Animated particles effect */
.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 90% 10%, white, transparent),
        radial-gradient(1px 1px at 15% 80%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.3;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .hero::before {
    opacity: 0.1;
}

@keyframes sparkle {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-surface-overlay);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent-secondary);
    margin-bottom: 2rem;
    border: 1px solid var(--color-border-primary);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: var(--color-accent-secondary);
    color: var(--color-text-inverse);
    border-radius: 50%;
    font-size: 0.75rem;
}

.hero-title {
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
}

.title-accent {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    margin-bottom: 0.5rem;
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

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

.btn-primary {
    background-color: var(--color-accent-primary);
    color: var(--color-text-inverse);
    transition: all 0.3s ease, background-color 0.6s ease;
}

.btn-primary:hover {
    background-color: var(--color-accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-bg-elevated);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-primary);
}

.btn-secondary:hover {
    background-color: var(--color-surface-overlay);
    transform: translateY(-2px);
}

.btn-arrow {
    display: inline-flex;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Services Section */
.services-overview {
    padding: 6rem 0;
    background-color: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.services-overview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-accent-primary) 0%, transparent 30%);
    opacity: 0.02;
    animation: servicesGlow 20s ease-in-out infinite;
}

@keyframes servicesGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10%, -10%) scale(1.1); }
    66% { transform: translate(-10%, 10%) scale(0.9); }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-xl);
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--gradient-hero);
    opacity: 0.03;
    transform: translateY(-100%);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -100%;
    left: -100%;
    right: -100%;
    height: 200%;
    background: radial-gradient(circle, var(--color-accent-primary) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent-primary);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: translateY(0);
    opacity: 0.05;
}

.service-card:hover::after {
    opacity: 0.03;
}

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

.service-card:hover .service-link {
    gap: 1rem;
    color: var(--color-accent-primary);
}

.service-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-secondary) 100%);
    border: 2px solid var(--color-accent-gold);
    position: relative;
}

.service-card.featured::before {
    background: var(--gradient-premium);
    opacity: 0.08;
}

.service-card.emergency {
    border: 2px solid var(--color-accent-tertiary);
    animation: emergencyPulse 3s ease-in-out infinite;
}

@keyframes emergencyPulse {
    0%, 100% { 
        border-color: var(--color-accent-tertiary);
        box-shadow: 0 0 0 0 rgba(243, 156, 57, 0.4);
    }
    50% { 
        border-color: var(--color-accent-gold);
        box-shadow: 0 0 0 10px rgba(243, 156, 57, 0);
    }
}

.service-card-header {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.service-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.service-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.service-description {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.service-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.service-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

.service-feature-icon {
    color: var(--color-accent-secondary);
    font-size: 1rem;
}

.service-link {
    font-weight: 600;
    color: var(--color-text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-accent-gold);
    color: var(--color-text-inverse);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

.service-card.featured .service-link {
    color: var(--color-text-inverse);
}

/* Process Section */
.process {
    padding: 6rem 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--color-border-primary);
    z-index: -1;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--color-bg-elevated);
    border: 2px solid var(--color-border-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-primary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--gradient-hero);
    color: var(--color-text-inverse);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.phone-link {
    color: var(--color-text-inverse);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--color-bg-tertiary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    display: block;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.footer-links a {
    display: block;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: var(--transition-fast);
}

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

.footer-phone {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent-primary);
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-contact p {
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-primary);
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
}

/* Footer Address Styles */
.footer-address {
    font-style: normal;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-hours {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* Enhanced Responsive Design */
/* Large Desktops */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title .title-main {
        font-size: 4.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets - Landscape */
@media (max-width: 1024px) {
    .hero {
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card.featured {
        grid-column: span 2;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-details {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        position: static;
    }
}

/* Service Grid Responsive Adjustments */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card.featured {
        grid-column: span 2;
    }
}

/* Tablets - Portrait & Large Phones */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-bg-primary);
        border-bottom: 1px solid var(--color-border-primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.featured {
        grid-column: span 1;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 1rem;
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-title .title-accent {
        font-size: 1rem;
    }
    
    .hero-title .title-main {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .phone-link {
        font-size: 1.25rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .btn,
    .service-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Form Styles for Contact Page */
.form-section {
    padding: 4rem 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.form-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.form-label .required {
    color: var(--color-accent-tertiary);
}

.form-input,
.form-textarea,
.form-select {
    padding: 0.875rem 1.25rem;
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text-primary);
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-checkbox-label {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.form-submit {
    margin-top: 2rem;
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
}

.form-note {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
}

/* Service Page Styles */
.service-hero {
    padding: 6rem 0;
    background: var(--gradient-hero);
    color: var(--color-text-inverse);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.service-hero.residential::before {
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600');
}

.service-hero.commercial::before {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600');
}

.service-hero.hoa::before {
    background-image: url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=1600');
}

.service-hero.renovation::before {
    background-image: url('https://images.unsplash.com/photo-1581858726788-75bc0f6a952d?w=1600');
}

.service-hero.electrical::before {
    background-image: url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?w=1600');
}

.service-hero.plumbing::before {
    background-image: url('https://images.unsplash.com/photo-1607472586893-edb57bdc0e39?w=1600');
}

.service-hero.hvac::before {
    background-image: url('https://images.unsplash.com/photo-1631545806609-35450a01ec96?w=1600');
}

.service-hero.demolition::before {
    background-image: url('https://images.unsplash.com/photo-1589939705384-5185137a7f0f?w=1600');
}

.service-hero .container {
    position: relative;
    z-index: 1;
}

.service-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.service-hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.service-content {
    padding: 4rem 0;
}

.service-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-main h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.service-main p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-main ul {
    list-style: none;
    padding: 0;
}

.service-main li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

.service-main li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent-secondary);
    font-weight: bold;
}

.service-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.sidebar-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent-primary);
    margin-bottom: 0.5rem;
}

.price-note {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    margin-bottom: 1.5rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-surface-overlay);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.timeline-text {
    flex: 1;
}

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

.timeline-value {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background-color: var(--color-bg-secondary);
    position: relative;
}

.testimonials::before {
    content: '"';
    position: absolute;
    top: -2rem;
    left: 5%;
    font-size: 10rem;
    font-family: var(--font-display);
    color: var(--color-accent-primary);
    opacity: 0.1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent-primary);
}

.testimonial-stars {
    color: var(--color-accent-gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--color-text-primary);
}

.author-title {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

.testimonial-badge {
    position: absolute;
    top: -0.75rem;
    right: 1.5rem;
    background: var(--gradient-premium);
    color: var(--color-text-inverse);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    border-color: var(--color-accent-primary);
    transform: translateY(-2px);
}

.badge-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-primary);
    color: var(--color-text-inverse);
    border-radius: 50%;
    font-size: 1.25rem;
}

.badge-text {
    text-align: left;
}

.badge-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

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

/* Enhanced Testimonials */
.testimonial-location {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-primary);
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-accent-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-testimonial {
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-surface-overlay) 100%);
    border: 2px solid var(--color-accent-primary);
}

.featured-testimonial .testimonial-badge {
    background: var(--color-accent-primary);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-metrics {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    /* Global mobile app-like setup */
    html {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    
    section {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Typography scaling for mobile */
    .hero-title {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero-title .title-main {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
        line-height: 1.15;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        padding-right: 1rem;
    }
    
    .hero-title .title-accent {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    /* Hero section mobile optimization */
    .hero {
        min-height: calc(var(--vh, 1vh) * 100 - 80px);
        height: calc(var(--vh, 1vh) * 100 - 80px);
        padding: 0;
        overflow: hidden;
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow: visible;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
        padding: 0;
        max-width: 90%;
        word-wrap: break-word;
        color: var(--color-text-secondary);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        width: 100%;
        max-width: 280px;
        padding: 0;
    }
    
    .btn-large {
        width: 100%;
        padding: 1rem;
        font-size: 0.95rem;
        border-radius: 12px;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Service cards mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .service-card {
        border-radius: var(--radius-lg);
    }
    
    .service-card-header {
        height: 180px;
    }
    
    .service-card-body {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .service-description {
        font-size: 0.875rem;
    }
    
    /* Hero badge mobile */
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        margin-bottom: 1.5rem;
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Stats and metrics mobile */
    .hero-stats {
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .stat {
        padding: 0.5rem;
        flex: 1;
    }
    
    .stat-number {
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    /* Testimonials mobile */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    /* Process steps mobile */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-step {
        text-align: center;
        padding: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 auto 1rem;
    }
    
    /* Who we serve mobile */
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .client-card {
        padding: 1rem;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    
    .client-icon {
        font-size: 2rem;
        margin-bottom: 0;
    }
    
    .client-content {
        text-align: left;
    }
    
    /* CTA sections mobile */
    .floating-cta > div {
        padding: 1.5rem !important;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Logo mobile */
    .logo-text {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .logo-stamp {
        font-size: 0.4rem;
        padding: 1px 4px;
        margin-left: 6px;
    }
    
    .logo-tagline {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        margin-top: -2px;
    }
    
    /* Trust badges mobile */
    .trust-badges {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .trust-badge {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Section spacing mobile */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
}

/* Tablet specific (iPad) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .hero-title .title-main {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-title .title-main {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .navbar {
        height: 80px;
    }
    
    main {
        margin-top: 80px;
    }
    
    .nav-wrapper {
        height: 100%;
        align-items: center;
    }
    
    .logo {
        gap: 2px;
    }
    
    .logo-tagline {
        font-size: 0.65rem;
        opacity: 0.9;
    }
}

/* Mobile Floating CTA */
.mobile-float-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    animation: slideUpFloat 0.5s ease-out;
    transform: translateY(0);
    transition: all 0.3s ease;
}

@keyframes slideUpFloat {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.float-cta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.float-cta-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.float-cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.float-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.float-cta-call {
    background: #059669;
    color: white;
}

.float-cta-call:hover {
    background: #047857;
    transform: translateY(-1px);
}

.float-cta-consult {
    background: #e5e7eb;
    color: #1f2937;
}

.float-cta-consult:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

.float-cta-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.float-cta-close:hover {
    color: #1f2937;
    transform: rotate(90deg);
}

/* Show on all devices */
.mobile-float-cta {
    display: block;
}

.mobile-float-cta.hidden {
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .mobile-float-cta {
        max-width: 400px;
        left: auto;
        right: 20px;
    }
    
    /* Swap button order and styles on desktop */
    .float-cta-consult {
        order: -1;
        background: #059669;
        color: white;
    }
    
    .float-cta-consult:hover {
        background: #047857;
    }
    
    .float-cta-call {
        background: #e5e7eb;
        color: #1f2937;
    }
    
    .float-cta-call:hover {
        background: #d1d5db;
    }
}

@media (max-width: 480px) {
    .float-cta-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .float-cta-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.813rem;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .mobile-float-cta {
    background: #1f2937;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .float-cta-title {
    color: #f3f4f6;
}

[data-theme="dark"] .float-cta-close {
    color: #9ca3af;
}

[data-theme="dark"] .float-cta-close:hover {
    color: #f3f4f6;
}

[data-theme="dark"] .float-cta-call {
    background: #3B82F6;
}

[data-theme="dark"] .float-cta-call:hover {
    background: #2563eb;
}

[data-theme="dark"] .float-cta-consult {
    background: #374151;
    color: #f3f4f6;
}

[data-theme="dark"] .float-cta-consult:hover {
    background: #4b5563;
}