



@charset "UTF-8";

/* =========================================================
   MOBILE RESPONSIVE (ONLY HERE)
   Project: Sher Construction
   File: allcssShermat/mobile.css
   ========================================================= */

/* base mobile hygiene */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* FIX: broken checkmark symbols like âœ“ (encoding issue on mobile) */
@media (max-width: 1100px){
  .about-list li::before,
  .service-list li::before,
  .trust-card::before{
    content: "\2713" !important; /* ✓ */
    font-family: Arial, Helvetica, sans-serif !important;
  }
}

/* =========================
   <= 1100px (laptop/tablet)
   ========================= */
@media (max-width: 1100px) {

  /* header */
  .header-inner{
    padding-left: 18px;
    padding-right: 18px;
    gap: 12px;
  }

  /* nav spacing */
  .main-nav{
    gap: 10px;
  }

  /* general spacing */
  .about-inner,
  .trust-inner,
  .quote-inner,
  .footer-inner{
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* =========================
   <= 900px (tablet)
   ========================= */
@media (max-width: 900px) {

  /* HEADER: clean stacking */
  .header-inner{
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  /* Brand: top full width centered */
  .brand{
    flex: 1 1 100% !important;
    text-align: center !important;
  }

  .brand-title{
    font-size: 18px !important;
    letter-spacing: 0.5px !important;
  }

  .brand-subtitle{
    font-size: 12px !important;
  }

  /* Contacts: pills row */
  .header-contacts{
    flex: 1 1 100% !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
  }

  .contact-item{
    padding: 8px 12px !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,0.05) !important;
  }

  .contact-icon{ font-size: 14px !important; }
  .contact-text{ font-size: 12.5px !important; }

  /* NAV: tablet = 5 buttons in one row (grid) */
  .main-nav{
    width: 100% !important;
    min-width: 0 !important;
    order: 10 !important;
    margin-top: 6px !important;

    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;

    white-space: normal !important;
  }

  .nav-link{
    width: 100% !important;
    text-align: center !important;
    padding: 10px 10px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,0.04) !important;
  }

  .nav-link:hover{
    background: rgba(0,0,0,0.07) !important;
  }

  /* HERO */
  .hero{
    min-height: 62vh;
    padding: 26px 0;
  }

  .hero-content{
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1{
    font-size: 44px;
    line-height: 1.05;
  }

  .hero-actions{
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn{
    min-width: 220px;
  }

  /* ABOUT */
  .about-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-title{
    font-size: 30px;
    line-height: 1.1;
  }

  /* TRUST */
  .trust-grid{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* QUOTE FORM */
  .quote-card{
    border-radius: 18px;
  }

  .quote-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field-wide{
    grid-column: auto;
  }

  .quote-submit{
    width: 100%;
  }

  /* FOOTER */
  .footer-inner{
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

/* =========================
   <= 600px (phone)
   ========================= */
@media (max-width: 600px) {

  /* header: tighter */
  .header-inner{
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* NAV: phone = clean 2 columns (no horizontal scroll) */
  .main-nav{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .nav-link{
    font-size: 12px !important;
    padding: 11px 12px !important;
  }

  /* ✅ CONTACT CENTERED (last nav item takes full row) */
  .main-nav .nav-link:last-child{
    grid-column: 1 / -1 !important;  /* full row */
    justify-self: center !important; /* centered */
    max-width: 260px !important;     /* looks clean */
    width: 100% !important;
  }

  /* HERO */
  .hero{
    min-height: 58vh;
  }

  .hero h1{
    font-size: 34px;
    line-height: 1.05;
  }

  .hero-actions{
    width: 100%;
  }

  .btn{
    width: 100%;
    min-width: 0;
  }

  /* Section titles */
  .about-title,
  .trust-title,
  .quote-title{
    font-size: 24px;
    line-height: 1.15;
  }

  .about-subtitle,
  .trust-subtitle,
  .quote-subtitle{
    font-size: 14px;
  }

  /* TRUST */
  .trust-grid{
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  .footer-inner{
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner{
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* =========================
   <= 380px (small phone)
   ========================= */
@media (max-width: 380px) {

  /* NAV: one column if very small */
  .main-nav{
    grid-template-columns: 1fr !important;
  }

  /* если nav станет 1 колонкой — убираем "full row" чтобы не мешало */
  .main-nav .nav-link:last-child{
    grid-column: auto !important;
    max-width: none !important;
    width: 100% !important;
    justify-self: stretch !important;
  }

  .hero h1{
    font-size: 30px;
  }

  .about-inner,
  .trust-inner,
  .quote-inner,
  .footer-inner{
    padding-left: 12px;
    padding-right: 12px;
  }

  .quote-card{
    padding: 14px;
  }
}

/* OPTIONAL: portfolio/services grids (safe even if missing) */
@media (max-width: 900px) {
  .grid-process,
  .grid-finished,
  .portfolio-grid,
  .services-grid{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .grid-process,
  .grid-finished,
  .portfolio-grid,
  .services-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* anchor offset for quote section under header */
#quote{
  scroll-margin-top: 110px;
}