﻿@media (max-width: 768px) {
    .section {
        padding: 80px 24px !important;
    }

    /* Hero Section - Completely Reworked */
    .hero {
        padding: 240px 24px 60px !important;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Hero Section - Completely Reworked */

    .hero-inner {
        padding: 0;
        max-width: 100%;
    }

    .hero-badge {
        padding: 8px 16px;
        margin-bottom: 24px;
    }

    .badge-text {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .hero-title {
        font-size: 32px;
        font-weight: var(--header-weight);
        line-height: var(--header-line-height);
        letter-spacing: var(--header-spacing);
        margin-bottom: 20px;
    }

    /* Remove force line breaks on mobile */
    .hero-title br {
        display: none;
    }

    .hero-desc {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 28px;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: auto;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: auto;
        display: inline-flex;
        padding: 14px 28px;
        font-size: 12px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Logo Scroll - Simplified */
    .logo-scroll-section {
        padding: 24px 0;
    }

    .logo-scroll-label {
        font-size: 9px;
        padding: 0 16px;
        margin-bottom: 16px;
    }

    .scroll-text {
        font-size: 12px;
        gap: 16px;
    }

    /* Value Props / Why Us Section */
    .reasons,
    .value-props {
        padding: 48px 16px;
    }

    .value-props-inner {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin-top: 32px !important;
    }

    .value-prop {
        padding: 28px 24px;
        text-align: left;
        border-radius: 12px;
    }

    .value-prop-icon {
        width: 48px;
        height: 48px;
        margin: 0 0 16px 0;
    }

    .value-prop-icon svg {
        width: 18px;
        height: 18px;
    }

    .value-prop-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .value-prop-desc {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 0;
    }

    /* Process Section */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }

    .process-steps {
        gap: 0;
    }

    .process-step {
        padding: 14px 16px;
        margin-bottom: 2px;
    }

    .step-left {
        gap: 12px;
    }

    .step-num {
        font-size: 11px;
    }

    .step-title {
        font-size: 14px;
    }

    .step-duration {
        font-size: 10px;
    }

    .detail-card {
        padding: 24px 20px;
    }

    .detail-num {
        font-size: 60px;
        top: -5px;
        right: 5px;
    }

    .detail-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .detail-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Work/Projects Section */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-image {
        height: 180px;
    }

    .project-info {
        padding: 24px 20px;
    }

    .industry-tag {
        font-size: 9px;
        padding: 3px 6px;
    }

    .project-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .project-description {
        font-size: 12px;
        line-height: 1.5;
    }

    .transparency-notice {
        padding: 12px 16px;
        margin-bottom: 24px;
    }

    .transparency-notice p {
        font-size: 12px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 32px;
    }

    .service-card {
        padding: 28px 24px;
        border-radius: 12px;
    }

    .service-num {
        font-size: 32px;
        top: 12px;
        right: 12px;
    }

    .service-title {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .service-desc {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .service-tags {
        gap: 4px;
    }

    .service-tag {
        font-size: 9px;
        padding: 4px 8px;
    }

    /* Pricing Section */
    .pricing-section {
        padding: 60px 0;
    }

    .pricing-container {
        padding: 0 40px;
    }

    .pricing-section .section-header {
        margin-bottom: 40px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .scenarios-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .scenario-card {
        padding: 32px 24px;
    }

    .pricing-tier {
        padding: 32px 28px;
        border-radius: 8px;
    }

    .package-detail-card {
        padding: 32px 24px;
    }

    .package-detail-groups {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .detail-group-title {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .detail-list li {
        font-size: 13px;
        margin-bottom: 8px;
    }

    /* Methodology Section Mobile */
    .method-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }

    .method-card {
        padding: 24px;
        border-radius: 12px;
    }

    .method-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .method-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .featured-badge {
        font-size: 10px;
        padding: 4px 12px;
    }

    .tier-name {
        font-size: 20px;
    }

    .tier-tagline {
        font-size: 13px;
    }

    .price-amount {
        font-size: 36px;
    }

    .tier-features li {
        font-size: 13px;
        line-height: 2;
    }

    .launch-offer {
        padding: 40px 0;
        margin: 40px 0;
    }

    .launch-offer-inner {
        padding: 0 16px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .offer-icon {
        font-size: 24px;
    }

    .offer-title {
        font-size: 17px;
    }

    .offer-description {
        font-size: 13px;
    }

    .offer-cta {
        padding: 12px 24px;
        font-size: 12px;
    }

    /* Accessibility Section */
    .accessibility {
        padding: 40px 16px;
    }

    .accessibility-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .accessibility-badge {
        font-size: 9px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    .accessibility h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .accessibility h3 br {
        display: none;
    }

    .accessibility p {
        font-size: 13px;
        line-height: 1.6;
    }

    .accessibility-features {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 0;
    }

    .accessibility-feature {
        padding: 12px;
    }

    .accessibility-feature-title {
        font-size: 11px;
    }

    .accessibility-feature-desc {
        font-size: 10px;
    }

    /* Contact Section */
    .contact {
        padding: 60px 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-process {
        padding: 28px 24px;
        margin-bottom: 28px;
        border-radius: 12px;
    }

    .contact-expect-title {
        font-size: 16px;
    }

    .process-steps-list {
        margin-top: 16px;
    }

    .process-step-item {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .form-label {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 6px;
    }

    .form-textarea {
        min-height: 80px;
    }

    .form-submit-container .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        padding: 14px 32px;
    }

    /* Increased spacing for requested sections */
    .accessibility,
    .contact {
        padding: 80px 24px !important;
        margin-top: 40px;
    }

    /* Footer */
    /* Footer Rework */
    .footer {
        padding: 64px 24px 32px;
        background: #0D0D0D;
        /* Slightly lighter than deep-black for depth */
        border-top: 1px solid rgba(255, 255, 255, 0.03);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 24px;
        text-align: left;
    }

    .footer-brand {
        grid-column: span 2;
        margin-bottom: 8px;
    }

    .footer-brand-desc {
        font-size: 14px;
        line-height: 1.6;
        color: var(--gray-500);
        max-width: 280px;
        margin-top: 12px;
    }

    .footer-heading {
        font-size: 10px;
        font-weight: 800;
        color: var(--crimson);
        margin-bottom: 20px;
        letter-spacing: 0.15em;
        text-transform: uppercase;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .footer-link {
        font-size: 14px;
        color: var(--gray-500);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-link:hover {
        color: var(--off-white);
    }

    .footer-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px 24px;
        padding-top: 48px;
        margin-top: 48px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .footer-copy {
        font-size: 12px;
        color: var(--gray-400);
    }

    .footer-legal {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px 16px;
        width: auto;
    }

    .footer-legal-link {
        font-size: 11px;
        color: var(--gray-500);
        text-decoration: none;
    }

    /* Section Headers Global */
    .section-header {
        margin-bottom: 24px;
    }

    .section-label {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .section-title {
        font-size: 24px;
        font-weight: var(--header-weight);
        line-height: var(--header-line-height);
        letter-spacing: var(--header-spacing);
    }

    .section-desc {
        font-size: 13px;
        margin-top: 8px;
        line-height: 1.5;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 11px;
        border-radius: 4px;
    }

    .btn-primary {
        min-height: 44px;
    }

    /* Stats Bar */
    .stats-bar {
        padding: 32px 16px;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }

    .stat-value {
        font-size: 28px;
    }

    .stat-label {
        font-size: 9px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-quote {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .testimonial-avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .testimonial-name {
        font-size: 13px;
    }

    .testimonial-role {
        font-size: 11px;
    }

    /* CTA Section */
    .cta {
        padding: 48px 16px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
}

/* Small Mobile Breakpoint (480px) - Reworked for better spacing */
@media (max-width: 480px) {
    .section {
        padding: 60px 20px !important;
    }

    /* Hero - Extra Small */
    .hero {
        padding: 240px 24px 40px !important;
    }

    .hero-badge {
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .badge-dot {
        width: 6px;
        height: 6px;
    }

    .badge-text {
        font-size: 10px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }

    /* Stats - Single column */
    .stats-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stat-value {
        font-size: 36px;
    }

    /* Section headers */
    .section-title {
        font-size: 24px;
    }

    .section-desc {
        font-size: 14px;
    }

    /* Process - Compact but readable */
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .step-title {
        font-size: 15px;
    }

    /* Accessibility compact */
    .accessibility-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .accessibility-feature {
        padding: 16px;
    }

    /* Footer - Better Grid for Mobile */
    .footer {
        padding: 40px 24px 24px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px 16px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    /* Project cards standard padding */
    .project-image {
        height: 200px;
    }

    .project-info {
        padding: 20px;
    }

    .project-title {
        font-size: 18px;
    }

    /* Pricing readability */
    .price-amount {
        font-size: 36px;
    }

    .tier-name {
        font-size: 20px;
    }

    .pricing-tier {
        padding: 24px;
    }

    /* Toast compact */
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 16px;
    }

    /* Value props readable */
    .value-prop {
        padding: 24px;
    }

    .value-prop-icon {
        width: 44px;
        height: 44px;
    }

    /* Service cards readable */
    .service-card {
        padding: 24px;
    }

    .service-num {
        font-size: 32px;
    }
}



/* Very small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 18px;
    }

    .price-amount {
        font-size: 28px;
    }

    .tier-name {
        font-size: 16px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 10px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {

    .btn,
    .nav-link,
    .footer-link,
    .mobile-nav-link {
        min-height: 44px;
    }

    .process-step {
        min-height: 48px;
    }

    .service-card,
    .project-card,
    .value-prop {
        cursor: pointer;
    }
}

/* ==========================================================
       PAGE SPECIFIC MOBILE FIXES
       ========================================================== */
@media (max-width: 768px) {

    /* Services & About Page Heroes - Override inline/embedded styles */
    .services-hero,
    .about-hero {
        padding: 100px 24px 60px !important;
    }

    .services-hero h1,
    .about-hero h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
        margin-bottom: 24px !important;
    }

    .services-hero p,
    .about-hero p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        padding: 0 16px;
    }

    /* Comparison Table Section */
    .comparison-section {
        padding: 60px 24px !important;
    }

    .comparison-table-wrapper {
        padding: 24px !important;
        border-radius: 12px !important;
    }

    /* Services Methodology */
    .methodology {
        padding: 60px 24px !important;
    }

    .method-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* About Page Story Section */
    .story-section {
        padding: 60px 24px !important;
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .story-content h2 {
        font-size: 28px !important;
    }

    .story-image {
        height: 300px !important;
    }

    /* About Page Values */
    .values-section {
        padding: 60px 24px !important;
    }

    .values-grid {
        grid-template-columns: 1fr !important;
        margin-top: 40px !important;
    }

    .value-card {
        padding: 24px !important;
    }

    /* Founder Section on About Page */
    .founder-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .founder-image-container {
        width: 100% !important;
    }

    .founder-content {
        text-align: left;
    }
}

/* Services Page Mobile Optimization */
@media (max-width: 768px) {
    .services-hero {
        padding: 120px 24px 60px !important;
    }

    .services-hero h1 {
        font-size: 32px !important;
        line-height: 1.2;
    }

    .services-hero p {
        font-size: 15px !important;
        line-height: 1.6;
    }

    .comparison-section {
        padding: 60px 18px !important;
    }

    .comparison-table-wrapper {
        padding: 0 !important;
        border-radius: 12px !important;
        margin: 0 !important;
        border-right: none;
        border-left: none;
    }

    .comparison-table-wrapper table {
        min-width: 650px;
        /* Slightly narrower to fit content better */
    }

    .comparison-table-wrapper th,
    .comparison-table-wrapper td {
        padding: 20px 14px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    .comparison-table-wrapper th:first-child,
    .comparison-table-wrapper td:first-child {
        min-width: 120px;
        font-size: 10px !important;
        padding-left: 16px !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .scroll-hint-container {
        display: flex;
    }

    /* Fixed header on mobile */
    .comparison-table-wrapper table {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Adjust price row for mobile */
    .comparison-table-wrapper .price-row td {
        font-size: 1.1rem !important;
    }

    .methodology {
        padding: 60px 18px !important;
    }

    .method-grid {
        gap: 20px !important;
    }

    .method-card {
        padding: 24px !important;
    }

    .method-title {
        font-size: 1.25rem !important;
        margin-bottom: 12px !important;
    }

    .method-desc {
        font-size: 14px !important;
    }
}

/* Package Detail Responsiveness */
@media (max-width: 770px) {
    .package-detail-groups {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }

    .detail-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .detail-list li {
        padding-left: 0 !important;
        text-align: center;
    }

    .detail-list li::before {
        display: none;
        /* Remove arrow for centered text to keep it clean */
    }

    .package-detail-card {
        padding: 40px 24px !important;
        border-radius: 12px !important;
    }

    .package-detail-header {
        margin-bottom: 32px !important;
        padding-bottom: 24px !important;
    }
}

/* Engagement Options Mobile */
@media (max-width: 900px) {
    .engagement-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 40px !important;
    }

    .engagement-card {
        padding: 32px 24px !important;
    }

    .card-meta {
        gap: 40px !important;
    }
}