/* ========================================
   MOBILE STYLES - Optimized for Mobile View
   ======================================== */

/* Mobile Header Phone */
.mobile-header-phone {
  display: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-black);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--color-white);
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ========================================
   TABLET STYLES (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
  /* Keep background images fixed for parallax effect on mobile */
  section {
    padding: 4rem 2rem !important;
  }

  /* Override inline background-size for mobile - use scroll for iOS compatibility */
  section[style*="background-image"],
  section.relative,
  .bg-cover,
  .parallax-section {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 400px !important;
  }

  div[style*="background-image"],
  .absolute.inset-0.bg-cover.bg-center {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  /* iOS Safari specific fix for background images */
  @supports (-webkit-touch-callout: none) {
    section[style*="background-image"],
    section.relative,
    .bg-cover,
    div[style*="background-image"],
    .absolute.inset-0.bg-cover.bg-center {
      background-size: cover !important;
      -webkit-background-size: cover !important;
      background-attachment: scroll !important;
    }
  }

  /* Typography adjustments */
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  /* Services grid optimization */
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  /* Top bar adjustments */
  .top-bar-left {
    padding: 8px 30px;
    gap: 20px;
  }

  .top-link {
    font-size: 0.75rem;
  }

  .top-bar-right {
    padding: 8px 30px 8px 50px;
    gap: 12px;
  }

  .social-icon {
    font-size: 1rem;
  }

  /* Header adjustments */
  .header-logo {
    padding: 12px 30px;
  }

  .logo-img {
    height: 60px;
  }

  .header-nav {
    padding: 12px 50px 12px 15px;
  }

  .header-nav-menu {
    gap: 25px;
  }

  .header-nav-link {
    font-size: 1.1rem;
  }

  .header-cta {
    padding: 12px 30px 12px 60px;
  }

  .header-cta-label {
    font-size: 0.65rem;
  }

  .header-cta-phone {
    font-size: 1.2rem;
  }

  /* Process steps optimization */
  .process-steps {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }

  /* Features grid */
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }

  /* Stats grid */
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
  }

  /* Financing content */
  .financing-content ul {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

/* Hide mobile hero sections on larger screens */
@media (min-width: 769px) {
  .hero-mobile-section {
    display: none !important;
  }
}

/* ========================================
   MOBILE STYLES (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  /* Ensure two-col items display on mobile */
  .header-nav-menu > li.two-col-item {
    display: flex !important;
  }

  /* Prevent horizontal scrolling on mobile */
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    position: relative;
  }

  /* Prevent all elements from causing horizontal scroll */
  * {
    max-width: 100%;
  }

  /* Body adjustments */
  body {
    padding-top: 60px !important;
  }

  /* ========================================
     MOBILE HERO SCROLL SECTIONS
     ======================================== */

  /* Mobile hero sections - simple stacked layout */
  .hero-mobile-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 0;
    opacity: 0 !important;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    width: 100%;
  }

  .hero-mobile-section.visible {
    opacity: 1 !important;
    transform: translateY(0);
  }

  /* Section 1: Logo and Tagline */
  .hero-mobile-section-1 .hero-heading {
    margin-bottom: 2rem;
    text-align: center;
  }

  .hero-mobile-section-1 .hero-heading img {
    width: 220px;
    height: auto;
  }

  .hero-mobile-section-1 .hero-subheading {
    width: 100vw;
    align-self: flex-start;
    margin-left: calc(-50vw + 50%);
    margin-right: 0;
  }

  .hero-mobile-section-1 .hero-subheading > div {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .hero-mobile-section-1 .hero-subheading h1 {
    font-size: 1.5rem !important;
    padding: 1.25rem 0;
  }

  /* Section 2: Badges */
  .hero-mobile-section-2 {
    opacity: 0 !important;
  }

  .hero-mobile-section-2.visible {
    opacity: 1 !important;
  }

  .hero-mobile-section-2 .hero-badges {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 420px;
    margin: 0;
  }

  .hero-mobile-section-2 .hero-badges > div {
    flex-shrink: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Individual badge animations */
  .hero-mobile-section-2 .hero-badges > div:nth-child(1) {
    transition-delay: 0.1s;
  }

  .hero-mobile-section-2 .hero-badges > div:nth-child(2) {
    transition-delay: 0.2s;
  }

  .hero-mobile-section-2 .hero-badges > div:nth-child(3) {
    transition-delay: 0.3s;
  }

  .hero-mobile-section-2 .hero-badges > div:nth-child(4) {
    transition-delay: 0.4s;
  }

  /* Visible state for badges */
  .hero-mobile-section-2.visible .hero-badges > div {
    opacity: 1;
    transform: translateY(0);
  }

  /* Different animation effects for each badge */
  .hero-mobile-section-2 .hero-badges > div:nth-child(1) {
    transform: translateX(-50px) scale(0.8);
  }

  .hero-mobile-section-2.visible .hero-badges > div:nth-child(1) {
    transform: translateX(0) scale(1);
  }

  .hero-mobile-section-2 .hero-badges > div:nth-child(2) {
    transform: translateX(50px) scale(0.8);
  }

  .hero-mobile-section-2.visible .hero-badges > div:nth-child(2) {
    transform: translateX(0) scale(1);
  }

  .hero-mobile-section-2 .hero-badges > div:nth-child(3) {
    transform: translateY(50px) rotate(-10deg);
  }

  .hero-mobile-section-2.visible .hero-badges > div:nth-child(3) {
    transform: translateY(0) rotate(0deg);
  }

  .hero-mobile-section-2 .hero-badges > div:nth-child(4) {
    transform: translateY(50px) rotate(10deg);
  }

  .hero-mobile-section-2.visible .hero-badges > div:nth-child(4) {
    transform: translateY(0) rotate(0deg);
  }

  .hero-mobile-section-2 .hero-badges .w-20 {
    width: 75px;
    height: 75px;
  }

  .hero-mobile-section-2 .hero-badges .text-xs {
    font-size: 0.75rem;
  }

  /* Section 3: CTA */
  .hero-mobile-section-3 .hero-cta {
    width: 100vw;
    align-self: flex-start;
    margin-left: calc(-50vw + 50%);
    margin-right: 0;
  }

  .hero-mobile-section-3 .hero-cta > div {
    width: auto;
  }

  .hero-mobile-section-3 .hero-cta > div > div {
    padding: 2rem !important;
  }

  .hero-mobile-section-3 .hero-cta h3 {
    font-size: 1.85rem !important;
  }

  .hero-mobile-section-3 .hero-cta p {
    font-size: 0.875rem;
  }

  /* Hide desktop hero on mobile */
  .hero .hidden.md\\:block {
    display: none !important;
  }

  /* Hide top-bar-container on mobile */
  .top-bar-container {
    display: none;
  }

  /* Simplified main-header for mobile */
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* Simplified header container */
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px;
    height: 60px;
    grid-template-columns: unset;
  }

  /* Mobile header phone - centered horizontally and vertically */
  .mobile-header-phone {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    color: #f80a09;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    z-index: 1;
  }

  .mobile-header-phone:hover {
    color: #d00808;
  }

  /* Clean logo */
  .header-logo {
    background: transparent;
    padding: 0;
    clip-path: none;
    margin: 0;
  }

  .logo-img {
    height: 45px;
  }

  /* Simple mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    padding: 8px;
    border: none;
    cursor: pointer;
  }

  /* Clean mobile navigation menu */
  .header-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9997;
    clip-path: none;
    margin-left: 0;
    padding: 0;
    padding-bottom: 20px;
  }

  .header-nav.active {
    display: block;
  }

  .header-nav::before {
    display: none;
  }

  .header-nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
  }

  .header-nav-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
  }

  /* Make non-two-col items full width */
  .header-nav-menu > li:not(.two-col-item) {
    width: 100%;
  }

  /* Display PROJECTS and ABOUT on same line in mobile menu */
  .header-nav-menu > li.two-col-item {
    width: 50%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    display: flex !important;
    flex-direction: column !important;
  }

  .header-nav-menu > li.two-col-item:last-of-type {
    border-right: none;
  }

  .header-nav-menu > li.two-col-item .header-nav-link {
    width: 100%;
  }

  .header-nav-link {
    padding: 5px 16px;
    font-size: 0.95rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-weight: 500;
  }

  /* Active page indicator - red circle for main nav links */
  .header-nav-link.active::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #f80a09;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(248, 10, 9, 0.5);
  }

  .header-nav-link.active {
    color: #f80a09 !important;
    font-weight: 600;
    background-color: rgba(248, 10, 9, 0.05);
  }

  /* Hide dropdown arrows in mobile menu */
  .has-dropdown .dropdown-arrow {
    display: none !important;
  }

  .has-dropdown .header-dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    background: #fff !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    border-radius: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  .has-dropdown.active .header-dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 1000px !important;
    pointer-events: auto !important;
    width: 100% !important;
  }

  .header-dropdown-menu {
    width: 100% !important;
    list-style: none;
    display: flex !important;
    flex-direction: column;
    gap: 0;
  }

  .header-dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
  }

  .header-dropdown-menu a {
    padding: 10px 16px;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    transition: background-color 0.2s ease;
    position: relative;
    font-weight: 500;
  }

  .header-dropdown-menu a:hover {
    background-color: #f0f0f0;
  }

  /* Active page indicator - red circle */
  .header-dropdown-menu a.active::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #f80a09;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(248, 10, 9, 0.5);
  }

  .header-dropdown-menu a.active {
    color: #f80a09;
    font-weight: 600;
    background-color: rgba(248, 10, 9, 0.05);
  }

  .header-dropdown-menu li:last-child {
    border-bottom: none;
  }

  /* Hide CTA on mobile */
  .header-cta {
    display: none;
  }

  /* Navigation mobile menu */
  .nav-toggle {
    display: flex;
  }

  .nav-container {
    padding: 0 1.5rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-black);
    flex-direction: column;
    padding: 1rem 0;
    border-top: 2px solid var(--color-red);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-menu a {
    padding: 1rem 2rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
  }

  .nav-menu a:hover {
    background-color: var(--color-red);
    border-left-color: var(--color-white);
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-top: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-left: 3px solid var(--color-red);
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  /* Section padding optimization */
  section,
  .hero,
  .about-hero,
  .contact-hero,
  .services-hero,
  .service-detail {
    padding: 0 1.5rem 3rem 1.5rem !important;
  }

  /* Service content mobile optimization - specific to main content only */
  main .service-content {
    padding: 3rem 1.5rem !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    margin-bottom: 0 !important;
  }

  /* Ensure service-content doesn't interfere with footer */
  main .service-content:last-child {
    margin-bottom: 2rem !important;
  }

  /* Aggressively remove ALL top spacing in hero */
  .hero,
  .hero *,
  .hero > *,
  .hero > div,
  .hero img,
  .hero .logo-img,
  .hero h1,
  .hero > div:first-child,
  .hero .relative,
  .hero .z-10,
  .hero [class*="py-"],
  .hero [class*="pt-"],
  .hero [class*="mt-"],
  .hero [class*="max-w"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Specific override for the main container */
  .hero .relative.z-10 {
    padding-top: 0 !important;
    padding-bottom: 1rem !important;
  }

  .intro,
  .process-section,
  .services-preview,
  .why-choose,
  .financing-section,
  .cta {
    padding: 3rem 1.5rem;
  }

  /* Typography mobile */
  h1,
  .hero h1,
  .about-hero h1,
  .contact-hero h1,
  .services-hero h1,
  .service-detail h1 {
    font-size: 2.25rem;
  }

  h2,
  .hero h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  p,
  .hero p,
  .about-hero p,
  .contact-hero p,
  .services-hero p,
  .service-detail p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Hero badges mobile */
  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
  }

  .badge {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Button mobile */
  .btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  /* Stats mobile */
  .stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stat-item {
    padding: 2rem;
  }

  .stat-item h3 {
    font-size: 3rem;
  }

  .stat-item p {
    font-size: 1rem;
  }

  /* Process steps mobile */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .step {
    padding: 2rem;
  }

  .step-number {
    font-size: 2.5rem;
  }

  .step h3 {
    font-size: 1.3rem;
  }

  .step p {
    font-size: 0.95rem;
  }

  /* Services grid mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card {
    padding: 2rem;
  }

  .service-card h2,
  .service-card h3 {
    font-size: 1.4rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }

  .service-card .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
  }

  /* Features grid mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature {
    padding: 2rem;
  }

  .feature h3 {
    font-size: 1.3rem;
  }

  .feature p {
    font-size: 0.95rem;
  }

  /* Financing content mobile */
  .financing-content ul {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .financing-content ul li {
    padding: 1.25rem;
    padding-left: 2.5rem;
    font-size: 1rem;
  }

  .financing-content ul li:before {
    font-size: 1.25rem;
    left: 0.75rem;
  }

  .financing-content p {
    font-size: 1rem;
  }

  /* CTA features mobile */
  .cta-features {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cta-feature {
    padding: 1.5rem 2rem;
    width: 100%;
  }

  .cta-feature strong {
    font-size: 1.75rem;
  }

  /* Contact content mobile */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 0.85rem;
    font-size: 0.95rem;
  }

  .contact-form label {
    font-size: 1rem;
  }

  .contact-form button {
    width: 100%;
    max-width: 100%;
  }

  /* Footer mobile */
  footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section h3 {
    font-size: 1.2rem;
  }

  .footer-section a {
    font-size: 0.95rem;
  }

  .footer-bottom {
    font-size: 0.9rem;
  }

  /* Carousel mobile optimizations */
  .payment-carousel-container {
    padding: 0;
  }

  .payment-slide .bg-white {
    padding: 1.25rem;
  }

  .payment-slide h3 {
    font-size: 1.1rem;
  }

  .payment-slide p {
    font-size: 0.9rem;
  }

  .payment-slide svg {
    width: 2.5rem;
    height: 2.5rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-nav {
    gap: 0.75rem;
  }
}

/* ========================================
   SMALL MOBILE STYLES (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
  /* Extra small screens optimization */
  body {
    padding-top: 60px !important;
  }

  /* Typography for very small screens */
  h1,
  .hero h1,
  .about-hero h1,
  .contact-hero h1,
  .services-hero h1,
  .service-detail h1 {
    font-size: 1.85rem;
  }

  h2,
  .hero h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.95rem;
  }

  /* Logo adjustments */
  .logo-img {
    height: 40px;
  }

  /* Header CTA phone */
  .header-cta-phone {
    font-size: 1rem;
  }

  .header-cta-phone::before {
    font-size: 1.2rem;
  }

  /* Section padding for small screens */
  section,
  .hero,
  .about-hero,
  .contact-hero,
  .services-hero,
  .service-detail,
  .intro,
  .process-section,
  .services-preview,
  .why-choose,
  .financing-section,
  .cta {
    padding: 0 1rem 2.5rem 1rem !important;
  }

  /* Service content small screen optimization - specific to main content only */
  main .service-content {
    padding: 2.5rem 1rem !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    margin-bottom: 0 !important;
  }

  /* Ensure service-content doesn't interfere with footer on small screens */
  main .service-content:last-child {
    margin-bottom: 1.5rem !important;
  }

  /* Aggressively remove ALL top spacing in hero for small screens */
  .hero,
  .hero *,
  .hero > *,
  .hero > div,
  .hero img,
  .hero .logo-img,
  .hero h1,
  .hero > div:first-child,
  .hero .relative,
  .hero .z-10,
  .hero [class*="py-"],
  .hero [class*="pt-"],
  .hero [class*="mt-"],
  .hero [class*="max-w"],
  .hero [class*="grid"],
  .hero [class*="flex"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Button adjustments */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Service card adjustments */
  .service-card {
    padding: 1.5rem;
  }

  /* Stat item adjustments */
  .stat-item {
    padding: 1.5rem;
  }

  .stat-item h3 {
    font-size: 2.5rem;
  }

  /* Step adjustments */
  .step {
    padding: 1.5rem;
  }

  .step-number {
    font-size: 2rem;
  }

  /* Feature adjustments */
  .feature {
    padding: 1.5rem;
  }

  /* CTA feature adjustments */
  .cta-feature {
    padding: 1.25rem 1.5rem;
  }

  .cta-feature strong {
    font-size: 1.5rem;
  }

  /* Navigation adjustments */
  .nav-menu a {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Top bar link adjustments */
  .top-link {
    font-size: 0.65rem;
  }

  /* Social icon adjustments */
  .social-icon {
    font-size: 0.9rem;
  }
}

/* ========================================
   MOBILE UTILITY CLASSES
   ======================================== */

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  a,
  button,
  input[type="submit"],
  input[type="button"],
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Prevent text selection on buttons and links */
  a,
  button,
  .btn {
    -webkit-tap-highlight-color: rgba(248, 10, 9, 0.2);
    user-select: none;
    -webkit-user-select: none;
  }

  /* Optimize scrolling */
  * {
    -webkit-overflow-scrolling: touch;
  }

  /* Remove hover effects on touch devices */
  .service-card:hover,
  .stat-item:hover,
  .step:hover,
  .feature:hover {
    transform: none;
  }

  /* But keep active states for touch feedback */
  .service-card:active,
  .stat-item:active,
  .step:active,
  .feature:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .btn:active {
    transform: scale(0.97);
  }

  /* Smooth font rendering on mobile */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Prevent zoom on input focus (iOS) */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px;
  }

  /* Full width images on mobile */
  img {
    width: 100%;
    height: auto;
  }
}
