/* ============================================
   Responsive Styles - Lawnline Marketing
   Mobile-First Approach
   ============================================ */

/* ====== Large Desktop (1440px+) ====== */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  h1 {
    font-size: 5rem;
  }

  .logo img {
    height: 70px;
    min-width: 180px;
  }

  .nav-link {
    padding: var(--space-xs) var(--space-md);
  }

  .reading-progress {
    top: 102px;
  }
}

/* ====== Desktop (1200px - 1439px) ====== */
@media (min-width: 1200px) and (max-width: 1439px) {
  .reading-progress {
    top: 80px;
  }
}

/* ====== Desktop (1200px - 1439px) ====== */
@media (max-width: 1439px) {
  .hero-image {
    width: 52%;
    max-width: 750px;
    margin-right: -2%;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  }

  .nav-list {
    gap: 2px;
  }

  .nav-link {
    font-size: 13px;
    padding: var(--space-xs) 10px;
  }

  /* Intro Grid Wide - stacked until 1440px */
  .intro-grid-wide {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .intro-grid-wide .intro-content {
    order: 1;
    text-align: center;
  }

  .intro-grid-wide .intro-image {
    order: 2;
    max-width: 800px;
    margin: 0 auto;
  }
}

/* ====== Hero Buttons - Only 1024px to 1440px ====== */
@media (min-width: 1024px) and (max-width: 1219px) {
  .hero-buttons .btn-lg {
    padding: 1.3rem 1.1rem;
  }
}

@media (min-width: 1220px) and (max-width: 1439px) {
  .hero-buttons .btn-lg {
    padding: 1.3rem 1.8rem;
  }
}

/* ====== Medium Desktop (1024px - 1199px) ====== */
@media (max-width: 1199px) {
  .logo img {
    height: 40px;
    min-width: 140px;
  }

  .hero-image {
    width: 50%;
    max-width: 580px;
    margin-right: 0;
  }

  .hero-content {
    flex: 1;
    max-width: 50%;
    padding-right: var(--space-sm);
  }

  .hero h1 {
    font-size: clamp(1.4rem, 3vw, 2.25rem);
  }

  .nav-link {
    font-size: 12px;
    padding: 8px;
  }

  .nav-cta .btn-sm {
    padding: 8px 12px;
    font-size: 12px;
  }

  .nav-cta .btn-sm svg {
    width: 16px;
    height: 16px;
  }

  /* On very small screens, make buttons more compact */
  @media (max-width: 480px) {
    .nav-cta {
      gap: var(--space-xs);
    }
    
    .nav-cta .btn-sm {
      padding: 8px 10px;
      font-size: 11px;
    }
  }
}

/* ====== Tablet & Small Desktop (768px - 1023px) ====== */
@media (max-width: 1023px) {
  :root {
    --container-padding: 1.25rem;
  }

  /* Header */
  .header {
    padding: 10px 0;
  }

  .header-inner {
    gap: var(--space-sm);
  }

  .logo img {
    height: 40px;
    min-width: 140px;
  }

  /* Navigation - Mobile Menu */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl);
    transition: right var(--transition-base);
    z-index: var(--z-modal);
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .nav-link {
    font-size: var(--text-xl);
    padding: var(--space-xs) 0;
  }

  /* Mobile Dropdown */
  .has-dropdown > .nav-link {
    justify-content: space-between;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    background: #a4d933;
    border: none;
    border-radius: var(--radius-md);
    padding: 0;
    margin-top: var(--space-xs);
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    transition: max-height var(--transition-base), padding var(--transition-base);
  }

  .dropdown-menu::before {
    display: none;
  }

  .has-dropdown {
   width: 100%;
  }

  .has-dropdown.active .dropdown-menu {
    max-height: 500px;
    padding: var(--space-xs) 0;
    transform: unset;
  }

  .has-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu a {
    padding: 8px var(--space-sm);
    font-size: var(--text-base);
    color: var(--color-light-black);
  }

  .dropdown-menu a:hover {
    padding-left: calc(var(--space-sm) + 4px);
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.2);
  }

  /* Show CTA buttons on tablet */
  .nav-cta {
    display: flex;
  }

  .nav-cta .btn-sm {
    padding: 10px 16px;
    font-size: 13px;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

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

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

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

  .hero-image {
    width: 100%;
    max-width: 550px;
    margin-top: var(--space-xl);
    margin-right: 0;
    opacity: 1;
    animation: none;
    order: 2;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    order: 1;
    padding-right: 0;
  }

  .hero-badge {
    margin: 0 auto var(--space-md);
  }

  .hero-text {
    margin: 0 auto var(--space-lg);
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid-centered .service-card {
    flex: 0 1 calc(50% - var(--space-md));
  }

  /* Additional Services Grid */
  .additional-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* About Grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image-badge {
    bottom: -20px;
    right: 20px;
  }

  .about-image-secondary {
    width: 180px;
    height: 120px;
    bottom: auto;
    top: -30px;
    left: auto;
    right: -20px;
  }

  .about-content {
    text-align: center;
  }

  .about-content .btn {
    margin: 0 auto;
  }

  /* Industries Grid */
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-card-image {
    height: 160px;
  }

  /* Testimonials Grid */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* As Seen In Layout */
  .as-seen-layout {
    grid-template-columns: 38% 58%;
    gap: var(--space-lg);
  }

  .as-seen-masonry-wrapper {
    margin: -40px -30px;
    padding: 40px 30px;
  }

  .as-seen-masonry-wrapper::before,
  .as-seen-masonry-wrapper::after {
    height: 70px;
  }

  .as-seen-masonry {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
    transform: rotate(10deg);
    padding: var(--space-md) var(--space-sm);
    margin-left: -20px;
  }

  .masonry-item {
    min-height: 60px;
    padding: var(--space-sm);
  }

  .masonry-item img {
    max-height: 38px;
  }

  .masonry-text {
    font-size: var(--text-xs);
  }

  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Certifications Grid */
  .certifications-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Blog Grid */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer Grid */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  /* ====== Service Page Styles ====== */
  
  /* Solutions Grid */
  .solutions-grid {
    justify-content: center;
  }
  
  .solution-card {
    flex: 0 0 calc(50% - var(--space-md) * 0.5);
    max-width: 100%;
  }

  /* Features Grid */
  .features-grid {
    justify-content: center;
  }
  
  .features-grid .feature-card {
    flex: 0 0 calc(50% - var(--space-lg) * 0.5);
    max-width: 100%;
  }

  .features-grid-centered .feature-card {
    flex: 0 0 calc(50% - var(--space-lg));
  }

  .features-grid-4-centered .feature-card {
    flex: 0 0 calc(50% - var(--space-lg));
    max-width: none;
  }

  .features-grid-3-centered .feature-card {
    flex: 0 0 calc(50% - var(--space-lg));
    max-width: none;
  }

  /* Seasonal Timeline */
  .seasonal-timeline {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .timeline-item {
    flex: 0 0 calc(50% - var(--space-md));
    max-width: none;
  }

  .timeline-connector {
    display: none;
  }

  /* Intro Text Columns */
  .intro-text-columns {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Intro With Image */
  .intro-with-image {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .intro-with-image-visual {
    order: -1;
  }

  .intro-placeholder-image {
    height: 250px;
  }

  .intro-image-photo {
    height: 300px;
  }

  /* Image Gallery Strip */
  .image-gallery-strip {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .gallery-item img {
    height: 200px;
  }

  /* Visual Break Section */
  .visual-break-container {
    height: 300px;
  }

  .visual-break-stat {
    font-size: var(--text-4xl);
  }

  .visual-break-content p {
    font-size: var(--text-lg);
  }

  /* Importance Grid */
  .importance-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .importance-grid-reverse {
    direction: ltr;
  }

  /* Service Highlight Images */
  .service-highlight-image {
    min-height: 250px;
  }

  /* Feature Lists */
  .feature-list li {
    font-size: var(--text-sm);
  }

  /* Button Groups */
  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Service Pages Grid */
  .service-pages-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Ads Strategy Grid */
  .ads-strategy-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Intro Grid */
  .intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .intro-content {
    order: 1;
  }

  .intro-image {
    order: 2;
  }

  .intro-image-badge {
    bottom: -20px;
    right: 20px;
  }

  /* Results Grid */
  .results-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  /* Good Fit Grid */
  .good-fit-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .good-fit-image {
    order: 1;
  }

  .good-fit-content {
    order: 2;
  }

  /* Contact Form Grid */
  .contact-form-grid,
  .contact-form-grid-centered {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-info-list.contact-info-horizontal {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Programs Grid */
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Work With Us Page - Tablet */
  .difference-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline::before {
    left: 25px;
  }

  .process-step-number {
    width: 50px;
    height: 50px;
  }

  .process-step-number span {
    font-size: var(--text-xl);
  }

  .process-work-grid,
  .process-benefits-grid {
    grid-template-columns: 1fr;
  }

  .improvement-cycle {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .cycle-arrow {
    transform: rotate(90deg);
  }

  /* Clients Marquee - Tablet */
  .clients-marquee-wrapper::before,
  .clients-marquee-wrapper::after {
    width: 80px;
  }

  .client-logo-card {
    min-height: 90px;
    min-width: 170px;
    padding: var(--space-md);
  }

  .client-logo-card img {
    max-width: 140px;
    max-height: 45px;
  }

  /* Case Studies Grid - Tablet */
  .case-studies-showcase {
    gap: var(--space-2xl);
  }

  .case-study-feature {
    min-height: 480px;
  }

  .case-study-visual {
    min-height: 480px;
  }

  .case-study-content {
    padding: var(--space-2xl) var(--space-xl);
  }

  .case-study-metric {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
  }

  .case-study-big-metric .metric-value {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .case-study-big-metric .metric-label {
    font-size: var(--text-base);
  }
}

/* ====== Mobile (< 768px) ====== */
@media (max-width: 767px) {
  :root {
    --container-padding: 1rem;
    --space-3xl: 4rem;
    --space-2xl: 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Header */
  .header {
    padding: 8px 0;
  }

  .header-inner {
    gap: var(--space-xs);
  }

  .logo img {
    height: 35px;
    min-width: 120px;
  }

  .nav-cta {
    display: none;
  }

  /* Quote Drawer - Full width on mobile */
  .quote-drawer {
    max-width: 100%;
  }

  .quote-drawer-content {
    padding: var(--space-lg);
    padding-top: calc(var(--space-lg) + 50px);
  }

  .mobile-toggle {
    padding: 8px;
  }

  .mobile-toggle span {
    width: 24px;
    height: 2px;
  }

  /* Hero */
  .hero {
    padding: 80px 0 40px;
  }

  .hero-image {
    max-width: 400px;
    margin-top: var(--space-lg);
  }

  .hero-badge {
    padding: 6px 12px;
    font-size: var(--text-xs);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Partner Badges */
  .partner-badges-inner {
    gap: var(--space-lg);
  }

  .partner-badge img,
  .partner-badge svg {
    height: 35px;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid-4 {
    grid-template-columns: 1fr;
  }

  .services-grid-centered .service-card {
    flex: 0 1 100%;
  }

  /* Additional Services Grid */
  .additional-services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: var(--space-md);
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: var(--text-sm);
  }

  /* About Features */
  .about-features {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .about-image-badge {
    position: relative;
    bottom: auto;
    right: auto;
    display: inline-block;
    margin-top: var(--space-md);
  }

  .about-image-secondary {
    width: 140px;
    height: 100px;
    bottom: auto;
    top: -25px;
    left: auto;
    right: 10px;
    border-width: 3px;
  }

  /* Industries Grid */
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .industry-card {
    padding: var(--space-md);
  }

  .industry-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .industry-card h4 {
    font-size: var(--text-sm);
  }

  .industries-grid-large {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .industry-card-large {
    border-radius: var(--radius-lg);
  }

  .industry-card-image {
    height: 140px;
  }

  .industry-card-content {
    padding: var(--space-md);
  }

  .industry-card-content .industry-icon {
    width: 50px;
    height: 50px;
    margin-top: calc(var(--space-md) * -1.8);
  }

  .industry-card-content .industry-icon svg {
    width: 28px;
    height: 28px;
  }

  .industry-card-content h3 {
    font-size: var(--text-base);
  }

  .industry-card-content p {
    font-size: var(--text-xs);
  }

  .industries-cta {
    padding: var(--space-md);
  }

  .industries-cta-text {
    font-size: var(--text-lg);
  }

  /* Testimonials */
  .testimonial-card {
    padding: var(--space-md);
  }

  /* As Seen In */
  .as-seen-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .as-seen-content {
    padding-right: 0;
    text-align: center;
  }

  .as-seen-content h2 {
    font-size: var(--text-2xl);
  }

  .as-seen-content p {
    font-size: var(--text-base);
  }

  .as-seen-stats {
    justify-content: center;
  }

  .as-seen-masonry-wrapper {
    margin: -30px -20px;
    padding: 30px 20px;
  }

  .as-seen-masonry-wrapper::before,
  .as-seen-masonry-wrapper::after {
    height: 60px;
  }

  .as-seen-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-sm);
    transform: rotate(8deg);
    margin-left: -10px;
  }

  /* Stagger for 2-column layout */
  .masonry-item:nth-child(odd) { transform: translateY(-10px); }
  .masonry-item:nth-child(even) { transform: translateY(0); }

  .masonry-item {
    min-height: 55px;
    padding: var(--space-sm);
  }

  .masonry-item.large {
    min-height: 70px;
  }

  .masonry-item img {
    max-height: 30px;
  }

  .masonry-item.large img {
    max-height: 40px;
  }

  .masonry-label {
    font-size: 10px;
  }

  .masonry-text {
    font-size: 11px;
  }

  /* Blog Grid */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-image {
    height: 180px;
  }

  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .team-info {
    padding: var(--space-sm);
  }

  .team-info h4 {
    font-size: var(--text-sm);
  }

  .team-role {
    font-size: var(--text-xs);
  }

  /* Certifications Grid */
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .certification-card {
    padding: var(--space-lg);
  }

  .certification-card img,
  .cert-icon {
    height: 60px;
    width: 60px;
  }

  /* Review Buttons */
  .review-buttons {
    flex-direction: column;
  }

  .review-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* CTA Section */
  .cta-section h2 {
    font-size: 1.5rem;
    white-space: normal;
  }

  .cta-section p {
    font-size: var(--text-base);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Section Lime CTA */
  .section.section-lime h2 {
    font-size: 1.5rem;
    white-space: normal;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

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

  .footer-contact-item {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  /* ====== Service Page Mobile Styles ====== */

  /* Hero Service */
  .hero-service {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: var(--space-xl);
  }

  /* Solutions Grid */
  .solution-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Features Grid */
  .features-grid .feature-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .features-grid-centered .feature-card {
    flex: 0 0 100%;
  }

  .features-grid-4-centered .feature-card {
    flex: 0 0 100%;
    max-width: none;
  }

  .features-grid-3-centered .feature-card {
    flex: 0 0 100%;
    max-width: none;
  }

  .feature-card {
    padding: var(--space-lg);
  }

  /* Seasonal Timeline */
  .seasonal-timeline {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .timeline-item {
    flex: none;
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    text-align: left;
    padding: 0;
    gap: var(--space-md);
  }

  .timeline-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .timeline-icon svg {
    width: 28px;
    height: 28px;
  }

  .seasonal-cta-content {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
  }

  .seasonal-cta-icon {
    width: 64px;
    height: 64px;
  }

  /* Service Pages Benefits */
  .service-pages-benefits {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .benefit-card {
    padding: var(--space-md);
  }

  /* Intro Content */
  .intro-content-centered h3 {
    font-size: var(--text-lg);
  }

  .solution-card {
    padding: var(--space-md);
  }

  .solution-icon {
    width: 50px;
    height: 50px;
  }

  .solution-icon svg {
    width: 24px;
    height: 24px;
  }

  .solution-card h3 {
    font-size: var(--text-base);
  }

  /* Callout Box */
  .callout-box {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
  }

  /* Intro Section */
  .intro-lead {
    font-size: var(--text-lg);
  }

  .intro-content p {
    font-size: var(--text-base);
  }

  .intro-image-badge {
    position: relative;
    bottom: auto;
    right: auto;
    display: inline-block;
    margin-top: var(--space-md);
  }

  /* Results Section */
  .results-lead {
    font-size: var(--text-lg);
  }

  .results-list li {
    font-size: var(--text-base);
  }

  /* Good Fit Section */
  .good-fit-content p {
    font-size: var(--text-base);
  }

  .good-fit-features {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  /* Contact Form */
  .contact-form-content p {
    font-size: var(--text-base);
  }

  .contact-form-wrapper {
    padding: var(--space-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: var(--text-xs);
    flex-wrap: wrap;
  }

  /* Ad Platform Items */
  .ad-platforms-list {
    grid-template-columns: 1fr;
  }

  .platform-item {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
  }

  .platform-item:hover {
    transform: translateY(-3px);
  }

  .platform-icon {
    margin: 0 auto;
  }

  /* Programs Grid */
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    padding: var(--space-lg);
  }

  /* Work With Us Page - Mobile */
  .difference-grid {
    grid-template-columns: 1fr;
  }

  .difference-card {
    padding: var(--space-lg);
  }

  .difference-icon {
    width: 64px;
    height: 64px;
  }

  .difference-icon svg {
    width: 32px;
    height: 32px;
  }

  .process-timeline::before {
    display: none;
  }

  .process-step {
    flex-direction: column;
    gap: var(--space-md);
  }

  .process-step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto;
  }

  .process-step-number span {
    font-size: var(--text-lg);
  }

  .process-step-content {
    padding: var(--space-lg);
  }

  .process-step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .process-step-content h3 {
    font-size: var(--text-xl);
  }

  .process-step-content > p {
    font-size: var(--text-base);
  }

  .process-work-grid,
  .process-benefits-grid {
    grid-template-columns: 1fr;
  }

  .process-benefit-card {
    padding: var(--space-md);
  }

  .example-item {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .example-label {
    min-width: auto;
  }

  .improvement-cycle {
    padding: var(--space-md);
  }

  .cycle-item {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
  }

  .cycle-arrow svg {
    width: 16px;
    height: 16px;
  }

  /* Clients Marquee - Mobile */
  .clients-logos {
    padding: var(--space-2xl) 0;
  }

  .clients-logos-heading {
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
  }

  .clients-marquee-wrapper::before,
  .clients-marquee-wrapper::after {
    width: 40px;
  }

  .clients-marquee {
    gap: var(--space-md);
    animation-duration: 25s;
  }

  .client-logo-card {
    min-height: 80px;
    min-width: 150px;
    padding: var(--space-sm) var(--space-md);
  }

  .client-logo-card img {
    max-width: 120px;
    max-height: 40px;
  }

  .clients-logos-cta {
    margin-top: var(--space-lg);
  }

  /* Case Studies - Mobile */
  .case-studies {
    padding: var(--space-2xl) 0;
  }

  .case-studies-showcase {
    gap: var(--space-xl);
  }

  .case-study-feature {
    grid-template-columns: 1fr !important;
    min-height: auto;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: var(--radius-lg) !important;
  }

  .case-study-feature::before {
    border-radius: var(--radius-lg) !important;
  }

  .case-study-feature:nth-child(even) .case-study-visual,
  .case-study-feature:nth-child(even) .case-study-content {
    order: 0;
  }

  .case-study-visual {
    min-height: 300px;
    clip-path: none !important;
  }

  .case-study-content {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
  }

  .case-study-feature:nth-child(odd) .case-study-content,
  .case-study-feature:nth-child(even) .case-study-content {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .case-study-metric {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    line-height: 1.6;
  }

  .case-study-big-metric {
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-md);
  }

  .case-study-big-metric .metric-value {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .case-study-big-metric .metric-label {
    font-size: var(--text-base);
  }

  .case-study-stats {
    gap: var(--space-lg);
    justify-content: center;
  }

  .case-study-company {
    font-size: var(--text-xs);
  }

  .case-study-link {
    justify-content: center;
  }

  .case-studies-cta {
    margin-top: var(--space-xl);
  }
}

/* ====== Client Cards Responsive ====== */
@media (max-width: 1023px) {
  .client-card {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .client-card-reverse {
    direction: ltr;
  }

  .client-content {
    order: 1;
  }

  .client-screenshot {
    order: 2;
  }
}

@media (max-width: 767px) {
  .client-card {
    padding: var(--space-xl) 0;
    gap: var(--space-lg);
  }

  .client-content h2 {
    font-size: 1.5rem;
  }

  .client-tags {
    gap: 6px;
  }

  .client-tag {
    padding: 0.25rem 0.65rem;
    font-size: 0.65rem;
  }

  .cta-badge {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

/* ====== Small Mobile (< 375px) ====== */
@media (max-width: 374px) {
  .logo img {
    height: 30px;
    min-width: 100px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
  }

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

  .industries-grid-large {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .industry-card-image {
    height: 120px;
  }

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

  .program-card {
    padding: var(--space-md);
  }

  .program-tier {
    font-size: 10px;
    padding: 5px 10px;
  }
}

/* ====== Blog Page Responsive ====== */
@media (max-width: 1023px) {
  /* Featured Grid */
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-main {
    min-height: 400px;
  }

  .featured-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Blog Listing Grid */
  .blog-listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Filter */
  .filter-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-tabs {
    justify-content: center;
  }

  .filter-search {
    width: 100%;
  }

  .filter-search input {
    width: 100%;
  }

  /* Newsletter */
  .newsletter-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .newsletter-form {
    justify-content: center;
  }

  /* Article Layout */
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    order: 2;
  }

  .article-sidebar-sticky {
    position: static;
  }

  .article-content {
    order: 1;
    max-width: 100%;
  }

  /* TOC Widget - Horizontal on Tablet */
  .toc-widget {
    margin-bottom: var(--space-xl);
  }

  .toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .toc-list a {
    border-left: none;
    padding-left: 0;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
    white-space: nowrap;
  }

  .toc-list a:hover,
  .toc-list a.active {
    background: rgba(164, 217, 51, 0.15);
  }

  /* Related Articles */
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  /* Blog Hero */
  .hero-blog {
    padding-top: 100px;
    padding-bottom: var(--space-xl);
  }

  /* Featured */
  .featured-main {
    min-height: 320px;
  }

  .featured-main-content {
    padding: var(--space-md);
  }

  .featured-sidebar {
    grid-template-columns: 1fr;
  }

  .featured-small {
    grid-template-columns: 100px 1fr;
    padding: var(--space-sm);
  }

  .featured-small-content h4 {
    font-size: var(--text-sm);
  }

  /* Blog Listing Grid */
  .blog-listing-grid {
    grid-template-columns: 1fr;
  }

  /* Filter */
  .blog-filter {
    top: 60px;
    padding: var(--space-sm) 0;
  }

  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-xs);
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: var(--text-xs);
  }

  /* Pagination */
  .pagination-btn {
    min-width: 38px;
    height: 38px;
    font-size: var(--text-xs);
  }

  .pagination-btn.nav-btn {
    padding: 0 var(--space-sm);
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form .btn {
    width: 100%;
  }

  /* Article Hero */
  .article-hero {
    padding-top: 90px;
  }

  .article-featured-image {
    margin-top: var(--space-lg);
    margin-left: calc(-1 * var(--container-padding));
    margin-right: calc(-1 * var(--container-padding));
    border-radius: 0;
    max-height: 300px;
  }

  /* Article Content */
  .article-layout {
    padding: var(--space-lg) var(--container-padding);
  }

  .article-content h2 {
    font-size: var(--text-2xl);
  }

  .article-content h3 {
    font-size: var(--text-lg);
  }

  .article-content p,
  .article-content ul li,
  .article-content ol li {
    font-size: var(--text-base);
  }

  /* Share Widget */
  .share-widget {
    text-align: center;
  }

  .share-buttons {
    justify-content: center;
  }

  /* Related Articles */
  .related-grid {
    grid-template-columns: 1fr;
  }

  /* Article CTA Box */
  .article-cta-box {
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
  }

  .article-cta-box h3 {
    font-size: var(--text-xl);
  }

  /* Reading Progress */
  .reading-progress {
    top: 60px;
  }
}

/* ====== Events Page Responsive ====== */
@media (max-width: 1024px) {
  .trade-shows-grid {
    grid-template-columns: 1fr;
  }

  .trade-show-card {
    grid-template-columns: 150px 1fr;
  }

  .upcoming-events-banner {
    flex-direction: column;
    text-align: center;
  }

  .upcoming-cta {
    flex-direction: column;
    width: 100%;
  }

  .upcoming-cta .btn {
    width: 100%;
  }
}

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

  .trade-show-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trade-show-image {
    max-width: 200px;
    margin: 0 auto;
  }

  .trade-show-location {
    justify-content: center;
  }

  .trade-show-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .trade-show-highlights ul {
    grid-template-columns: 1fr;
  }

  .trade-show-highlights li {
    text-align: left;
  }

  .industry-event-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .upcoming-events-banner {
    padding: var(--space-lg);
  }

  .upcoming-content h2 {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 480px) {
  .event-meta {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .industry-events-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Case Study Page Responsive ====== */
@media (max-width: 1024px) {
  .case-study-hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }
  
  .case-study-solutions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .case-study-hero {
    padding-top: 100px;
  }
  
  .case-study-hero .hero-container {
    flex-direction: column;
    gap: var(--space-xl);
  }
  
  .case-study-hero .hero-content {
    text-align: center;
    max-width: 100%;
  }
  
  .case-study-hero .breadcrumb {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .case-study-hero-stats {
    justify-content: center;
    text-align: center;
  }
  
  .hero-stat {
    min-width: 100px;
  }
  
  .case-study-hero .hero-image {
    order: -1;
    margin-bottom: var(--space-lg);
  }
  
  .case-study-block h2 {
    font-size: var(--text-2xl);
  }
  
  .case-study-block p {
    font-size: var(--text-base);
  }
  
  .solution-item {
    padding: var(--space-lg);
  }
  
  .results-highlights {
    padding: var(--space-lg);
  }
  
  .case-study-takeaway {
    padding: var(--space-xl);
  }
  
  .case-study-image-block .article-image img {
    max-height: 300px;
  }
}

/* ====== Print Styles ====== */
@media print {
  .header,
  .hero-image,
  .hero-decoration,
  .cta-section,
  .footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 1rem 0;
  }
}

/* ====== Wide Layout Responsive ====== */
@media (max-width: 1199px) {
  /* Offset layouts - reduce to centered on smaller screens */
  .layout-offset-left,
  .layout-offset-right {
    display: block;
    padding: 0 var(--container-padding);
  }
  
  .layout-offset-left > *,
  .layout-offset-right > * {
    max-width: 900px;
    margin: 0 auto;
  }
  
  /* Asymmetric grids - equalize */
  .importance-grid-asymmetric,
  .importance-grid-asymmetric-reverse {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
  
  .importance-grid-wide {
    max-width: 100%;
    gap: var(--space-2xl);
  }
  
  /* Wide service cards */
  .service-feature-wide,
  .service-feature-wide-reverse {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-xl);
  }
  
  /* Industries wide grid */
  .industries-grid-wide {
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
  }
  
  /* Programs staggered - remove offset */
  .programs-grid-staggered .program-card:nth-child(odd) {
    transform: translateY(var(--space-md));
  }
}

@media (max-width: 991px) {
  /* Asymmetric grids - stack */
  .importance-grid-asymmetric,
  .importance-grid-asymmetric-reverse,
  .importance-grid-wide {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .importance-grid-asymmetric-reverse .importance-highlight {
    order: -1;
  }
  
  /* Wide service cards - stack */
  .service-feature-wide,
  .service-feature-wide-reverse {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg);
  }
  
  .service-feature-wide-reverse .service-image-card {
    order: -1;
  }
  
  /* Industries wide grid - 2 columns */
  .industries-grid-wide {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Callout full width */
  .callout-full-width {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
  }
  
  /* Programs staggered - 2 columns, no offset */
  .programs-grid-staggered {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .programs-grid-staggered .program-card:nth-child(odd) {
    transform: none;
  }
  
  /* Section angled - remove left border on mobile */
  .section-angled::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
  }
}

@media (max-width: 768px) {
  /* Industries wide grid - single column */
  .industries-grid-wide {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }
  
  .industries-grid-wide .industry-card {
    padding: var(--space-md);
  }
  
  /* Programs staggered - single column */
  .programs-grid-staggered {
    grid-template-columns: 1fr;
  }
  
  /* Content inset - reduce */
  .content-inset {
    padding-left: var(--space-md);
    border-left-width: 3px;
  }
  
  /* Section dividers - reduce height on mobile */
  .section-divider-diagonal {
    height: 50px;
  }
  
  /* Floating section - reduce padding */
  .section-floating > .container {
    padding: var(--space-xl);
    margin: 0 var(--space-sm);
    border-radius: var(--radius-lg);
  }
  
  /* Inset section - reduce margin */
  .section-inset {
    margin: 0 var(--space-sm);
  }
  
  /* Pull up - reduce */
  .section-pull-up {
    margin-top: calc(var(--space-xl) * -1);
  }
  
  /* Offset blocks - full width on mobile */
  .section-offset-block::before,
  .section-offset-block-right::before {
    display: none;
  }
  
  /* Case studies showcase wide - stack */
  .case-studies-showcase-wide .case-study-feature {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .case-studies-showcase-wide .case-study-feature:nth-child(even) {
    direction: ltr;
  }
  
  .case-studies-showcase-wide .case-study-content {
    padding: var(--space-lg);
  }
  
  .case-studies-showcase-wide .case-study-image {
    height: 250px;
  }
}

/* ====== Reduced Motion ====== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ====== Back to Top - Mobile ====== */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ====== SERP Mockup - Responsive ====== */
@media (max-width: 768px) {
  .serp-mockup {
    padding: var(--space-md);
  }

  .serp-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .serp-google-logo {
    align-self: center;
  }

  .serp-result-badge {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
  }

  .serp-result-title {
    font-size: var(--text-base);
  }

  .serp-result-description {
    font-size: var(--text-xs);
  }
}

@media (max-width: 480px) {
  .serp-mockup {
    padding: var(--space-sm);
  }

  .serp-search-input {
    font-size: var(--text-xs);
    padding: 8px 12px;
  }

  .serp-result-top {
    padding: var(--space-sm);
  }
}

/* ====== Dark Mode Support (already dark by default) ====== */
@media (prefers-color-scheme: light) {
  /* Site is designed dark-first, no changes needed */
}

/* ====== High Contrast Mode ====== */
@media (prefers-contrast: high) {
  :root {
    --color-lime-green: #7fff00;
    --color-gray-light: #888888;
  }

  .service-card,
  .industry-card,
  .testimonial-card,
  .blog-card {
    border-width: 2px;
  }
}
