/* Shared Services and Our Branches navigation refinements */
#our-branches {
  scroll-margin-top: calc(var(--contact-banner-height, 42px) + 100px);
}

@media(min-width:1051px) {
  .nav { grid-template-columns: minmax(195px, 1fr) auto minmax(260px, 1fr); gap: 10px; }
  .nav>nav { gap: 5px; font-size: 12px; white-space: nowrap; }
  .nav>nav>a, .nav>nav>.nav-services>.services-main-link { padding-inline: 6px; }
  .services-main-link { white-space: nowrap; }
  .services-menu-toggle { width: 20px; }
  .nav-actions { gap: 6px; }
  .nav-actions .contact-action { padding: 8px 10px; font-size: 9px; }
  .nav-branches .services-submenu {
    width: min(690px, calc(100vw - 32px));
    max-height: min(430px, calc(100vh - 150px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-y: auto; overscroll-behavior: contain;
  }
}

@media(max-width:1050px) {
  .nav-branches.is-open .services-submenu { max-height: min(430px, 52vh); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-menu-open .nav-actions,
  .mobile-menu-open .nav-shell.is-scrolled .nav-actions,
  .mobile-menu-open .nav-shell.always-show-actions .nav-actions {
    opacity: 0; visibility: hidden; pointer-events: none; transform: translate(12px, -50%);
  }
}

.service-detail-hero .hero-actions { margin-top: 28px; }
.area-quotation-btn { background: var(--ink); color: #fff; }
.area-quotation-btn:hover,
.area-quotation-btn:focus-visible {
  background: linear-gradient(135deg, #ff6b76, #c91f2b 58%, #8f1018);
  color: #fff;
  box-shadow: 0 14px 32px rgba(143, 16, 24, .38);
  transform: translateY(-3px) scale(1.02);
}

/* Mobile hero matched to the supplied reference. */
@media (max-width: 600px) {
  .home-hero {
    min-height: 960px;
    background-size: auto 310px;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #04142d;
  }
  .home-hero .hero-shade {
    height: 310px;
    background: linear-gradient(90deg, rgba(3,12,25,.72) 0%, rgba(3,12,25,.18) 62%, rgba(3,12,25,.32) 100%);
  }
  .home-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 960px;
    padding: 18px 14px 24px;
  }
  .home-hero .hero-copy {
    display: flex;
    flex-direction: column;
    width: 59%;
    min-height: 265px;
    position: relative;
    z-index: 2;
  }
  .home-hero .hero-copy .eyebrow {
    color: #ffc400;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 2px;
    margin: 0 0 8px;
  }
  .home-hero .hero-copy h1 { font-size: 30px; line-height: 1.02; margin: 0; letter-spacing: -1px; }
  .home-hero .hero-copy h1 em { color: #ffc400; font-size: .78em; line-height: 1; }
  .home-hero .hero-copy .lead,
  .home-hero .trust-row { display: none !important; }

  .home-hero .hero-actions {
    position: absolute;
    z-index: 4;
    top: 148px;
    left: 50%;
    transform: translateX(-50%);
    width: min(88%, 344px);
    display: grid;
    gap: 8px;
  }
  .home-hero .hero-actions .contact-action {
    width: 100%;
    height: 78px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.38);
    font-size: 0;
    line-height: 1.02;
    overflow: hidden;
    position: relative;
  }
  .home-hero .hero-actions .contact-action i {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: none !important;
    display: block;
    width: 38px;
    margin: 0 !important;
    font-size: 31px;
    text-align: center;
    transform: translateY(-50%) !important;
    z-index: 2;
  }
  .home-hero .hero-actions .action-call {
    background-color: #079923;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 344 78'%3E%3Ctext x='193' y='35' text-anchor='middle' fill='white' font-family='Arial,sans-serif' font-size='27' font-weight='800'%3E79810 11467%3C/text%3E%3Ctext x='193' y='61' text-anchor='middle' fill='white' font-family='Arial,sans-serif' font-size='20' font-weight='700'%3ECall Now%3C/text%3E%3C/svg%3E"),
      linear-gradient(#4fe14a,#079923);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    color: transparent;
  }
  .home-hero .hero-actions .action-call::after { content: none !important; display: none !important; }
  .home-hero .hero-actions .action-whatsapp {
    height: 54px;
    width: 72%;
    justify-self: center;
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 248 54'%3E%3Ctext x='139' y='25' text-anchor='middle' fill='%23101b35' font-family='Arial,sans-serif' font-size='18' font-weight='800'%3E96528 33538%3C/text%3E%3Ctext x='139' y='44' text-anchor='middle' fill='%23c8131e' font-family='Arial,sans-serif' font-size='13' font-weight='700'%3EClick to Call%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    color: #101b35;
    border: 3px solid #d71722;
  }
  .home-hero .hero-actions .action-whatsapp i { font-size: 25px; width: 32px; }
  .home-hero .hero-actions .action-whatsapp::after { content: none !important; display: none !important; }

  .home-hero .hero-enquiry-form {
    order: 2;
    width: 92%;
    margin: 28px auto 0;
    padding: 22px 20px 20px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(0,0,0,.28);
    position: relative;
    z-index: 3;
  }
  .home-hero .hero-enquiry-form h2 { color: #c91d2c; font-size: 29px; margin: 0 0 2px; }
  .home-hero .hero-enquiry-form > p { font-size: 15px; margin: 0 0 14px; }
  .home-hero .hero-enquiry-form label { font-size: 11px; margin-bottom: 10px; }
  .home-hero .hero-enquiry-form input,
  .home-hero .hero-enquiry-form select { min-height: 46px; padding: 10px 12px; font-size: 14px; }
  .home-hero .hero-enquiry-form .btn.full {
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
    border-radius: 999px;
    font-size: 17px;
    text-transform: uppercase;
    background: linear-gradient(90deg,#e51b23,#c8131e);
  }
}

/* Final phone homepage composition, matched to the approved mobile reference. */
.mobile-hero-services { display: none; }

@media (max-width: 760px) {
  body > main > .topbar { display: none; }

  .contact-banner {
    position: relative;
    top: auto;
  }
  .contact-banner-inner {
    width: calc(100% - 30px);
    min-height: 112px;
    padding: 10px 0 9px;
    gap: 8px;
  }
  .payment-banner-left { gap: 12px; }
  .contact-banner-label {
    flex: 0 0 auto;
    font-size: clamp(10px, 2.8vw, 14px);
    letter-spacing: .04em;
  }
  .payment-methods { gap: 5px; }
  .payment-logo-card {
    width: clamp(29px, 8.4vw, 48px);
    height: 30px;
    flex-basis: clamp(29px, 8.4vw, 48px);
  }
  .payment-banner-actions { gap: 8px; }
  .contact-banner-links { gap: 5px; }
  .contact-banner-links a {
    font-size: clamp(8px, 2.55vw, 12px);
    font-weight: 800;
  }
  .pay-online-button {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: clamp(9px, 2.6vw, 12px);
  }

  .nav-shell {
    position: relative;
    top: auto;
    height: 92px;
  }
  .nav { width: calc(100% - 30px); }
  .brand { gap: 10px; }
  .brand-logo { width: 58px; height: 58px; flex-basis: 58px; }
  .brand b { font-size: clamp(19px, 6vw, 27px); letter-spacing: .16em; }
  .brand small { font-size: clamp(7px, 2.35vw, 11px); letter-spacing: .09em; }
  .nav > .menu {
    width: 58px;
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0;
    border: 2px solid #c91f2b;
    border-radius: 13px;
    background: #fff;
  }
  .nav > .menu span { width: 30px; height: 4px; margin: 0; border-radius: 4px; background: #0d1d2d; }

  .home-hero {
    min-height: 0;
    overflow: hidden;
    background: #03142f;
  }
  .home-hero::before {
    inset: 0 0 auto;
    height: 760px;
    background-image: url("assets/hero-moving-mobile-v2.png");
    background-size: cover;
    background-position: center 40%;
    transform: none;
    filter: brightness(.82) saturate(1.06) contrast(1.04);
  }
  .home-hero .hero-shade {
    height: 760px;
    background: linear-gradient(90deg, rgba(2,13,28,.48), rgba(2,13,28,.08) 55%, rgba(2,13,28,.28)), linear-gradient(180deg, rgba(0,0,0,.05) 55%, rgba(2,16,39,.78) 100%);
  }
  .home-hero-grid {
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 38px 0 0;
  }
  .home-hero .hero-copy {
    display: contents;
  }
  .home-hero .hero-copy .eyebrow {
    order: initial;
    width: min(57%, 310px);
    margin: 0 0 12px clamp(28px, 9vw, 58px);
    color: #ffc400;
    font-size: clamp(12px, 3.6vw, 17px);
    line-height: 1.35;
    letter-spacing: .16em;
  }
  .home-hero .hero-copy h1 {
    order: initial;
    width: min(57%, 310px);
    margin: 0 0 0 clamp(28px, 9vw, 58px);
    color: #fff;
    font-size: clamp(34px, 9.4vw, 49px);
    line-height: 1.02;
    letter-spacing: -.045em;
  }
  .home-hero .hero-copy h1 br { display: none; }
  .home-hero .hero-copy h1 em {
    display: block;
    margin-top: 6px;
    color: #ffc400;
    font-size: .72em;
    line-height: 1;
  }
  .home-hero .lead,
  .home-hero .trust-row { display: none !important; }

  .home-hero .hero-actions {
    position: relative;
    inset: auto;
    order: initial;
    width: min(74vw, 430px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    align-self: center;
    margin: 38px auto 0;
    transform: none;
  }
  .home-hero .hero-actions .contact-action {
    position: relative;
    width: 100%;
    min-height: 0;
    flex: none;
    overflow: hidden;
    border-radius: 999px;
    box-shadow: 0 5px 16px rgba(0,0,0,.38);
  }
  .home-hero .hero-actions .action-call { height: 82px; border: 4px solid #fff; }
  .home-hero .hero-actions .action-whatsapp { width: 72%; height: 54px; border: 3px solid #d71722; }

  .home-hero .hero-enquiry-form {
    order: initial;
    width: calc(100% - 36px);
    min-height: 340px;
    margin: 12px auto 0;
    padding: 25px 43% 22px 28px;
    border-radius: 25px;
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
  }
  .home-hero .hero-enquiry-form::before {
    content: "\f46d";
    display: inline-block;
    margin-right: 10px;
    color: #0d1d2d;
    font: 900 30px/1 "Font Awesome 6 Free";
    vertical-align: 2px;
  }
  .home-hero .hero-enquiry-form::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 58px;
    width: 39%;
    height: 190px;
    background: url("assets/arrangement-gallery-no-shade.png") center / cover no-repeat;
    border-radius: 12px;
  }
  .home-hero .hero-enquiry-form h2 {
    display: inline;
    color: #c91d2c;
    font-size: clamp(25px, 7vw, 38px);
  }
  .home-hero .hero-enquiry-form > p { margin: 5px 0 15px; font-size: 14px; }
  .home-hero .hero-enquiry-form label { margin-bottom: 12px; font-size: 11px; }
  .home-hero .hero-enquiry-form input { min-height: 46px; padding: 11px 13px; font-size: 14px; }
  .home-hero .hero-enquiry-form .form-row,
  .home-hero .hero-enquiry-form label:has(select) { display: none; }
  .home-hero .hero-enquiry-form .btn.full {
    min-height: 50px;
    margin-top: 6px;
    border-radius: 999px;
    font-size: 0;
  }
  .home-hero .hero-enquiry-form .btn.full::after { content: "SUBMIT ENQUIRY"; font-size: 16px; }

  .mobile-hero-services {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 20px 14px 22px;
    background: #03142f;
    color: #fff;
  }
  .mobile-hero-services a {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 5px 7px;
    border-right: 1px solid rgba(255,255,255,.55);
    font-size: clamp(7px, 2.2vw, 11px);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
  }
  .mobile-hero-services a:last-child { border-right: 0; }
  .mobile-hero-services i { font-size: clamp(17px, 5vw, 25px); }
}

@media (max-width: 430px) {
  .home-hero .hero-enquiry-form {
    width: calc(100% - 32px);
    min-height: 0;
    padding: 25px 24px 24px;
  }
  .home-hero .hero-enquiry-form::after { display: none; }
  .home-hero .hero-enquiry-form::before {
    margin-right: 7px;
    font-size: 27px;
  }
  .home-hero .hero-enquiry-form h2 {
    font-size: clamp(25px, 7.5vw, 32px);
    white-space: nowrap;
  }
  .home-hero .hero-enquiry-form > p { margin-top: 7px; }
  .home-hero .hero-enquiry-form input { width: 100%; }
  .home-hero .hero-enquiry-form .btn.full { margin-top: 10px; }

  .mobile-hero-services { padding-inline: 6px; }
  .mobile-hero-services a {
    min-height: 78px;
    flex-direction: column;
    gap: 6px;
    padding: 5px 3px;
    font-size: clamp(6.5px, 2.15vw, 9px);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .mobile-hero-services i { font-size: 21px; }
}
