:root {
    --color-primary: #0B3D91;
    --color-secondary: #1B8ECC;
    --color-accent: #F4A300;
    --color-bg: #F7F9FC;
    --color-surface: #FFFFFF;
    --color-text: #1A1A2E;
    --color-text-light: #6B7280;
    
    --font-heading: Rockwell, 'Courier Bold', serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-width: 320px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--color-surface);
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    text-decoration: none;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-primary);
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--color-surface);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
}

.nav-drawer.active {
    right: 0;
}

.nav-content {
    padding: 80px 30px 30px;
}

.nav-content a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 500;
}

.nav-content a:hover {
    color: var(--color-primary);
}

/* Main Content */
main {
    margin-top: 70px;
}

/* Hero Sections */
.hero, .page-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-surface);
}

.hero-container {
    max-width: 800px;
    padding: 0 20px;
}

.hero h2, .page-hero h2 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    color: var(--color-primary);
    margin-bottom: 24px;
}

.hero p, .page-hero p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    min-width: 44px;
    min-height: 44px;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(11, 61, 145, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(27, 142, 204, 0.3);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-text);
}

.btn-accent:hover {
    box-shadow: 0 4px 12px rgba(244, 163, 0, 0.3);
    transform: translateY(-1px);
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 48px;
}

section h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: 16px;
}

/* Cards */
.service-card, .value-card, .member-card, .contact-card, .testimonial {
    background: var(--color-surface);
    border-radius: 0 0 8px 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.card-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--color-primary);
    border-radius: 0;
}

.services-grid, .values-grid, .team-grid, .testimonials-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

/* Feature Items - Alternating Layout */
.features-list {
    max-width: 700px;
    margin: 0 auto;
}

.feature-item {
    margin-bottom: 48px;
    padding: 24px;
}

.feature-item.left {
    text-align: left;
}

.feature-item.right {
    text-align: right;
}

.feature-item h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 16px;
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 32px;
    margin-top: 32px;
}

.process-step {
    text-align: center;
}

.process-step h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 12px;
    font-size: 18px;
}

/* Service Details */
.service-detail {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail ul {
    margin-top: 16px;
    padding-left: 20px;
}

.service-detail li {
    margin-bottom: 8px;
}

/* Case Studies */
.case-study {
    background: var(--color-surface);
    border-radius: 0 0 8px 8px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.case-header {
    padding: 24px;
    background: var(--color-primary);
    color: white;
}

.case-header h3 {
    color: white;
    margin-bottom: 8px;
}

.case-category {
    color: var(--color-accent);
    font-weight: 600;
    margin: 0;
}

.case-content {
    padding: 32px;
}

.case-challenge, .case-solution, .case-results {
    margin-bottom: 24px;
}

.case-challenge h4, .case-solution h4, .case-results h4 {
    color: var(--color-primary);
    margin-bottom: 12px;
}

.case-results ul {
    padding-left: 20px;
}

.case-results li {
    margin-bottom: 8px;
    color: var(--color-text);
}

/* Team Grid */
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.member-card h4 {
    color: var(--color-secondary);
    font-size: 16px;
    margin-bottom: 8px;
}

/* Contact Form */
.contact-grid {
    display: grid;
    gap: 48px;
    margin-top: 32px;
}

.contact-details {
    display: grid;
    gap: 24px;
}

.contact-form {
    background: var(--color-surface);
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    margin-top: 2px;
}

/* Service Areas */
.areas-grid {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

/* Consultation List */
.consultation-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.consultation-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.consultation-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.7;
}

.legal-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.legal-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* CTA Sections */
.cta-section {
    background: var(--color-surface);
    text-align: center;
}

.section-cta {
    text-align: center;
    margin-top: 32px;
}

/* Footer */
footer {
    background: var(--color-surface);
    border-top: 3px solid var(--color-primary);
    padding: 48px 0 24px;
    text-align: center;
}

.footer-content > div {
    margin-bottom: 24px;
}

.footer-logo h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-legal a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 14px;
}

.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-contact {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-social {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-copyright {
    color: var(--color-text-light);
    font-size: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 2px solid var(--color-primary);
    padding: 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie {
    padding: 8px 20px;
    border: none;
    border-radius: 999px;
    background: var(--color-primary);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    min-width: 44px;
    min-height: 44px;
}

.btn-cookie:hover {
    background: var(--color-secondary);
}

#cookie-decline {
    background: var(--color-text-light);
}

#cookie-decline:hover {
    background: var(--color-text);
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .services-grid, .values-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cookie-content {
        flex-wrap: nowrap;
    }
}

@media (max-width: 767px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-content {
        text-align: center;
    }
    
    .cookie-content span {
        font-size: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid;
    }
    
    .card-bar {
        height: 8px;
    }
}

/* Focus styles for keyboard navigation */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}