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

:root {
    --primary-color: #0A6958;
    --secondary-color: #084d43;
    --text-dark: #1f2937;
    --text-light: #313339;
    --bg-light: #faf9f6;
    --bg-white: #ffffff;
    --accent: #0d8268;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

nav .logo img {
    height: 40px;
    width: auto;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle-label span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

section:first-of-type {
    margin-top: 70px;
}

.section-alt {
    background: var(--bg-white);
}

/* Hero/Home */
.hero {
    padding: 8rem 0 6rem;
    background-color: #BDF4E0;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin-bottom: 3rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.project-card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.section-alt .project-card {
    background: var(--bg-light);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-card-content {
    padding: 1.5rem;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.project-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--secondary-color);
    color: #e5e7eb;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Section Headings */
h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 800px;
    margin-bottom: 2rem;
}

/* About Section with Profile Photo */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    max-width: 700px;
}

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

.about-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Case Studies */
.case-studies {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.case-study:nth-child(even) {
    direction: rtl;
}

.case-study:nth-child(even) > * {
    direction: ltr;
}

.case-study img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.case-study-content {
    padding: 1rem 0;
}

.case-study h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.case-study-section {
    margin-bottom: 1.25rem;
}

.case-study-section h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.case-study-section p {
    color: var(--text-light);
}

.case-study-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: color 0.3s;
}

.case-study-link:hover {
    color: var(--secondary-color);
}

/* Services Grid - NEW */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.section-alt .service-item {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.service-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Partners Section - NEW */
.partners-section {
    background: #f0fdf4;
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    border-left: 4px solid var(--primary-color);
}

.partners-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.partners-section p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.partners-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.partners-list li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    line-height: 1.7;
}

.partners-list li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Approach Principles - NEW */
.approach-principles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.principle-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.principle-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.principle-item p {
    color: var(--text-light);
    line-height: 1.7;
}

.process-heading {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Capabilities List */
.capabilities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.capability-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.capability-item p {
    color: var(--text-light);
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
    list-style: none;
    padding: 0;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3,
.step-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.step-content p {
    color: var(--text-light);
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.section-alt .testimonial {
    background: var(--bg-light);
}

.testimonial p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial cite {
    display: block;
    font-style: normal;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--bg-white);
}

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

textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    margin: 2rem 0;
    font-size: 1.125rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-toggle-label {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-menu li {
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .nav-toggle:checked ~ .nav-menu {
        right: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .hero {
        padding: 5rem 0 3rem;
    }

    section {
        padding: 3rem 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .case-study {
        grid-template-columns: 1fr;
    }

    .case-study:nth-child(even) {
        direction: ltr;
    }

    .process-step {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-principles {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        max-width: 250px;
    }
}

/* Case Study Page Styles */

.case-study-page {
    background: var(--bg-light);
}

/* Header Section */
.case-study-header {
    padding: 8rem 0 3rem;
    background: var(--bg-white);
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--secondary-color);
}

.case-study-header h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 300;
}

.case-study-intro {
    font-size: 1.5rem;
    color: var(--text-light);
    max-width: 900px;
    line-height: 1.6;
}

/* Hero Image */
.case-study-hero-image {
    padding: 0;
    background: var(--bg-white);
}

.case-study-hero-image .container {
    max-width: 1400px;
}

.case-study-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Overview Grid */
.case-study-overview {
    padding: 4rem 0;
    background: var(--bg-white);
    border-bottom: 1px solid #e5e7eb;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.overview-item h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.overview-item p {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Content Sections */
.case-study-content {
    padding: 5rem 0;
}

.case-study-content .container {
    max-width: 800px;
}

.content-section {
    margin-bottom: 4rem;
}

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

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 300;
}

.content-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Case Study Testimonial Section */
.case-study-testimonial {
    padding: 5rem 0;
    background: var(--bg-white);
}

.case-study-testimonial .container {
    max-width: 900px;
}

.case-study-testimonial .testimonial {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.case-study-testimonial .testimonial p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.case-study-testimonial .testimonial p:last-of-type {
    margin-bottom: 1.5rem;
}

.case-study-testimonial .testimonial cite {
    display: block;
    font-style: normal;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

/* CTA Section */
.case-study-cta {
    padding: 5rem 0;
    text-align: center;
}

.case-study-cta h2 {
    margin-bottom: 1rem;
}

.case-study-cta .section-intro {
    margin: 0 auto 2rem;
}

/* Case Study Page Responsive */
@media (max-width: 768px) {
    .case-study-header {
        padding: 6rem 0 2rem;
    }

    .case-study-header h1 {
        font-size: 2.5rem;
    }

    .case-study-intro {
        font-size: 1.25rem;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .case-study-content {
        padding: 3rem 0;
    }

    .content-section {
        margin-bottom: 3rem;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .content-section p {
        font-size: 1rem;
    }

    .case-study-testimonial .testimonial {
        padding: 2rem;
    }

    .case-study-testimonial .testimonial p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .case-study-header h1 {
        font-size: 2rem;
    }

    .case-study-intro {
        font-size: 1.125rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===================================
   WCAG AA ACCESSIBILITY ADDITIONS
   =================================== */

/* Skip to main content link - appears on keyboard focus */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced focus indicators for WCAG AA compliance */
a:focus,
button:focus,
input:focus,
.nav-toggle:focus + .nav-toggle-label {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure focus is visible on all interactive elements */
.btn:focus,
.project-card:focus-within,
.case-study:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===================================
   ADDITIONAL STYLING
   =================================== */

/* Values callout box */
.values-callout {
    background: #e8f5f2;
    color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    margin: 2.5rem 0;
    border-left: 6px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.values-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.values-callout p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    color: #1a1a1a;
}

/* Section subheading for "Recent projects" */
.section-subheading {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Hero intro emphasis */
.hero-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.hero-intro strong {
    color: var(--primary-color);
}

/* Who we work with section */
.who-we-work-with {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.who-we-work-with h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.who-we-work-with ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.who-we-work-with li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.who-we-work-with li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.work-with-cta {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* ===================================
   RESPONSIVE ENHANCEMENTS
   =================================== */

@media (max-width: 768px) {
    .values-callout {
        padding: 1.5rem;
    }
    
    .values-heading {
        font-size: 1.25rem;
    }
    
    .values-callout p {
        font-size: 1rem;
    }
    
    .who-we-work-with {
        padding: 1.5rem;
    }
    
    .partners-section {
        padding: 1.5rem;
    }
}

/* ===================================
   COLOR CONTRAST & ACCESSIBILITY
   =================================== */

/* Ensure link colors have sufficient contrast */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

/* Ensure button text has sufficient contrast */
.btn {
    background: var(--primary-color);
    color: white;
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.5rem;
}

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

/* Ensure all interactive elements are at least 44x44px for touch targets */
.nav-menu a {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Mobile menu toggle should be large enough */
.nav-toggle-label {
    min-width: 44px;
    min-height: 44px;
}
