/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette - high contrast for accessibility */
    --primary: #0066cc;
    --primary-dark: #004499;
    --primary-light: #e6f2ff;
    --secondary: #ff6600;
    --accent: #00a896;
    --text: #333333;
    --text-light: #666666;
    --background: #ffffff;
    --surface: #f8f9fa;
    --border: #dddddd;
    --error: #d32f2f;
    --success: #388e3c;
    --warning: #f57c00;
    
    /* Typography */
    --font-family: 'Arial', 'Helvetica', sans-serif;
    --font-size-base: 1rem;
    --line-height: 1.6;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Border radius */
    --radius: 4px;
    --radius-lg: 8px;
    
    /* Shadows */
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.15);
}

/* Focus styles for accessibility */
:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: var(--space-md);
    background: var(--primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    z-index: 1000;
    border-radius: var(--radius);
    font-weight: bold;
}

.skip-link:focus {
    top: var(--space-md);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Base typography */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--space-md);
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.main-content {
    min-height: 60vh;
    padding: var(--space-xl) 0;
}

/* Header styles */
.site-header {
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.logo h1 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.tagline {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
}

/* Navigation */
.nav-main {
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    margin: 0;
    padding: 0;
}

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

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--primary);
}

.nav-menu a[aria-current="page"] {
    color: var(--primary);
    font-weight: bold;
}

.nav-menu a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.phone-link {
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: bold;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: var(--font-size-base);
    line-height: 1;
}

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

.button-primary:hover,
.button-primary:focus {
    background: var(--primary-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

.button-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.button-secondary:hover,
.button-secondary:focus {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--space-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

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

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

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

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.service-card {
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

/* Features section */
.features {
    background: var(--surface);
    padding: var(--space-xl) 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.feature-item {
    text-align: center;
    padding: var(--space-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    background: var(--primary-light);
    padding: var(--space-xl) 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Form styles */
.booking-form {
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-md);
}

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

label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: bold;
    color: var(--text);
}

input, select, textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    outline: none;
}

/* Footer */
.site-footer {
    background: var(--text);
    color: white;
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--space-xl);
}

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

.footer-section h3 {
    color: white;
    margin-bottom: var(--space-md);
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
}

.footer-section a:hover,
.footer-section a:focus {
    color: white;
    text-decoration: underline;
}

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

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-contact a {
    display: block;
    margin-bottom: var(--space-xs);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    text-align: center;
    color: #cccccc;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: var(--space-md);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        padding: var(--space-md);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu[aria-expanded="true"] {
        display: flex;
    }
    
    .header-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000ff;
        --text: #000000;
        --border: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card:hover {
        transform: none;
    }
}