/*
  File: mobile-fixes.css
  Component: Peak3 Visuals - Mobile Optimization Layer
  Version: 1.0.0
  Created: 2026-01-05

  PURPOSE:
  Comprehensive mobile UX fixes addressing touch targets, typography,
  spacing, forms, navigation, and iOS safe areas. This file should be
  loaded AFTER fluid-responsive.css.

  BREAKPOINTS:
  - 991px: Tablet (nav collapse)
  - 767px: Mobile landscape
  - 479px: Mobile portrait

  IMPORTANT: These rules are mobile-only and will not affect desktop.
*/

/* ============================================================
   MOBILE CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Mobile-specific spacing */
  --mobile-gutter: clamp(16px, 4vw, 24px);
  --mobile-section-y: clamp(40px, 8vw, 64px);

  /* Touch target minimum */
  --touch-target-min: 48px;

  /* Safe area fallbacks */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
}

/* ============================================================
   DROPDOWN ICON STYLING (replaces Webflow w-icon-dropdown-toggle)
   ============================================================ */
.dropdown-icon {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  margin-right: 20px;
  width: 1em;
  height: 1em;
}

.dropdown-icon::before {
  font-family: 'webflow-icons';
  content: "\e603";
}

/* ============================================================
   P0-1: TOUCH TARGET FIXES
   Ensure all interactive elements meet 48px minimum
   ============================================================ */
@media (max-width: 991px) {
  /* Navigation items */
  .navigation-item,
  .w-nav-link {
    min-height: var(--touch-target-min);
    padding: 14px 16px !important;
    font-size: 16px !important;
    display: flex;
    align-items: center;
  }

  /* Dropdown links - ensure 44px+ touch target */
  .dropdown-link {
    min-height: 44px;
    padding: 14px 20px !important;
    font-size: 15px !important;
    display: flex;
    align-items: center;
  }

  /* Footer links */
  .dfs-link-1,
  .dfs-link-2,
  .footer-link {
    min-height: 44px;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
  }

  /* Social icons */
  .dfs-wrap-8 a,
  .social-links a {
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  /* Buttons */
  .button,
  .btn,
  .w-button {
    min-height: var(--touch-target-min);
    padding: 14px 24px !important;
  }

  /* Hamburger menu button */
  .menu-button,
  .w-nav-button {
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  /* Menu icon animation - subtle scale when open */
  .menu-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .menu-icon.menu-open,
  .menu-button.is-open .menu-icon {
    opacity: 0.7;
    transform: scale(0.9);
  }
}


/* ============================================================
   P0-2: FORM INPUT FIXES
   Proper sizing and keyboard optimization
   ============================================================ */
@media (max-width: 767px) {
  /* All form inputs */
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  .w-input,
  .w-select,
  .text-field {
    min-height: var(--touch-target-min) !important;
    padding: 14px 16px !important;
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    border-radius: 8px;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
  }

  /* Textarea specific */
  textarea,
  .w-input.cc-textarea {
    min-height: 120px !important;
    resize: vertical;
  }

  /* Form labels */
  label,
  .field-label {
    font-size: 14px !important;
    margin-bottom: 8px;
    display: block;
  }

  /* Contact form layout */
  .contact-form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
  }

  .get-in-touch-form {
    width: 100%;
  }

  /* Submit button */
  .w-form .button,
  input[type="submit"],
  button[type="submit"] {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 16px !important;
    margin-top: 16px;
  }

  /* Checkbox/radio touch targets */
  input[type="checkbox"],
  input[type="radio"] {
    width: 24px;
    height: 24px;
    margin-right: 12px;
  }

  .checkbox-field,
  .radio-field {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Turnstile widget */
  .cf-turnstile {
    margin: 16px 0;
    max-width: 100%;
    overflow: hidden;
  }

  /* ============ FORM CONTAINMENT - PREVENT OVERFLOW ============ */
  /* Ensure all form containers stay within viewport */
  .cta-form,
  .contact-form,
  .get-in-touch-form,
  .w-form,
  form {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Form wrapper sections */
  .section.contact-mb,
  .contact-section,
  .cta-section,
  [class*="contact"] .container,
  [class*="form"] .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* CTA form specific - reduce padding on mobile */
  .cta-form {
    padding: 24px 16px !important;
    margin: 0 !important;
    border-radius: 16px !important;
  }

  /* Form rows - single column on mobile */
  .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Form groups */
  .form-group {
    width: 100% !important;
    margin-bottom: 12px !important;
  }

  /* All form inputs - ensure they don't overflow */
  .form-group input,
  .form-group textarea,
  .form-group select,
  .cta-form input,
  .cta-form textarea,
  .cta-form select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    padding: 14px 16px !important;
  }

  /* Form submit buttons */
  .cta-form .button,
  .cta-form button[type="submit"],
  .form-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    font-size: 15px !important;
  }
}


/* ============================================================
   P0-3: VW FONT SIZE FIXES
   Replace problematic vw units with clamp()
   ============================================================ */
@media (max-width: 991px) {
  /* Navigation text - was 1.8vw */
  .navigation-item {
    font-size: clamp(14px, 2vw, 18px) !important;
  }

  .text-block-19 {
    font-size: clamp(14px, 2vw, 16px) !important;
  }
}

@media (max-width: 767px) {
  /* Navigation - was 2vw */
  .navigation-item,
  .navigation-item.current {
    font-size: 16px !important;
  }

  /* Footer section - was 1.69vw */
  .dfs-section-1 {
    font-size: 15px !important;
  }

  /* Heading medium - was 2vw */
  .heading-medium {
    font-size: clamp(18px, 4vw, 24px) !important;
  }
}

@media (max-width: 479px) {
  /* Navigation - was 3.5vw = 11.2px at 320px (too small) */
  .navigation-item,
  .navigation-item.w--current {
    font-size: 16px !important;
  }

  /* Footer - was 2.5vw = 8px at 320px (unreadable) */
  .dfs-section-1 {
    font-size: 14px !important;
  }

  .dfs-link-1,
  .dfs-heading-1 {
    font-size: 15px !important;
  }

  /* Text blocks with vw */
  .text-block-19,
  .text-block-21 {
    font-size: 14px !important;
  }
}


/* ============================================================
   P0-4: MOBILE MENU Z-INDEX AND POSITIONING
   ============================================================ */
@media (max-width: 991px) {
  /* Sticky header */
  .navigation {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Prevent body scroll when menu open */
  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
  }

  /* Menu item styling */
  .navigation-item {
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
    text-align: left !important;
  }

  .navigation-item:hover {
    color: #E93423 !important;
    background: transparent !important;
  }

  /* Remove underline animation on mobile */
  .navigation-item::after {
    display: none !important;
  }
}


/* ============================================================
   P0-5: CTA BUTTON POSITIONING FIXES
   Note: Hero video CTA (.absolute-btn) is styled in HERO VIDEO section below
   ============================================================ */
@media (max-width: 767px) {
  /* General CTA buttons (not the hero video button) */
  .button.cc-jumbo-button.cc-jumbo-white:not(.absolute-btn) {
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* Intro content centering */
  .intro-content,
  .motto-wrap,
  .home-content-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
}

@media (max-width: 479px) {
  /* Full-width CTA on small phones (not the hero video button) */
  .button.cc-jumbo-button.cc-jumbo-white:not(.absolute-btn) {
    width: 100% !important;
    max-width: 300px !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
  }
}


/* ============================================================
   P0-6: iOS SAFE AREA HANDLING
   ============================================================ */
@supports (padding-top: env(safe-area-inset-top)) {
  /* Header safe area */
  .navigation {
    padding-top: calc(12px + var(--safe-area-top)) !important;
  }

  /* Footer safe area */
  .footer,
  .dfs-section-1 {
    padding-bottom: calc(32px + var(--safe-area-bottom)) !important;
  }

  /* Sticky CTA safe area */
  .sticky-cta,
  .fixed-cta {
    padding-bottom: calc(16px + var(--safe-area-bottom)) !important;
  }

  /* Full-height sections */
  .section.cc-store-home-wrap.video-bg {
    padding-top: var(--safe-area-top);
  }
}


/* ============================================================
   P1-1: HERO VIDEO HEIGHT FIXES
   ============================================================ */
@media (max-width: 767px) {
  .section.cc-store-home-wrap {
    min-height: auto !important;
    padding-top: 0 !important;
  }

  .section.cc-store-home-wrap.video-bg {
    min-height: clamp(300px, 50vh, 450px) !important;
  }

  .video-hero {
    min-height: clamp(250px, 45vh, 400px) !important;
    max-height: 60vh;
  }

  .video-hero video,
  .w-background-video video {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 479px) {
  .section.cc-store-home-wrap.video-bg {
    min-height: clamp(280px, 55vh, 400px) !important;
    margin-top: 0 !important;
  }

  .video-hero {
    min-height: 280px !important;
  }
}


/* ============================================================
   P1-2: SERVICE CARD OVERFLOW FIXES
   ============================================================ */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }

  /* Service grid block - single column on tablet/mobile for better readability */
  .service-grid-block {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    align-items: start !important;
  }

  .service-box,
  .service-card {
    min-height: auto !important;
  }

  /* Service card - NATURAL BLOCK FLOW (no flexbox height stretching) */
  .service-grid-block > .box.box-rev {
    display: block !important;
    height: auto !important;
    min-height: unset !important;
  }

  .service-grid-block .div_1,
  .service-grid-block .div_1-2 {
    display: block !important;
    height: auto !important;
  }

  .service-grid-block .div_1-2 .text-wrapper {
    display: block !important;
    margin-bottom: 20px !important;
  }

  /* Button - normal document flow */
  .service-grid-block .button-rev-card,
  .service-grid-block .div_1-2 > a.w-button {
    display: block !important;
    position: static !important;
    width: 100% !important;
  }

  .text-wrapper.spacing-rev {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

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

/* Small tablet optimization (600px) */
@media (max-width: 600px) {
  /* Ensure grids are single column */
  .services-grid,
  .branding-grid,
  .features-grid,
  .photo-services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Process steps 2x2 on small tablets */
  .process-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Stats grid stays 2x2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Reduce section padding */
  .section,
  [class*="section"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}


/* ============================================================
   P1-3: FOOTER GRID BREAKPOINT FIXES
   ============================================================ */
@media (max-width: 991px) {
  .dfs-grid-1,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
  }
}

@media (max-width: 767px) {
  /* Footer container */
  .footer .dfs-container-1 {
    padding: 0 20px;
  }

  /* Footer brand section */
  .footer .dfs-wrap-2 {
    text-align: center;
    margin-bottom: 32px;
  }

  .footer .dfs-text-1 {
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto 20px;
  }

  /* Footer CTA button */
  .footer .dfs-wrap-5 {
    display: flex;
    justify-content: center;
  }

  .footer .button.cc-jumbo-button {
    min-height: 48px;
    padding: 12px 28px !important;
    font-size: 13px;
    width: auto;
    max-width: 200px;
  }

  /* Footer grid layout - MOVED TO FOOTER REDESIGN section at end of file */
  /* Grid structure defined in FOOTER REDESIGN section */

  /* Section headings */
  .dfs-heading-1 {
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #E93423 !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
  }

  /* Links - horizontal pairs */
  .dfs-wrap-7 .dfs-link-1 {
    font-size: 14px !important;
    min-height: 40px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
  }

  .dfs-wrap-7 .dfs-link-1:active {
    color: #E93423;
  }

  /* Contacts column layout - MOVED TO FOOTER REDESIGN section */
  /* Grid positioning defined in FOOTER REDESIGN section */

  /* Contact block styling */
  .div-block-82 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .footer-contacts {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(233, 52, 35, 0.1);
    padding: 10px 16px;
    border-radius: 8px;
    min-height: 44px;
    transition: background 0.2s ease;
  }

  .footer-contacts:active {
    background: rgba(233, 52, 35, 0.2);
  }

  .contact-icon {
    width: 18px;
    height: 18px;
  }

  .contact-item {
    font-size: 14px !important;
    font-weight: 500;
    white-space: nowrap;
  }

  /* Social icons row */
  .dfs-wrap-8 {
    display: flex !important;
    justify-content: center !important;
    gap: 16px;
    margin-top: 16px;
  }

  .dfs-wrap-8 a {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: background 0.2s ease;
  }

  .dfs-wrap-8 a:active {
    background: rgba(233, 52, 35, 0.2);
  }

  .dfs-icon-2 {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 479px) {
  /* Smaller screens - still 2 columns but tighter */
  .dfs-grid-1,
  .footer-grid {
    gap: 20px 12px !important;
  }

  .dfs-wrap-7 .dfs-link-1 {
    font-size: 13px !important;
    padding: 6px 8px;
  }

  .dfs-heading-1 {
    font-size: 11px !important;
  }

  /* Contact links stay inline on small screens */
  .div-block-82 {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  .footer-contacts {
    flex: 0 1 auto !important;
    padding: 8px 12px !important;
    justify-content: center;
  }
}


/* ============================================================
   P1-5: CONSISTENT SECTION PADDING
   ============================================================ */
@media (max-width: 767px) {
  /* Standardize all sections */
  .section,
  .services.section,
  .process.section,
  .gallery.section,
  .client.section {
    padding-left: var(--mobile-gutter) !important;
    padding-right: var(--mobile-gutter) !important;
    padding-top: var(--mobile-section-y) !important;
    padding-bottom: var(--mobile-section-y) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Remove conflicting margins */
  .section.cc-home-wrap,
  .section.cc-store-home-wrap,
  .section.team,
  .section.contact-mb {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Container consistency */
  .container,
  .w-container {
    padding-left: var(--mobile-gutter) !important;
    padding-right: var(--mobile-gutter) !important;
  }
}


/* ============================================================
   P1-7: IMAGE ASPECT RATIO FIXES
   ============================================================ */
@media (max-width: 767px) {
  /* Hero images */
  .intro-header.cc-subpage,
  .hero-image {
    height: auto !important;
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  /* Portfolio thumbnails */
  .videos-thumbnail-wrapper,
  .project-thumbnail {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  /* Team photos */
  .team-pic {
    height: auto !important;
    aspect-ratio: 1 / 1;
    min-height: 200px;
  }

  /* Gallery images */
  .lightbox-link img,
  .gallery-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}


/* ============================================================
   P1-8: DROPDOWN TOUCH ACCESSIBILITY
   ============================================================ */
@media (max-width: 991px) {
  /* Make dropdowns work on touch */
  .dropdown-toggle {
    cursor: pointer;
  }

  /* Show dropdown on focus-within for keyboard users */
  .submenu:focus-within .dropdown-list {
    display: block !important;
  }

  /* Dropdown toggle indicator */
  .dropdown-toggle-icon,
  .icon-3,
  .icon-4 {
    transition: transform 0.3s ease;
  }

  .submenu.open .dropdown-toggle-icon,
  .submenu.open .icon-3,
  .submenu.open .icon-4 {
    transform: rotate(180deg);
  }
}


/* ============================================================
   P2-1: LINE LENGTH / PROSE WIDTH
   ============================================================ */
@media (max-width: 991px) and (min-width: 768px) {
  /* Constrain reading width on tablets */
  .rich-text,
  .blog-detail-header-wrap,
  .paragraph-bigger,
  .service-p,
  .black-text.margin-20 {
    max-width: 65ch !important;
    margin-left: auto;
    margin-right: auto;
  }
}


/* ============================================================
   P2-2 & P2-3: ANIMATION PERFORMANCE & REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .logo-ticker-track {
    animation: none !important;
  }

  .section.cc-store-home-wrap::after {
    animation: none !important;
  }

  .testimonial-card:hover {
    transform: none !important;
  }
}

@media (max-width: 767px) {
  /* Simplify animations on mobile */
  .testimonial-card:hover,
  .service-card:hover,
  .card:hover {
    transform: none !important;
  }

  /* Slower hero animation = less CPU */
  .section.cc-store-home-wrap::after {
    animation-duration: 12s !important;
  }

  /* Reduce ticker animation */
  .logo-ticker-track {
    animation-duration: 25s !important;
  }
}


/* ============================================================
   P2-5: PORTRAIT ORIENTATION GALLERY FIX
   ============================================================ */
@media (orientation: portrait) and (max-width: 480px) {
  .gallery-grid,
  .portfolio-grid,
  .div-block-50,
  .grid-7 {
    grid-template-columns: 1fr !important;
  }
}

/* Extended portrait orientation fixes for larger phones */
@media (orientation: portrait) and (max-width: 600px) {
  /* Hero sections in portrait */
  .hero-container,
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-video {
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  /* Feature grids single column in portrait */
  .features-grid,
  .branding-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   LANDSCAPE ORIENTATION OPTIMIZATION
   Optimize for phones/tablets held sideways
   ============================================================ */
@media (orientation: landscape) and (max-height: 500px) {
  /* Reduce hero height in landscape */
  .section.cc-store-home-wrap,
  .video-hero,
  .hero {
    min-height: 300px !important;
    max-height: 400px !important;
  }

  /* Compact section padding */
  .section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* Adjust CTA button position */
  .button.cc-jumbo-button.absolute-btn {
    bottom: 15px !important;
  }

  /* Ensure sticky elements don't obstruct */
  .sticky-cta,
  .sticky-cta-commercial,
  [class*="sticky-cta"] {
    padding: 10px 16px !important;
  }
}


/* ============================================================
   P2-6: LIGHTBOX CONTROLS
   ============================================================ */
.w-lightbox-close,
.w-lightbox-left,
.w-lightbox-right {
  min-width: var(--touch-target-min) !important;
  min-height: var(--touch-target-min) !important;
}

@media (max-width: 767px) {
  .w-lightbox-close {
    top: 16px !important;
    right: 16px !important;
  }

  .w-lightbox-left,
  .w-lightbox-right {
    width: 60px !important;
  }
}


/* ============================================================
   P2-9: TESTIMONIAL CARD OVERFLOW
   ============================================================ */
@media (max-width: 767px) {
  .testimonial-card,
  .box,
  .card {
    min-height: auto !important;
    height: auto !important;
  }

  .testimonial-quote {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }
}


/* ============================================================
   P2-10: CLS PREVENTION (Aspect Ratios)
   ============================================================ */
/* Add aspect-ratio to common image containers */
.hero-image-block,
.video-front,
.background-video {
  aspect-ratio: 16 / 9;
}

.team-pic,
.profile-image {
  aspect-ratio: 1 / 1;
}

.project-thumbnail {
  aspect-ratio: 4 / 3;
}


/* ============================================================
   ADDITIONAL MOBILE POLISH
   ============================================================ */

/* Horizontal scroll prevention */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

.page-wrap {
  overflow-x: hidden !important;
}

/* Better text rendering on mobile */
@media (max-width: 767px) {
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Improve tap highlighting */
  a, button, input, select, textarea {
    -webkit-tap-highlight-color: rgba(233, 52, 35, 0.2);
  }

  /* Remove tap highlight on non-interactive elements */
  div, span, p {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Focus states for accessibility */
@media (max-width: 991px) {
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #E93423;
    outline-offset: 2px;
  }
}

/* Print styles - hide mobile-only elements */
@media print {
  .navigation,
  .menu-button,
  .w-nav-button {
    position: static;
  }
}


/* ============================================================
   MOBILE NAVIGATION - COMPREHENSIVE FIX v4
   Uses .menu-open class (no Webflow dependency)
   ============================================================ */
@media (max-width: 991px) {
  /* Nav menu hidden by default */
  .navigation-items {
    display: none !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.98) !important;
    flex-direction: column !important;
    padding: 20px !important;
    z-index: 9998 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Nav menu VISIBLE when .menu-open is added by JS */
  .navigation-items.menu-open {
    display: flex !important;
  }

  /* Menu button */
  .menu-button {
    display: flex !important;
    min-width: 48px !important;
    min-height: 48px !important;
    cursor: pointer !important;
  }

  /* ========== WHEN MENU IS OPEN - SHOW EVERYTHING ========== */

  /* Direct link items (Projects, Contact) */
  .navigation-items.menu-open > a.navigation-item {
    display: flex !important;
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-height: 48px !important;
    align-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Contact link red */
  .navigation-items.menu-open > a.navigation-item[href*="contact"] {
    color: #E93423 !important;
  }

  /* Dropdown containers (Real Estate, Commercial, About) */
  .navigation-items.menu-open > .submenu,
  .navigation-items.menu-open > .submenu {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Dropdown toggles - the clickable header text */
  .navigation-items.menu-open .dropdown-toggle {
    display: flex !important;
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: space-between !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
  }

  /* Text inside dropdown toggle */
  .navigation-items.menu-open .text-block-19 {
    font-size: 16px !important;
    color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Dropdown arrow icon */
  .navigation-items.menu-open .icon-2 {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Dropdown lists - the sub-menus */
  .navigation-items.menu-open .dropdown-list,
  .navigation-items.menu-open .dropdown-list {
    display: block !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 8px 0 8px 20px !important;
    margin: 0 !important;
  }

  /* Dropdown links inside the lists */
  .navigation-items.menu-open .dropdown-link {
    display: block !important;
    padding: 14px 20px 14px 20px !important;
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    background: transparent !important;
    min-height: 44px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .navigation-items.menu-open .dropdown-link:first-child {
    color: #E93423 !important;
    font-weight: 600 !important;
  }
}


/* ============================================================
   FOOTER GRID - OLD LAYOUT (SUPERSEDED)
   This section has been replaced by FOOTER REDESIGN at end of file
   ============================================================ */
/* Old footer layout removed - see FOOTER REDESIGN section below */


/* ============================================================
   FOOTER SPACING FIX
   Remove excessive gap above footer link sections
   ============================================================ */
@media (max-width: 767px) {
  /* Footer brand section - reduce bottom margin */
  .footer .dfs-wrap-2 {
    margin-bottom: 24px !important;
  }

  /* CTA button wrapper */
  .footer .dfs-wrap-5 {
    margin-bottom: 32px !important;
  }

  /* Footer link grid container */
  .footer .dfs-wrap-6 {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* Overall footer section */
  .footer,
  .dfs-section-3 {
    padding: 40px 20px !important;
  }

  /* Footer description text */
  .footer .dfs-text-1 {
    font-size: 14px !important;
    line-height: 1.6 !important;
    max-width: 320px !important;
    margin: 0 auto 20px !important;
  }

  /* Footer CTA button */
  .footer .button.cc-jumbo-button {
    min-height: 48px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
  }
}


/* ============================================================
   HERO VIDEO - MOBILE POSITIONING FIX
   ============================================================ */
@media (max-width: 767px) {
  /* Hero section container - FULL WIDTH, VISIBLE */
  .section.cc-store-home-wrap {
    min-height: 50vh !important;
    max-height: none !important; /* Remove max-height constraint */
    overflow: visible !important; /* Allow content to show */
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    display: block !important;
    visibility: visible !important;
  }

  /* Video background - VISIBLE and properly sized */
  .video-hero,
  .w-background-video,
  .w-background-video-atom {
    min-height: 50vh !important;
    max-height: none !important; /* Remove constraint */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
  }

  /* Video element - cover entire container and be visible */
  .video-hero video,
  .w-background-video video {
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    border-radius: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Remove the glow pseudo-element on mobile - it's too distracting */
  .section.cc-store-home-wrap::after {
    display: none !important;
  }

  /* Watch Full Video button */
  .button.cc-jumbo-button.absolute-btn {
    position: absolute !important;
    bottom: 40px !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    padding: 12px 24px !important;
    font-size: 13px !important;
    min-height: 48px !important;
    height: auto !important;
    width: auto !important;
    flex-direction: row !important;
    gap: 10px !important;
    border-radius: 30px !important;
    justify-content: center !important;
    align-items: center !important;
    background: #E93423 !important;
    white-space: nowrap !important;
    z-index: 10 !important;
    box-shadow: 0 0 40px rgba(233, 52, 35, 0.6) !important; /* Glow effect */
  }

  .button.cc-jumbo-button.absolute-btn .button-play {
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }

  .button.cc-jumbo-button.absolute-btn .text-block-11 {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
    letter-spacing: 1px !important;
  }

  /* Glow effect on hero section - ensure it shows */
  .section.cc-store-home-wrap::after {
    z-index: 5 !important;
    opacity: 0.8 !important;
  }
}

@media (max-width: 479px) {
  /* Even smaller on portrait phones */
  .section.cc-store-home-wrap {
    min-height: 45vh !important;
    max-height: 55vh !important;
  }

  .video-hero,
  .w-background-video,
  .w-background-video-atom {
    min-height: 45vh !important;
    max-height: 55vh !important;
  }

  .button.cc-jumbo-button.absolute-btn {
    bottom: 20px !important;
    padding: 10px 20px !important;
  }

  .button.cc-jumbo-button.absolute-btn .button-play {
    width: 18px !important;
    height: 18px !important;
  }

  .button.cc-jumbo-button.absolute-btn .text-block-11 {
    font-size: 9px !important;
  }
}


/* ============================================================
   HAMBURGER ICON STYLING
   ============================================================ */
@media (max-width: 991px) {
  /* Menu button container */
  .menu-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
  }

  /* Menu icon image */
  .menu-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* When menu is open - subtle visual feedback */
  .menu-button.is-open .menu-icon,
  .menu-icon.menu-open {
    opacity: 0.7;
    transform: scale(0.95);
  }
}


/* ============================================================
   INDEX PAGE SPACING FIXES
   ============================================================ */

/* Hero badge - Fix spacing but PRESERVE padding for proper display */
.hero-badge {
  margin-top: 0 !important;
  /* DO NOT remove padding - badges need it for proper display */
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

/* Badge icon - prevent overflow */
.hero-badge svg,
.hero-badge img,
.hero-badge::before {
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
}

/* Section containing hero badge - NO TOP SPACING */
.section.no-padding-bottom {
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 20px !important;
}

/* Motto wrap - MUST BE CENTERED on all screen sizes */
.motto-wrap {
  padding: 0 !important;
  margin: 0 auto !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Hero title - ensure centered */
.hero-title {
  text-align: center !important;
  width: 100% !important;
}

/* Hero subtitle - ensure centered */
.hero-subtitle {
  text-align: center !important;
  width: 100% !important;
}

/* Container in hero area - NO top padding */
.section.no-padding-bottom .container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Intro header between video and badge - remove completely */
.intro-header {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Logo ticker - spacing */
.section-logo {
  padding-top: 0 !important;
  padding-bottom: 20px !important;
}

.logo-ticker {
  padding: 8px 0 20px 0 !important;
}

/* CTA Section - remove extra space under form button */
.cta-section {
  padding-bottom: 40px !important;
}

.cta-form {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.form-submit {
  margin-bottom: 0 !important;
}

/* Watch Full Video button - higher position, no glow cutoff */
@media (max-width: 767px) {
  .section.cc-store-home-wrap {
    overflow: visible !important;
  }

  .button.cc-jumbo-button.absolute-btn {
    bottom: 80px !important;
    box-shadow: 0 0 30px rgba(233, 52, 35, 0.5) !important;
  }
}

@media (max-width: 479px) {
  .button.cc-jumbo-button.absolute-btn {
    bottom: 60px !important;
  }
}

/* Process section - comprehensive mobile layout fix */
@media (max-width: 767px) {
  /* Force process-box to single column grid */
  .process-box {
    display: block !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  /* Force left/right process boxes to stack vertically */
  .left-process-box,
  .right-process-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    border: none !important;
    border-right: none !important;
    border-left: none !important;
    padding: 20px 0 !important;
  }

  /* Hide the right-border divider element on mobile */
  .right-border {
    display: none !important;
  }

  /* Process text container - full width */
  .process-rtb {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    order: 2 !important;
  }

  .process-rtb h3,
  .process-rtb p,
  .process-rtb li {
    text-align: center !important;
    width: 100% !important;
  }

  /* Process number - display above text */
  .process-number {
    text-align: center !important;
    width: auto !important;
    margin: 0 auto 15px auto !important;
    order: 1 !important;
  }

  .process-number.right {
    margin: 0 auto 15px auto !important;
  }

  /* Hide bullet decorations on mobile */
  .bullet,
  .bullet.top-bullet {
    display: none !important;
  }
}

/* Logo ticker - desktop spacing */
@media (min-width: 768px) {
  .section-logo {
    padding-top: 0 !important;
    padding-bottom: 25px !important;
  }

  .logo-ticker {
    padding: 10px 0 25px 0 !important;
  }
}


/* ============================================================
   IMAGE OVERLAY TEXT CONTRAST FIX
   Ensure text is readable on image overlays on mobile
   ============================================================ */
@media (max-width: 767px) {
  /* Improve gradient overlays for better text contrast */
  .photo-service-overlay,
  .service-overlay,
  [class*="overlay"] {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 40%, transparent 100%) !important;
  }

  /* Add text shadows for readability on overlays */
  .photo-service-card h3,
  .photo-service-card p,
  [class*="overlay"] h3,
  [class*="overlay"] p,
  [class*="overlay"] span {
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  }
}


/* ============================================================
   STICKY CTA PHONE NUMBER FIX
   Prevent phone numbers from wrapping in sticky CTAs
   ============================================================ */
.sticky-cta-phone,
.sticky-cta a[href^="tel:"],
[class*="sticky-cta"] a[href^="tel:"] {
  white-space: nowrap !important;
}

@media (max-width: 479px) {
  /* On very small screens, ensure phone numbers don't wrap */
  .sticky-cta-phone,
  .sticky-cta a[href^="tel:"],
  [class*="sticky-cta"] a[href^="tel:"] {
    white-space: nowrap !important;
    font-size: 14px !important;
  }

  /* Sticky CTA buttons should wrap to stack on small screens */
  .sticky-cta-buttons {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
}


/* ============================================================
   FORM FIELD SPACING - MOBILE
   Fix fields running into each other
   ============================================================ */
@media (max-width: 767px) {
  /* Add vertical spacing between all form fields */
  .form-group,
  .w-form-group,
  .form-field {
    margin-bottom: 16px !important;
  }

  /* Form input fields - add bottom margin */
  .cta-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
  .cta-form select,
  .cta-form textarea,
  .contact-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
  .contact-form select,
  .contact-form textarea,
  .w-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
  .w-form select,
  .w-form textarea,
  .text-field {
    margin-bottom: 16px !important;
  }

  /* Form rows - stack vertically with spacing */
  .form-row,
  .w-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Form columns inside rows */
  .form-col,
  .w-col,
  [class*="w-col-"] {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 12px !important;
  }

  /* Labels need some bottom margin */
  .field-label,
  label {
    margin-bottom: 6px !important;
    display: block !important;
  }

  /* Select dropdowns */
  select.w-select,
  .w-select {
    margin-bottom: 16px !important;
  }

  /* Turnstile CAPTCHA widget */
  .cf-turnstile,
  .turnstile-wrapper {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }

  /* Submit button area */
  .form-submit,
  .submit-wrapper {
    margin-top: 20px !important;
  }

  /* Generic form element spacing */
  form > * + * {
    margin-top: 12px;
  }
}


/* ============================================================
   VIEWPORT OVERFLOW FIX
   Prevent horizontal scroll from 100vw declarations
   ============================================================ */
html {
  overflow-x: hidden;
}

body,
.page-wrap {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Fix 100vw causing horizontal scroll (scrollbar width issue) */
[style*="100vw"],
.w-100vw,
.utility-page-wrap,
.section-15,
.section-16,
.slider-container,
.slider-container-2 {
  width: 100% !important;
  max-width: 100% !important;
}


/* ============================================================
   TOUCH TARGET SIZE IMPROVEMENTS
   Ensure all interactive elements meet 48px minimum
   ============================================================ */
@media (max-width: 767px) {
  /* Footer links - increase to 48px */
  .dfs-wrap-7 .dfs-link-1,
  .footer-column a {
    min-height: 48px !important;
    padding: 12px !important;
  }

  /* Footer contact buttons - ensure 48px */
  .footer-contacts,
  .footer .footer-contacts {
    min-height: 48px !important;
    padding: 14px 18px !important;
  }
}

@media (max-width: 320px) {
  /* Very small screens - keep footer buttons inline */
  .footer .div-block-82,
  .div-block-82 {
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .footer-contacts,
  .footer .footer-contacts {
    width: auto !important;
    flex: 0 1 auto !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
  }

  /* Smaller text/icons on very small screens */
  .footer-contacts .contact-item,
  .footer .footer-contacts .contact-item {
    font-size: 11px !important;
  }

  .footer-contacts .contact-icon,
  .footer .footer-contacts .contact-icon {
    width: 14px !important;
    height: 14px !important;
  }
}


/* ============================================================
   VW FONT SIZE FALLBACKS
   Override problematic vw-based font sizes on small screens
   ============================================================ */
@media (max-width: 479px) {
  /* Catch-all for elements using vw units that might be too small */
  [style*="vw"] {
    font-size: max(14px, inherit) !important;
  }

  /* Specific overrides for common problem areas */
  .heading-jumbo,
  .heading-medium,
  .heading-small,
  h1, h2, h3 {
    font-size: clamp(18px, 5vw, 32px) !important;
  }

  .paragraph,
  .paragraph-light,
  .paragraph-bigger,
  p {
    font-size: max(14px, 3.5vw) !important;
  }

  /* Labels and small text */
  .label,
  .text-block,
  small,
  .caption {
    font-size: max(12px, 3vw) !important;
  }

  /* Specific vw font-size class overrides */
  .black-text.margin-20.font-rev,
  .service-p.margin-20.font-rev,
  .service-p.margin-20.font-rev._2 {
    font-size: clamp(12px, 3.5vw, 16px) !important;
    line-height: 1.5 !important;
    height: auto !important;
  }

  .heading-2.font-rev,
  .white-text.h2.font-rev {
    font-size: clamp(16px, 4.5vw, 22px) !important;
  }
}

/* Additional vw font-size fixes for 768px screens */
@media (max-width: 768px) {
  .black-text.margin-20.font-rev,
  .service-p.margin-20.font-rev {
    font-size: clamp(13px, 2vw, 16px) !important;
    line-height: 1.6 !important;
    height: auto !important;
  }

  .heading-2.font-rev,
  .white-text.h2.font-rev {
    font-size: clamp(18px, 3vw, 24px) !important;
  }
}


/* ============================================================
   ULTRA MOBILE OPTIMIZATIONS
   ============================================================ */

/* ============================================================
   1. GPU ACCELERATION & PERFORMANCE
   Use hardware acceleration for smooth animations
   ============================================================ */
@media (max-width: 991px) {
  /* GPU-accelerate fixed/sticky elements */
  .navigation,
  .navigation-items,
  .sticky-cta,
  .sticky-cta-commercial,
  [class*="sticky-cta"],
  .menu-button {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* Optimize animations with will-change (use sparingly) */
  .navigation-items {
    will-change: transform, opacity;
  }

  .sticky-cta,
  .sticky-cta-commercial,
  [class*="sticky-cta"] {
    will-change: transform;
  }

  /* Reduce paint areas for scrolling */
  .page-wrap {
    contain: layout style;
  }
}


/* ============================================================
   2. ENHANCED TOUCH FEEDBACK
   Instant visual response on tap
   ============================================================ */
@media (max-width: 991px) {
  /* Instant tap feedback for buttons */
  .button,
  .btn,
  .w-button,
  .sticky-cta-btn,
  .form-submit,
  [type="submit"] {
    transition: transform 0.1s ease, opacity 0.1s ease, background-color 0.15s ease !important;
    -webkit-touch-callout: none;
    touch-action: manipulation;
  }

  .button:active,
  .btn:active,
  .w-button:active,
  .sticky-cta-btn:active,
  .form-submit:active,
  [type="submit"]:active {
    transform: scale(0.97) !important;
    opacity: 0.9 !important;
  }

  /* Card tap feedback */
  .service-card,
  .feature-card,
  .testimonial-card,
  .photo-service-card,
  .process-step,
  .card {
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    touch-action: manipulation;
  }

  .service-card:active,
  .feature-card:active,
  .testimonial-card:active,
  .photo-service-card:active,
  .process-step:active,
  .card:active {
    transform: scale(0.98) !important;
  }

  /* Link tap feedback */
  .navigation-item:active,
  .dropdown-link:active,
  .dfs-link-1:active,
  a:active {
    opacity: 0.7 !important;
  }

  /* Disable hover effects on touch devices */
  @media (hover: none) {
    .button:hover,
    .service-card:hover,
    .feature-card:hover,
    .card:hover {
      transform: none !important;
      box-shadow: inherit !important;
    }
  }
}


/* ============================================================
   3. SCROLL OPTIMIZATION
   Smooth momentum scrolling and scroll snap
   ============================================================ */
@media (max-width: 991px) {
  /* Smooth momentum scrolling */
  .navigation-items,
  .dropdown-list,
  .dropdown-list {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Prevent scroll chaining on modals/menus */
  .navigation-items.menu-open {
    overscroll-behavior: none;
  }

  /* Scroll snap for horizontal galleries */
  .logo-ticker-track,
  .testimonial-slider,
  .gallery-slider {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .logo-ticker-track > *,
  .testimonial-slider > *,
  .gallery-slider > * {
    scroll-snap-align: center;
  }
}


/* ============================================================
   4. FORM UX ENHANCEMENTS
   Better keyboard handling and input UX
   ============================================================ */
@media (max-width: 767px) {
  /* Prevent zoom on input focus (iOS) - ensure 16px minimum */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
  }

  /* Better input appearance */
  input,
  textarea,
  select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px !important;
  }

  /* Smooth keyboard appearance */
  .cta-form,
  .contact-form,
  .w-form,
  form {
    transition: padding-bottom 0.3s ease;
  }

  /* Phone input - numeric keyboard */
  input[type="tel"],
  input[name*="phone"],
  input[name*="Phone"] {
    inputmode: tel;
  }

  /* Email input - email keyboard */
  input[type="email"],
  input[name*="email"],
  input[name*="Email"] {
    inputmode: email;
    autocapitalize: none;
    autocorrect: off;
  }

  /* URL input - URL keyboard */
  input[type="url"] {
    inputmode: url;
    autocapitalize: none;
    autocorrect: off;
  }

  /* Number input - numeric keyboard */
  input[type="number"],
  input[name*="zip"],
  input[name*="Zip"] {
    inputmode: numeric;
  }

  /* Disable autocorrect/autocapitalize on names */
  input[name*="name" i],
  input[name*="Name"],
  input[autocomplete="name"] {
    autocorrect: off;
    spellcheck: false;
  }

  /* Better placeholder styling */
  ::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
  }

  ::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
  }

  /* Focus ring for accessibility */
  input:focus,
  textarea:focus,
  select:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(233, 52, 35, 0.5) !important;
  }
}


/* ============================================================
   5. STICKY ELEMENT OPTIMIZATION
   Better sticky header/CTA behavior
   ============================================================ */
@media (max-width: 991px) {
  /* Optimize sticky header */
  .navigation {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0 !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  /* Sticky CTA - slide animation */
  .sticky-cta,
  .sticky-cta-commercial,
  .sticky-cta-projects,
  [class*="sticky-cta"] {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease !important;
  }

  /* Hide sticky CTA near footer to prevent overlap */
  .sticky-cta.near-footer,
  .sticky-cta-commercial.near-footer,
  [class*="sticky-cta"].near-footer {
    transform: translateY(120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Hide sticky CTA when mobile keyboard is open */
  .sticky-cta.keyboard-open,
  .sticky-cta-commercial.keyboard-open,
  [class*="sticky-cta"].keyboard-open {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}


/* ============================================================
   6. IMAGE LOADING OPTIMIZATION
   Placeholders and loading states
   ============================================================ */
@media (max-width: 767px) {
  /* Lazy loaded images - smooth fade in */
  img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  img[loading="lazy"].loaded,
  img[loading="lazy"]:not([src=""]) {
    opacity: 1;
  }

  /* Image placeholder background */
  .photo-service-card,
  .project-thumbnail,
  .gallery-image,
  .team-pic,
  [class*="thumbnail"] {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  }

  /* Prevent image dragging */
  img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
  }

  /* Allow click on image links */
  a img,
  .lightbox-link img {
    pointer-events: auto;
  }
}


/* ============================================================
   7. TYPOGRAPHY OPTIMIZATION
   Better text rendering on mobile
   ============================================================ */
@media (max-width: 767px) {
  /* Optimize text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /* Prevent text overflow */
  h1, h2, h3, h4, h5, h6,
  .heading-jumbo,
  .heading-medium {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  /* Better line height for readability */
  p, .paragraph, .paragraph-light {
    line-height: 1.7 !important;
  }

  /* Ensure no text is cut off */
  .container,
  .w-container,
  section {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}


/* ============================================================
   8. NOTCH & SAFE AREA ENHANCEMENTS
   Better iPhone X+ support
   ============================================================ */
@supports (padding-top: env(safe-area-inset-top)) {
  @media (max-width: 991px) {
    /* Enhanced safe area for landscape iPhone */
    @media (orientation: landscape) {
      .navigation {
        padding-left: calc(16px + env(safe-area-inset-left)) !important;
        padding-right: calc(16px + env(safe-area-inset-right)) !important;
      }

      .sticky-cta,
      .sticky-cta-commercial,
      [class*="sticky-cta"] {
        padding-left: calc(20px + env(safe-area-inset-left)) !important;
        padding-right: calc(20px + env(safe-area-inset-right)) !important;
      }

      .footer,
      .dfs-section-1 {
        padding-left: calc(20px + env(safe-area-inset-left)) !important;
        padding-right: calc(20px + env(safe-area-inset-right)) !important;
      }
    }

    /* Bottom safe area for sticky elements */
    .sticky-cta.visible,
    .sticky-cta-commercial.visible,
    [class*="sticky-cta"].visible {
      padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    }
  }
}


/* ============================================================
   9. BUTTON & CTA OPTIMIZATION
   Larger, more tappable CTAs
   ============================================================ */
@media (max-width: 479px) {
  /* Full-width primary CTAs on small screens */
  .hero .button,
  .hero .btn-primary,
  .cta-section .button,
  .btn-primary:not(.sticky-cta-btn) {
    width: 100% !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* Ensure CTA text doesn't wrap awkwardly */
  .button,
  .btn,
  .w-button {
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }

  /* Larger minimum for primary actions */
  .btn-primary,
  .form-submit,
  [type="submit"] {
    min-height: 52px !important;
    font-size: 15px !important;
  }
}


/* ============================================================
   10. GRID & LAYOUT OPTIMIZATION
   Better responsive grids
   ============================================================ */
@media (max-width: 767px) {
  /* Force single column on all grids */
  .services-grid,
  .features-grid,
  .process-grid,
  .gallery-grid,
  .portfolio-grid,
  .blog-grid,
  .team-grid,
  [class*="-grid"]:not(.dfs-grid-1) {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Center grid items */
  .services-grid > *,
  .features-grid > *,
  .process-grid > * {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 400px !important;
  }
}

@media (max-width: 479px) {
  /* Tighter spacing on very small screens */
  .services-grid,
  .features-grid,
  .process-grid,
  [class*="-grid"] {
    gap: 16px !important;
  }

  /* Full-width cards */
  .service-card,
  .feature-card,
  .process-step,
  .card {
    width: 100% !important;
    max-width: none !important;
  }
}


/* ============================================================
   11. MODAL & POPUP OPTIMIZATION
   Better modal handling on mobile
   ============================================================ */
@media (max-width: 767px) {
  /* Full-screen modals on mobile */
  .popup-overlay,
  .modal-overlay,
  .w-lightbox-backdrop {
    padding: 16px !important;
  }

  .popup-form,
  .modal-content {
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px !important;
  }

  /* Close button positioning */
  .popup-close,
  .modal-close {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
}


/* ============================================================
   12. VIDEO OPTIMIZATION
   Better video handling on mobile
   ============================================================ */
@media (max-width: 767px) {
  /* Ensure videos don't overflow */
  video,
  iframe,
  .w-background-video,
  .video-hero {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Video aspect ratio preservation */
  .video-wrapper,
  .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
  }

  .video-wrapper iframe,
  .video-container iframe,
  .video-wrapper video,
  .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* Disable autoplay poster fallback */
  video:not([autoplay]) {
    background-size: cover;
    background-position: center;
  }
}


/* ============================================================
   13. LOADING STATE OPTIMIZATION
   Better skeleton/loading states
   ============================================================ */
@media (max-width: 767px) {
  /* Skeleton loading animation */
  @keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  .skeleton,
  [data-loading="true"] {
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
  }
}


/* ============================================================
   14. PRINT OPTIMIZATION
   Better print styles for mobile
   ============================================================ */
@media print {
  /* Hide mobile-only elements when printing */
  .navigation,
  .menu-button,
  .sticky-cta,
  .sticky-cta-commercial,
  [class*="sticky-cta"],
  .popup-overlay,
  video,
  .w-background-video {
    display: none !important;
  }

  /* Reset body */
  body {
    background: white !important;
    color: black !important;
  }

  /* Ensure content is visible */
  .page-wrap,
  section,
  .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}


/* ============================================================
   15. DARK MODE ENHANCEMENT
   Respect system dark mode preference
   ============================================================ */
@media (prefers-color-scheme: dark) {
  /* Already dark theme - enhance for OLED screens */
  @media (max-width: 767px) {
    .navigation,
    .footer,
    .sticky-cta,
    .sticky-cta-commercial {
      background-color: #000000 !important;
    }

    /* True black backgrounds for OLED battery saving */
    body,
    .page-wrap {
      background-color: #000000 !important;
    }
  }
}


/* ============================================================
   16. CONTACT FORM MOBILE LAYOUT FIX
   Fix form not stacking properly on mobile
   ============================================================ */
@media (max-width: 991px) {
  /* Force the grid to stack vertically */
  .grid.is--footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* Make all grid items full width */
  .grid_item.footer-form,
  .grid_item.is--50.footer-1,
  .grid_item.is--50.footer-2,
  .grid_item.is--50.footer-3 {
    width: 100% !important;
    flex: none !important;
  }

  /* Form block CTA - full width */
  .form-block.cta {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

@media (max-width: 767px) {
  /* Additional mobile form fixes */
  .grid_item.footer-form {
    padding: 16px !important;
  }

  .grid_item.footer-form .div-block-12,
  .grid_item.footer-form .cta-form {
    width: 100% !important;
    max-width: none !important;
  }

  /* Stack the form grid properly */
  .contact-form-grid-2.cta-form,
  .cta-form .contact-form-grid-2,
  .grid_item.footer-form .contact-form-grid-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    grid-template-columns: 1fr !important;
  }

  /* Contact page section */
  .section.contact-mb {
    padding: 24px 16px !important;
  }

  .section.contact-mb .grid.is--footer {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Contact heading - full width and centered */
  .grid_item.is--50.footer-1 {
    text-align: center !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
  }

  .grid_item.is--50.footer-1 .subheading-h2 {
    text-align: center !important;
    font-size: clamp(28px, 7vw, 42px) !important;
  }
}


/* ============================================================
   17. BUTTON TEXT VISIBILITY FIX
   Fix "GET STARTED TODAY" and other buttons with faded text
   ============================================================ */
@media (max-width: 991px) {
  /* Ensure button text is always visible */
  .submit-button,
  .btn-primary,
  .button.cc-jumbo-button,
  .form-submit,
  [class*="submit"],
  input[type="submit"],
  button[type="submit"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
  }

  /* Ensure text inside buttons is visible */
  .submit-button *,
  .btn-primary *,
  .button.cc-jumbo-button *,
  .form-submit * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    opacity: 1 !important;
  }

  /* Specific fix for red CTA buttons */
  .submit-button.button.cc-jumbo-white.cta-form,
  .submit-button.button.cc-jumbo-white.cta-form.red,
  .form-submit,
  .btn-primary {
    background-color: #E93423 !important;
    background: #E93423 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  /* Fix potential gradient overlays hiding text */
  .submit-button::before,
  .submit-button::after,
  .btn-primary::before,
  .btn-primary::after,
  .form-submit::before,
  .form-submit::after {
    background: transparent !important;
  }
}


/* ============================================================
   18. RED GLOW REMOVAL ON FORMS
   Remove incorrect red glow effects from form sections
   ============================================================ */
@media (max-width: 991px) {
  /* Remove any glow or overlay effects on form sections */
  .section.contact-mb::before,
  .section.contact-mb::after,
  .grid.is--footer::before,
  .grid.is--footer::after,
  .grid_item.footer-form::before,
  .grid_item.footer-form::after,
  .cta-form::before,
  .cta-form::after,
  .form-block::before,
  .form-block::after {
    display: none !important;
    content: none !important;
  }

  /* Remove box shadows that could appear as glow */
  .section.contact-mb,
  .grid.is--footer,
  .grid_item.footer-form,
  .cta-form,
  .form-block.cta {
    box-shadow: none !important;
  }

  /* Remove any radial gradient overlays */
  .section.contact-mb {
    background-image: none !important;
    background: transparent !important;
  }
}


/* ============================================================
   19. GHOST/DOUBLE TEXT EFFECT FIX
   Fix text-stroke creating ghosting on styled headings
   ============================================================ */
@media (max-width: 767px) {
  /* Remove text-stroke that causes ghost/double effect on mobile */
  .hero-title,
  .hero-title *,
  .hero-title .highlight,
  .heading-jumbo,
  h1, h2, h3 {
    -webkit-text-stroke-width: 0 !important;
    -webkit-text-stroke-color: transparent !important;
    text-stroke-width: 0 !important;
    text-stroke-color: transparent !important;
  }

  /* Clean text rendering for headings */
  .hero-title,
  .heading-jumbo,
  .is--white {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
  }

  /* Ensure highlight spans don't have double effect */
  .hero-title .highlight {
    position: relative !important;
    display: inline !important;
  }

  /* Simplify the underline effect on mobile to prevent visual artifacts */
  .hero-title .highlight::after {
    height: 3px !important;
    bottom: 2px !important;
    opacity: 0.5 !important;
  }

  /* Remove any text shadows that could cause ghosting */
  .hero-title,
  .hero-title *,
  .hero-title .highlight,
  .heading-jumbo {
    text-shadow: none !important;
  }
}

/* Extra small screens - further simplification */
@media (max-width: 479px) {
  /* Simpler highlight on very small screens */
  .hero-title .highlight::after {
    display: none !important;
  }
}


/* ============================================================
   20. BUTTON OPACITY FIX
   Override .8 opacity that fades button text (peak3-visuals.css:533-534)
   ============================================================ */
@media (max-width: 991px) {
  /* Fix button opacity that causes faded text */
  .button.cc-jumbo-button.cc-jumbo-white.absolute-btn,
  .button.cc-jumbo-button.cc-jumbo-white.absolute-btn.rev-button-loc,
  .button.cc-jumbo-button,
  .button[class*="jumbo"],
  .absolute-btn {
    opacity: 1 !important;
  }

  /* Ensure button text is always fully visible */
  .button.cc-jumbo-button.cc-jumbo-white.absolute-btn *,
  .absolute-btn * {
    opacity: 1 !important;
    color: inherit !important;
  }
}


/* ============================================================
   21. PARAGRAPH TEXT-STROKE FIX
   Remove text-stroke on .paragraph-bigger (peak3-visuals.css:409-410)
   ============================================================ */
@media (max-width: 767px) {
  /* Remove text-stroke that causes ghosting on paragraphs */
  .paragraph-bigger,
  .heading-jumbo-small,
  [class*="paragraph"],
  [class*="heading"] {
    -webkit-text-stroke-width: 0 !important;
    -webkit-text-stroke-color: transparent !important;
    text-stroke-width: 0 !important;
    text-stroke-color: transparent !important;
  }
}


/* ============================================================
   22. FORM GRID STACKING ENHANCED FIX
   Override conflicting grid+flex (peak3-visuals.css:2606-2616)
   ============================================================ */
@media (max-width: 767px) {
  /* Force flex layout over grid for form containers */
  .contact-form-grid-2.cta-form,
  .contact-form-grid-2,
  .contact-form-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
    width: 100% !important;
  }

  /* Form field half-width override */
  .text-field-2.half,
  .form-field.half,
  [class*="half"] input,
  [class*="half"] select {
    width: 100% !important;
  }

  /* Contact form grid - force single column */
  .contact-form-grid {
    grid-template: unset !important;
    width: 100% !important;
  }
}


/* ============================================================
   23. Z-INDEX CONSISTENCY FIX
   Fix .absolute-btn z-index conflict (986 vs 10)
   ============================================================ */
@media (max-width: 991px) {
  /* Normalize z-index for interactive elements */
  .button.cc-jumbo-button.cc-jumbo-white.absolute-btn,
  .absolute-btn {
    z-index: 10 !important;
  }

  /* Ensure navigation stays on top */
  .navigation {
    z-index: 9999 !important;
  }

  .navigation-items {
    z-index: 9998 !important;
  }

  /* Sticky CTA below navigation */
  .sticky-cta,
  .sticky-cta-commercial,
  [class*="sticky-cta"] {
    z-index: 9990 !important;
  }

  /* Modals and overlays highest */
  .popup-overlay,
  .modal,
  .w-form-done,
  .w-form-fail {
    z-index: 10000 !important;
  }
}


/* ============================================================
   24. SUBMIT BUTTON POSITIONING FIX
   Fix -30% bottom positioning (peak3-visuals.css:2722)
   ============================================================ */
@media (max-width: 991px) {
  /* Reset problematic absolute positioning */
  .submit-button {
    position: relative !important;
    inset: unset !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin-top: 16px !important;
  }

  /* Submit button in forms */
  .submit-button.button.cc-jumbo-white,
  .submit-button.button.cc-jumbo-white.cta-form {
    position: relative !important;
    width: 100% !important;
    inset: unset !important;
  }
}

@media (max-width: 767px) {
  /* Additional mobile positioning fix */
  .submit-button {
    margin-top: 20px !important;
    padding: 16px 24px !important;
  }

  /* Form submit button full width */
  .form-submit,
  .submit-button,
  input[type="submit"],
  button[type="submit"] {
    width: 100% !important;
    min-height: 48px !important;
  }
}


/* ============================================================
   25. ADDITIONAL FORM UX ENHANCEMENTS
   Comprehensive mobile form improvements
   ============================================================ */
@media (max-width: 767px) {
  /* Form row stacking */
  .form-row,
  .contact-text-wrapper._2-grids {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Form group spacing */
  .form-group {
    margin-bottom: 12px !important;
    width: 100% !important;
  }

  /* Input field sizing */
  .form-group input,
  .form-group textarea,
  .form-group select,
  .text-field-2,
  .form-input {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important; /* Prevents iOS zoom */
    padding: 12px 16px !important;
  }

  /* Textarea sizing */
  .form-group textarea,
  textarea.text-field-2 {
    min-height: 120px !important;
    resize: vertical !important;
  }

  /* Label styling */
  .form-group label,
  .field-label {
    font-size: 14px !important;
    margin-bottom: 6px !important;
    display: block !important;
  }
}


/* ============================================================
   26. HERO SECTION VIEWPORT FIX
   Fix 85vh/100vh causing issues with mobile browser chrome
   NOTE: Do NOT collapse video hero sections
   ============================================================ */
@media (max-width: 767px) {
  /* Hero sections (non-video) - reduce min-height for mobile viewport */
  .hero:not(.video-bg),
  .hero-section:not(.video-bg),
  .seattle-dark-hero,
  .intro-header,
  .intro-header.cc-subpage {
    min-height: auto !important;
    height: auto !important;
  }

  /* VIDEO HERO - Must remain visible with proper height */
  .section.cc-store-home-wrap.video-bg,
  .section.cc-store-home-wrap {
    min-height: 50vh !important;
    max-height: none !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
  }

  /* Ensure video background is visible */
  .w-background-video,
  .w-background-video-atom,
  .video-hero {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 50vh !important;
  }

  /* Video element must be visible */
  .w-background-video video,
  .section.cc-store-home-wrap video {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Hero content padding adjustment */
  .hero-content,
  .intro-content {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }

  /* Hero badge - proper spacing on mobile */
  .hero-badge {
    margin-top: 20px !important;
    margin-bottom: 16px !important;
  }
}

@media (max-width: 479px) {
  /* Small phones - video hero */
  .section.cc-store-home-wrap.video-bg,
  .section.cc-store-home-wrap {
    min-height: 45vh !important;
  }

  .hero-content,
  .intro-content {
    padding-top: 60px !important;
    padding-bottom: 32px !important;
  }

  /* Smaller badge on small screens */
  .hero-badge {
    font-size: 10px !important;
    padding: 6px 12px !important;
  }
}


/* ============================================================
   27. LOCATION PAGES - 100VW AND HEIGHT FIXES
   Fix horizontal scroll and excessive heights
   ============================================================ */
@media (max-width: 991px) {
  /* Fix 100vw causing horizontal scroll */
  .container,
  .seattle-dark-hero,
  .section,
  [class*="container"],
  [class*="wrapper"] {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Sticky scroll container height fix */
  .sticky-scroll-container,
  .sticky-scroll-section {
    min-height: 50vh !important;
  }
}

@media (max-width: 767px) {
  /* Further reduce sticky container on mobile */
  .sticky-scroll-container,
  .sticky-scroll-section {
    min-height: 40vh !important;
  }

  /* Location page sections */
  .location-section,
  .location-hero,
  [class*="location"] .hero {
    min-height: auto !important;
  }
}


/* ============================================================
   28. PHOTO ALBUM GRID MOBILE FIX
   Fix Webflow grids not stacking on mobile
   ============================================================ */
@media (max-width: 991px) {
  /* Photo album grids - force 2 columns on tablet */
  .w-layout-grid.grid-7,
  .w-layout-grid[class*="grid"],
  .photo-grid,
  .album-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 767px) {
  /* Photo album grids - single column on mobile */
  .w-layout-grid.grid-7,
  .w-layout-grid[class*="grid"],
  .photo-grid,
  .album-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Fix hardcoded image widths */
  .w-layout-grid img,
  .photo-grid img,
  .album-grid img,
  .lightbox-link img,
  .w-lightbox img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Lightbox link touch targets */
  .lightbox-link,
  .w-lightbox-link,
  .lightbox-link-5 {
    display: block !important;
    min-height: 44px !important;
  }
}


/* ============================================================
   29. NAVIGATION DROPDOWN Z-INDEX FIX
   Override peak3-visuals.css line 957 z-index: 999
   ============================================================ */
@media (max-width: 991px) {
  /* Navigation dropdown - lower than nav but above content */
  .submenu.open,
  .dropdown-list.open,
  .dropdown-list.open {
    z-index: 9997 !important;
  }

  /* Ensure dropdowns appear below main nav overlay */
  .navigation-items .submenu,
  .navigation-items .dropdown {
    z-index: 9996 !important;
  }
}


/* ============================================================
   30. TOUCH TARGETS & BUTTON SIZING FIX
   Ensure all interactive elements meet 44px minimum
   ============================================================ */
@media (max-width: 991px) {
  /* Sticky CTA buttons - increase touch target */
  .sticky-cta .button,
  .sticky-cta-commercial .button,
  [class*="sticky-cta"] .button,
  .sticky-cta a,
  .sticky-cta-commercial a {
    min-height: 44px !important;
    padding: 14px 24px !important;
  }

  /* Platform cards and service cards */
  .platform-card,
  .service-card,
  .category-card,
  .content-card {
    min-height: 44px !important;
  }

  /* All clickable cards */
  a.platform-card,
  a.service-card,
  a.category-card,
  .card-link {
    padding: 16px !important;
  }

  /* Hamburger menu button explicit sizing */
  .menu-button,
  .w-nav-button,
  #menu-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* ============================================================
   31. TEXT OVERFLOW & NOWRAP FIXES
   Fix forced nowrap causing overflow on small screens
   ============================================================ */
@media (max-width: 767px) {
  /* Allow text wrapping on mobile */
  .contact-item,
  .footer-contacts,
  .dfs-wrap-7 .contact-item,
  [class*="contact"] {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-overflow: clip !important;
  }

  /* Navigation items text wrapping */
  .navigation-item,
  .nav-link,
  .w-nav-link {
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* Headings should wrap */
  h1, h2, h3, h4, h5, h6,
  .heading-jumbo,
  .heading-jumbo-small,
  .hero-title,
  [class*="heading"] {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
}

@media (max-width: 479px) {
  /* Extra small - more aggressive wrapping */
  * {
    word-break: break-word !important;
  }

  /* Long URLs and technical terms */
  p, li, span, a {
    overflow-wrap: break-word !important;
  }
}


/* ============================================================
   32. iOS FORM INPUT ZOOM PREVENTION
   16px font-size minimum prevents auto-zoom on iOS
   ============================================================ */
@media (max-width: 991px) {
  /* All form inputs - 16px minimum */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="url"],
  input[type="date"],
  textarea,
  select,
  .text-field,
  .text-field-2,
  .form-input,
  .w-input,
  .w-select {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100% !important;
  }

  /* Prevent zoom on focus */
  input:focus,
  textarea:focus,
  select:focus {
    font-size: 16px !important;
  }
}


/* ============================================================
   33. FEATURED IMAGE ASPECT RATIO FIX
   Use aspect-ratio instead of fixed heights
   ============================================================ */
@media (max-width: 767px) {
  /* Blog featured images */
  .featured-image,
  .blog-post-image,
  .article-image,
  .post-thumbnail {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
  }

  /* Service card images */
  .service-image,
  .photo-service-image,
  [class*="service"] img {
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
  }

  /* Gallery images */
  .gallery-image,
  .portfolio-image {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
  }
}


/* ============================================================
   34. TOUCH ACTIVE STATES FOR CARDS
   Add :active states for mobile tap feedback
   ============================================================ */
@media (max-width: 991px) {
  /* Card tap feedback */
  .category-card:active,
  .service-card:active,
  .platform-card:active,
  .content-card:active,
  .blog-post-card:active,
  .project-card:active {
    transform: scale(0.98) !important;
    opacity: 0.9 !important;
    transition: transform 0.1s ease, opacity 0.1s ease !important;
  }

  /* Button tap feedback */
  .button:active,
  .btn:active,
  .btn-primary:active,
  .btn-secondary:active,
  a.button:active {
    transform: scale(0.97) !important;
    opacity: 0.85 !important;
  }

  /* Link tap feedback */
  .navigation-item:active,
  .nav-link:active,
  .footer-link:active {
    opacity: 0.7 !important;
  }

  /* Lightbox image tap */
  .lightbox-link:active,
  .w-lightbox-link:active {
    opacity: 0.8 !important;
  }
}


/* ============================================================
   35. INTRO CONTENT & WRAPPER WIDTH FIXES
   Fix hardcoded widths that don't scale on mobile
   ============================================================ */
@media (max-width: 991px) {
  /* Intro content - full width on tablet */
  .intro-content,
  .hero-content,
  .motto-wrap,
  .content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 767px) {
  /* Intro content - with padding on mobile */
  .intro-content,
  .hero-content {
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Motto wrap */
  .motto-wrap {
    width: 100% !important;
    padding: 0 16px !important;
  }

  /* Generic content wrappers */
  [class*="content-wrap"],
  [class*="text-wrap"],
  [class*="wrapper"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* ============================================================
   36. COMPARISON TABLE MOBILE FIX
   Stack table rows instead of horizontal scroll
   ============================================================ */
@media (max-width: 767px) {
  /* ROI calculator and comparison tables */
  .roi-example,
  .comparison-table,
  .pricing-table,
  [class*="table"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    overflow-x: visible !important;
  }

  /* Table rows become stacked cards */
  .comparison-table tr,
  .comparison-table > div,
  .roi-example > div {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
  }

  /* Table cells */
  .comparison-table td,
  .comparison-table th {
    display: block !important;
    width: 100% !important;
    padding: 8px 0 !important;
    text-align: left !important;
  }
}


/* ============================================================
   37. LOGO TICKER MOBILE OPTIMIZATION
   Reduce padding on small screens
   ============================================================ */
@media (max-width: 479px) {
  .logo-ticker,
  .logo-ticker-wrap,
  [class*="logo-ticker"] {
    padding: 12px 0 16px 0 !important;
  }

  .logo-ticker img,
  .logo-ticker-track img {
    max-height: 28px !important;
  }
}


/* ============================================================
   38. PLATFORM CARD GRID FIX
   Fix minmax(280px) not adapting below 280px
   ============================================================ */
@media (max-width: 479px) {
  /* Platform cards - single column on very small screens */
  .platforms-grid,
  [class*="platform"] {
    grid-template-columns: 1fr !important;
  }

  .platform-card {
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* ============================================================
   39. VW UNIT FALLBACKS FOR VERY SMALL SCREENS
   Override problematic vw font sizes
   ============================================================ */
@media (max-width: 375px) {
  /* Navigation text - ensure readable */
  .navigation-item,
  .nav-link,
  .dropdown-link,
  .w-nav-link {
    font-size: 14px !important;
  }

  /* Gallery text */
  .gallery-title,
  .gallery-caption,
  [class*="gallery"] p {
    font-size: 12px !important;
  }

  /* Headings - minimum sizes */
  h1, .heading-jumbo {
    font-size: 28px !important;
  }

  h2, .heading-jumbo-small {
    font-size: 22px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  /* Body text minimum */
  p, li, span {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 320px) {
  /* Ultra small screens (iPhone SE, older Android) */
  h1, .heading-jumbo {
    font-size: 24px !important;
  }

  h2, .heading-jumbo-small {
    font-size: 20px !important;
  }

  .button,
  .btn,
  input[type="submit"] {
    font-size: 14px !important;
    padding: 12px 16px !important;
  }
}


/* ============================================================
   40. COMPREHENSIVE BADGE MOBILE FIXES
   All badge types: section-badge, badge-secondary, founder-badge,
   subscription-badge (hero-badge already handled above)
   ============================================================ */

/* --- SECTION BADGE (location pages, index.html) --- */
.section-badge,
.category-selector-header .section-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  border-radius: 50px !important;
  line-height: 1.2 !important;
}

.section-badge::before {
  flex-shrink: 0 !important;
  display: inline-block !important;
}

@media (max-width: 767px) {
  .section-badge,
  .category-selector-header .section-badge {
    font-size: 0.7rem !important;
    padding: 8px 16px !important;
    letter-spacing: 1px !important;
  }
}

@media (max-width: 479px) {
  .section-badge,
  .category-selector-header .section-badge {
    font-size: 0.65rem !important;
    padding: 6px 12px !important;
    letter-spacing: 0.8px !important;
  }
}

@media (max-width: 375px) {
  .section-badge,
  .category-selector-header .section-badge {
    font-size: 0.6rem !important;
    padding: 5px 10px !important;
  }
}


/* --- BADGE SECONDARY (FAQ tab buttons) --- */
.badge-secondary,
.badge-secondary.tabs,
.badge-secondary.tabs.tab-rev {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  text-align: center !important;
  min-height: 44px !important; /* Touch target */
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.badge-secondary .text-tab-faq {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 991px) {
  .tabs-menu-3 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }

  .badge-secondary.tabs.tab-rev {
    flex: 1 1 calc(50% - 8px) !important;
    max-width: calc(50% - 4px) !important;
    padding: 14px 16px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 767px) {
  .badge-secondary.tabs.tab-rev {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
  }

  .badge-secondary .text-tab-faq {
    font-size: 14px !important;
  }
}

@media (max-width: 479px) {
  .badge-secondary.tabs.tab-rev {
    padding: 12px 16px !important;
    font-size: 13px !important;
    min-height: 48px !important;
  }

  .badge-secondary .text-tab-faq {
    font-size: 13px !important;
  }
}


/* --- FOUNDER BADGE (about.html) --- */
.founder-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  border-radius: 50px !important;
  line-height: 1.2 !important;
}

@media (max-width: 767px) {
  .founder-badge {
    font-size: 12px !important;
    padding: 8px 20px !important;
    bottom: -15px !important;
  }
}

@media (max-width: 479px) {
  .founder-badge {
    font-size: 11px !important;
    padding: 6px 16px !important;
    bottom: -12px !important;
    letter-spacing: 0.5px !important;
  }
}

@media (max-width: 375px) {
  .founder-badge {
    font-size: 10px !important;
    padding: 5px 12px !important;
  }
}


/* --- SUBSCRIPTION BADGE (social media service pages) --- */
.subscription-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 8px 50px !important;
}

@media (max-width: 767px) {
  .subscription-badge {
    font-size: 10px !important;
    padding: 6px 40px !important;
    top: 20px !important;
    right: -45px !important;
  }

  .subscription-card {
    padding: 40px 20px !important;
  }
}

@media (max-width: 479px) {
  .subscription-badge {
    font-size: 9px !important;
    padding: 5px 35px !important;
    top: 18px !important;
    right: -48px !important;
  }

  .subscription-card {
    padding: 30px 16px !important;
  }
}

@media (max-width: 375px) {
  .subscription-badge {
    font-size: 8px !important;
    padding: 4px 30px !important;
    top: 15px !important;
    right: -50px !important;
  }
}


/* --- UNIVERSAL BADGE ICON FIXES --- */
/* Prevent icons/emojis from causing text overflow in any badge */
[class*="badge"] svg,
[class*="badge"] img,
[class*="badge"] .icon,
[class*="badge"]::before {
  flex-shrink: 0 !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

@media (max-width: 479px) {
  [class*="badge"] svg,
  [class*="badge"] img,
  [class*="badge"] .icon {
    max-width: 16px !important;
    max-height: 16px !important;
  }
}

/* ============================================================================
   AUTHORITATIVE NAVIGATION STYLES - SINGLE SOURCE OF TRUTH
   Added: January 2026 - Resolves header inconsistency issues across all pages
   DO NOT add navigation styles anywhere else. Remove inline nav CSS from HTML.
   ============================================================================ */

/* PREVENT FOUC (Flash of Unstyled Content) - Disable transitions on initial load */
/* This class is added to <html> by mobile-menu.js and removed after page load */
html.no-transitions,
html.no-transitions *,
html.no-transitions *::before,
html.no-transitions *::after {
  transition: none !important;
  animation: none !important;
}

/* PREVENT FONT LOADING LAYOUT SHIFT */
/* Lock down navigation dimensions to prevent shift when fonts load */
.navigation {
  contain: layout style !important; /* Prevent layout recalculation from affecting children */
  min-height: 60px !important; /* Fixed height prevents shift */
}

.navigation-wrap {
  contain: layout !important;
  min-height: 50px !important;
}

.navigation-item,
.navigation-item.dropdown-toggle {
  /* Use system font stack that matches Inter metrics */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  line-height: 1.5 !important; /* Fixed line-height */
  min-height: 36px !important; /* Fixed minimum height */
}

.text-block-19 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  line-height: 1.5 !important;
}

/* Base Navigation Bar - Override ALL conflicting sources */
.navigation {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  padding: 12px 20px !important; /* Override peak3-visuals.css 13px 50px */
  display: flex !important;
  align-items: center !important;
}

.navigation-wrap {
  max-width: 1400px !important;
  margin: 0 auto !important;
  position: relative !important;
  /* Original layout uses flex from peak3-visuals.css */
}

/* Menu container - Ensure proper width for all nav items */
.menu {
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  width: auto !important; /* Override 40% to fit content */
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
}

/* Navigation Items - Desktop (AUTHORITATIVE) */
/* Override BOTH custom class AND Webflow class */
.navigation-item,
.w-nav-link,
.navigation-item.w-nav-link {
  position: relative !important;
  display: inline-block !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  padding: 8px 14px !important;
  color: #fff !important;
  opacity: 0.91 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  transition: color 0.3s ease, opacity 0.3s ease !important;
}

/* Current page indicator - Override Webflow's blue color */
.navigation-item.w--current,
.w-nav-link.w--current,
.navigation-item.w-nav-link.w--current {
  font-size: 12px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  color: #fff !important; /* Override webflow.css blue #0082f3 */
}

/* Hover underline effect */
.navigation-item::after {
  content: '' !important;
  position: absolute !important;
  bottom: 6px !important;
  left: 16px !important;
  width: 0 !important;
  height: 2px !important;
  background-color: #E93423 !important;
  transition: width 0.3s ease !important;
}

.navigation-item:hover::after {
  width: calc(100% - 32px) !important;
}

.navigation-item:hover {
  color: #E93423 !important;
  opacity: 1 !important;
}

/* Dropdown toggle text */
.text-block-19 {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  color: #fff !important;
}

/* Dropdown menus */
.dropdown-link {
  transition: all 0.2s ease !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  display: block !important;
}

.dropdown-link:hover {
  padding-left: 28px !important;
  color: #E93423 !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.dropdown-list,
.dropdown-list {
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding: 8px 0 !important;
  margin-top: 8px !important;
  min-width: 180px !important;
}

/* Logo styling - Override Webflow .w-nav-brand defaults */
.logo-link,
.w-nav-brand,
.logo-link.w-nav-brand {
  z-index: 1 !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  float: none !important; /* Override webflow.css float: left */
  color: inherit !important; /* Override webflow.css color: #333333 */
  text-decoration: none !important;
}

.logo {
  max-width: clamp(100px, 12vw, 180px) !important;
  max-height: 50px !important;
  width: auto !important;
  height: auto !important;
  transition: max-width 0.3s ease !important;
}

/* Phone button */
.button.cc-contact-us.nav-btn {
  background-color: #E93423 !important;
  border-radius: 50px !important;
  padding: 8px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.button.cc-contact-us.nav-btn .text-block {
  font-size: 13px !important;
  font-weight: 600 !important;
}

.button.cc-contact-us.nav-btn .left-phone-icon {
  width: 18px !important;
  height: 18px !important;
}

/* Contact link red color */
.navigation-item[href*="contact"],
a.navigation-item[href="contact-us.html"] {
  color: #E93423 !important;
}

/* ============================================================================
   MOBILE NAVIGATION - HAMBURGER MENU (991px and below)
   ============================================================================ */
@media (max-width: 991px) {
  /* Nav menu hidden by default */
  .navigation-items,
  .navigation-items.w-nav-menu {
    display: none !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.98) !important;
    flex-direction: column !important;
    padding: 20px !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
  }

  /* Nav menu visible when open */
  .navigation-items.menu-open,
  .navigation-items.w-nav-menu.w--nav-menu-open {
    display: flex !important;
  }

  /* Show all direct children when menu is open */
  .navigation-items.menu-open > *,
  .navigation-items.w--nav-menu-open > * {
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Show all dropdowns expanded */
  .navigation-items.menu-open .dropdown-list,
  .navigation-items.menu-open .dropdown-list,
  .navigation-items.w--nav-menu-open .dropdown-list,
  .navigation-items.w--nav-menu-open .dropdown-list {
    display: block !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    background: rgba(255, 255, 255, 0.03) !important;
    padding-left: 20px !important;
  }

  /* Menu button always visible on mobile */
  .menu-button,
  .w-nav-button {
    display: flex !important;
    min-width: 48px !important;
    min-height: 48px !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Hide desktop nav items container until menu open */
  .menu {
    justify-content: flex-end !important;
  }

  /* Navigation items styling for mobile */
  .navigation-item {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    text-align: left !important;
  }

  .navigation-item.w--current {
    font-size: 16px !important;
  }

  /* Remove underline effect on mobile */
  .navigation-item::after {
    display: none !important;
  }

  .text-block-19 {
    font-size: 16px !important;
    color: #fff !important;
  }

  .dropdown-link {
    display: block !important;
    padding: 14px 20px 14px 40px !important;
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  /* Logo sizing for mobile */
  .logo {
    max-height: 40px !important;
    max-width: 120px !important;
  }

  /* Phone button mobile adjustments */
  .button.cc-contact-us.nav-btn {
    padding: 6px 12px !important;
  }

  .button.cc-contact-us.nav-btn .text-block {
    font-size: 12px !important;
  }
}

/* ============================================================================
   TABLET ADJUSTMENTS (768px - 991px)
   ============================================================================ */
@media (min-width: 768px) and (max-width: 991px) {
  .navigation-items.menu-open,
  .navigation-items.w--nav-menu-open {
    top: 55px !important;
  }

  /* Phone button - fix oval shape from peak3-visuals.css width: 25% */
  .button.cc-contact-us.nav-btn {
    width: auto !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
  }

  .button.cc-contact-us.nav-btn .text-block {
    display: none !important;
  }
}

/* ============================================================================
   MOBILE NAVIGATION FIXES (991px and below)
   Fix phone button, logo centering, dropdown arrows
   ============================================================================ */
@media (max-width: 991px) {
  /* Phone button - CRITICAL: Override peak3-visuals.css width percentages */
  .button.cc-contact-us.nav-btn {
    width: auto !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    padding: 10px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .button.cc-contact-us.nav-btn .text-block {
    display: none !important;
  }

  /* Show the phone icon image on mobile */
  .button.cc-contact-us.nav-btn .left-phone-icon {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
  }

  /* Hide duplicate/alternative phone icons and text */
  .button.cc-contact-us.nav-btn .mobileview,
  .button.cc-contact-us.nav-btn .mobileview.phonewhite {
    display: none !important;
  }

  /* Logo centering - make navigation-wrap use proper flexbox */
  .navigation-wrap {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* Logo link - center it */
  .logo-link,
  .logo-link.w-nav-brand {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
  }

  /* Ensure phone button and menu button are at edges */
  .button.cc-contact-us.nav-btn {
    position: relative !important;
    z-index: 10 !important;
  }

  .menu {
    position: relative !important;
    z-index: 10 !important;
  }
}

/* ============================================================================
   SMALL MOBILE (479px and below)
   ============================================================================ */
@media (max-width: 479px) {
  .navigation-item {
    font-size: 16px !important;
    padding: 14px 16px !important;
  }

  .navigation-item.w--current {
    font-size: 16px !important;
  }

  .text-block-19 {
    font-size: 16px !important;
  }

  .dropdown-link {
    font-size: 14px !important;
    padding: 12px 16px 12px 32px !important;
  }

  .logo {
    max-height: 35px !important;
    max-width: 100px !important;
  }

  .button.cc-contact-us.nav-btn .text-block {
    display: none !important;
  }

  .button.cc-contact-us.nav-btn {
    padding: 10px !important;
    border-radius: 50% !important;
  }
}

/* ============================================================================
   PROJECT THUMBNAILS - MOBILE BORDER RADIUS FIX
   Override the too-small radius-sm (6px) on mobile for better visual appeal
   ============================================================================ */
@media (max-width: 767px) {
  /* Card containers */
  .div-block-40,
  .videos-thumbnail-wrapper,
  .link-block-9 {
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  /* Ensure child images respect border radius */
  .videos-thumbnail-wrapper img,
  .div-block-40 img {
    border-radius: 12px !important;
  }
}

@media (max-width: 480px) {
  /* Slightly smaller radius on smallest screens but still visible */
  .div-block-40,
  .videos-thumbnail-wrapper,
  .link-block-9 {
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .videos-thumbnail-wrapper img,
  .div-block-40 img {
    border-radius: 10px !important;
  }
}

/* ============================================================================
   FOOTER REDESIGN - MOBILE LAYOUT
   New structure:
   Row 1: Services (left) + Company (right)
   Row 2: Contacts (full width)
   Row 3: Locations/Cities (2-column grid)
   ============================================================================ */
@media (max-width: 767px) {
  /* Main footer grid - use CSS Grid for reordering */
  .footer .dfs-grid-1,
  .dfs-section-1 .dfs-grid-1,
  div.dfs-grid-1 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 24px 16px !important;
    text-align: left !important;
  }

  /* Reset all dfs-wrap-7 alignment */
  .footer .dfs-wrap-7,
  .dfs-section-1 .dfs-wrap-7,
  .dfs-grid-1 > .dfs-wrap-7 {
    align-items: flex-start !important;
    text-align: left !important;
    grid-column: auto !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* ROW 1: Services (1st child) - LEFT */
  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(1),
  .dfs-grid-1 > .dfs-wrap-7:nth-child(1) {
    order: 1 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  /* ROW 1: Company (3rd child) - RIGHT */
  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(3),
  .dfs-grid-1 > .dfs-wrap-7:nth-child(3) {
    order: 2 !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }

  /* ROW 2: Contacts (4th child / .last) - FULL WIDTH */
  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(4),
  .footer .dfs-grid-1 > .dfs-wrap-7.last,
  .dfs-grid-1 > .dfs-wrap-7:nth-child(4),
  .dfs-grid-1 > .dfs-wrap-7.last {
    order: 3 !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    padding-top: 20px !important;
    margin-top: 4px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* ROW 3: Locations (2nd child) - FULL WIDTH with 2-column internal grid */
  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(2),
  .dfs-grid-1 > .dfs-wrap-7:nth-child(2) {
    order: 4 !important;
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    padding-top: 20px !important;
    margin-top: 4px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  /* Locations heading - full width, centered */
  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(2) .dfs-heading-1,
  .dfs-grid-1 > .dfs-wrap-7:nth-child(2) .dfs-heading-1 {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 16px !important;
  }

  /* Locations - make internal links 2 columns */
  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(2),
  .dfs-grid-1 > .dfs-wrap-7:nth-child(2) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 16px !important;
    align-items: start !important;
  }

  /* Locations heading spans both columns */
  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(2) .dfs-heading-1 {
    grid-column: 1 / -1 !important;
  }

  /* City links in the 2-column grid */
  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(2) .dfs-link-1,
  .dfs-grid-1 > .dfs-wrap-7:nth-child(2) .dfs-link-1 {
    text-align: center !important;
    padding: 10px 8px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Section headings styling */
  .footer .dfs-heading-1,
  .dfs-grid-1 .dfs-heading-1 {
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #E93423 !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
  }

  /* Services & Company links */
  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(1) .dfs-link-1,
  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(3) .dfs-link-1 {
    font-size: 14px !important;
    padding: 8px 0 !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Contacts section - center everything */
  .footer .dfs-wrap-7.last .dfs-heading-1,
  .dfs-grid-1 > .dfs-wrap-7.last .dfs-heading-1 {
    text-align: center !important;
    width: 100% !important;
  }

  /* Contact buttons container */
  .footer .dfs-wrap-7.last .div-block-82,
  .dfs-grid-1 > .dfs-wrap-7.last .div-block-82 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  /* Contact buttons */
  .footer .footer-contacts,
  .dfs-grid-1 .footer-contacts {
    background: rgba(233, 52, 35, 0.1) !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Social icons - centered */
  .footer .dfs-wrap-7.last .dfs-wrap-8,
  .dfs-grid-1 > .dfs-wrap-7.last .dfs-wrap-8 {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 16px !important;
    width: 100% !important;
  }

  /* Social icon buttons */
  .footer .dfs-wrap-8 a,
  .dfs-grid-1 .dfs-wrap-8 a {
    min-width: 48px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 50% !important;
  }
}

/* Small mobile adjustments */
@media (max-width: 479px) {
  .footer .dfs-grid-1,
  div.dfs-grid-1 {
    gap: 20px 12px !important;
  }

  /* Slightly smaller text on very small screens */
  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(1) .dfs-link-1,
  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(3) .dfs-link-1 {
    font-size: 13px !important;
  }

  .footer .dfs-grid-1 > .dfs-wrap-7:nth-child(2) .dfs-link-1 {
    font-size: 13px !important;
    padding: 8px 4px !important;
  }

  /* Contact buttons stay inline on very small screens */
  .footer .dfs-wrap-7.last .div-block-82 {
    flex-direction: row !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
  }

  .footer .footer-contacts {
    flex: 0 1 auto !important;
    width: auto !important;
    padding: 8px 10px !important;
    justify-content: center !important;
  }
}

/* ============================================================================
   HUB & SERVICE PAGE MOBILE FIXES
   Fix hero badges, process numbers, service icons, video borders
   ============================================================================ */

/* ---- HERO BADGE OVERFLOW FIX ---- */
/* Prevent the pill badge from going off-screen on mobile */
@media (max-width: 767px) {
  .hero-badge {
    max-width: 90vw !important;
    white-space: normal !important;
    text-align: center !important;
    padding: 10px 16px !important;
    font-size: 10px !important;
    letter-spacing: 1px !important;
    line-height: 1.4 !important;
  }

  .hero-badge svg {
    flex-shrink: 0 !important;
  }
}

@media (max-width: 479px) {
  .hero-badge {
    font-size: 9px !important;
    padding: 8px 12px !important;
    gap: 6px !important;
    max-width: 95vw !important;
  }
}

/* ---- PROCESS NUMBER (OVAL) FIX ---- */
/* Force circles to stay circular and center numbers properly */

/* Fix for ALL screen sizes - center number text properly */
.process-number {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
  padding: 0 !important;
  padding-bottom: 5px !important; /* Optical adjustment - push number up slightly */
}

@media (max-width: 991px) {
  .process-number {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    font-size: 24px !important;
  }

  .process-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .process-grid::before {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .process-number {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    font-size: 22px !important;
  }

  .process-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .process-step h4 {
    font-size: 16px !important;
  }

  .process-step p {
    font-size: 13px !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 479px) {
  .process-number {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    font-size: 20px !important;
    border-width: 2px !important;
  }
}

/* ---- SERVICE ICON CENTERING ---- */
/* Center service icons on mobile instead of left-aligned */
@media (max-width: 767px) {
  .service-card {
    text-align: center !important;
  }

  .service-icon {
    margin: 0 auto 20px auto !important;
  }

  .service-card h3,
  .service-card p {
    text-align: center !important;
  }

  .service-features {
    text-align: left !important;
    max-width: 280px !important;
    margin: 0 auto 24px auto !important;
  }

  .service-features li {
    justify-content: flex-start !important;
  }

  .service-link {
    display: flex !important;
    justify-content: center !important;
    margin: 16px auto 0 auto !important;
    min-height: 44px !important;
    padding: 14px 24px !important;
  }

  /* Feature icons in feature cards - center them */
  .feature-icon {
    margin: 0 auto 16px auto !important;
  }

  .feature-card {
    text-align: center !important;
  }
}

/* ---- VIDEO THUMBNAIL BORDER RADIUS FIX ---- */
/* Fix weird corner artifacts on video thumbnails */
@media (max-width: 767px) {
  .videos-thumbnail-wrapper {
    border-radius: 12px !important;
    overflow: hidden !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
  }

  .videos-thumbnail-wrapper img {
    border-radius: 12px !important;
  }

  .div-block-40 {
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  /* Ensure parent containers don't clip corners weirdly */
  .link-block-9 {
    border-radius: 12px !important;
    overflow: hidden !important;
  }
}

@media (max-width: 479px) {
  .videos-thumbnail-wrapper,
  .videos-thumbnail-wrapper img,
  .div-block-40,
  .link-block-9 {
    border-radius: 10px !important;
  }
}

/* ---- PHOTO SERVICE CARDS - BROKEN IMAGE FALLBACK ---- */
/* Style for when images fail to load */
@media (max-width: 767px) {
  .photo-service-card {
    min-height: 200px !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%) !important;
  }

  .photo-service-card img {
    min-height: 200px !important;
  }

  .photo-service-overlay {
    padding: 20px !important;
  }

  .photo-service-card h3 {
    font-size: 18px !important;
  }

  .photo-service-card p {
    font-size: 13px !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* ---- HERO SERVICE TAGS (Cinematography • Photography • Social Media) ---- */
/* Center the service tags on mobile */
@media (max-width: 767px) {
  .hero-services {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .hero-service-tag {
    font-size: 12px !important;
  }
}

@media (max-width: 479px) {
  .hero-services {
    gap: 6px !important;
  }

  .hero-service-tag {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }
}

/* ---- SECTION HEADERS - MOBILE ---- */
@media (max-width: 767px) {
  .section-header {
    text-align: center !important;
    margin-bottom: 40px !important;
    padding: 0 10px !important;
  }

  .section-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }

  .section-subtitle {
    font-size: 14px !important;
    max-width: 100% !important;
  }

  .section-label {
    font-size: 10px !important;
  }
}

/* ---- RELATED CARDS - MOBILE ---- */
@media (max-width: 767px) {
  .related-grid {
    grid-template-columns: 1fr !important;
  }

  .related-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px !important;
  }

  .related-icon {
    margin: 0 auto 16px auto !important;
  }

  .related-content {
    text-align: center !important;
  }

  .related-link {
    justify-content: center !important;
  }
}

/* ---- CTA SECTION - MOBILE ---- */
@media (max-width: 767px) {
  .cta-container {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .cta-content {
    text-align: center !important;
  }

  .cta-content h2 {
    font-size: 24px !important;
  }

  .cta-content p {
    font-size: 14px !important;
  }

  .cta-contact {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}

/* ============================================================================
   CTA SECTION GLOW FIX
   Fix the half-glow glitch on mobile by hiding overflow properly
   ============================================================================ */
@media (max-width: 991px) {
  .cta-section {
    overflow: hidden !important;
  }

  .cta-section::before {
    display: none !important;
  }
}

/* ============================================================================
   FORM BUTTON SPACING FIX
   Add proper spacing between Turnstile widget and submit button
   ============================================================================ */
.cf-turnstile {
  margin-bottom: 16px !important;
}

.form-submit {
  margin-top: 8px !important;
}

/* Ensure form container has proper padding */
.cta-form {
  padding-bottom: 40px !important;
}

@media (max-width: 767px) {
  .cta-form {
    padding-bottom: 32px !important;
  }
}

@media (max-width: 479px) {
  .cta-form {
    padding-bottom: 24px !important;
  }

  .cf-turnstile {
    margin-bottom: 12px !important;
  }
}
