/* MOBILE CSS - CLEANED (EXACT DUPLICATES REMOVED) */
@media (max-width: 768px) {
  /* ================= CRITICAL: ENABLE STICKY POSITIONING ================= */
  html, body {
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  body {
    display: block !important;
    position: relative !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  
  .container {
    display: block !important;
    position: relative !important;
    height: auto !important;
    min-height: 100vh !important;
  }
  
  /* ================= FORCE STICKY HEADER ================= */
  #site-header {
    position: -webkit-sticky !important; /* Safari */
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 2000 !important;
    min-height: 60px !important;
    padding: 4px 8px !important;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 0 !important;
    align-items: center !important;
    background: #006400 !important; /* DARK GREEN */
    color: white !important;
    border-bottom: 2px solid #004d00 !important;
  }
  
  /* Logo stays in first column */
  #site-header .logo-column {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    flex: 0 0 45px !important;
    margin-right: 8px !important;
    align-self: center !important;
  }
  
  #site-header .logo img {
    max-height: 40px !important;
    border: 2px solid white !important;
    border-radius: 4px !important;
  }
  
  /* Content column becomes grid area */
  #site-header .content-column {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    height: 100% !important;
  }
  
  /* Header top becomes compact row 1 */
  #site-header .header-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 2px !important;
    min-height: 24px !important;
  }
  
  #site-header .site-title {
    font-size: 0.9rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 60% !important;
    color: white !important;
    font-weight: bold !important;
  }
  
  #site-header .contact-header {
    font-size: 0.8rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    color: white !important;
  }
  
  #site-header .contact-header a {
    color: white !important;
    text-decoration: none !important;
  }
  
  #site-header .contact-header a:hover {
    text-decoration: underline !important;
  }
  
  /* Header bottom becomes compact row 2 with CENTERED social icons */
  #site-header .header-bottom {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 20px !important;
    margin-top: 2px !important;
    width: 100% !important;
  }
  
  /* Hide mini-nav on mobile only */
  #site-header .header-mini-nav {
    display: none !important;
  }
  
  /* ================= UPDATED SOCIAL ICONS - VISIBLE ON DARK GREEN ================= */
  #site-header .social-icons {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }

  #site-header .social-icons a {
    width: 26px !important; /* Slightly larger */
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.9) !important; /* WHITE BACKGROUND */
    border-radius: 50% !important;
    padding: 5px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important; /* Shadow for visibility */
  }

  #site-header .social-icons a:hover {
    transform: scale(1.15) !important;
    background: white !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3) !important;
  }

  #site-header .social-icons img {
    height: 16px !important;
    width: auto !important;
    opacity: 1 !important;
    filter: none !important; /* REMOVE WHITE FILTER - show original colors */
  }
  
  /* Specific icon adjustments for better visibility */
  #site-header .social-icons a:nth-child(1) img { /* Facebook */
    height: 17px !important; /* Slightly larger */
  }
  
  #site-header .social-icons a:nth-child(2) img { /* X/Twitter */
    height: 16px !important;
  }
  
  #site-header .social-icons a:nth-child(3) img { /* Instagram */
    height: 17px !important; /* Slightly larger */
  }
  
  #site-header .social-icons a:nth-child(4) img { /* LinkedIn */
    height: 16px !important;
  }
  
  /* ================= FORCE STICKY NAVIGATION ================= */
  nav#nav-links {
    position: -webkit-sticky !important; /* Safari */
    position: sticky !important;
    top: 60px !important; /* Position below the header */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    min-height: auto !important;
    padding: 6px 4px !important;
    gap: 3px !important;
    background: #f8f9fa !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    border-bottom: 2px solid #007BFF !important;
    margin: 0 !important;
  }
  
  nav#nav-links a {
    padding: 4px 6px !important;
    font-size: 0.7rem !important;
    text-align: center !important;
    border-radius: 4px !important;
    background: white !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease !important;
    margin: 1px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 26px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 500 !important;
  }
  
  nav#nav-links a:hover,
  nav#nav-links a.active {
    background: #006400 !important; /* DARK GREEN to match header */
    color: white !important;
    border-color: #006400 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,100,0,0.2) !important;
  }
  
  /* ================= HERO SECTION ================= */
  .hero {
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
  }
  
  .hero-slider {
    max-height: 400px !important;
  }
  
  .hero-content {
    padding: 15px !important;
  }
  
  .hero-content h1 {
    font-size: 1.5rem !important;
  }
  
  .hero-content p {
    font-size: 1rem !important;
  }
  
  .hero-bottom-cta {
    bottom: 20px !important;
  }
  
  .hero-btn {
    padding: 10px 20px !important;
    font-size: 1rem !important;
  }
  
  /* ================= PAGE CONTENT ================= */
  .page-content, .service-gallery, .internal-page-nav {
    margin-top: 0 !important;
    padding-top: 10px !important;
  }
  
  /* Remove breadcrumb on mobile */
  .breadcrumb {
    display: none !important;
  }
  
  /* Remove unnecessary elements on mobile */
  .trust-badges,
  .pricing-info,
  .kenya-map {
    display: none !important;
  }
  
  /* ================= REST OF YOUR MOBILE STYLES ================= */
  /* Force ALL images to show */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Layout fixes */
  .container {
    padding: 0 15px !important;
  }
  
  footer {
    padding: 20px 0 !important;
    text-align: center !important;
  }
  
  footer p {
    font-size: .85rem !important;
    padding: 0 10px !important;
  }
  
  footer img {
    width: 35px !important;
    margin: 5px !important;
  }
  
  .floating-btn-container {
    right: 15px !important;
    bottom: 20px !important;
  }
  
  .floating-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem !important;
  }
  
  /* Service Gallery */
  .service-gallery {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .service-card img {
    height: 200px !important;
  }
  
  /* Tables and forms */
  .material-grades {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .pricing-table {
    font-size: .85rem !important;
    display: block !important;
    overflow-x: auto !important;
  }
  
  /* Coverage */
  .kenya-coverage {
    padding: 15px !important;
  }
  
  .coverage-badges {
    gap: 8px !important;
  }
  
  .city-badge {
    padding: 6px 12px !important;
    font-size: .8rem !important;
  }
  
  /* CTA */
  .cta-btn {
    display: inline-block !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 10px auto !important;
    padding: 12px 20px !important;
  }
  
  /* ================= UPDATED: COMPACT JUMP TO SERVICE LINKS FOR MOBILE ================= */
  .internal-page-nav {
    padding: 12px 10px !important; /* Reduced padding */
    margin: 15px 0 !important; /* Reduced margin */
    border-radius: 8px !important; /* Smaller radius */
  }
  
  .internal-page-nav h3 {
    font-size: 1rem !important; /* Smaller font */
    margin-bottom: 8px !important; /* Less spacing */
    text-align: center !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
  }
  
  .section-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important; /* Smaller gap */
    margin-top: 10px !important; /* Less spacing */
    justify-content: center !important;
  }
  
  .section-nav a {
    padding: 6px 10px !important; /* Reduced padding */
    font-size: 0.8rem !important; /* Smaller font */
    text-align: center !important;
    border-radius: 5px !important; /* Smaller radius */
    background: white !important;
    border: 1px solid #007BFF !important; /* Thinner border */
    color: #007BFF !important;
    box-shadow: 0 1px 3px rgba(0,123,255,0.1) !important; /* Lighter shadow */
    transition: all 0.2s ease !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important; /* Reduced height */
    line-height: 1.1 !important; /* Tighter line height */
    white-space: nowrap !important;
    text-decoration: none !important;
    color: #007BFF !important;
    font-weight: 500 !important;
    flex: 1 0 calc(50% - 6px) !important; /* Two buttons per row */
    min-width: 0 !important;
    max-width: calc(50% - 6px) !important;
  }
  
  .section-nav a span {
    margin-right: 4px !important; /* Reduced spacing */
    font-size: 0.9em !important; /* Smaller emoji */
  }
  
  .section-nav a:hover {
    background: #007BFF !important;
    color: white !important;
    border-color: #007BFF !important;
    transform: translateY(-1px) !important; /* Less movement */
    box-shadow: 0 2px 6px rgba(0,123,255,0.15) !important;
  }
  
  /* ================= ENHANCED MOBILE OPTIMIZATIONS ================= */
  /* 1. IMPROVE TOUCH TARGET SIZES */
  a, button {
    min-height: 44px !important;
    min-width: 44px !important;
  }
  
  /* 2. ENHANCE READABILITY WITH BETTER TYPOGRAPHY */
  .page-content h2 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
  }
  
  .page-content h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .page-content p, 
  .page-content li {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.8rem !important;
  }
  
  /* 3. OPTIMIZE GALLERY FOR MOBILE */
  .service-gallery {
    gap: 15px !important;
    margin: 1.5rem 0 !important;
  }
  
  .service-card {
    padding: 15px !important;
    border-radius: 10px !important;
  }
  
  .service-card img {
    max-height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
  }
  
  .service-card h4 {
    font-size: 1.1rem !important;
    margin: 10px 0 8px 0 !important;
  }
  
  /* 4. IMPROVE SECTION NAVIGATION */
  .section-footer {
    display: flex !important;
    justify-content: space-between !important;
    margin: 2rem 0 !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
  }
  
  .back-to-top,
  .next-section-link {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    text-align: center !important;
    flex: 1 !important;
    min-width: 140px !important;
  }
  
  .back-to-top {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
  }
  
  .next-section-link {
    background: #007BFF !important;
    color: white !important;
    border: 1px solid #007BFF !important;
  }
  
  /* 6. OPTIMIZE FOOTER FOR MOBILE */
  footer {
    padding: 25px 15px !important;
    font-size: 0.85rem !important;
  }
  
  footer p {
    margin-bottom: 1rem !important;
    line-height: 1.5 !important;
  }
  
  footer a {
    display: inline-block !important;
    margin: 2px 4px !important;
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
  }
  
  .footer-contact {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  
  /* 7. IMPROVE FLOATING BUTTONS FOR MOBILE */
  .floating-btn-container {
    bottom: 20px !important;
    right: 15px !important;
  }
  
  .floating-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.3rem !important;
    margin-bottom: 10px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  }
  
  /* 8. OPTIMIZE LISTS FOR MOBILE */
  ul, ol {
    padding-left: 1.2rem !important;
    margin: 1rem 0 !important;
  }
  
  li {
    margin-bottom: 0.5rem !important;
    line-height: 1.5 !important;
  }
  
  /* 9. ADD VISUAL SEPARATORS */
  hr {
    margin: 2.5rem 0 !important;
    border: none !important;
    border-top: 2px solid #e9ecef !important;
  }
  
  /* 10. IMPROVE PAGE STRUCTURE */
  .page-content {
    padding: 0 15px !important;
  }
  
  .service-main-heading {
    font-size: 1.5rem !important;
    margin: 2rem 0 1.5rem 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #007BFF !important;
  }
}

/* ================= EXTRA SMALL PHONES ================= */
@media (max-width: 480px) {
  /* DARK GREEN HEADER FOR SMALL PHONES */
  #site-header {
    min-height: 55px !important;
    padding: 3px 6px !important;
  }
  
  #site-header .logo-column {
    flex: 0 0 40px !important;
    margin-right: 6px !important;
  }
  
  #site-header .logo img {
    max-height: 35px !important;
  }
  
  #site-header .site-title {
    font-size: 0.85rem !important;
    max-width: 55% !important;
  }
  
  #site-header .contact-header {
    font-size: 0.75rem !important;
  }
  
  /* SMALL PHONE SOCIAL ICONS */
  #site-header .social-icons {
    gap: 6px !important;
  }
  
  #site-header .social-icons a {
    width: 24px !important;
    height: 24px !important;
    padding: 4px !important;
  }
  
  #site-header .social-icons img {
    height: 14px !important;
  }
  
  #site-header .social-icons a:nth-child(1) img { /* Facebook */
    height: 15px !important;
  }
  
  #site-header .social-icons a:nth-child(3) img { /* Instagram */
    height: 15px !important;
  }
  
  /* ULTRA-COMPACT NAVIGATION FOR SMALL PHONES */
  nav#nav-links {
    top: 55px !important;
    min-height: auto !important;
    padding: 5px 3px !important;
    gap: 2px !important;
  }
  
  nav#nav-links a {
    padding: 3px 5px !important;
    font-size: 0.65rem !important;
    min-height: 24px !important;
    margin: 1px !important;
    border-radius: 3px !important;
  }
  
  /* Make longer text buttons wrap to fit */
  nav#nav-links a:nth-child(3), /* General Fabrication */
  nav#nav-links a:nth-child(4), /* Structural Steelwork */
  nav#nav-links a:nth-child(7), /* Steam & Hot Water Systems */
  nav#nav-links a:nth-child(8), /* Towers */
  nav#nav-links a:nth-child(9), /* Flood Lights & Street Lights */
  nav#nav-links a:nth-child(10), /* Technical Services */
  nav#nav-links a:nth-child(11) { /* Stainless Steel Fabrication */
    font-size: 0.6rem !important;
    padding: 3px 4px !important;
    white-space: normal !important;
    line-height: 1.1 !important;
    min-height: 28px !important;
    word-break: break-word !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .hero-slider {
    max-height: 350px !important;
  }
  
  .hero-content h1 {
    font-size: 1.3rem !important;
  }
  
  .hero-content p {
    font-size: 0.9rem !important;
  }
  
  /* ================= ULTRA-COMPACT JUMP TO SERVICE LINKS FOR SMALL PHONES ================= */
  .internal-page-nav {
    padding: 10px 8px !important; /* Even smaller padding */
    margin: 10px 0 !important; /* Less margin */
  }
  
  .internal-page-nav h3 {
    font-size: 0.95rem !important; /* Smaller font */
    margin-bottom: 6px !important; /* Minimal spacing */
  }
  
  .section-nav {
    gap: 4px !important; /* Tiny gap */
  }
  
  .section-nav a {
    padding: 5px 8px !important; /* Minimal padding */
    font-size: 0.75rem !important; /* Smaller font */
    min-height: 28px !important; /* Reduced height */
    line-height: 1 !important; /* Tight line height */
    flex: 1 0 calc(50% - 4px) !important; /* Two buttons per row */
    max-width: calc(50% - 4px) !important;
  }
  
  .section-nav a span {
    font-size: 0.85em !important; /* Smaller emoji */
    margin-right: 3px !important; /* Minimal spacing */
  }
  
  /* Service gallery for extra small screens */
  .service-gallery {
    grid-template-columns: 1fr !important;
  }
}

/* ================= MEDIUM TABLETS ================= */
@media (min-width: 481px) and (max-width: 600px) {
  /* Header for medium tablets */
  #site-header .site-title {
    max-width: 65% !important;
  }
  
  /* MEDIUM TABLET SOCIAL ICONS */
  #site-header .social-icons {
    gap: 10px !important;
  }
  
  #site-header .social-icons a {
    width: 28px !important;
    height: 28px !important;
    padding: 6px !important;
  }
  
  #site-header .social-icons img {
    height: 18px !important;
  }
  
  #site-header .social-icons a:nth-child(1) img { /* Facebook */
    height: 19px !important;
  }
  
  #site-header .social-icons a:nth-child(3) img { /* Instagram */
    height: 19px !important;
  }
  
  /* Navigation for medium tablets */
  nav#nav-links {
    padding: 5px 4px !important;
    gap: 3px !important;
  }
  
  nav#nav-links a {
    padding: 4px 5px !important;
    font-size: 0.68rem !important;
    min-height: 26px !important;
    margin: 1px !important;
  }
  
  /* Make longer text buttons smaller to fit */
  nav#nav-links a:nth-child(3),
  nav#nav-links a:nth-child(4),
  nav#nav-links a:nth-child(7),
  nav#nav-links a:nth-child(8),
  nav#nav-links a:nth-child(9),
  nav#nav-links a:nth-child(10),
  nav#nav-links a:nth-child(11) {
    font-size: 0.63rem !important;
    padding: 4px 4px !important;
    white-space: normal !important;
    line-height: 1.1 !important;
    min-height: 24px !important;
  }
  
  /* ================= TABLET-SIZE JUMP TO SERVICE LINKS ================= */
  .section-nav a {
    min-height: 34px !important;
    font-size: 0.85rem !important;
    padding: 7px 12px !important;
  }
}

/* ================= LARGE TABLETS ================= */
@media (min-width: 601px) and (max-width: 768px) {
  /* Header for large tablets */
  #site-header .site-title {
    max-width: 70% !important;
  }
  
  /* LARGE TABLET SOCIAL ICONS */
  #site-header .social-icons a {
    width: 26px !important;
    height: 26px !important;
    padding: 5px !important;
  }
  
  #site-header .social-icons img {
    height: 16px !important;
  }
  
  #site-header .social-icons a:nth-child(1) img { /* Facebook */
    height: 17px !important;
  }
  
  #site-header .social-icons a:nth-child(3) img { /* Instagram */
    height: 17px !important;
  }
  
  /* Navigation for large tablets */
  nav#nav-links {
    padding: 6px 5px !important;
    gap: 4px !important;
  }
  
  nav#nav-links a {
    padding: 5px 6px !important;
    font-size: 0.72rem !important;
    min-height: 28px !important;
    margin: 1px !important;
  }
  
  /* Make longer text buttons smaller to fit */
  nav#nav-links a:nth-child(3),
  nav#nav-links a:nth-child(4),
  nav#nav-links a:nth-child(7),
  nav#nav-links a:nth-child(8),
  nav#nav-links a:nth-child(9),
  nav#nav-links a:nth-child(10),
  nav#nav-links a:nth-child(11) {
    font-size: 0.68rem !important;
    padding: 5px 5px !important;
    white-space: normal !important;
    line-height: 1.1 !important;
    min-height: 30px !important;
  }
  
  /* ================= LARGE TABLET JUMP TO SERVICE LINKS ================= */
  .section-nav {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
  
  .section-nav a {
    flex: 1 0 calc(33.333% - 8px) !important; /* Three buttons per row */
    max-width: calc(33.333% - 8px) !important;
    min-height: 36px !important;
    font-size: 0.9rem !important;
  }
}

/* ================= TECHNICAL SERVICES MOBILE STYLES ================= */
@media (max-width: 768px) {
  /* 5. REMOVE TRUST BADGES, PRICING INFO, AND KENYA MAP ON MOBILE */
  .trust-badges,
  .pricing-info,
  .kenya-map {
    display: none !important;
  }
  
  /* Body content mobile responsive */
  .flex-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .flex-left, .flex-right {
    min-width: 100%;
  }
  
  .flex-left {
    order: 1;
    margin-bottom: 20px;
  }
  
  .divider {
    display: none;
  }
  
  .flex-right {
    order: 2;
  }
  
  .slider img {
    height: 200px;
  }
  
  .prev, .next {
    padding: 10px 14px;
    font-size: 16px;
  }
  
  .hero-btn, .cta-btn {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .service-card {
    min-height: auto;
  }
}

/* Extra small phone optimization for Technical Services */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5em;
  }
  
  .hero-content p {
    font-size: 0.9em;
  }
  
  .service-card {
    padding: 15px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  /* Certification badges mobile */
  .certification-badges {
    gap: 10px;
    padding: 10px;
  }
  
  .certification-badges img {
    height: 35px;
    max-width: 95px;
    padding: 5px;
  }
}

/* Medium tablets for Technical Services */
@media (min-width: 481px) and (max-width: 600px) {
  /* Different certification badge sizes */
  .certification-badges {
    gap: 15px;
    margin: 20px 0;
    padding: 12px;
  }
  
  .certification-badges img {
    height: 40px;
    max-width: 110px;
    padding: 6px;
  }
}

/* ================= CONTACT PAGE MOBILE STYLES ================= */
@media (max-width: 768px) {
  /* Mobile adjustments for contact content */
  .trust-indicators {
    gap: 20px !important;
    margin: 20px 0 !important;
  }
  
  .trust-number {
    font-size: 1.5em !important;
  }
  
  .service-directory {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    margin: 20px 0 !important;
  }
  
  .service-contact-card {
    padding: 20px !important;
  }
  
  .testimonial-banner {
    padding: 20px 15px !important;
    margin: 30px 0 !important;
  }
  
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    margin: 30px 0 !important;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: 20px !important;
  }
  
  .contact-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
  }
  
  .contact-btn {
    width: 100% !important;
    max-width: 300px !important;
    justify-content: center !important;
    padding: 12px 20px !important;
  }
  
  .quick-contact {
    padding: 30px 20px !important;
    margin: 30px 0 !important;
  }
  
  .map-container {
    margin: 30px 0 !important;
  }
  
  #map {
    height: 300px !important;
  }
  
  /* Form adjustments for mobile */
  .form-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  
  .response-guarantee {
    align-self: flex-start !important;
  }
  
  /* Two-column layouts to single column on mobile */
  .contact-layout > div[style*="grid-template-columns"],
  form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .input-group input,
  .input-group select,
  .input-group textarea {
    padding: 10px 12px !important;
    font-size: 16px !important;
  }
  
  .send-button {
    padding: 12px 20px !important;
    font-size: 16px !important;
  }
  
  /* Contact Hero adjustments */
  .contact-hero {
    min-height: 300px !important;
    padding: 40px 15px !important;
  }
  
  .contact-hero .hero-content h1 {
    font-size: 1.5rem !important;
  }
  
  .contact-hero .hero-content p {
    font-size: 1rem !important;
  }
  
  .contact-hero .hero-bottom-cta {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
  }
  
  .contact-hero .hero-btn {
    padding: 12px 20px !important;
    font-size: 1rem !important;
    margin: 5px 0 !important;
    width: 100% !important;
    max-width: 300px !important;
  }
}

/* Extra small phone optimization for Contact page */
@media (max-width: 480px) {
  /* Further mobile optimizations for contact content */
  .trust-indicators {
    gap: 15px !important;
  }
  
  .trust-item {
    flex: 1 1 calc(50% - 15px) !important;
    min-width: 120px !important;
  }
  
  .trust-number {
    font-size: 1.3em !important;
  }
  
  .service-contact-card {
    padding: 15px !important;
  }
  
  .service-icon {
    font-size: 2em !important;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: 15px !important;
  }
  
  .contact-btn {
    padding: 10px 15px !important;
    font-size: 14px !important;
  }
  
  .quick-contact {
    padding: 20px 15px !important;
  }
  
  #map {
    height: 250px !important;
  }
  
  /* Hero section for small phones */
  .contact-hero {
    min-height: 250px !important;
    padding: 30px 10px !important;
  }
  
  .contact-hero .hero-content h1 {
    font-size: 1.3rem !important;
  }
  
  .contact-hero .hero-content p {
    font-size: 0.9rem !important;
  }
}

/* Medium tablets for Contact page */
@media (min-width: 481px) and (max-width: 600px) {
  /* Content adjustments for medium tablets */
  .contact-hero {
    margin-top: calc(60px + 5px + 5px + 5px) !important;
  }
  
  .contact-layout {
    gap: 25px !important;
  }
  
  .service-directory {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Large tablets for Contact page */
@media (min-width: 601px) and (max-width: 768px) {
  /* Content adjustments for large tablets */
  .contact-hero {
    margin-top: calc(60px + 6px + 6px + 5px) !important;
  }
  
  .service-directory {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  }
}

/* ================= OVERLAP FIX ATTEMPTS ================= */
/* Attempt 1 - HARD SEPARATION FIX */
@media (max-width: 768px) {
  #site-header .header-top {
    align-items: flex-start !important;
    min-height: auto !important;
  }

  #site-header .site-title {
    white-space: normal !important;
    line-height: 1.15 !important;
    max-width: calc(100% - 6ch) !important;
  }

  #site-header .contact-header {
    position: relative !important;
    top: 0 !important;
    margin-left: 6px !important;
  }
}

/* Attempt 2 - ALLOW HEADER-TOP TO GROW */
@media (max-width: 768px) {
  #site-header .header-top {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    overflow: visible !important;
  }
}

/* Attempt 3 - FORCE TITLE + PHONE SAME ROW */
@media (max-width: 768px) {
  #site-header .header-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 8px !important;
  }

  #site-header .site-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  #site-header .contact-header {
    white-space: nowrap !important;
    flex: none !important;
  }
}

/* Fix social icon size issue */
#site-header .social-icons a {
    width: 22px !important;
    height: 22px !important;
    background: transparent !important;
    border-radius: 0 !important;
}