/*
Theme Name: MBR Repairs
Theme URI: https://marrakechbuilders.com/
Author: Marrakech Builders
Description: Repairs-first WordPress theme for Marrakech Builders. Preserves the supplied homepage design while adding editable Customizer content, service pages, projects, and editorial content.
Version: 1.4.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: mbr-repairs
*/

:root {
      --paper: #fbf8f2;
      --sand: #f3ebdf;
      --sand-deep: #e9ddcc;
      --white: #fffefa;
      --ink: #252624;
      --muted: #66655f;
      --clay: #c86632;
      --clay-dark: #a94e25;
      --olive: #70815d;
      --green: #25a947;
      --line: #ded8cf;
      --footer: #242522;
      --shadow: 0 8px 24px rgba(48, 38, 27, .08);
      --radius: 9px;
      --container: 1260px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: var(--paper);
      font-family: "DM Sans", Arial, sans-serif;
      font-size: 16px;
      line-height: 1.42;
      -webkit-font-smoothing: antialiased;
    }
    body.nav-open { overflow: hidden; }
    h1, h2, h3, h4, p { margin-top: 0; }
    h1, h2, h3, h4, .brand { font-family: "Manrope", Arial, sans-serif; }
    a { color: inherit; text-decoration: none; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button { font: inherit; }
    .container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
    .full-section { width: 100%; }
    .section-pad { padding: 42px 0; }
    .section-title { margin-bottom: 6px; font-size: clamp(27px, 2.2vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
    .section-kicker { margin-bottom: 20px; color: var(--muted); font-size: 15px; }
    .image-frame { position: relative; overflow: hidden; background: #e7dfd2; }
    .image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .image-frame img[src=""] { visibility: hidden; }
    .btn {
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 12px 22px;
      border: 1px solid transparent;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 700;
      transition: transform .2s ease, background .2s ease, border-color .2s ease;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn-clay { color: white; background: var(--clay); }
    .btn-clay:hover { background: var(--clay-dark); }
    .btn-outline { border-color: var(--ink); background: transparent; }
    .btn-outline:hover { color: white; background: var(--ink); }
    .btn-whatsapp { color: #fff; background: var(--green); }
    .btn-whatsapp:hover { background: #198b36; }

    /* Top utility bar and navigation */
    .utility-bar { color: #fff; background: var(--clay); font-size: 12px; }
    .utility-inner { height: 34px; min-height: 0px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .utility-list { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
    .utility-list span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
    .utility-list span + span::before { content: ""; width: 1px; height: 13px; margin: 0 15px; background: rgba(255,255,255,.35); }
    .utility-reply { white-space: nowrap; font-weight: 600; }

    .site-header { position: relative; z-index: 20; background: var(--white); border-bottom: 1px solid #eee9e0; }
    .nav-inner { height: 98px; min-height: 0px; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 30px; }
    .brand { font-size: 27px; font-weight: 800; line-height: .88; letter-spacing: -.05em; }
    .brand span { display: block; }
    .desktop-nav { display: flex; align-items: center; justify-content: center; gap: 42px; font-weight: 700; font-size: 14px; }
    .desktop-nav a { position: relative; padding: 38px 0 32px; }
    .desktop-nav a.active { color: var(--clay); }
    .desktop-nav a.active::after { content: ""; position: absolute; right: 0; bottom: 28px; left: 0; height: 2px; background: var(--clay); }
    .nav-actions { display: flex; align-items: center; gap: 24px; }
    .phone-link { white-space: nowrap; font-size: 14px; font-weight: 700; }
    .phone-link i { margin-right: 8px; color: #65645f; font-size: 17px; }
    .quote-btn { padding-inline: 24px; box-shadow: 0 6px 16px rgba(200,102,50,.18); }
    .menu-toggle { display: none; width: 46px; height: 44px; border: 0; border-radius: 6px; color: var(--ink); background: var(--sand); font-size: 21px; cursor: pointer; }

    /* Hero */
    .hero { background: linear-gradient(90deg, #f7f0e6 0 50%, #e7dfd2 50%); }
    .hero-grid {
  width: min(1365px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 48% 52%;
  height: calc(100dvh - 34px - 98px - 44px);
  min-height: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 55px;
  padding-left: max(24px, calc((min(100vw, 1365px) - var(--container)) / 2));
}

    .hero h1 { max-width: 660px; margin-bottom: 13px; font-size: clamp(44px, 4.05vw, 64px); line-height: 1.03; letter-spacing: -.05em; }
    .hero-subtitle { margin-bottom: 28px; color: var(--clay); font-size: 18px; font-weight: 800; }
    .hero-bullets { display: grid; gap: 13px; margin: 0 0 30px; padding: 0; list-style: none; font-size: 16px; }
    .hero-bullets i { width: 22px; margin-right: 10px; color: var(--olive); }
    .hero-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 590px; margin-bottom: 30px; }
    .hero-trust-item { display: grid; justify-items: center; gap: 7px; text-align: center; font-size: 11px; font-weight: 700; line-height: 1.15; }
    .hero-trust-item i { font-size: 23px; color: #5f625b; }
    .hero-trust-item .dot { width: 7px; height: 7px; margin-right: 4px; display: inline-block; border-radius: 50%; background: var(--olive); }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
    .hero-image {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

    .benefit-strip { overflow: hidden; border-block: 1px solid #e7ddcf; background: #f5eee3; }
    .benefit-track { height: 44px; min-height: 0px; display: flex; align-items: center; justify-content: center; gap: 17px; white-space: nowrap; font-size: 12px; font-weight: 700; }
    .benefit-track span::before { content: ""; width: 5px; height: 5px; margin-right: 12px; display: inline-block; border-radius: 50%; background: var(--olive); vertical-align: 2px; }
    .benefit-track span:nth-child(3n)::before { background: var(--clay); }

    /* Reviews overview */
    .review-overview { background: var(--white); }
    .review-heading { display: grid; grid-template-columns: 1.1fr .7fr auto; align-items: center; gap: 30px; margin-bottom: 25px; }
    .review-heading h2 { margin: 0; font-size: 29px; line-height: 1.05; letter-spacing: -.03em; }
    .rating-large { font-size: 39px; font-weight: 800; line-height: 1; }
    .stars { color: #f39a2e; letter-spacing: 2px; }
    .rating-caption { margin-top: 6px; color: var(--muted); font-size: 13px; }
    .small-outline { min-width: 190px; border-color: var(--clay); color: var(--clay-dark); background: transparent; }
    .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
    .review-card { min-height: 170px; padding: 24px 30px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
    .quote-mark { margin-bottom: 7px; color: #aaa59d; font-family: Georgia, serif; font-size: 36px; line-height: .7; }
    .review-card p { margin-bottom: 20px; font-size: 16px; }
    .review-card small { font-weight: 600; }

    /* Services */
    .services { background: var(--sand); }
    .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 24px; }
    .service-card { overflow: hidden; min-height: 225px; border: 1px solid #ded5c9; border-radius: var(--radius); background: var(--white); box-shadow: 0 6px 18px rgba(52,43,33,.06); }
    .service-image { height: 142px; }
    .service-content { min-height: 92px; display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 13px; padding: 13px 16px; }
    .service-icon { display: grid; place-items: center; color: var(--clay); font-size: 35px; }
    .service-content h3 { margin-bottom: 2px; font-size: 17px; line-height: 1.18; }
    .service-content p { margin: 0; color: #474741; font-size: 13px; line-height: 1.2; }

    /* Problem band and stats */
    .problem-band { background: var(--white); }
    .problem-grid { display: grid; grid-template-columns: 1fr 1.08fr 1fr; align-items: stretch; gap: 30px; }
    .problem-image { height: 255px; border-radius: 5px; }
    .problem-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 5px; text-align: center; }
    .problem-copy h2 { margin-bottom: 14px; font-size: 30px; line-height: 1.03; letter-spacing: -.035em; }
    .problem-copy p { max-width: 420px; margin-bottom: 17px; font-size: 15px; line-height: 1.3; }
    .problem-copy .btn { min-width: 280px; }
    .stats { padding: 21px 0; border-block: 1px solid var(--line); background: #f5eee4; }
    .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
    .stat { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 16px; }
    .stat i { grid-row: span 2; color: #60615d; font-size: 44px; }
    .stat strong { font-family: "Manrope", sans-serif; font-size: 37px; line-height: 1; }
    .stat span { color: #4c4d48; font-size: 12px; font-weight: 700; }

    /* Expertise */
    .expertise { background: var(--white); }
    .expertise-grid { display: grid; grid-template-columns: 410px 1fr; align-items: center; gap: 70px; }
    .expert-image { height: 285px; border-radius: 5px; }
    .expert-copy h2 { max-width: 720px; margin-bottom: 10px; font-size: 32px; line-height: 1.05; letter-spacing: -.035em; }
    .expert-copy > p { max-width: 790px; margin-bottom: 24px; color: #555650; }
    .trust-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .trust-card { min-height: 125px; display: grid; grid-template-columns: 44px 1fr; align-content: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
    .trust-card i { color: var(--clay); font-size: 34px; }
    .trust-card h3 { margin-bottom: 4px; font-size: 15px; }
    .trust-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.25; }

    /* Process */
    .process { border-top: 1px solid var(--line); background: var(--paper); }
    .process .section-title { text-align: center; }
    .steps { display: grid; grid-template-columns: 1fr 54px 1fr 54px 1fr; align-items: center; }
    .step-card { min-height: 160px; display: grid; grid-template-columns: 44px 1fr; align-content: start; gap: 12px; padding: 26px 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
    .step-number { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--clay); font-family: "Manrope", sans-serif; font-weight: 800; }
    .step-card h3 { margin-bottom: 5px; font-size: 16px; }
    .step-card p { margin: 0; color: #555650; font-size: 13px; line-height: 1.3; }
    .step-arrow { display: grid; place-items: center; color: #89877f; font-size: 18px; }

    /* Shared carousel styling */
    .carousel-section { overflow: hidden; }
    .carousel-head { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
    .carousel-head .section-title { margin: 0; text-align: center; }
    .carousel-shell { position: relative; }
    .carousel-viewport { overflow: hidden; }
    .carousel-track { display: flex; transition: transform .45s ease; will-change: transform; }
    .carousel-btn { position: absolute; z-index: 2; top: 50%; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #5f605b; background: rgba(255,255,255,.94); box-shadow: 0 4px 12px rgba(0,0,0,.09); cursor: pointer; transform: translateY(-50%); }
    .carousel-btn.prev { left: -19px; }
    .carousel-btn.next { right: -19px; }

    /* Work */
    .work { background: var(--white); }
    .work-track { gap: 14px; }
    .work-card { flex: 0 0 calc((100% - 70px) / 6); overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
    .work-image { height: 170px; }
    .work-card h3 { min-height: 68px; display: flex; align-items: center; justify-content: center; margin: 0; padding: 11px 8px; text-align: center; font-size: 13px; line-height: 1.2; }

    /* Testimonials */
    .testimonials { background: #f8f3eb; }
    .testimonial-track { gap: 24px; }
    .testimonial-card { flex: 0 0 calc((100% - 96px) / 5); min-height: 190px; display: flex; flex-direction: column; padding: 20px 20px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
    .testimonial-card .stars { margin-bottom: 13px; font-size: 13px; }
    .testimonial-card blockquote { margin: 0 0 18px; font-size: 14px; line-height: 1.35; }
    .testimonial-card cite { margin-top: auto; color: #66645e; font-size: 12px; font-style: normal; font-weight: 600; }

    /* FAQ */
    .faq { background: var(--white); }
    .faq-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
    .faq-column { display: grid; align-content: start; gap: 10px; }
    .faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
    .faq-question { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 16px; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-align: left; font-weight: 700; }
    .faq-question i { color: #77756f; transition: transform .25s ease; }
    .faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .faq-answer p { margin: 0; padding: 0 16px 16px; color: #585954; font-size: 14px; line-height: 1.5; }
    .faq-item.open .faq-question i { transform: rotate(45deg); }

    /* Blog */
    .blog { padding-top: 5px; background: var(--white); }
    .blog-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 25px; margin-bottom: 20px; }
    .blog-heading h2 { margin-bottom: 5px; font-size: 29px; line-height: 1.1; letter-spacing: -.03em; }
    .blog-heading p { margin: 0; color: var(--muted); }
    .issue-badge { margin-left: 14px; display: inline-block; padding: 4px 9px; border: 1px solid #e9bd8f; border-radius: 4px; color: var(--clay-dark); background: #fff8ee; font-family: "DM Sans", sans-serif; font-size: 12px; letter-spacing: 0; vertical-align: middle; }
    .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
    .blog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
    .blog-image { height: 150px; }
    .blog-copy { min-height: 105px; padding: 12px 16px 16px; }
    .blog-meta { margin-bottom: 7px; color: var(--clay-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; }
    .blog-meta span { margin-left: 12px; color: #77756e; font-weight: 500; text-transform: none; }
    .blog-copy h3 { margin: 0; font-size: 17px; line-height: 1.22; }

    /* Final CTA */
    .final-cta { border-top: 1px solid #e8ded0; background: var(--sand); }
    .final-grid { min-height: 155px; display: grid; grid-template-columns: 1.3fr .72fr .72fr; align-items: center; gap: 24px; }
    .final-message { text-align: center; }
    .final-message h2 { margin-bottom: 5px; font-size: 30px; line-height: 1.02; letter-spacing: -.03em; }
    .final-message p { margin: 0; color: #54554f; font-size: 13px; }
    .contact-tile { min-height: 92px; display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 5px 14px rgba(58,45,32,.05); }
    .contact-tile i { color: #61625e; font-size: 40px; }
    .contact-tile.whatsapp i { color: var(--green); }
    .contact-tile h3 { margin-bottom: 1px; font-size: 15px; }
    .contact-tile strong { display: block; font-size: 17px; }
    .contact-tile small { color: var(--muted); }

    /* Footer */
    .site-footer { color: #eae9e5; background: var(--footer); }
    .footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1.25fr 1.15fr .75fr; gap: 36px; padding: 34px 0 28px; }
    .footer-brand { margin-bottom: 12px; color: #fff; font-family: "Manrope", sans-serif; font-size: 22px; font-weight: 800; line-height: .9; }
    .footer-col h3 { margin-bottom: 11px; color: #fff; font-size: 14px; }
    .footer-col p, .footer-col a, .footer-col li { color: #bbbcb7; font-size: 12px; line-height: 1.45; }
    .footer-col p { margin-bottom: 10px; }
    .footer-col ul { margin: 0; padding: 0; list-style: none; }
    .footer-col a:hover { color: #fff; }
    .check-list li::before { content: "\f00c"; margin-right: 7px; color: #7ea565; font-family: "Font Awesome 6 Free"; font-weight: 900; }
    .socials { display: flex; gap: 14px; margin-top: 13px; font-size: 17px; }
    .footer-bottom { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #4b4c48; color: #aaa9a5; font-size: 11px; }


    @media (min-width: 821px) and (max-height: 780px) {
  .hero-copy {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero h1 {
    margin-bottom: 10px;
  }

  .hero-subtitle {
    margin-bottom: 18px;
  }

  .hero-bullets {
    gap: 9px;
    margin-bottom: 18px;
  }

  .hero-trust {
    margin-bottom: 18px;
  }
}

@media (min-width: 821px) and (max-height: 680px) {
  .hero-copy {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(40px, 3.5vw, 54px);
  }

  .hero-subtitle {
    margin-bottom: 12px;
  }

  .hero-bullets {
    gap: 6px;
    margin-bottom: 12px;
  }

  .hero-trust {
    margin-bottom: 12px;
  }
}


    /* Tablet */
    @media (max-width: 1100px) {
      .container { width: min(var(--container), calc(100% - 36px)); }
      .utility-list span:nth-child(n+4) { display: none; }
      .nav-inner { min-height: 82px; grid-template-columns: 180px 1fr auto; }
      .desktop-nav { gap: 22px; }
      .nav-actions .phone-link { display: none; }
      .hero-grid { grid-template-columns: 53% 47%; }
      .hero-copy { padding-left: 32px; padding-right: 30px; }
      .hero h1 { font-size: 47px; }
      .hero-trust { grid-template-columns: repeat(2, 1fr); }
      .review-grid { gap: 18px; }
      .service-grid { gap: 17px; }
      .expertise-grid { grid-template-columns: 330px 1fr; gap: 38px; }
      .trust-card-grid { gap: 10px; }
      .trust-card { grid-template-columns: 34px 1fr; padding: 14px; }
      .work-card { flex-basis: calc((100% - 42px) / 4); }
      .testimonial-card { flex-basis: calc((100% - 48px) / 3); }
      .footer-grid { grid-template-columns: repeat(3, 1fr); }
    }

    /* Mobile navigation and layouts */
    @media (max-width: 820px) {
      body { font-size: 15px; }
      .container { width: min(100% - 28px, var(--container)); }
      .section-pad { padding: 34px 0; }
      .utility-inner { min-height: 31px; justify-content: center; }
      .utility-list span:not(:first-child), .utility-reply { display: none; }
      .nav-inner { min-height: 74px; grid-template-columns: 1fr auto auto; gap: 10px; }
      .brand { font-size: 23px; }
      .menu-toggle { display: grid; place-items: center; }
      .quote-btn { min-height: 44px; padding: 10px 14px; font-size: 12px; }
      .desktop-nav {
        position: fixed;
        z-index: 50;
        inset: 105px 0 auto;
        display: grid;
        gap: 0;
        padding: 18px 24px 26px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 12px 30px rgba(0,0,0,.12);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity .2s ease, transform .2s ease;
      }
      .desktop-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
      .desktop-nav a { padding: 13px 0; border-bottom: 1px solid #eee8df; }
      .desktop-nav a.active::after { display: none; }
      .nav-actions { display: none; }
      .hero-grid { display: flex; min-height: auto; flex-direction: column; }
      .hero-copy { padding: 40px 20px 34px; }
      .hero h1 { font-size: 43px; }
      .hero-subtitle { font-size: 16px; }
      .hero-trust { max-width: none; grid-template-columns: repeat(4, 1fr); }
      .hero-actions { display: grid; grid-template-columns: 1fr; }
      .hero-actions .btn { width: 100%; }
      .hero-image { min-height: 390px; order: 2; }
      .benefit-track { width: max-content; justify-content: flex-start; animation: ticker 25s linear infinite; }
      @keyframes ticker { to { transform: translateX(-40%); } }
      .review-heading { grid-template-columns: 1fr auto; }
      .review-heading .small-outline { grid-column: 1 / -1; width: 100%; }
      .review-grid { grid-template-columns: 1fr; }
      .review-card { min-height: 145px; }
      .service-grid { grid-template-columns: repeat(2, 1fr); }
      .problem-grid { grid-template-columns: 1fr; }
      .problem-image { height: 280px; }
      .problem-copy { min-height: 300px; }
      .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 10px; }
      .stat strong { font-size: 31px; }
      .stat i { font-size: 36px; }
      .expertise-grid { grid-template-columns: 1fr; gap: 28px; }
      .expert-image { height: 360px; }
      .trust-card-grid { grid-template-columns: 1fr; }
      .steps { grid-template-columns: 1fr; gap: 12px; }
      .step-arrow { transform: rotate(90deg); }
      .work-card { flex-basis: calc((100% - 14px) / 2); }
      .testimonial-card { flex-basis: calc((100% - 24px) / 2); }
      .faq-layout { grid-template-columns: 1fr; gap: 10px; }
      .blog-grid { grid-template-columns: 1fr; }
      .blog-image { height: 230px; }
      .final-grid { grid-template-columns: 1fr 1fr; padding: 28px 0; }
      .final-message { grid-column: 1 / -1; }
      .footer-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 560px) {
      .section-title { font-size: 28px; }
      .quote-btn { display: none; }
      .nav-inner { grid-template-columns: 1fr auto; }
      .hero-copy { padding-inline: 18px; }
      .hero h1 { font-size: 38px; }
      .hero-trust { grid-template-columns: repeat(2, 1fr); }
      .hero-image { min-height: 320px; }
      .review-heading { grid-template-columns: 1fr; }
      .review-heading h2 { font-size: 25px; }
      .service-grid { grid-template-columns: 1fr; }
      .service-image { height: 180px; }
      .problem-image { height: 220px; }
      .problem-copy h2 { font-size: 27px; }
      .problem-copy .btn { min-width: 0; width: 100%; }
      .stats-grid { grid-template-columns: 1fr 1fr; }
      .stat { grid-template-columns: auto; justify-items: center; text-align: center; row-gap: 4px; }
      .stat i { grid-row: auto; }
      .expert-image { height: 310px; }
      .expert-copy h2 { font-size: 29px; }
      .work-card { flex-basis: 82%; }
      .testimonial-card { flex-basis: 82%; }
      .carousel-btn.prev { left: -8px; }
      .carousel-btn.next { right: -8px; }
      .blog-heading { grid-template-columns: 1fr; }
      .blog-heading .btn { width: 100%; }
      .final-grid { grid-template-columns: 1fr; }
      .final-message { grid-column: auto; }
      .contact-tile { min-height: 86px; }
      .footer-grid { grid-template-columns: 1fr; gap: 26px; }
      .footer-bottom { align-items: flex-start; flex-direction: column; padding: 13px 0; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
    }

/* FINAL VERIFIED TOP-STACK OVERRIDES
       Desktop/tablet landscape: utility + nav + hero + benefit strip = 100dvh.
       Mobile: natural stacked flow; no inherited desktop heights. */

    @media (min-width: 1101px) {
      .utility-inner {
        height: 34px;
        min-height: 0;
      }

      .nav-inner {
        height: 98px;
        min-height: 0;
      }

      .hero {
        overflow: hidden;
      }

      .hero-grid {
        width: min(1920px, 100%);
        margin-inline: auto;
        display: grid;
        grid-template-columns: 48% 52%;
        height: calc(100dvh - 34px - 98px - 44px);
        min-height: 0;
      }

      .hero-copy {
        min-width: 0;
        min-height: 0;
        padding-left: max(24px, calc((min(100vw, 1920px) - var(--container)) / 2));
        padding-right: 55px;
        padding-top: clamp(18px, 4.5vh, 50px);
        padding-bottom: clamp(18px, 4.5vh, 50px);
      }

      .hero-image {
        height: 100%;
        min-height: 0;
        overflow: hidden;
      }

      .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .benefit-track {
        height: 44px;
        min-height: 0;
      }
    }

    @media (min-width: 821px) and (max-width: 1100px) {
      .utility-inner {
        height: 34px;
        min-height: 0;
      }

      .nav-inner {
        height: 82px;
        min-height: 0;
      }

      .hero {
        overflow: hidden;
      }

      .hero-grid {
        width: 100%;
        margin-inline: auto;
        display: grid;
        grid-template-columns: 53% 47%;
        height: calc(100dvh - 34px - 82px - 44px);
        min-height: 0;
      }

      .hero-copy {
        min-width: 0;
        min-height: 0;
        padding-left: 32px;
        padding-right: 30px;
        padding-top: clamp(16px, 3.5vh, 36px);
        padding-bottom: clamp(16px, 3.5vh, 36px);
      }

      .hero-image {
        height: 100%;
        min-height: 0;
        overflow: hidden;
      }

      .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .benefit-track {
        height: 44px;
        min-height: 0;
      }
    }

    @media (max-width: 820px) {
      .utility-inner {
        height: 31px;
        min-height: 31px;
      }

      .nav-inner {
        height: 74px;
        min-height: 74px;
      }

      .hero {
        overflow: visible;
      }

      .hero-grid {
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
      }

      .hero-copy {
        min-height: 0;
      }

      .hero-image {
        height: 390px;
        min-height: 0;
        flex: none;
        overflow: hidden;
      }

      .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .benefit-track {
        height: 44px;
        min-height: 44px;
      }
    }

    @media (max-width: 560px) {
      .hero-image {
        height: 320px;
        min-height: 0;
      }
    }

/* Mobile hero order:
       nav -> title -> image -> buttons within the first phone viewport.
       Supporting copy follows below the buttons. */
    @media (max-width: 820px) {
      .hero-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
      }

      .hero-copy {
        display: contents;
      }

      .hero h1 {
        order: 1;
        margin: 0;
        padding: 20px 18px 16px;
        font-size: clamp(34px, 9vw, 43px);
        line-height: 1.02;
      }

      .hero-image {
        order: 2;
        height: clamp(220px, 34dvh, 320px);
        min-height: 0;
        width: 100%;
        overflow: hidden;
      }

      .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .hero-actions {
        order: 3;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 18px 18px;
      }

      .hero-actions .btn {
        width: 100%;
        min-height: 46px;
      }

      .hero-subtitle {
        order: 4;
        margin: 0;
        padding: 8px 18px 12px;
        font-size: 16px;
      }

      .hero-bullets {
        order: 5;
        margin: 0;
        padding: 0 18px 18px;
      }

      .hero-trust {
        order: 6;
        margin: 0;
        padding: 0 18px 22px;
      }
    }

    @media (max-width: 560px) {
      .hero h1 {
        font-size: clamp(32px, 9.2vw, 38px);
        padding-top: 16px;
        padding-bottom: 14px;
      }

      .hero-image {
        height: clamp(210px, 32dvh, 285px);
      }

      .hero-actions {
        gap: 8px;
        padding-top: 12px;
        padding-bottom: 14px;
      }

      .hero-actions .btn {
        min-height: 44px;
      }
    }

    @media (max-width: 380px), (max-height: 700px) and (max-width: 820px) {
      .hero h1 {
        font-size: 31px;
        padding-top: 12px;
        padding-bottom: 10px;
      }

      .hero-image {
        height: 210px;
      }

      .hero-actions {
        gap: 7px;
        padding-top: 10px;
        padding-bottom: 12px;
      }

      .hero-actions .btn {
        min-height: 42px;
        padding-top: 9px;
        padding-bottom: 9px;
      }
    }

/* Desktop hero geometry:
       - fills viewport width up to 1920px
       - image reaches the right edge on normal desktop screens
       - entire hero stops growing beyond 1920px
       - left copy remains aligned with the 1260px site container */
    @media (min-width: 1101px) {
      .hero-grid {
        width: min(1920px, 100%);
        margin-inline: auto;
        grid-template-columns: 48% 52%;
      }

      .hero-copy {
        padding-left: max(
          24px,
          calc((min(100vw, 1920px) - var(--container)) / 2)
        );
      }
    }

/* =========================================================
       FINAL HERO SYSTEM
       Desktop: full-width photo background, text overlaid and
       aligned exactly with the same 1260px container as the logo.
       Hero + utility + nav + benefit strip = 100dvh.
       Image/background stops growing after 1920px.
       Mobile: title -> image -> buttons first, supporting copy below.
       ========================================================= */

    /* DESKTOP */
    @media (min-width: 1101px) {
      .utility-inner {
        height: 34px;
        min-height: 0;
      }

      .nav-inner {
        height: 98px;
        min-height: 0;
      }

      .hero {
        position: relative;
        overflow: hidden;
        background: #2b241e;
      }

      .hero-grid {
        position: relative;
        width: min(1920px, 100%);
        height: calc(100dvh - 34px - 98px - 44px);
        min-height: 0;
        margin-inline: auto;
        display: block;
        overflow: hidden;
      }

      .hero-image {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        background: #2b241e;
      }

      .hero-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
      }

      .hero-grid::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background:
          linear-gradient(
            90deg,
            rgba(28, 22, 17, .80) 0%,
            rgba(28, 22, 17, .68) 29%,
            rgba(28, 22, 17, .38) 48%,
            rgba(28, 22, 17, .08) 68%,
            rgba(28, 22, 17, 0) 82%
          );
      }

      .hero-copy {
        position: relative;
        z-index: 2;
        width: min(var(--container), calc(100% - 48px));
        height: 100%;
        min-width: 0;
        min-height: 0;
        margin-inline: auto;
        padding:
          clamp(18px, 4.3vh, 48px)
          0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        color: #fff;
      }

      .hero h1 {
        max-width: 700px;
        margin-bottom: 13px;
        color: #fff;
        font-size: clamp(44px, 4.05vw, 64px);
        line-height: 1.03;
        letter-spacing: -.05em;
        text-shadow: 0 2px 18px rgba(0,0,0,.18);
      }

      .hero-subtitle {
        margin-bottom: clamp(14px, 2.8vh, 28px);
        color: #f1b18e;
        font-size: 18px;
        font-weight: 800;
      }

      .hero-bullets {
        max-width: 650px;
        gap: clamp(7px, 1.5vh, 13px);
        margin-bottom: clamp(14px, 2.7vh, 30px);
        color: #fff;
      }

      .hero-bullets i {
        color: #d6dfc8;
      }

      .hero-trust {
        width: min(590px, 100%);
        margin-bottom: clamp(14px, 2.7vh, 30px);
      }

      .hero-trust-item {
        color: #fff;
      }

      .hero-trust-item i {
        color: rgba(255,255,255,.88);
      }

      .hero-trust-item .dot {
        background: #aebf97;
      }

      .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
      }

      .hero-actions .btn-outline {
        color: #fff;
        border-color: rgba(255,255,255,.84);
        background: rgba(20,16,13,.16);
      }

      .hero-actions .btn-outline:hover {
        color: var(--ink);
        background: #fff;
      }

      .benefit-track {
        height: 44px;
        min-height: 0;
      }
    }

    /* SHORT DESKTOP/LAPTOP: keep entire top stack inside viewport */
    @media (min-width: 1101px) and (max-height: 780px) {
      .hero h1 {
        font-size: clamp(40px, 3.65vw, 56px);
        margin-bottom: 9px;
      }

      .hero-subtitle {
        margin-bottom: 13px;
      }

      .hero-bullets {
        gap: 7px;
        margin-bottom: 13px;
      }

      .hero-trust {
        margin-bottom: 13px;
      }

      .hero-trust-item {
        gap: 4px;
      }
    }

    @media (min-width: 1101px) and (max-height: 680px) {
      .hero-copy {
        padding-top: 12px;
        padding-bottom: 12px;
      }

      .hero h1 {
        font-size: clamp(36px, 3.15vw, 50px);
      }

      .hero-subtitle {
        margin-bottom: 9px;
        font-size: 16px;
      }

      .hero-bullets {
        gap: 5px;
        margin-bottom: 9px;
        font-size: 14px;
      }

      .hero-trust {
        margin-bottom: 9px;
      }

      .hero-trust-item i {
        font-size: 20px;
      }

      .hero-actions .btn {
        min-height: 42px;
        padding-top: 9px;
        padding-bottom: 9px;
      }
    }

    /* TABLET LANDSCAPE */
    @media (min-width: 821px) and (max-width: 1100px) {
      .utility-inner {
        height: 34px;
        min-height: 0;
      }

      .nav-inner {
        height: 82px;
        min-height: 0;
      }

      .hero {
        position: relative;
        overflow: hidden;
        background: #2b241e;
      }

      .hero-grid {
        position: relative;
        width: 100%;
        height: calc(100dvh - 34px - 82px - 44px);
        min-height: 0;
        display: block;
        overflow: hidden;
      }

      .hero-image {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
      }

      .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
      }

      .hero-grid::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(
          90deg,
          rgba(28,22,17,.82) 0%,
          rgba(28,22,17,.62) 46%,
          rgba(28,22,17,.18) 76%,
          rgba(28,22,17,0) 100%
        );
      }

      .hero-copy {
        position: relative;
        z-index: 2;
        width: min(var(--container), calc(100% - 36px));
        height: 100%;
        min-height: 0;
        margin-inline: auto;
        padding: 22px 0;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
      }

      .hero h1 {
        max-width: 560px;
        color: #fff;
      }

      .hero-subtitle,
      .hero-bullets,
      .hero-trust,
      .hero-trust-item {
        color: #fff;
      }

      .hero-bullets i,
      .hero-trust-item i {
        color: rgba(255,255,255,.86);
      }

      .hero-actions .btn-outline {
        color: #fff;
        border-color: rgba(255,255,255,.84);
      }

      .benefit-track {
        height: 44px;
        min-height: 0;
      }
    }

    /* MOBILE
       Keep the previously requested order:
       title -> image block -> buttons in the first viewport,
       then supporting copy/trust content below. */
    @media (max-width: 820px) {
      .utility-inner {
        height: 31px;
        min-height: 31px;
      }

      .nav-inner {
        height: 74px;
        min-height: 74px;
      }

      .hero {
        overflow: visible;
        background: #f7f0e6;
      }

      .hero-grid {
        width: 100%;
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: visible;
      }

      .hero-grid::after {
        content: none;
      }

      .hero-copy {
        display: contents;
      }

      .hero h1 {
        order: 1;
        width: min(100% - 36px, var(--container));
        margin: 0 auto;
        padding: 16px 0 14px;
        color: var(--ink);
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.02;
        text-shadow: none;
      }

      .hero-image {
        position: relative;
        inset: auto;
        order: 2;
        z-index: auto;
        width: 100%;
        height: clamp(210px, 32dvh, 300px);
        min-height: 0;
        overflow: hidden;
      }

      .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
      }

      .hero-actions {
        order: 3;
        width: min(100% - 36px, var(--container));
        margin-inline: auto;
        padding: 12px 0 14px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .hero-actions .btn {
        width: 100%;
        min-height: 44px;
      }

      .hero-subtitle {
        order: 4;
        width: min(100% - 36px, var(--container));
        margin: 0 auto;
        padding: 4px 0 12px;
        color: var(--clay);
      }

      .hero-bullets {
        order: 5;
        width: min(100% - 36px, var(--container));
        margin: 0 auto;
        padding: 0 0 18px;
      }

      .hero-trust {
        order: 6;
        width: min(100% - 36px, var(--container));
        max-width: none;
        margin: 0 auto;
        padding: 0 0 22px;
      }

      .benefit-track {
        height: 44px;
        min-height: 44px;
      }
    }

    @media (max-width: 380px), (max-height: 700px) and (max-width: 820px) {
      .hero h1 {
        font-size: 30px;
        padding-top: 10px;
        padding-bottom: 9px;
      }

      .hero-image {
        height: 190px;
      }

      .hero-actions {
        padding-top: 9px;
        padding-bottom: 11px;
        gap: 6px;
      }

      .hero-actions .btn {
        min-height: 40px;
        padding-top: 8px;
        padding-bottom: 8px;
      }
    }

/* MOBILE ONLY — requested edits */
    @media (max-width: 820px) {
      /* Mobile-specific hero image */
      .hero-image picture {
        display: block;
        width: 100%;
        height: 100%;
      }

      .hero-image picture img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      /* Hide hero trust/icon block on mobile */
      .hero-trust {
        display: none !important;
      }

      /* Hero bullets: wrapped lines align under first letter, not under checkmark */
      .hero-bullets li {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        column-gap: 10px;
        align-items: start;
      }

      .hero-bullets li i {
        width: 22px;
        margin-right: 0;
        padding-top: 3px;
      }

      .hero-bullets li span {
        min-width: 0;
      }

      /* Why clients choose: carousel on mobile only */
      .review-mobile-carousel {
        position: relative;
      }

      .review-mobile-carousel .carousel-viewport {
        overflow: hidden;
      }

      .review-mobile-carousel .review-track {
        display: flex;
        gap: 18px;
        transition: transform .45s ease;
        will-change: transform;
      }

      .review-mobile-carousel .review-card {
        flex: 0 0 calc((100% - 18px) / 2);
        min-width: 0;
      }

      .review-mobile-carousel .carousel-btn {
        display: grid;
      }
    }

    @media (max-width: 560px) {
      .review-mobile-carousel .review-card {
        flex-basis: 82%;
      }
    }

    @media (min-width: 821px) {
      /* Preserve original desktop review grid exactly */
      .review-mobile-carousel .carousel-viewport {
        overflow: visible;
      }

      .review-mobile-carousel .review-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 38px;
        transform: none !important;
      }

      .review-mobile-carousel .review-card {
        min-width: 0;
      }

      .review-mobile-carousel .carousel-btn {
        display: none;
      }
    }

@media (max-width: 820px) {
      /* HERO ORDER — mobile only */
      .hero h1 { order: 1; text-align: center;}
      .hero-image { order: 2; }

      .hero-subtitle {
        order: 3;
        margin-top: 15px;
        text-align: center;
      }

      .hero-bullets {
        order: 4;
      }

      .hero-actions {
        order: 5;
      }

      .hero-trust {
        display: none !important;
      }

      /* Why clients choose: heading/rating first, carousel, then button */
      .review-heading {
        display: contents;
      }

      .review-heading h2 {
        order: 1;
        margin-bottom: 14px;
      }

      .review-heading > div {
        order: 2;
        margin-bottom: 18px;
      }

      .review-mobile-carousel {
        order: 3;
      }

      .review-heading .small-outline {
        order: 4;
        width: 100%;
        margin-top: 18px;
      }

      .review-overview .container {
        display: flex;
        flex-direction: column;
      }
    }

/* Desktop-only forced H1 line break */
    .desktop-h1-break {
      display: inline;
    }

    @media (max-width: 820px) {
      /* Keep H1 left-aligned and allow normal wrapping on mobile */
      .desktop-h1-break {
        display: none;
      }

      /* Center main section titles/subtitles on mobile only */
      .section-title,
      .section-kicker,
      .review-heading h2,
      .review-heading > div,
      .problem-copy h2,
      .problem-copy > p,
      .expert-copy h2,
      .expert-copy > p,
      .process .section-title,
      .carousel-head .section-title,
      .blog-heading h2,
      .blog-heading p,
      .final-message h2,
      .final-message p {
        text-align: center;
      }

      /* Review score/rating block */
      .rating-large,
      .rating-caption {
        text-align: center;
      }

      .review-heading > div {
        width: 100%;
      }
    }

.mobile-subtitle-break {
      display: none;
    }

    @media (max-width: 820px) {
      .mobile-subtitle-break {
        display: block;
      }
    }

.desktop-only-break {
      display: inline;
    }

    @media (max-width: 820px) {
      .desktop-only-break {
        display: none;
      }
    }

:root {
      --clay-soft: #ead7c8;
      --clay-panel: #bd6035;
      --umber: #2b211b;
      --umber-soft: #3a2b23;
      --cream-text: #fff8ee;
    }

    .problem-band { padding: 54px 0; background: var(--clay-soft); }
    .problem-grid {
      grid-template-columns: 1fr 1.12fr 1fr;
      gap: 0;
      overflow: hidden;
      border-radius: 12px;
      box-shadow: 0 18px 42px rgba(64, 39, 25, .16);
    }
    .problem-image { height: 285px; border-radius: 0; }
    .problem-copy {
      min-height: 285px;
      padding: 32px 34px;
      color: var(--cream-text);
      background: var(--clay-panel);
    }
    .problem-copy h2 { max-width: 430px; margin-bottom: 15px; font-size: 32px; }
    .problem-copy p { margin-bottom: 20px; color: rgba(255,248,238,.9); }
    .problem-copy .btn-whatsapp {
      border-color: rgba(255,255,255,.2);
      box-shadow: 0 8px 22px rgba(38,31,25,.2);
    }

    .stats { border: 0; background: #f0e3d6; }
    .stat i { color: var(--clay-dark); }

    .expertise { color: var(--cream-text); background: var(--umber); }
    .expert-image {
      height: 330px;
      border: 1px solid rgba(255,255,255,.13);
      box-shadow: 0 18px 38px rgba(0,0,0,.25);
    }
    .expert-copy > p { color: rgba(255,248,238,.75); }
    .trust-card {
      border-color: rgba(255,255,255,.16);
      background: rgba(255,255,255,.075);
      box-shadow: none;
    }
    .trust-card i { color: #e38a57; }
    .trust-card p { color: rgba(255,248,238,.7); }

    .process { padding: 56px 0; border: 0; background: var(--paper); }
    .process > .container {
      padding: 42px 44px 38px;
      border-radius: 14px;
      color: var(--cream-text);
      background: var(--clay-panel);
      box-shadow: 0 16px 38px rgba(93,49,28,.15);
    }
    .process .section-title { margin-bottom: 8px; }
    .process-intro {
      max-width: 650px;
      margin: 0 auto 27px;
      color: rgba(255,248,238,.86);
      text-align: center;
    }
    .step-card {
      min-height: 175px;
      color: var(--ink);
      border-color: rgba(255,255,255,.35);
      background: rgba(255,252,246,.96);
      box-shadow: 0 8px 22px rgba(77,38,20,.12);
    }
    .step-number { background: var(--umber); }
    .step-arrow { color: rgba(255,248,238,.8); }
    .process-action { margin-top: 27px; text-align: center; }
    .btn-cream {
      color: var(--umber);
      border-color: rgba(255,255,255,.6);
      background: var(--cream-text);
      box-shadow: 0 8px 22px rgba(73,35,18,.14);
    }
    .btn-cream:hover { color: var(--umber); background: #fff; }

    .project-cta { color: var(--cream-text); background: var(--umber-soft); }
    .project-cta-inner {
      min-height: 142px;
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 35px;
      padding-block: 26px;
    }
    .project-cta h2 { margin-bottom: 5px; font-size: 27px; letter-spacing: -.025em; }
    .project-cta p { max-width: 720px; margin: 0; color: rgba(255,248,238,.74); }
    .project-cta-actions { display: flex; gap: 12px; }

    .testimonials { background: #eaded1; }
    .faq { background: var(--paper); }
    .blog { background: var(--white); }

    .final-cta {
      border: 0;
      color: var(--cream-text);
      background: var(--clay-panel);
    }
    .final-grid { min-height: 190px; }
    .final-message p { color: rgba(255,248,238,.82); }
    .contact-tile {
      color: var(--ink);
      border-color: rgba(255,255,255,.3);
      background: var(--cream-text);
      box-shadow: 0 9px 24px rgba(77,38,20,.16);
    }

    @media (max-width: 820px) {
      .problem-band { padding: 34px 0; }
      .problem-grid { grid-template-columns: 1fr; }
      .problem-image { height: 230px; }
      .problem-copy { min-height: 310px; padding: 32px 22px; }
      .expertise-grid { gap: 30px; }
      .expert-image { height: 340px; }
      .process { padding: 34px 0; }
      .process > .container { padding: 34px 20px 30px; }
      .process-intro { margin-bottom: 22px; }
      .step-card { min-height: 0; }
      .project-cta-inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 20px;
        padding-block: 34px;
        text-align: center;
      }
      .project-cta p { margin-inline: auto; }
      .project-cta-actions { justify-content: center; flex-wrap: wrap; }
    }

    @media (max-width: 560px) {
      .problem-grid { border-radius: 9px; }
      .problem-image:last-child { display: none; }
      .problem-copy h2 { font-size: 27px; }
      .project-cta-actions { display: grid; }
      .project-cta-actions .btn { width: 100%; }
      .final-grid { padding-block: 34px; }
    }

/* =========================================================
   WordPress / MBR page templates
   ========================================================= */
.admin-bar .site-header { }
img { max-width: 100%; }
.screen-reader-text { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.mbr-placeholder { display:grid; place-items:center; width:100%; height:100%; min-height:inherit; color:#7e756c; background:linear-gradient(135deg,#eee3d5,#e6d7c6); font-size:12px; font-weight:700; text-align:center; padding:16px; }
.service-card-link { display:block; height:100%; }
.service-card-link:hover .service-content h3 { color:var(--clay-dark); }
.service-card-link:focus-visible { outline:3px solid rgba(200,102,50,.35); outline-offset:3px; }
.service-card.cta-card .service-content { min-height:100%; }
.service-card.cta-card { background:var(--umber); color:var(--cream-text); }
.service-card.cta-card .service-content p { color:rgba(255,248,238,.78); }
.service-card.cta-card .service-icon { color:#e38a57; }

.page-hero {
  position:relative; overflow:hidden; min-height:390px; display:flex; align-items:end; color:#fff; background:var(--umber);
}
.page-hero-media { position:absolute; inset:0; }
.page-hero-media img { width:100%; height:100%; object-fit:cover; display:block; }
.page-hero::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,rgba(28,22,17,.86),rgba(28,22,17,.58) 52%,rgba(28,22,17,.22));
}
.page-hero-inner { position:relative; z-index:1; padding:74px 0 54px; }
.page-hero h1 { max-width:860px; margin:0 0 14px; font-size:clamp(38px,5vw,64px); line-height:1.02; letter-spacing:-.045em; }
.page-hero p { max-width:760px; margin:0; font-size:18px; color:rgba(255,255,255,.88); }
.page-hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
.page-hero .btn-outline { border-color:rgba(255,255,255,.8); color:#fff; }

.content-shell { background:var(--white); }
.content-grid { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:60px; align-items:start; }
.entry-content { min-width:0; font-size:17px; line-height:1.68; }
.entry-content > *:first-child { margin-top:0; }
.entry-content h2 { margin:40px 0 13px; font-size:31px; line-height:1.12; letter-spacing:-.03em; }
.entry-content h3 { margin:28px 0 9px; font-size:22px; line-height:1.2; }
.entry-content p { margin-bottom:18px; }
.entry-content ul, .entry-content ol { margin:0 0 22px 1.25em; padding:0; }
.entry-content li { margin-bottom:8px; }
.entry-content a { color:var(--clay-dark); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.entry-content blockquote { margin:28px 0; padding:20px 24px; border-left:4px solid var(--clay); background:var(--sand); }
.entry-content .wp-block-image img { border-radius:8px; }

.service-sidebar { position:sticky; top:28px; display:grid; gap:18px; }
.sidebar-card { padding:22px; border:1px solid var(--line); border-radius:10px; background:var(--paper); }
.sidebar-card h2, .sidebar-card h3 { margin-bottom:10px; font-size:20px; line-height:1.15; }
.sidebar-card p { margin-bottom:14px; color:var(--muted); font-size:14px; }
.sidebar-links { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.sidebar-links a { font-weight:700; font-size:14px; }
.sidebar-links a:hover { color:var(--clay-dark); }

.related-section { background:var(--sand); }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.related-card { overflow:hidden; border:1px solid var(--line); border-radius:9px; background:#fff; }
.related-card .image-frame { height:155px; }
.related-card-copy { padding:17px; }
.related-card small { display:block; margin-bottom:7px; color:var(--clay-dark); font-weight:800; text-transform:uppercase; font-size:10px; }
.related-card h3 { margin:0; font-size:17px; line-height:1.25; }

.archive-hero { padding:56px 0 35px; background:var(--sand); }
.archive-hero h1 { margin-bottom:8px; font-size:44px; letter-spacing:-.04em; }
.archive-hero p { max-width:760px; color:var(--muted); }
.archive-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.archive-card { overflow:hidden; border:1px solid var(--line); border-radius:9px; background:#fff; box-shadow:var(--shadow); }
.archive-card .image-frame { height:210px; }
.archive-card-copy { padding:19px; }
.archive-card-copy h2 { margin-bottom:8px; font-size:21px; }
.archive-card-copy p { margin:0 0 13px; color:var(--muted); font-size:14px; }
.pagination { margin-top:34px; }
.pagination .nav-links { display:flex; flex-wrap:wrap; gap:8px; }
.pagination a, .pagination span { padding:9px 13px; border:1px solid var(--line); border-radius:5px; background:#fff; }

.services-hub-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.services-hub-card { overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:var(--shadow); }
.services-hub-card .image-frame { height:190px; }
.services-hub-card-copy { padding:20px; }
.services-hub-card h2 { margin-bottom:7px; font-size:21px; }
.services-hub-card p { color:var(--muted); font-size:14px; }
.services-hub-card a { color:var(--clay-dark); font-weight:800; }

.project-meta { display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:16px; color:rgba(255,255,255,.82); font-size:13px; }
.project-meta span { display:inline-flex; align-items:center; gap:7px; }
.project-gallery { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:28px; }

.notice-card { padding:18px 20px; border:1px solid var(--line); border-radius:8px; background:var(--sand); }
.mbr-post-meta { margin-bottom:22px; color:var(--muted); font-size:13px; }

@media (max-width: 980px) {
  .content-grid { grid-template-columns:1fr; gap:34px; }
  .service-sidebar { position:static; grid-template-columns:repeat(2,1fr); }
  .related-grid, .archive-grid, .services-hub-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 620px) {
  .page-hero { min-height:330px; }
  .page-hero-inner { padding:58px 0 38px; }
  .page-hero h1 { font-size:38px; }
  .page-hero p { font-size:16px; }
  .content-grid { gap:26px; }
  .entry-content { font-size:16px; }
  .entry-content h2 { font-size:27px; }
  .service-sidebar, .related-grid, .archive-grid, .services-hub-grid, .project-gallery { grid-template-columns:1fr; }
  .archive-hero h1 { font-size:36px; }
}

/* =========================================================
   MBR 1.1 conversion + contact refinements
   ========================================================= */
.cta-phone-line {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:5px 9px;
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
}
.cta-phone-line a {
  color:var(--ink);
  font-size:15px;
  font-weight:800;
  text-decoration:none;
}
.cta-phone-line--dark { color:rgba(255,255,255,.76); }
.cta-phone-line--dark a { color:#fff; }
.hero .cta-phone-line { margin-top:11px; }
.problem-copy .cta-phone-line,
.process-action .cta-phone-line { justify-content:center; }
.project-cta-actions-wrap .cta-phone-line { justify-content:flex-end; }
.service-sidebar .cta-phone-line { justify-content:center; margin-top:12px; text-align:center; }
.page-hero-inner .cta-phone-line { margin-top:12px; }

.service-inline-image {
  margin:30px 0 34px;
}
.service-inline-image img {
  display:block;
  width:100%;
  max-height:500px;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(48,38,27,.08);
}

.contact-page-section { background:var(--paper); }
.contact-intro { max-width:820px; margin:0 auto 32px; text-align:center; }
.contact-choice-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  max-width:980px;
  margin:0 auto 34px;
}
.contact-choice-card {
  min-height:230px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:30px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  box-shadow:var(--shadow);
  text-align:center;
}
.contact-choice-card:hover { transform:translateY(-2px); }
.contact-choice-card i { margin-bottom:6px; color:var(--clay); font-size:46px; }
.contact-choice-card.whatsapp i { color:var(--green); }
.contact-choice-card span { font-weight:800; }
.contact-choice-card strong { font-family:"Manrope",sans-serif; font-size:28px; line-height:1.1; }
.contact-choice-card small { color:var(--muted); }
.contact-process-panel {
  max-width:1080px;
  margin:0 auto;
  padding:34px;
  border-radius:14px;
  color:var(--cream-text);
  background:var(--umber);
}
.contact-process-panel > h2 { margin-bottom:24px; text-align:center; font-size:29px; }
.contact-process-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.contact-process-grid > div { padding:22px; border:1px solid rgba(255,255,255,.14); border-radius:9px; background:rgba(255,255,255,.065); }
.contact-process-grid b { width:34px; height:34px; display:grid; place-items:center; margin-bottom:12px; border-radius:50%; color:var(--umber); background:var(--cream-text); }
.contact-process-grid h3 { margin-bottom:7px; font-size:17px; }
.contact-process-grid p { margin:0; color:rgba(255,248,238,.76); font-size:14px; }
.contact-policy { margin:24px 0 0; padding-top:20px; border-top:1px solid rgba(255,255,255,.16); color:rgba(255,248,238,.86); text-align:center; }

@media (max-width: 820px) {
  /* Eight homepage problem cards on mobile: 2 x 4. General catch-all is intentionally hidden. */
  .service-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:12px; }
  .service-card.service-key-general { display:none !important; }
  .service-image { height:118px; }
  .service-content {
    min-height:126px;
    grid-template-columns:30px minmax(0,1fr);
    gap:8px;
    padding:11px 10px;
    align-items:start;
  }
  .service-icon { padding-top:2px; font-size:24px; }
  .service-content h3 { font-size:14px; line-height:1.16; }
  .service-content p { font-size:11px; line-height:1.25; }

  .hero .cta-phone-line {
    order:6;
    width:min(100% - 36px,var(--container));
    margin:0 auto;
    padding:0 0 18px;
    justify-content:center;
    color:var(--muted);
  }
  .hero .cta-phone-line a { color:var(--ink); }
  .project-cta-actions-wrap .cta-phone-line { justify-content:center; }
  .contact-choice-grid { grid-template-columns:1fr; }
  .contact-process-grid { grid-template-columns:1fr; }
}

@media (max-width: 430px) {
  .service-image { height:105px; }
  .service-content { min-height:132px; grid-template-columns:1fr; gap:5px; }
  .service-icon { justify-content:start; font-size:22px; }
  .contact-choice-card strong { font-size:24px; }
  .contact-process-panel { padding:26px 20px; }
}


/* MBR v1.2 — functional Services dropdown without changing the existing nav geometry */
@media (min-width: 821px) {
  .desktop-nav > .nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .nav-dropdown-topline {
    height: 100%;
    display: flex;
    align-items: center;
  }
  .nav-dropdown-topline .nav-services-link {
    position: relative;
    padding: 38px 4px 32px 0;
  }
  .nav-dropdown.active .nav-services-link { color: var(--clay); }
  .nav-dropdown.active .nav-services-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    height: 2px;
    background: var(--clay);
  }
  .nav-dropdown-toggle {
    width: 24px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
  }
  .nav-dropdown-toggle i { transition: transform .2s ease; }
  .nav-dropdown:hover .nav-dropdown-toggle i,
  .nav-dropdown:focus-within .nav-dropdown-toggle i,
  .nav-dropdown.open .nav-dropdown-toggle i { transform: rotate(180deg); }
  .nav-submenu {
    position: absolute;
    z-index: 100;
    top: calc(100% - 18px);
    left: 50%;
    width: 310px;
    display: grid;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    box-shadow: 0 16px 34px rgba(40,31,24,.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -5px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown:focus-within .nav-submenu,
  .nav-dropdown.open .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .desktop-nav .nav-submenu a {
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.25;
  }
  .desktop-nav .nav-submenu a::after { display: none !important; }
  .desktop-nav .nav-submenu a:hover,
  .desktop-nav .nav-submenu a:focus {
    color: var(--clay-dark);
    background: var(--sand);
  }
}

@media (max-width: 820px) {
  .desktop-nav > .nav-dropdown { display: block; }
  .nav-dropdown-topline {
    display: grid;
    grid-template-columns: 1fr 44px;
    align-items: stretch;
    border-bottom: 1px solid #eee8df;
  }
  .desktop-nav .nav-dropdown-topline .nav-services-link {
    padding: 13px 0;
    border-bottom: 0;
  }
  .nav-dropdown-toggle {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font-size: 11px;
  }
  .nav-dropdown-toggle i { transition: transform .2s ease; }
  .nav-dropdown.open .nav-dropdown-toggle i { transform: rotate(180deg); }
  .nav-submenu {
    display: none;
    padding: 3px 0 8px 14px;
    background: #faf6ef;
  }
  .nav-dropdown.open .nav-submenu { display: grid; }
  .desktop-nav .nav-submenu a {
    padding: 10px 12px;
    border-bottom: 1px solid #eee8df;
    font-size: 13px;
    font-weight: 600;
  }
  .desktop-nav .nav-submenu a:last-child { border-bottom: 0; }
}

/* MBR v1.3 — hero subtitle separator */
.desktop-subtitle-space { display:inline; }
@media (max-width: 820px) { .desktop-subtitle-space { display:none; } }


/* v1.4 mobile carousel interaction */
@media (max-width: 820px) {
  .carousel-viewport {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
  }
}
