/* ═══════════════════════════════════════════════════════════════
   LAYOUT-FIX.CSS — D'Laptop Story V Care
   Fixes: spacing · padding · font-sizes · grid layout · accessibility
   Loaded LAST → overrides all previous stylesheets
   ⚠️  DO NOT change colors, gradients, or design here.
═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   PAGE CONDENSING — Reduce to 4-5 Scrolls
══════════════════════════════════════════ */

/* 1. Hero compact height — stronger selector to beat ultra4k.css */
section.hero.hero-compact,
.hero.hero-compact {
  min-height: 460px !important;
  max-height: 520px !important;
  height: auto !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* Also override the layout-fix.css general .hero rule below */
.hero {
  min-height: auto !important;
}

@media (max-width: 768px) {
  section.hero.hero-compact,
  .hero.hero-compact {
    max-height: none !important;
    min-height: 320px !important;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}

/* 2. Global section padding: 80px → 60px */
.section-pad,
.hero,
.services,
.process,
.reviews,
.blog,
.contact,
.why {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* 3. Section heading gap: 48px → 28px */
.svc-header,
.process-head,
.reviews-head,
.blog-head,
.why-compact-head {
  margin-bottom: 28px !important;
}

/* 4. Why Us — compact 2-column promise grid */
.why-compact-head {
  text-align: center !important;
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.why-compact-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem) !important;
  margin-bottom: 0 !important;
}

.promises-compact {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 32px !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}

.promise-row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--border, #e5e7eb) !important;
  min-height: 52px !important;
}

.promise-row:last-child,
.promise-row:nth-last-child(2) {
  border-bottom: none !important;
}

.pr-icon {
  font-size: 22px !important;
  flex-shrink: 0 !important;
  width: 32px !important;
  text-align: center !important;
}

.pr-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
}

.pr-body strong {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}

.pr-body span {
  font-size: 13px !important;
  color: #6b7280 !important;
  line-height: 1.4 !important;
}

@media (max-width: 768px) {
  .promises-compact {
    grid-template-columns: 1fr !important;
  }
  .promise-row:nth-last-child(2) {
    border-bottom: 1px solid var(--border, #e5e7eb) !important;
  }
  .promise-row:last-child {
    border-bottom: none !important;
  }
}

/* 5. Process — compact horizontal 4-col */
.process-compact {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

.process-compact .step-card {
  padding: 20px 16px !important;
}

.process-compact .step-num {
  font-size: 32px !important;
  opacity: 0.12 !important;
  top: -6px !important;
  right: 10px !important;
}

.process-compact .step-icon {
  width: 44px !important;
  height: 44px !important;
  font-size: 22px !important;
  margin-bottom: 10px !important;
}

.process-compact .step-card h4 {
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 5px !important;
}

.process-compact .step-card p {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #6b7280 !important;
}

@media (max-width: 768px) {
  .process-compact {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 6. Reviews — static 3-column grid, no animation */
.rev-static-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

/* Kill all the old carousel animation on static grid */
.rev-static-grid .rev-card {
  width: auto !important;
  min-width: auto !important;
  animation: none !important;
}

@media (max-width: 1024px) {
  .rev-static-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .rev-static-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 7. Footer compact */
footer {
  padding: 40px 40px 24px !important;
}

.f-links a,
.f-links li,
footer a {
  font-size: 13px !important;
  line-height: 1.8 !important;
}

@media (max-width: 768px) {
  footer {
    padding: 36px 20px 20px !important;
  }
}

/* ══════════════════════════════════════════
   MAP EMBED CARD — Contact Section
══════════════════════════════════════════ */

.map-embed-card {
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07) !important;
  margin-bottom: 28px !important;
  transition: box-shadow 0.3s ease !important;
}

.map-embed-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.12) !important;
}

.map-embed-wrap {
  width: 100% !important;
  overflow: hidden !important;
  line-height: 0 !important;
}

.map-embed-wrap iframe {
  display: block !important;
  width: 100% !important;
  height: 220px !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.map-embed-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  background: #f8f9fb !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.map-embed-addr {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: #374151 !important;
  line-height: 1.4 !important;
  flex: 1 !important;
}

.map-embed-addr svg {
  flex-shrink: 0 !important;
  color: #D42027 !important;
  stroke: #D42027 !important;
}

.map-directions-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #D42027 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
  min-height: 36px !important;
}

.map-directions-btn:hover {
  background: #B81920 !important;
  transform: translateX(2px) !important;
}

/* Mobile: stack footer vertically */
@media (max-width: 500px) {
  .map-embed-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .map-directions-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Remove the old plain map link button */
.map-link-btn {
  display: none !important;
}

/* c-info-col: remove inline style overrides that caused odd gap */
.c-info-col {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  margin-bottom: 0 !important;
}


/* ══════════════════════════════════════════
   1. GLOBAL LAYOUT
══════════════════════════════════════════ */

html {
  font-size: 16px !important;
}

body {
  font-size: 16px !important;
  min-width: 0 !important;
}

/* Universal container max-width + centering */
.container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 60px !important;
  padding-right: 60px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Major section vertical breathing room */
.section-pad,
.hero,
.services,
.process,
.reviews,
.blog,
.contact,
.why,
.gold-banner-wrap {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

/* Prevent any section from having zero side padding */
section,
footer {
  box-sizing: border-box !important;
}


/* ══════════════════════════════════════════
   2. NAVBAR
══════════════════════════════════════════ */

.navbar {
  padding: 0 40px !important;
  height: 68px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.nav-links {
  display: flex !important;
  gap: 32px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
}

.nav-links a {
  font-size: 15px !important;
  font-weight: 500 !important;
}

/* Mobile: hide nav links, show hamburger */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px !important;
    height: 60px !important;
  }
  .nav-links {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
  }
  .hamburger {
    display: none !important;
  }
}


/* ══════════════════════════════════════════
   3. HERO SECTION
══════════════════════════════════════════ */

.hero {
  min-height: calc(100vh - 100px) !important;
  display: flex !important;
  align-items: center !important;
}

/* Main headline */
.hero-display,
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  line-height: 0.95 !important;
  margin-bottom: 20px !important;
}

/* Subheading */
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem) !important;
  margin-bottom: 20px !important;
  line-height: 1.65 !important;
}

/* Buttons row */
.hero-btns {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-bottom: 40px !important;
}

/* Hero CTA buttons */
.hero-btns .btn,
#heroServicesBtn,
#heroWaBtn {
  min-height: 52px !important;
  padding: 0 32px !important;
  font-size: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
}

/* 3 trust badges row */
.hero-stats-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 32px !important;
  padding-top: 28px !important;
  flex-wrap: wrap !important;
}

.hstat-num {
  font-size: 26px !important;
  line-height: 1 !important;
  display: block !important;
}

.hstat-lbl {
  font-size: 14px !important;
  display: block !important;
  margin-top: 3px !important;
}

/* Hero eyebrow badge */
.hero-eyebrow {
  margin-bottom: 20px !important;
}


/* ══════════════════════════════════════════
   4. SECTION HEADINGS — Universal
══════════════════════════════════════════ */

/* All major section h2 headings */
.svc-header h2,
.process-head h2,
.reviews-head h2,
.blog-head h2,
.why-content h2,
.contact h2,
.contact-info h2,
section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 16px !important;
}

/* Eyebrow/label text above headings */
.eyebrow,
.svc-header .eyebrow,
.process-head .eyebrow,
.reviews-head .eyebrow,
.blog-head .eyebrow,
.contact-info .eyebrow {
  font-size: 13px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  display: block !important;
  margin-bottom: 10px !important;
}

/* Gap between section header block and the content below it */
.svc-header,
.process-head,
.reviews-head,
.blog-head,
.why-content > *:first-child {
  margin-bottom: 48px !important;
}


/* ══════════════════════════════════════════
   5. SERVICES — Split Panel
══════════════════════════════════════════ */

.svc-panel {
  padding: 28px !important;
}

.svc-panel-title {
  font-size: 18px !important;
  font-weight: 600 !important;
}

.svc-panel-desc {
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* Service list sidebar items */
.svc-item-title {
  font-size: 15px !important;
  font-weight: 600 !important;
}


/* ══════════════════════════════════════════
   6. HOW IT WORKS — 4 Steps
══════════════════════════════════════════ */

.process-steps {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}

.step-card {
  padding: 28px !important;
  border-radius: 16px !important;
}

/* Step number watermark */
.step-num {
  font-size: 48px !important;
  opacity: 0.15 !important;
}

/* Step icon */
.step-icon {
  font-size: 32px !important;
  width: 60px !important;
  height: 60px !important;
  margin-bottom: 18px !important;
}

/* Step title */
.step-card h4 {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
}

/* Step description */
.step-card p {
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* 4 → 2 columns on tablet */
@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 2 → 1 column on mobile */
@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr !important;
  }
}


/* ══════════════════════════════════════════
   7. REVIEWS
══════════════════════════════════════════ */

.rev-card {
  padding: 28px !important;
  border-radius: 16px !important;
}

.rev-text {
  font-size: 15px !important;
  line-height: 1.8 !important;
}

.rev-author {
  font-size: 14px !important;
  font-weight: 600 !important;
}

.rev-stars {
  font-size: 18px !important;
  margin-bottom: 12px !important;
}


/* ══════════════════════════════════════════
   8. TECH TIPS / BLOG CARDS
══════════════════════════════════════════ */

.blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

.blog-card {
  padding: 28px !important;
  border-radius: 16px !important;
}

.blog-body h4 {
  font-size: 17px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  line-height: 1.4 !important;
}

.blog-body p {
  font-size: 14px !important;
  line-height: 1.7 !important;
}

/* 3 → 1 column on mobile */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 3 → 2 on tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* ══════════════════════════════════════════
   9. CONTACT SECTION
══════════════════════════════════════════ */

/* Two-column layout gap */
.contact-inner {
  display: grid !important;
  grid-template-columns: 1fr 460px !important;
  gap: 40px !important;
  align-items: start !important;
}

/* Form inputs — stronger selector to beat ultra4k form-box scoping */
.form-group input,
.form-group select,
.form-box .form-group input,
.form-box .form-group select,
#quoteForm input,
#quoteForm select {
  height: 52px !important;
  font-size: 16px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  margin-bottom: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Textarea */
.form-group textarea,
.form-box .form-group textarea,
#quoteForm textarea {
  font-size: 16px !important;
  padding: 14px 16px !important;
  border-radius: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 100px !important;
}

/* Spacing between form groups */
.form-group {
  margin-bottom: 16px !important;
}

/* Labels — stronger selector to beat ultra4k form-box scoping */
.form-group label,
.form-box .form-group label,
#quoteForm label {
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
  display: block !important;
  letter-spacing: 0.04em !important;
}

/* Submit button */
.form-submit,
button.form-submit {
  height: 56px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  width: 100% !important;
  border-radius: 10px !important;
  min-height: 56px !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Contact stacks on tablet */
@media (max-width: 1024px) {
  .contact-inner {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}


/* ══════════════════════════════════════════
   10. FOOTER
══════════════════════════════════════════ */

footer {
  padding: 60px 40px 32px !important;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 40px !important;
  margin-bottom: 48px !important;
}

.f-links a,
.f-links li,
footer a {
  font-size: 14px !important;
  line-height: 2 !important;
}

/* Footer 4 → 2 column on tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

/* Footer 2 → 1 column on mobile */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  footer {
    padding: 44px 20px 24px !important;
  }
}


/* ══════════════════════════════════════════
   11. MOBILE RESPONSIVENESS
══════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Global container padding on mobile */
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Section vertical padding on mobile */
  .section-pad,
  .hero,
  .services,
  .process,
  .reviews,
  .blog,
  .contact,
  .why {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  /* Base body font size */
  body {
    font-size: 16px !important;
  }

  /* Hero on mobile */
  .hero {
    min-height: auto !important;
    padding-top: 60px !important;
    padding-bottom: 48px !important;
  }

  .hero-display,
  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem) !important;
  }

  .hero-sub {
    font-size: 1rem !important;
  }

  /* Hero buttons stack vertically on mobile */
  .hero-btns {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .hero-btns .btn,
  #heroServicesBtn,
  #heroWaBtn {
    width: 100% !important;
    min-height: 52px !important;
    text-align: center !important;
  }

  /* Trust badge row wraps on mobile */
  .hero-stats-row {
    gap: 20px !important;
    flex-wrap: wrap !important;
  }

  /* All multi-column grids → 1 column */
  .services-grid,
  .process-steps,
  .blog-grid,
  .why-inner {
    grid-template-columns: 1fr !important;
  }

  /* Contact stacks on mobile */
  .contact-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Section h2 on mobile */
  section h2,
  .svc-header h2,
  .process-head h2,
  .reviews-head h2,
  .blog-head h2,
  .why-content h2,
  .contact-info h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }

  /* All interactive touch targets: minimum 48px tall */
  a,
  button,
  .btn,
  .blog-read,
  .map-link-btn,
  .faq-q,
  .svc-item,
  .nav-links a,
  .mobile-link {
    min-height: 48px !important;
  }

  /* Form inputs already 52px — maintain on mobile */
  .form-group input,
  .form-group select {
    height: 52px !important;
    font-size: 16px !important; /* Prevent iOS zoom */
  }

  /* Submit button on mobile */
  .form-submit {
    height: 56px !important;
    font-size: 16px !important;
  }

  /* Section header margin on mobile */
  .svc-header,
  .process-head,
  .reviews-head,
  .blog-head {
    margin-bottom: 32px !important;
  }

  /* Services panel on mobile */
  .svc-panel {
    padding: 20px !important;
  }

  /* Blog card on mobile */
  .blog-card {
    padding: 20px !important;
  }
}

/* ── Tiny screens (≤ 420px) ── */
@media (max-width: 420px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero-display,
  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.5rem) !important;
  }

  .step-card,
  .blog-card,
  .rev-card {
    padding: 20px !important;
  }

  footer {
    padding: 36px 16px 20px !important;
  }
}

/* ══════════════════════════════════════════
   PAGE CONDENSING — Phase 1 Explicit Overrides
   Appended last → wins over earlier rules by source order
══════════════════════════════════════════ */

/* Hero compact — exact target values (overrides 460px rule at line 13) */
.hero-compact {
  min-height: 420px !important;
  max-height: 520px !important;
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}
@media (max-width: 768px) {
  .hero-compact {
    max-height: 420px !important;
    padding: 40px 20px !important;
  }
}

/* Blog card description clamp (new rule) */
.blog-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
