/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
  #typing-businesses {
    max-width: 100%;
    overflow: hidden; /* avoid horizontal scroll while keeping height stable */
  }

  /* Smooth Scrolling */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Header Mobile */
  .header-inner {
    padding: 12px 0;
    position: relative;
    transition: padding 0.3s ease;
  }

  .hero-logo {
    top: -36px;
    left: 0;
    padding: 0 0 0 10px;
  }

  .hero-logo img {
    height: 88px;
  }

  .hero-content {
    padding-top: 116px;
  }

  .main-nav {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    background: rgba(5, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    flex-direction: column;
    padding: 20px 24px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
    margin-right: 0;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
  }

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

  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    margin-right: 0;
  }

  .mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

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

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

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

  /* Accessibility widget - mobile */
  .a11y-widget {
    bottom: 24px;
    right: 20px;
    left: auto;
  }
  .a11y-widget-toggle {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  }
  .a11y-icon {
    width: 24px;
    height: 24px;
  }
  .a11y-panel {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    bottom: 68px;
    max-height: min(75vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  }
  .a11y-panel-header {
    padding: 16px 20px;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 1;
    border-radius: 16px 16px 0 0;
  }
  .a11y-panel-title {
    font-size: 1.2rem;
  }
  .a11y-panel-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.75rem;
  }
  .a11y-panel-body {
    padding: 16px 20px 20px;
  }
  .a11y-option {
    padding: 14px 0;
    gap: 8px 12px;
  }
  .a11y-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    margin-top: 2px;
  }
  .a11y-option label {
    font-size: 1.05rem;
    padding-right: 8px;
  }
  .a11y-desc {
    font-size: 0.9rem;
    margin-left: 0;
    padding-left: 30px;
  }
  .a11y-reset {
    padding: 14px 20px;
    font-size: 1rem;
    margin-top: 16px;
    border-radius: 12px;
    min-height: 48px;
  }

  /* Hero Mobile - More Condensed */
  .hero {
    min-height: auto;
    padding: 70px 16px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
    animation: fadeInUp 0.8s ease-out;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
  }

  .tagline {
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    opacity: 0.9;
  }

  /* Typography Mobile - More Condensed */
  h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  h4 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 12px;
  }

  /* Sections Mobile - More Condensed */
  section {
    padding: 30px 16px;
    scroll-margin-top: 70px;
    transition: padding 0.3s ease;
    position: relative;
  }

  section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
    opacity: 0.3;
  }

  .container {
    padding: 0 16px;
    max-width: 100%;
  }

  /* Buttons Mobile - More Condensed */
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-block;
    width: auto;
    min-height: 44px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .btn:active {
    transform: scale(0.97);
  }

  .actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  /* Cards Mobile - More Condensed */
  .card {
    padding: 18px;
    border-radius: 14px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
    margin-bottom: 16px;
  }

  .card:active {
    transform: scale(0.98);
  }

  .card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
  }

  .card:hover .card-icon {
    transform: scale(1.1);
  }

  /* Grids Mobile - More Condensed */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Smooth Grid Animations */
  .grid > * {
    animation: fadeInUp 0.6s ease-out backwards;
  }

  .grid > *:nth-child(1) { animation-delay: 0.1s; }
  .grid > *:nth-child(2) { animation-delay: 0.2s; }
  .grid > *:nth-child(3) { animation-delay: 0.3s; }
  .grid > *:nth-child(4) { animation-delay: 0.4s; }
  .grid > *:nth-child(5) { animation-delay: 0.5s; }
  .grid > *:nth-child(6) { animation-delay: 0.6s; }

  /* About section - prevent solutions from cutting off on mobile */
  .about-section {
    margin-bottom: 0;
  }

  /* Industries section - prevent overlapping solutions on mobile */
  .industries-section {
    margin-top: 0;
    overflow: hidden;
    border-top: 1px solid var(--border-glow);
    padding-top: 24px;
  }

  .industries-container {
    padding: 0;
  }

  .industries-heading,
  .industries-subtitle {
    padding-left: 16px;
    padding-right: 16px;
  }

  .industries-heading {
    margin-bottom: 12px;
  }

  .industries-subtitle {
    margin-bottom: 32px;
  }

  .industries-carousel {
    margin-top: 0;
    overflow: hidden;
    width: 100%;
  }

  .industries-slide-layout {
    min-width: 0;
    max-width: 100%;
  }

  /* Lighthouse Section Mobile - Fixed for Layers */
  .lighthouse-showcase {
    /* Offset content from fixed header/nav on mobile */
    scroll-margin-top: 120px;
    margin-top: 0;
    padding: 96px 0 20px;
    min-height: auto !important;
    border-top: 1px solid var(--border-glow);
    position: relative;
  }

  .lighthouse-showcase::before {
    display: none;
  }

  .lighthouse-heading {
    margin: 0 0 16px;
    position: relative;
    z-index: 2;
  }

  .lighthouse-image-container {
    margin-top: 8px;
  }

  .lighthouse-fixed-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
    height: auto;
    position: relative !important;
    top: 0 !important;
    align-items: center;
    display: block;
  }

  .lighthouse-image-side {
    margin-bottom: 20px;
  }

  .lighthouse-image-box {
    padding: 20px;
    border-radius: 16px;
    transition: transform 0.3s ease;
  }

  .lighthouse-img {
    max-height: 250px;
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
  }

  .lighthouse-textbox-side {
    width: 100%;
  }

  .lighthouse-textbox {
    padding: 20px;
    height: auto;
    min-height: 300px;
    max-height: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: visible;
  }

  .lighthouse-textbox-content {
    animation: slideInFade 0.4s ease-out;
    position: relative;
  }

  .lighthouse-textbox-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .lighthouse-textbox-content .layer-subtitle {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .lighthouse-textbox-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .lighthouse-textbox-content ul {
    margin-top: 12px;
  }

  .lighthouse-textbox-content li {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 24px;
  }

  .lighthouse-textbox-content .layer-icon {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .lighthouse-textbox-content .layer-number {
    font-size: 2.5rem;
    top: -10px;
    right: 0;
  }

  /* Scroll Triggers for Mobile - Shorter and More Responsive */
  .lighthouse-scroll-triggers {
    position: relative;
    width: 100%;
    z-index: 1;
  }

  .scroll-trigger-section {
    height: 50vh;
    min-height: 350px;
    position: relative;
  }

  .lighthouse-textbox-content h3 {
    font-size: 1.4rem;
  }

  .lighthouse-textbox-content .layer-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
  }

  .lighthouse-textbox-content .layer-number {
    font-size: 3rem;
  }

  .lighthouse-showcase {
    min-height: auto;
  }

  /* Measurable Outcomes (below Lighthouse) - prevent overlap on mobile */
  .lighthouse-measurable-outcomes {
    margin-top: 24px;
    padding-top: 16px;
    max-width: 100%;
    border-top: 1px solid var(--border-glow);
  }

  .lighthouse-measurable-heading {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .lighthouse-measurable-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .lighthouse-measurable-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lighthouse-measurable-list li {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .scroll-trigger-section {
    height: 50vh;
  }

  /* Engagement Lifecycle Mobile - More Condensed */
  .engagement-lifecycle-section {
    padding: 30px 0;
    margin: 24px 0;
    border-radius: 30px 30px 0 0;
    transition: margin 0.3s ease;
  }

  .engagement-lifecycle-section .container {
    padding: 0 16px;
  }

  .engagement-heading {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
  }

  .engagement-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .engagement-feature {
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .engagement-feature:active {
    transform: scale(0.98);
  }

  .feature-icon-circle {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .feature-icon {
    font-size: 1.6rem;
  }

  .feature-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .feature-description {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  /* Philosophy Layout Mobile - More Condensed */
  .philosophy-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .philosophy-card-large,
  .philosophy-card-small {
    border-radius: 18px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .philosophy-card-large:active,
  .philosophy-card-small:active {
    transform: scale(0.98);
  }

  /* Industries Mobile - More Condensed */
  .industries-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .industries-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .industry-metric-card {
    border-radius: 18px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .industry-metric-card:active {
    transform: scale(0.98);
  }

  /* Pillars Mobile */
  .pillars-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pillar-item {
    border-radius: 18px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .pillar-item:active {
    transform: scale(0.98);
  }

  /* Success Grid Mobile */
  .success-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .success-item {
    border-radius: 18px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .success-item:active {
    transform: scale(0.98);
  }

  /* Contact Section Mobile - More Condensed (extra bottom padding so submit button isn't covered by footer wave or fixed widgets) */
  .contact-section {
    padding: 30px 16px 160px;
  }

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

  .contact-info-card {
    padding: 20px;
    border-radius: 16px;
  }

  .contact-methods {
    gap: 16px;
  }

  .contact-method {
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .contact-method:active {
    transform: scale(0.98);
  }

  .contact-form-container {
    border-radius: 20px;
    padding: 28px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1rem;
    padding: 12px 16px;
    min-height: 48px;
  }

  /* Footer Mobile - More Condensed */
  footer {
    padding: 30px 16px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

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

  .footer-link {
    padding: 8px 0;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .footer-link:active {
    transform: scale(0.95);
  }

  .footer-minimal {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-glow);
  }

  /* Hosting Options Mobile */
  .hosting-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hosting-card {
    border-radius: 18px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .hosting-card:active {
    transform: scale(0.98);
  }

  /* Timeline Mobile */
  .timeline-item {
    margin-bottom: 28px;
    transition: all 0.3s ease;
  }

  .timeline-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
    transition: all 0.3s ease;
  }

  .timeline-content {
    border-radius: 16px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .timeline-content:active {
    transform: scale(0.98);
  }

  /* AI Animation Mobile */
  .ai-animation {
    opacity: 0.1;
    top: 40%;
  }

  .neural-network {
    transform: scale(0.5);
  }
}

@media (max-width: 480px) {
  /* Extra Small Phones - Even More Condensed */
  .a11y-widget {
    bottom: 20px;
    right: 16px;
  }
  .a11y-panel {
    left: 12px;
    right: 12px;
    bottom: 64px;
    max-height: min(70vh, 380px);
  }
  .a11y-panel-header {
    padding: 14px 16px;
  }
  .a11y-panel-body {
    padding: 14px 16px 18px;
  }
  .a11y-option label {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .hero {
    padding: 60px 16px 30px;
    min-height: auto;
  }

  section {
    padding: 28px 14px;
  }

  .container {
    padding: 0 14px;
  }

  .btn {
    padding: 11px 22px;
    font-size: 0.85rem;
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
  }

  .actions {
    flex-direction: column;
    width: 100%;
    margin-top: 18px;
    gap: 8px;
  }

  .actions .btn {
    width: 100%;
  }

  .lighthouse-textbox {
    padding: 20px;
    min-height: 320px;
  }

  .lighthouse-textbox-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .lighthouse-textbox-content .layer-subtitle {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .lighthouse-textbox-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .lighthouse-textbox-content li {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 6px;
  }

  .lighthouse-textbox-content .layer-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .lighthouse-textbox-content .layer-number {
    font-size: 2rem;
  }

  .scroll-trigger-section {
    height: 45vh;
    min-height: 300px;
  }

  .card {
    padding: 16px;
  }

  .engagement-lifecycle-section {
    padding: 28px 0;
    margin: 20px 0;
  }

  .contact-section {
    padding: 28px 14px 140px;
  }

  .engagement-features {
    gap: 18px;
  }

  .feature-icon-circle {
    width: 56px;
    height: 56px;
  }

  .feature-icon {
    font-size: 1.5rem;
  }
}

/* Additional Mobile Enhancements */
@media (max-width: 768px) {
  /* Improve touch targets */
  a, button {
    min-height: 44px;
    min-width: 44px;
  }

  /* Better focus states for accessibility */
  *:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
  }

  /* Smooth section transitions */
  section {
    will-change: transform;
  }

  /* Optimize images */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Better list spacing */
  ul, ol {
    padding-left: 20px;
  }

  li {
    margin-bottom: 8px;
    line-height: 1.6;
  }
}
