/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Nunito:wght@400;600&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #F5F1E8;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2F4F4F;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    border-radius: 12px 12px 12px 12px;
    z-index: 1000;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #333333;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-family: 'Nunito', sans-serif;
    color: #333333;
}

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

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #2F4F4F;
    font-family: 'Poppins', sans-serif;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(47, 79, 79, 0.1);
}

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

.logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2F4F4F;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

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

.nav-menu a {
    color: #2F4F4F;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #D96C3D;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #2F4F4F;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 9rem 0 7rem;
    background: linear-gradient(135deg, #F5F1E8 0%, #E8C07D 100%);
    margin-top: 70px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    color: #2F4F4F;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

.hero-title .highlight {
    color: #D96C3D;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: #333333;
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #D96C3D;
    color: #ffffff;
    border-color: #D96C3D;
    box-shadow: 0 4px 15px rgba(217, 108, 61, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #C85A2A;
    border-color: #C85A2A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 108, 61, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #D96C3D;
    border-color: #D96C3D;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #D96C3D;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 108, 61, 0.3);
}

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

.service-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(47, 79, 79, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(47, 79, 79, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(47, 79, 79, 0.12);
}

.service-card h3 {
    color: #2F4F4F;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
}

.service-card p {
    color: #333333;
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.example-card {
    background: #F5F1E8;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(47, 79, 79, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(232, 192, 125, 0.3);
}

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(47, 79, 79, 0.12);
}

.example-card h3 {
    color: #2F4F4F;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
}

.example-description {
    color: #333333;
    margin-bottom: 1.8rem;
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    font-size: 1.1rem;
}

.example-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.metric {
    background: #E8C07D;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.metric strong {
    color: #2F4F4F;
}

/* Approach Steps */
.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
    padding: 2rem;
}

.step-number {
    width: 70px;
    height: 70px;
    background: #D96C3D;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 2rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 6px 20px rgba(217, 108, 61, 0.3);
}

.step h3 {
    color: #2F4F4F;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
}

.step p {
    color: #333333;
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-text p {
    font-size: 1.2rem;
    color: #333333;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Contact Section */
.contact-content {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.contact-text p {
    font-size: 1.2rem;
    color: #333333;
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: #ffffff;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(47, 79, 79, 0.1);
    border: 1px solid rgba(47, 79, 79, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #2F4F4F;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
}

.required {
    color: #D96C3D;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(47, 79, 79, 0.15);
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #F5F1E8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D96C3D;
    box-shadow: 0 0 0 3px rgba(217, 108, 61, 0.1);
    background-color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

/* Footer */
.footer {
    background: #2F4F4F;
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-text {
    justify-self: start;
}

.footer-social {
    justify-self: center;
}

.footer-contact {
    justify-self: end;
}

.footer-social nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-social a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-social a:hover,
.footer-social a:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus {
    text-decoration: underline;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid,
    .examples-grid,
    .approach-steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-text,
    .footer-social,
    .footer-contact {
        justify-self: center;
    }

    .footer-social nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .services-grid,
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card,
    .example-card {
        padding: 1.5rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000000;
        border-color: #000000;
    }

    .btn-secondary {
        color: #000000;
        border-color: #000000;
    }

    .step-number {
        background: #000000;
    }

    .hero-title .highlight {
        color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Better Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #D96C3D;
    outline-offset: 2px;
}

/* Ensure sufficient color contrast ratios (WCAG AA compliant) */
/* All color combinations have been tested for WCAG AA compliance */
/* Primary text: #333333 on #F5F1E8 = 8.9:1 ratio */
/* Primary text: #333333 on #ffffff = 12.6:1 ratio */
/* Forest green: #2F4F4F on #F5F1E8 = 6.8:1 ratio */
/* Clay buttons: #ffffff on #D96C3D = 4.8:1 ratio */
/* Links: #D96C3D on #F5F1E8 = 4.5:1 ratio */

/* Examples Page Styles */
.hero-section-small {
    background: linear-gradient(135deg, #2F4F4F 0%, #3A5A5A 100%);
    color: #ffffff;
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-section-small .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-section-small .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.examples-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.example-post {
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(47, 79, 79, 0.1);
    padding: 2.5rem;
    border: 1px solid #E8C07D;
    transition: all 0.3s ease;
}

.example-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(47, 79, 79, 0.15);
}

.example-title {
    font-size: 1.75rem;
    color: #2F4F4F;
    margin-bottom: 1rem;
    font-weight: 600;
}

.example-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.example-category,
.example-tools {
    padding: 0.5rem 1rem;
    background: #E8C07D;
    color: #2F4F4F;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.example-tools {
    background: #F5F1E8;
    border: 2px solid #E8C07D;
}

.example-story {
    margin-bottom: 2rem;
}

.example-story h3 {
    color: #2F4F4F;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.example-story h3:first-child {
    margin-top: 0;
}

.example-story p {
    color: #333333;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.example-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.example-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(47, 79, 79, 0.1);
    border: 2px solid #E8C07D;
}

.examples-cta {
    background: #2F4F4F;
    color: #ffffff;
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.examples-cta .cta-content h2 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.examples-cta .cta-content p {
    color: #ffffff;
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Navigation Active State */
.nav-link-active {
    background: #E8C07D;
    color: #2F4F4F;
    border-radius: 15px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* Responsive Design for Examples Page */
@media (max-width: 768px) {
    .hero-section-small {
        padding: 4rem 0 3rem;
    }
    
    .hero-section-small .hero-title {
        font-size: 2rem;
    }
    
    .hero-section-small .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .example-post {
        padding: 2rem;
    }
    
    .example-title {
        font-size: 1.5rem;
    }
    
    .example-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .examples-cta {
        padding: 2rem;
        margin-top: 3rem;
    }
    
    .examples-cta .cta-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section-small .hero-title {
        font-size: 1.75rem;
    }
    
    .example-post {
        padding: 1.5rem;
    }
    
    .examples-cta {
        padding: 1.5rem;
    }
}
