:root {
    --color-primary: #1B1F3B;
    --color-secondary: #3A4175;
    --color-accent: #B87333;
    --color-bg: #F5F5F8;
    --color-surface: #FFFFFF;
    --color-text: #141627;
    --color-text-light: #5C5F75;
    --font-heading: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-body: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-width: 320px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: var(--color-surface);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.header-logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

nav {
    width: 100%;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    position: relative;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 2px 0;
    transition: 0.3s;
}

/* Main Content Sections */
main {
    min-height: calc(100vh - 200px);
}

section {
    padding: 100px 0;
}

section:nth-child(even) {
    background-color: var(--color-surface);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-surface);
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.hero h1 {
    color: var(--color-surface);
    font-size: 3rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.page-hero {
    background-color: var(--color-primary);
    color: var(--color-surface);
    text-align: center;
    padding: 80px 0;
}

.page-hero h1 {
    color: var(--color-surface);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-surface);
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid #8B5A2B;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary:hover {
    background-color: #A0662E;
    border-bottom: none;
    transform: translateY(2px);
}

/* Grid Layouts */
.services-grid,
.features-grid,
.values-grid,
.team-grid,
.models-grid {
    display: grid;
    gap: 32px;
    margin-top: 3rem;
}

.services-grid,
.features-grid,
.values-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.team-grid,
.models-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.service-card,
.feature,
.value-card,
.team-member,
.model-card,
.metric {
    background-color: var(--color-surface);
    padding: 2rem;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

section:nth-child(even) .service-card,
section:nth-child(even) .feature,
section:nth-child(even) .value-card,
section:nth-child(even) .team-member,
section:nth-child(even) .model-card,
section:nth-child(even) .metric {
    background-color: var(--color-bg);
}

.service-card:hover,
.feature:hover,
.value-card:hover,
.model-card:hover {
    border-color: var(--color-accent);
}

.service-card h3,
.feature h3,
.value-card h3,
.team-member h3,
.model-card h3,
.metric h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Specific Section Styles */
.services-preview,
.why-choose,
.mission-values,
.team-section,
.portfolio-models,
.performance-focus {
    text-align: center;
}

.services-preview h2,
.why-choose h2,
.mission-values h2,
.team-section h2,
.portfolio-models h2,
.performance-focus h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.cta-section,
.service-cta,
.portfolio-cta {
    background-color: var(--color-primary);
    color: var(--color-surface);
    text-align: center;
}

.cta-section h2,
.service-cta h2,
.portfolio-cta h2 {
    color: var(--color-surface);
    margin-bottom: 1rem;
}

.cta-section p,
.service-cta p,
.portfolio-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Services Detailed */
.service-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item ul {
    list-style-type: none;
    margin-left: 0;
}

.service-item li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.service-item li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
}

/* Portfolio Specific Styles */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 2rem;
}

.philosophy-item {
    text-align: center;
}

.allocation {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.allocation-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.allocation-item:last-child {
    margin-bottom: 0;
}

.asset-class {
    font-weight: 500;
}

.percentage {
    font-weight: 600;
    color: var(--color-accent);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: var(--color-surface);
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin: 2rem 0;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-details h2,
.contact-form h2 {
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin-bottom: 0;
}

/* Form Styles */
.contact-form {
    background-color: var(--color-surface);
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input {
    width: auto;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.expectation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 2rem 0;
}

.expectation {
    text-align: center;
}

/* Legal Content */
.legal-content {
    background-color: var(--color-surface);
    padding: 100px 0;
}

.legal-content h1 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-secondary);
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.contact-details {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Footer */
footer {
    background-color: var(--color-surface);
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

footer a {
    color: var(--color-accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    color: var(--color-surface);
    padding: 20px;
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.btn-accept,
.btn-decline {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    min-height: 44px;
    min-width: 44px;
    transition: background-color 0.3s ease;
}

.btn-accept {
    background-color: var(--color-accent);
    color: var(--color-surface);
}

.btn-accept:hover {
    background-color: #A0662E;
}

.btn-decline {
    background-color: transparent;
    color: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-surface);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 0;
        padding: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 16px 20px;
        display: block;
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .services-grid,
    .features-grid,
    .values-grid,
    .team-grid,
    .models-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-grid,
    .process-steps,
    .performance-metrics,
    .expectation-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .header-logo h1 {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 50vh;
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .page-hero {
        padding: 60px 0;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .service-card,
    .feature,
    .value-card,
    .team-member,
    .model-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    section {
        padding: 40px 0;
    }
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    :root {
        --color-text: #000000;
        --color-text-light: #333333;
    }
    
    .hero,
    .page-hero,
    .cta-section,
    .service-cta,
    .portfolio-cta {
        background: #000000;
    }
    
    .btn-primary {
        background-color: #000000;
        border-color: #000000;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}