/* Gashi Construct Responsive Resolution Patch
   Additive only. Keeps the current site structure and visual direction.
   Goal: cleaner phone, landscape phone, iPad/tablet, and small laptop behavior.
*/

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

/* Tablet / iPad navigation: use the premium drawer earlier so the header never feels cramped. */
@media (max-width: 1100px) and (min-width: 981px) {
  html {
    scroll-padding-top: 98px;
  }

  .site-header {
    position: fixed;
    min-height: 78px;
    padding: 14px 22px !important;
    align-items: center;
    gap: 14px;
    background: linear-gradient(180deg, rgba(7,7,7,.98), rgba(7,7,7,.90), rgba(7,7,7,.58)) !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 5000 !important;
  }

  .brand {
    position: relative;
    z-index: 5002;
    min-width: 0;
  }

  .brand img {
    width: 38px !important;
    height: 48px !important;
  }

  .brand strong {
    font-size: 22px !important;
    letter-spacing: .24em !important;
  }

  .brand em {
    font-size: 11px !important;
    letter-spacing: .34em !important;
  }

  .header-call {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 5003;
    width: 50px;
    height: 48px;
    margin-left: auto;
    border: 1px solid rgba(248,9,6,.72);
    background: rgba(7,7,7,.84);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    touch-action: manipulation;
  }

  .mobile-menu-toggle span {
    display: none !important;
  }

  .mobile-menu-toggle::before,
  .mobile-menu-toggle::after,
  .mobile-menu-toggle .menu-line {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    height: 2px;
    background: #FFFFFF;
    transition: transform .22s ease, top .22s ease, opacity .22s ease;
  }

  .mobile-menu-toggle::before { top: 15px; }
  .mobile-menu-toggle .menu-line { top: 23px; }
  .mobile-menu-toggle::after { top: 31px; }

  .mobile-menu-toggle.is-open {
    position: fixed !important;
    top: 14px !important;
    right: 22px !important;
    width: 44px !important;
    height: 42px !important;
    background: rgba(10,10,10,.94) !important;
    border-color: rgba(248,9,6,.86) !important;
    z-index: 5004 !important;
  }

  .mobile-menu-toggle.is-open::before {
    top: 20px !important;
    transform: rotate(45deg);
  }

  .mobile-menu-toggle.is-open .menu-line {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open::after {
    top: 20px !important;
    transform: rotate(-45deg);
  }

  .site-header .nav {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(410px, 76vw) !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    padding: 96px 28px 30px !important;
    margin: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, rgba(15,15,15,.995), rgba(5,5,5,.995)) !important;
    border-left: 1px solid rgba(248,9,6,.42) !important;
    box-shadow: -24px 0 80px rgba(0,0,0,.78) !important;
    transform: translateX(110%) !important;
    pointer-events: none !important;
    transition: transform .24s ease !important;
    z-index: 5001 !important;
  }

  .site-header .nav.is-open {
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }

  .site-header .nav a {
    display: block !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
    color: #FFFFFF !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    letter-spacing: .20em !important;
    text-transform: uppercase !important;
    text-align: left !important;
  }

  .site-header .nav a::after {
    display: none !important;
  }

  .nav-mobile-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px !important;
    margin-top: 16px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(248,9,6,.62) !important;
    background: rgba(248,9,6,.14) !important;
    text-align: center !important;
    letter-spacing: .13em !important;
  }

  .nav-mobile-estimate {
    margin-top: 10px !important;
    background: #F80906 !important;
    color: #FFFFFF !important;
  }

  body.mobile-menu-open {
    overflow: hidden !important;
  }

  body.mobile-menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.82) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 4999;
  }

  .hero,
  .about-hero,
  .portfolio-soon,
  .legal-page {
    padding-top: 124px !important;
  }
}

/* iPad/tablet layout polish. Keeps the design, fixes scale and spacing. */
@media (max-width: 1100px) {
  .section {
    padding: 86px clamp(24px, 4.8vw, 54px);
  }

  .hero {
    min-height: auto;
    padding-left: clamp(24px, 5vw, 54px);
    padding-right: clamp(24px, 5vw, 54px);
  }

  .hero h1,
  .about-hero h1,
  .portfolio-soon h1,
  .legal-wrap h1 {
    letter-spacing: .04em;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 620px;
    margin-top: 38px;
  }

  .service-grid,
  .detail-section,
  .estimate-section,
  .portfolio-preview-section {
    grid-template-columns: 1fr !important;
  }

  .service-card.large,
  .service-card {
    min-height: 420px;
  }

  .detail-image img {
    height: clamp(360px, 52vw, 560px);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid article {
    min-height: 230px;
  }

  .intro-strip {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .portfolio-note-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Phone and small-tablet polish. */
@media (max-width: 760px) {
  .section {
    padding: 72px 20px;
  }

  .hero {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .hero h1 {
    font-size: clamp(42px, 11.6vw, 62px) !important;
    line-height: .91 !important;
  }

  .hero-copy,
  .about-lead,
  .portfolio-lead,
  .estimate-copy p,
  .detail-copy p {
    font-size: 16px !important;
    line-height: 1.62 !important;
  }

  .hero-card {
    padding: 24px 22px;
  }

  .hero-card h2,
  .section-head h2,
  .detail-copy h2,
  .estimate-copy h2,
  .portfolio-preview-copy h2 {
    font-size: clamp(36px, 10.5vw, 58px) !important;
    line-height: .96 !important;
  }

  .intro-strip {
    grid-template-columns: 1fr;
  }

  .intro-strip div {
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-strip div:last-child {
    border-bottom: 0;
  }

  .service-card.large,
  .service-card {
    min-height: 360px;
  }

  .service-card div {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid article {
    padding: 28px 24px;
    min-height: 210px;
  }

  .process-grid h3 {
    margin-top: 38px;
    font-size: 25px;
  }

  .portfolio-note-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-soon {
    min-height: auto;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .portfolio-soon h1 {
    font-size: clamp(44px, 13.5vw, 68px) !important;
    line-height: .91 !important;
  }

  .portfolio-note-grid article {
    padding: 24px 22px;
  }

  .legal-wrap {
    padding: 24px 20px;
  }
}

/* Narrow phone: prevent squeezed text and button overflow. */
@media (max-width: 430px) {
  .site-header {
    min-height: 72px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .brand {
    gap: 12px;
  }

  .brand img {
    width: 32px !important;
    height: 42px !important;
  }

  .brand strong {
    font-size: 16px !important;
    letter-spacing: .18em !important;
  }

  .brand em {
    font-size: 9px !important;
    letter-spacing: .28em !important;
  }

  .mobile-menu-toggle {
    width: 44px !important;
    height: 42px !important;
  }

  .hero,
  .about-hero,
  .portfolio-soon,
  .legal-page {
    padding-top: 104px !important;
  }

  .eyebrow,
  .portfolio-badge {
    font-size: 11px !important;
    letter-spacing: .26em !important;
  }

  .btn,
  .header-call,
  .nav-mobile-cta {
    min-height: 52px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 12px;
    letter-spacing: .15em;
  }

  .phone-large {
    font-size: clamp(32px, 11vw, 46px) !important;
    overflow-wrap: anywhere;
  }

  .portfolio-footer-mini {
    line-height: 1.65;
  }
}

/* Landscape phones: keep the menu usable when height is short. */
@media (max-height: 520px) and (orientation: landscape) {
  .site-header .nav {
    padding-top: 76px !important;
  }

  .site-header .nav a {
    min-height: 38px !important;
    padding: 10px 0 !important;
  }

  .nav-mobile-cta {
    min-height: 40px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .hero,
  .about-hero,
  .portfolio-soon,
  .legal-page {
    padding-top: 100px !important;
  }
}

/* Hide browser scrollbars while keeping page scrolling active.
   Fixes the visible right-side scroll rail on desktop/tablet browsers. */
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
