/* Ottawa Handiman Website - SEO Optimized Styles */
/* Mobile-first responsive design for optimal performance */

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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

:root {
    --primary-color: #2C5530;
    --secondary-color: #8B4513;
    --accent-color: #D2691E;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --border-color: #E9ECEF;
    --success-color: #27AE60;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
    padding-top: 70px; /* Space for fixed navigation */
}

/* Navigation Styles */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 400;
}

.nav-check {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

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

.nav-cta a {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta a:hover {
    background: #1e3a21;
    color: var(--white);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .nav-container {
        height: 70px;
    }
    
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
        -webkit-tap-highlight-color: transparent;
        width: 40px;
        height: 40px;
        align-items: center;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 1rem;
        z-index: 999;
    }
    
    /* CSS-only hamburger menu */
    .nav-check:checked ~ .nav-menu {
        left: 0;
    }
    
    .nav-check:checked ~ .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-check:checked ~ .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-check:checked ~ .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(44, 85, 48, 0.1);
}

.badge {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(44, 85, 48, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.badge:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #E8F5E8 100%);
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.benefit-item {
    background: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.cta-button.primary:hover {
    background: #1e3a21;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cta-button.secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.cta-button.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background: var(--white);
}

.comparison-table {
    max-width: 900px;
    margin: 3rem auto;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    align-items: center;
    text-align: center;
}

.comparison-row:nth-child(even) {
    background: var(--light-bg);
}

.comparison-row .feature {
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    padding-left: 1rem;
}

.comparison-row .us {
    color: var(--success-color);
    font-weight: 500;
}

.comparison-row .them {
    color: var(--text-light);
}

.comparison-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
}

.comparison-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Value Section */
.value-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

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

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.credential {
    background: var(--white);
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
    color: var(--primary-color);
    text-align: center;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-caption {
    padding: 1rem;
    background: var(--white);
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.testimonial-service {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wood-source-endorsement {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.wood-source-endorsement h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.wood-source-endorsement p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
}

.wood-source-endorsement a {
    color: var(--white);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.wood-source-endorsement a:hover {
    opacity: 0.8;
}


.partnership-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.partnership-section h2,
.partnership-section h3 {
    color: var(--white);
}

.partnership-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.partnership-text p {
    color: rgba(255,255,255,0.9);
}

.partnership-text a {
    color: #FFE4B5;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.partnership-text a:hover {
    color: var(--white);
    text-decoration: none;
}

/* Service Area Section */
.service-area-section {
    padding: 80px 0;
    background: var(--light-bg);
}

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

.area-column {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.area-column h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.area-column ul {
    list-style: none;
}

.area-column li {
    padding: 0.3rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.area-column li:last-child {
    border-bottom: none;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    word-break: break-all;
    display: block;
    margin: 0.5rem 0;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

#contact-form {
    display: grid;
    gap: 1rem;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #1e3a21;
    transform: translateY(-2px);
}

.final-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.final-cta h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.local-resources {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.local-resources h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.local-resources p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.local-resources a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.local-resources a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

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

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

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495E;
    color: rgba(255,255,255,0.7);
}

/* Responsive Design - Mobile and Tablet Optimization */

/* Mobile First - Base styles above already mobile optimized */

/* Comparison Table Mobile */
@media (max-width: 768px) {
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    
    .comparison-header > div:not(:first-child),
    .comparison-row > div:not(:first-child) {
        padding-left: 2rem;
    }
    
    .comparison-row .feature {
        background: var(--primary-color);
        color: var(--white);
        padding: 0.5rem 1rem;
        margin: 0.5rem 0;
    }
    
    .trust-badges {
        justify-content: center;
        margin-top: 2rem;
        padding-top: 1.5rem;
        gap: 0.6rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
        flex: 0 1 auto;
    }
    
    .hero-benefits {
        justify-content: center;
        gap: 0.6rem;
    }
    
    .benefit-item {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
}

/* Small Mobile (iPhone SE, etc.) */
@media (max-width: 375px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-benefits {
        flex-direction: column;
        align-items: stretch;
    }
    
    .benefit-item {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .cta-button {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Mobile Portrait (Most phones) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Large Mobile / Small Tablet Portrait */
@media (min-width: 481px) and (max-width: 767px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (iPad, etc.) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .about-content {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
    
    .partnership-content {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .credentials {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tablet-specific testimonials layout */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Tablet navigation improvements */
    .hero-cta {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop Override - Ensure proper desktop layouts */
@media (min-width: 1025px) {
    /* Hero section desktop layout */
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 80px 0;
    }
    
    .trust-badges {
        justify-content: flex-start;
        max-width: 500px;
    }
    
    /* Services desktop grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Gallery desktop grid */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* About section desktop layout */
    .about-content {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    /* Partnership desktop layout */
    .partnership-content {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    /* Contact desktop layout */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Process steps desktop */
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    /* Value grid desktop */
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* FAQ desktop grid */
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Testimonials desktop - maintain 2x2 */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Service area desktop */
    .service-areas {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Desktop and above - Restore proper desktop layouts */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
    
    .partnership-content {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Large Desktop optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        gap: 5rem;
    }
    
    .services-grid {
        gap: 3rem;
    }
    
    .gallery-grid {
        gap: 3rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile/tablet */
    .cta-button {
        min-height: 48px;
        padding: 14px 24px;
    }
    
    .contact-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
    }
    
    .submit-button {
        min-height: 48px;
        padding: 14px 24px;
    }
    
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .gallery-item:hover,
    .testimonial-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    /* Enhanced form inputs for touch */
    #contact-form input,
    #contact-form select,
    #contact-form textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* iPad Pro specific optimizations */
@media (min-width: 1024px) and (max-width: 1366px) and (-webkit-min-device-pixel-ratio: 1.5) {
    .hero-section {
        min-height: 80vh;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    /* Optimize for iPad Pro's larger screen */
    .container {
        max-width: 1100px;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on high DPI displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 30px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print optimizations */
@media print {
    .hero-section,
    .footer {
        background: white !important;
        color: black !important;
    }
    
    .cta-button {
        border: 2px solid black;
        background: white;
        color: black;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-section {
        page-break-inside: avoid;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

/* Print styles */
@media print {
    .hero-section,
    .footer {
        background: white !important;
        color: black !important;
    }
}

/* Footer Credit - The Chatbot Genius */
.footer-credit {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    font-size: 14px;
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
}

.footer-credit p {
    margin: 0;
    text-align: center;
}

.footer-credit a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Share Button Styles */
.share-button {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 998;
}

.share-button:hover {
    background: #1e3f26;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-button svg {
    flex-shrink: 0;
}

/* Share Menu Styles */
#share-menu-inline {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-option:hover {
    background: #f0f7f2 !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .share-button {
        top: 70px;
        right: 15px;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .share-button span {
        display: none; /* Hide text on mobile, show icon only */
    }
    
    #share-menu-inline {
        right: 10px !important;
        left: auto !important;
        top: 110px !important;
        min-width: 180px !important;
    }
}

@media (max-width: 480px) {
    #share-menu-inline {
        right: 10px !important;
        left: 10px !important;
        width: calc(100% - 20px) !important;
        min-width: unset !important;
    }
}

/* Print Styles */
@media print {
    .share-button,
    #share-menu-inline {
        display: none !important;
    }
}