/* ══════════════════════════════════════════════════════
   M.R COMPUTER CONCIERGE — OVERRIDE STYLESHEET
   Loaded at priority 999, after Divi. This file wins.
   ══════════════════════════════════════════════════════ */

/* ── COLOUR & TYPOGRAPHY ── */
body, body.page, body.home {
  background-color: #141414 !important;
  color: #f5f3ef !important;
  font-family: "Arimo", sans-serif !important;
  overflow-x: hidden !important;
}
body h1, body h2, body h3, body h4, body h5, body h6 {
  color: #f5f3ef !important;
  font-family: "Arimo", sans-serif !important;
}
body h1 em, body h2 em { color: #c9a06a !important; }
body p { color: rgba(245,243,239,0.6) !important; }
body p strong { color: #f5f3ef !important; }
body li { color: rgba(245,243,239,0.6) !important; }
body .review-glass p,
body .review-text { color: rgba(245,243,239,0.85) !important; }
body .stat-num { color: #a57e47 !important; }
body .stat-label { color: rgba(245,243,239,0.4) !important; }
body .hero-content h1 { color: #f5f3ef !important; }
body .hero-content p { color: rgba(245,243,239,0.75) !important; }

/* ── NAV BAR ── */
#mrNav {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 72px !important;
  padding: 0 60px !important;
  background: rgba(10,10,10,0.85) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border-bottom: 1px solid rgba(165,126,71,0.12) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* ── HAMBURGER BUTTON ── */
#navBurger {
  display: none !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  width: 44px !important;
  height: 44px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 8px !important;
  margin: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10000 !important;
  -webkit-tap-highlight-color: transparent !important;
  flex-shrink: 0 !important;
}
/* Divi resets all button backgrounds — override with element+id specificity */
nav#mrNav button#navBurger {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#navBurger span {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  max-width: none !important;
  background-color: #f5f3ef !important;
  border-radius: 2px !important;
  transition: transform 0.3s ease, opacity 0.3s ease !important;
  transform-origin: center !important;
  pointer-events: none !important;
}
/* Override any Divi span colour rule */
nav#mrNav button#navBurger span {
  background-color: #f5f3ef !important;
  color: transparent !important;
}
#navBurger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
#navBurger.is-open span:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; }
#navBurger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }

/* ── MOBILE DRAWER ── */
#navDrawer {
  position: fixed !important;
  top: 72px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9998 !important;
  background: rgba(8,8,8,0.97) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border-bottom: 1px solid rgba(165,126,71,0.15) !important;
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1) !important;
  box-sizing: border-box !important;
}
#navDrawer.is-open { max-height: 700px !important; }
#navDrawer ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 20px 0 8px !important;
}
#navDrawer ul li {
  border-bottom: 1px solid rgba(165,126,71,0.07) !important;
  margin: 0 !important;
  padding: 0 !important;
}
#navDrawer ul li a {
  display: block !important;
  padding: 16px 28px !important;
  font-family: "Arimo", sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  color: rgba(245,243,239,0.65) !important;
  text-decoration: none !important;
}
#navDrawer ul li a:hover,
#navDrawer ul li a:active {
  color: #a57e47 !important;
  background: rgba(165,126,71,0.05) !important;
}
#navDrawer .drawer-cta {
  display: block !important;
  margin: 18px 28px 28px !important;
  padding: 14px 24px !important;
  text-align: center !important;
  background: #a57e47 !important;
  color: #000 !important;
  font-family: "Arimo", sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}
#navDrawer .drawer-cta:hover { background: #c9a06a !important; }

/* ── BREAKPOINTS ── */
@media (max-width: 900px) {
  #mrNav { padding: 0 20px !important; }
  #mrNav .nav-links { display: none !important; }
  #mrNav #navCtaBtn { display: none !important; }
  #navBurger { display: flex !important; }
}
@media (min-width: 901px) {
  #navDrawer { display: none !important; }
}

/* ══════════════════════════════════════════════════════
   MOBILE LAYOUT — max-width: 768px
   Single block, no duplicates, rules ordered logically
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Prevent horizontal scroll */
  html { overflow-x: hidden !important; }
  body { overflow-x: hidden !important; }

  /* Images */
  img { max-width: 100% !important; height: auto !important; }
  img.nav-logo { height: 36px !important; width: auto !important; max-width: none !important; }

  /* Nav on mobile */
  #mrNav {
    height: 72px !important;
    padding: 0 20px !important;
  }

  /* ── HERO SECTION ──
     On desktop: hero is position:relative, hero-stats is position:absolute bottom:0
     On mobile: make hero a column flex so stats flow below content naturally */
  .hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    overflow: visible !important;
    position: relative !important;
  }
  /* Clip only the background, not the stats */
  .hero-bg {
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    will-change: auto !important;
    overflow: hidden !important;
    clip-path: inset(0) !important;
  }
  /* Hero content */
  .hero-badge { display: none !important; }
  .hero-content {
    position: relative !important;
    z-index: 2 !important;
    padding: 100px 24px 48px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    text-align: center !important;
  }
  .hero-content h1 {
    font-size: clamp(34px, 9vw, 52px) !important;
    margin-bottom: 16px !important;
  }
  .hero-content p {
    max-width: 100% !important;
    margin-bottom: 28px !important;
  }
  /* Both CTA buttons visible */
  .hero-content > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
  }
  .hero-content .btn,
  .hero-content .btn-ghost {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* ── STATS: flow below hero content, not overlapping ── */
  .hero-stats {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    flex: 0 0 auto !important;
  }
  .stat-glass {
    padding: 28px 16px !important;
    border-right: 1px solid rgba(165,126,71,0.08) !important;
    border-top: 1px solid rgba(165,126,71,0.15) !important;
    border-bottom: none !important;
  }
  .stat-glass:nth-child(2) { border-right: none !important; }
  .stat-glass:nth-child(3) { border-bottom: none !important; }
  .stat-glass:nth-child(4) { border-right: none !important; }
  .stat-num { font-size: 32px !important; }

  /* Section padding */
  section { padding-left: 20px !important; padding-right: 20px !important; overflow: hidden !important; }
  .cta-strip { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="padding:0 60px"],
  [style*="padding: 0 60px"],
  [style*="padding:100px 60px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Stack all inline grids */
  [style*="display:grid"],
  [style*="display: grid"] { display: block !important; }

  /* Step cards */
  .step-card {
    border-right: none !important;
    border-bottom: 1px solid rgba(165,126,71,0.08) !important;
    width: 100% !important;
  }
  .step-card:last-child { border-bottom: none !important; }

  /* Service and laptop cards */
  .service-card, .laptop-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Why Choose items: stack vertically */
  .why-item {
    display: block !important;
    padding: 28px 20px !important;
  }
  .why-item > div:first-child { margin-bottom: 12px !important; }
  .why-item > p { margin: 0 !important; }
  [style*="position:sticky"],
  [style*="position: sticky"] { position: static !important; top: auto !important; }

  /* Reviews */
  .review-glass { padding: 28px 20px !important; }
  .review-text { font-size: 15px !important; }
  .review-author > * { max-width: none !important; }
  .review-author > div:nth-child(2) { flex: 1 1 auto !important; min-width: 0 !important; }
  .review-author > div:last-child { flex-shrink: 0 !important; white-space: nowrap !important; }
  [style*="background-attachment:fixed"],
  [style*="background-attachment: fixed"] { background-attachment: scroll !important; }

  /* Footer */
  footer {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
    padding: 28px 20px !important;
  

  /* ══════════════════════════════════════════════════════
     OTHER PAGES — MOBILE ADDITIONS
     ══════════════════════════════════════════════════════ */

  /* ── Feature strip: 4-col → 2×2 grid ── */
  .feature-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .feat-item {
    border-right: 1px solid rgba(165,126,71,0.08) !important;
    border-bottom: 1px solid rgba(165,126,71,0.08) !important;
  }

  /* ── All 1fr 1fr two-column grids → single column ──
     Covers: concierge advantage, about sections,
     skills, story, service image+text, pricing splits,
     locations+hours, contact methods */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }
  /* Ensure children in those grids take full width */
  [style*="grid-template-columns:1fr 1fr"] > div,
  [style*="grid-template-columns: 1fr 1fr"] > div {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* ── 280px/300px sticky review layout → stack ── */
  [style*="grid-template-columns:280px"],
  [style*="grid-template-columns: 280px"],
  [style*="grid-template-columns:300px"],
  [style*="grid-template-columns: 300px"] {
    display: block !important;
  }

  /* ── 3-col repeat grids (three threats, maintenance steps) → single col ── */
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    display: block !important;
  }

  /* ── About grid (rentals image+text) → stack ── */
  .about-grid {
    display: block !important;
  }
  .about-img img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* ── Section inner padding: override 60px sides ── */
  [style*="padding:100px 60px"],
  [style*="padding: 100px 60px"] {
    padding: 60px 20px !important;
  }
  [style*="padding:80px 60px"],
  [style*="padding: 80px 60px"] {
    padding: 52px 20px !important;
  }
  [style*="padding:80px 40px"],
  [style*="padding: 80px 40px"] {
    padding: 52px 20px !important;
  }
  [style*="padding:32px 36px"],
  [style*="padding: 32px 36px"] {
    padding: 20px !important;
  }
  [style*="padding:36px 40px"],
  [style*="padding: 36px 40px"] {
    padding: 20px !important;
  }

  /* ── Concierge advantage step items ── */
  [style*="display:flex;gap:20px;align-items:flex-start"] {
    padding: 20px !important;
  }

  /* ── Pricing split panels ── */
  [style*="grid-template-columns:1fr 1fr;border"],
  [style*="grid-template-columns:1fr 1fr; border"] {
    display: block !important;
  }

  /* ── Contact: location/hours columns ── */
  [style*="grid-template-columns:1fr 1fr;gap:80px"] {
    display: block !important;
  }
  [style*="grid-template-columns:1fr 1fr;gap:80px"] > div {
    margin-bottom: 40px !important;
  }

  /* ── CTA strip ── */
  .cta-strip {
    padding: 60px 20px !important;
  }
  .cta-strip h2 {
    font-size: clamp(28px, 8vw, 40px) !important;
  }

  /* ── Repair/service image: contain on mobile ── */
  .service-img img,
  .service-image img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
  }

  /* ── Laptop cards on rentals page ── */
  [style*="grid-template-columns:1fr 1fr;gap:1px"] {
    display: block !important;
  }

  /* ── FAQ accordion: full width ── */
  .faq-item {
    width: 100% !important;
  }

  /* ── Section headings: reduce size for narrow screens ── */
  section h2 {
    font-size: clamp(26px, 8vw, 38px) !important;
  }

  /* ── Why choose / principles: ensure items stack ── */
  .why-item,
  .principle-item {
    display: block !important;
    padding: 24px 20px !important;
  }

  /* ── Timeline: full width ── */
  .timeline-item {
    width: 100% !important;
    flex-direction: column !important;
  }

  /* ── Review section: disable fixed background (iOS) ── */
  .review-section {
    background-attachment: scroll !important;
  }

  /* ── Review grid on inner pages (280px sticky + cards) ── */
  .review-rating-sticky {
    position: static !important;
    margin-bottom: 32px !important;
    text-align: center !important;
  }

  /* ── Contact method cards ── */
  .contact-card {
    width: 100% !important;
    margin-bottom: 1px !important;
  }

  /* ── Maintenance threat panel ── */
  .threat-panel {
    width: 100% !important;
    margin-bottom: 24px !important;
  }

  /* ── What We Fix grid: 2x2 on mobile with full-width cards ── */
  .service-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .service-grid .service-card,
  .service-grid > div {
    min-width: 0 !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }

  /* ── Pricing table: fix fixed-width label spans causing overflow ── */
  [style*="width:220px"] {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  /* Ensure the pricing row container doesn't overflow */
  [style*="display:flex;gap:24px;font-size:13px"],
  [style*="display:flex;gap:24px;font-size:14px"] {
    justify-content: space-between !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }
  /* Pricing outer container: add safe padding */
  [style*="padding:32px 44px"] {
    padding: 24px 20px !important;
    box-sizing: border-box !important;
  }


}
}
