/*
  MaidProvider — Tablet layout
  Scope: 701px–1200px only.
  Mobile and desktop layouts are intentionally not modified.
*/

/* ---------- Header row ---------- */
@media screen and (min-width: 701px) and (max-width: 1200px) {
  html {
    scroll-padding-top: 96px;
  }

  body {
    padding-top: 0;
    padding-bottom: 76px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: 112px;
    margin: 0;
    background: #e4f3eb;
  }

  .site-header > .nav-wrap {
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: calc(100% - 28px);
    max-width: 1240px;
    min-height: 112px;
    height: 112px;
    margin: 0 auto;
    padding: 6px 0;
    box-sizing: border-box;
    overflow: visible;
  }

  .site-header > .nav-wrap > .brand {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .site-header > .nav-wrap > .brand .brand-logo {
    display: block;
    width: clamp(190px, 31vw, 310px);
    max-width: 100%;
    height: auto;
    max-height: 96px;
    object-fit: contain;
    object-position: left center;
  }

  /* The single compact Join CTA remains inside the header row. */
  .site-header > .nav-wrap > a.join-header-cta-mobile {
    display: inline-flex;
    position: static;
    order: 2;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 148px;
    max-width: 190px;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    margin: 0;
    padding: 6px 12px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    transform: none;
  }

  .site-header > .nav-wrap > a.join-header-cta-mobile .join-header-copy {
    display: flex;
    min-width: 0;
    overflow: hidden;
    text-align: center;
  }

  .site-header > .nav-wrap > a.join-header-cta-mobile .join-header-copy strong {
    font-size: clamp(12px, 1.35vw, 15px);
    line-height: 1.1;
    white-space: nowrap;
  }

  .site-header > .nav-wrap > a.mobile-header-whatsapp {
    display: none;
  }

  /* Keep the existing orange button design; hide its literal ☰ text.
     The orange button's existing ::before draws the one visible icon. */
  .site-header > .nav-wrap > button#menu-toggle.menu-toggle {
    display: inline-flex;
    position: relative;
    order: 3;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 0;
    line-height: 0;
    color: transparent;
    text-indent: -9999px;
    z-index: 1002;
  }

  /* ---------- Navigation panel ---------- */
  .site-header > .nav-wrap > nav#main-nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    margin: 0;
    padding: 12px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 24px rgba(23, 51, 47, .16);
    z-index: 1001;
  }

  .site-header > .nav-wrap > nav#main-nav.main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-header > .nav-wrap > nav#main-nav.main-nav > a.nav-tile {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    text-align: left;
    padding: 12px 16px;
  }

  /* ---------- Floating WhatsApp / Call dock ---------- */
  .contact-dock {
    position: fixed;
    top: auto;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
  }

  .contact-dock > a {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }
}


/* ---------- Tablet page layout parity: Join Our Team ---------- */
@media screen and (min-width: 701px) and (max-width: 1200px) {
  .site-header > .nav-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    justify-content: initial !important;
    gap: 12px !important;
  }
  .site-header > .nav-wrap > .brand {
    grid-column: 1;
    min-width: 0 !important;
    width: 100% !important;
    flex: initial !important;
  }
  .site-header > .nav-wrap > .brand .brand-logo {
    width: min(100%, 250px) !important;
    max-width: 100% !important;
    max-height: 88px !important;
  }
  .site-header > .nav-wrap > a.join-header-cta-mobile {
    grid-column: 2;
    justify-self: end;
    min-width: 138px !important;
    width: auto !important;
    max-width: 180px !important;
  }
  .site-header > .nav-wrap > button#menu-toggle.menu-toggle {
    grid-column: 3;
    justify-self: end;
  }

  .join-page .join-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    margin: 14px 14px 20px !important;
    padding: 24px !important;
    text-align: left;
  }
  .join-page .join-hero > div,
  .join-page .join-hero > img {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .join-page .join-hero h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem) !important;
  }
  .join-page .join-hero-img {
    display: block;
    min-height: 0 !important;
    height: auto !important;
    max-height: 360px !important;
    object-fit: cover !important;
  }
  .join-page .join-cta-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .join-page .join-btn {
    width: 100% !important;
    min-height: 54px;
    white-space: normal;
  }
  .join-page .join-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .join-page .join-grid,
  .join-page .join-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .join-page .join-form-wrap {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Portrait tablets: preserve comfortable logo space without pushing controls out. */
@media screen and (min-width: 701px) and (max-width: 850px) {
  .site-header > .nav-wrap {
    gap: 8px;
  }

  .site-header > .nav-wrap > .brand .brand-logo {
    width: clamp(170px, 29vw, 245px);
    max-height: 88px;
  }

  .site-header > .nav-wrap > a.join-header-cta-mobile {
    min-width: 140px;
    max-width: 164px;
    padding-inline: 8px;
  }

  .site-header > .nav-wrap > button#menu-toggle.menu-toggle {
    flex-basis: 56px;
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
  }

  .contact-dock > a {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
  }
}


/* FINAL TABLET REPAIR — clean mobile-style header and stacked Join page.
   Only applies to tablet-width viewports; phone, desktop and contact dock are untouched. */
@media screen and (min-width: 701px) and (max-width: 1200px) {
  html body header.site-header {
    position: sticky !important; position: -webkit-sticky !important;
    top: 0 !important; z-index: 100500 !important;
    width: 100% !important; height: 104px !important;
    min-height: 104px !important; max-height: 104px !important;
    margin: 0 !important; padding: 0 12px !important;
    box-sizing: border-box !important; overflow: visible !important;
  }
  html body header.site-header > .nav-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 56px !important;
    grid-template-rows: 1fr !important;
    align-items: center !important; justify-content: initial !important;
    gap: clamp(8px, 1.4vw, 16px) !important;
    width: 100% !important; max-width: 1440px !important;
    height: 104px !important; min-height: 104px !important; max-height: 104px !important;
    margin: 0 auto !important; padding: 6px 4px !important;
    box-sizing: border-box !important; overflow: visible !important;
  }
  html body header.site-header > .nav-wrap > a.brand {
    grid-column: 1 !important; grid-row: 1 !important;
    display: flex !important; align-items: center !important; justify-content: flex-start !important;
    width: 100% !important; min-width: 0 !important; max-width: none !important;
    height: 100% !important; margin: 0 !important; padding: 0 !important;
  }
  html body header.site-header > .nav-wrap > a.brand > img.brand-logo {
    display: block !important; width: clamp(145px, 24vw, 270px) !important;
    max-width: 100% !important; height: auto !important; max-height: 82px !important;
    object-fit: contain !important; object-position: left center !important; margin: 0 !important;
  }
  html body header.site-header > .nav-wrap > a.join-header-cta-mobile {
    grid-column: 2 !important; grid-row: 1 !important;
    display: inline-flex !important; position: relative !important; inset: auto !important;
    visibility: visible !important; opacity: 1 !important; z-index: 100502 !important;
    width: clamp(126px, 16vw, 176px) !important;
    min-width: 0 !important; max-width: 176px !important;
    height: 56px !important; min-height: 56px !important; max-height: 56px !important;
    align-items: center !important; justify-content: center !important;
    margin: 0 !important; padding: 6px 9px !important; box-sizing: border-box !important;
    white-space: nowrap !important; overflow: hidden !important; transform: none !important;
  }
  html body header.site-header > .nav-wrap > a.join-header-cta-mobile .join-header-copy {
    display: block !important; min-width: 0 !important; overflow: hidden !important; text-align: center !important;
  }
  html body header.site-header > .nav-wrap > a.join-header-cta-mobile .join-header-copy strong {
    display: block !important; font-size: clamp(11px, 1.3vw, 15px) !important;
    line-height: 1.1 !important; white-space: nowrap !important;
  }
  html body header.site-header > .nav-wrap > a.join-header-cta-mobile .join-header-icon,
  html body header.site-header > .nav-wrap > a.join-header-cta-mobile .join-header-arrow,
  html body header.site-header > .nav-wrap > .mobile-header-whatsapp { display: none !important; }
  html body header.site-header > .nav-wrap > button#menu-toggle.menu-toggle,
  html body header.site-header > .nav-wrap > button.menu-toggle {
    grid-column: 3 !important; grid-row: 1 !important;
    display: inline-flex !important; position: relative !important; inset: auto !important;
    z-index: 100503 !important; width: 56px !important; min-width: 56px !important; max-width: 56px !important;
    height: 56px !important; min-height: 56px !important; max-height: 56px !important;
    align-items: center !important; justify-content: center !important;
    margin: 0 !important; padding: 0 !important; font-size: 0 !important; line-height: 0 !important;
    text-indent: -9999px !important; color: transparent !important; box-sizing: border-box !important;
  }
  html body header.site-header > .nav-wrap > nav.main-nav {
    display: none !important; position: absolute !important; top: 100% !important;
    left: 0 !important; right: 0 !important; width: 100% !important; max-width: none !important;
    max-height: calc(100vh - 104px) !important; overflow-x: hidden !important; overflow-y: auto !important;
    margin: 0 !important; padding: 12px !important; box-sizing: border-box !important;
    grid-template-columns: none !important; flex-direction: column !important;
    background: #fff !important; border-radius: 0 0 16px 16px !important;
    z-index: 100501 !important;
  }
  html body header.site-header > .nav-wrap > nav.main-nav.is-open {
    display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 8px !important;
  }
  html body header.site-header > .nav-wrap > nav.main-nav > a.nav-tile {
    display: flex !important; width: 100% !important; min-width: 0 !important; min-height: 50px !important;
    align-items: center !important; justify-content: flex-start !important;
    padding: 12px 16px !important; text-align: left !important; box-sizing: border-box !important;
  }

  /* Join Our Team page: stack content like the mobile reference instead of a squeezed desktop row. */
  html body .join-page .join-hero {
    display: grid !important; grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important; margin: 14px auto 20px !important;
    width: calc(100% - 28px) !important; max-width: 900px !important;
    padding: clamp(18px, 3vw, 28px) !important; box-sizing: border-box !important;
    text-align: left !important;
  }
  html body .join-page .join-hero > div,
  html body .join-page .join-hero > img {
    display: block !important; width: 100% !important; min-width: 0 !important;
    max-width: 100% !important; box-sizing: border-box !important;
  }
  html body .join-page .join-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.45rem) !important; line-height: 1.15 !important; }
  html body .join-page .join-hero-img {
    height: auto !important; min-height: 0 !important; max-height: 380px !important;
    object-fit: cover !important; object-position: center !important; border-radius: 16px !important;
  }
  html body .join-page .join-cta-row {
    display: grid !important; grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important; gap: 10px !important;
  }
  html body .join-page .join-btn { width: 100% !important; min-height: 54px !important; white-space: normal !important; }
  html body .join-page .join-container { width: 100% !important; max-width: 1000px !important; margin: 0 auto !important; padding-left: 18px !important; padding-right: 18px !important; box-sizing: border-box !important; }
  html body .join-page .join-grid,
  html body .join-page .join-steps { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
  html body .join-page .join-form-wrap { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; }
}

@media screen and (min-width: 701px) and (max-width: 820px) {
  html body header.site-header > .nav-wrap { gap: 7px !important; }
  html body header.site-header > .nav-wrap > a.brand > img.brand-logo { width: clamp(132px, 22vw, 180px) !important; }
  html body header.site-header > .nav-wrap > a.join-header-cta-mobile { width: 124px !important; }
  html body header.site-header > .nav-wrap > a.join-header-cta-mobile .join-header-copy strong { font-size: 11px !important; }
  html body .join-page .join-grid,
  html body .join-page .join-steps { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Desktop-only: hide the mobile hamburger; keep the full desktop navigation row visible. */
@media screen and (min-width: 1201px) {
  html body header.site-header > .nav-wrap > button#menu-toggle.menu-toggle,
  html body header.site-header > .nav-wrap > button.menu-toggle {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    flex: 0 0 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body header.site-header > .nav-wrap > nav#main-nav.main-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
}

/* TABLET REFERENCE MATCH — larger logo, full-width 3x3 menu and 21px dock labels.
   Scoped strictly to tablet widths; desktop and phone layouts remain unchanged. */
@media screen and (min-width: 701px) and (max-width: 1200px) {
  html body header.site-header > .nav-wrap > a.brand > img.brand-logo {
    width: clamp(175px, 27vw, 300px) !important;
    max-width: 100% !important;
    max-height: 90px !important;
    height: auto !important;
  }

  html body header.site-header > .nav-wrap > nav.main-nav.is-open {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    background: #e4f3eb !important;
    border: 1px solid rgba(15,118,110,.16) !important;
    border-radius: 0 0 18px 18px !important;
  }

  html body header.site-header > .nav-wrap > nav.main-nav.is-open > a.nav-tile {
    grid-column: span 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 82px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 6px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    white-space: normal !important;
    color: #fff !important;
    background: linear-gradient(145deg, #168779, #07594f) !important;
    border: 1px solid rgba(255,255,255,.24) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 10px rgba(8,73,64,.14) !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
  }

  html body header.site-header > .nav-wrap > nav.main-nav.is-open > a.nav-tile .nav-icon {
    display: block !important;
    height: 26px !important;
    font-size: 24px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  html body header.site-header > .nav-wrap > nav.main-nav.is-open > a.join-header-cta,
  html body header.site-header > .nav-wrap > nav.main-nav.is-open > a.nav-cta {
    grid-column: span 3 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 4px 0 0 !important;
    padding: 10px 8px !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  html body > nav.contact-dock.contact-dock-glass[aria-label="Quick contact actions"] > a,
  html body > nav.contact-dock.contact-dock-glass[aria-label="Quick contact actions"] .dock-label {
    font-size: 21px !important;
    line-height: 1.15 !important;
  }
}

/* FINAL TABLET MENU CORRECTION — full-width 3x3 tiles; hide duplicate header CTAs while open.
   Tablet only (701–1200px). Existing hamburger button styling/markup is deliberately untouched. */
@media screen and (min-width: 701px) and (max-width: 1200px) {
  html body header.site-header {
    min-height: 132px !important;
    height: 132px !important;
    max-height: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html body header.site-header > .nav-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto 56px !important;
    grid-template-areas: "brand join whatsapp menu" !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    justify-content: initial !important;
    gap: clamp(8px, 1.2vw, 16px) !important;
    width: calc(100% - 28px) !important;
    max-width: 1440px !important;
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;
    margin: 0 auto !important;
    padding: 8px 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  html body header.site-header > .nav-wrap > a.brand {
    grid-area: brand !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body header.site-header > .nav-wrap > a.brand > img.brand-logo {
    display: block !important;
    width: clamp(220px, 29vw, 360px) !important;
    max-width: 100% !important;
    max-height: 112px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  html body header.site-header > .nav-wrap > a.join-header-cta-mobile {
    grid-area: join !important;
    display: inline-flex !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: clamp(132px, 15vw, 190px) !important;
    min-width: 0 !important;
    max-width: 190px !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow: hidden !important;
  }

  html body header.site-header > .nav-wrap > a.join-header-cta-mobile .join-header-copy strong {
    font-size: clamp(12px, 1.25vw, 16px) !important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }

  html body header.site-header > .nav-wrap > a.mobile-header-whatsapp {
    grid-area: whatsapp !important;
    display: inline-flex !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: clamp(150px, 17vw, 210px) !important;
    min-width: 0 !important;
    max-width: 210px !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow: hidden !important;
  }

  html body header.site-header > .nav-wrap > a.mobile-header-whatsapp .mobile-wa-copy strong {
    font-size: clamp(11px, 1.15vw, 15px) !important;
    line-height: 1.1 !important;
  }
  html body header.site-header > .nav-wrap > a.mobile-header-whatsapp .mobile-wa-copy small {
    font-size: clamp(10px, 1vw, 13px) !important;
    line-height: 1.1 !important;
  }

  /* Keep the original hamburger button, dimensions, icon and styling exactly as authored. */
  html body header.site-header > .nav-wrap > button#menu-toggle.menu-toggle {
    grid-area: menu !important;
    justify-self: end !important;
    align-self: center !important;
  }

  /* Full-width dropdown panel and exactly three equal columns for all nine tiles. */
  html body header.site-header > .nav-wrap > nav#main-nav.main-nav.is-open {
    display: grid !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 32px) !important;
    max-width: 1240px !important;
    max-height: calc(100vh - 150px) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 12px !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    padding: 18px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #e4f3eb !important;
    border: 1px solid rgba(15,118,110,.18) !important;
    border-radius: 24px !important;
    box-shadow: 0 14px 30px rgba(8,73,64,.18) !important;
    z-index: 100501 !important;
  }

  html body header.site-header > .nav-wrap > nav#main-nav.main-nav.is-open > a.nav-tile {
    grid-column: auto !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: clamp(82px, 9vw, 116px) !important;
    height: auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 8px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    white-space: normal !important;
    color: #fff !important;
    background: linear-gradient(145deg, #168779, #07594f) !important;
    border: 1px solid rgba(255,255,255,.24) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 10px rgba(8,73,64,.14) !important;
    font-size: clamp(14px, 1.35vw, 18px) !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
  }

  html body header.site-header > .nav-wrap > nav#main-nav.main-nav.is-open > a.nav-tile .nav-icon {
    display: block !important;
    height: 30px !important;
    font-size: 28px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  /* CTAs already exist in the header: do not duplicate them inside the open menu. */
  html body header.site-header > .nav-wrap > nav#main-nav.main-nav.is-open > a.join-header-cta,
  html body header.site-header > .nav-wrap > nav#main-nav.main-nav.is-open > a.nav-cta {
    display: none !important;
  }

  /* Hide the two header CTA buttons while the menu is open; closing with X restores them. */
  html body header.site-header:has(> .nav-wrap > nav#main-nav.main-nav.is-open) > .nav-wrap > a.join-header-cta-mobile,
  html body header.site-header:has(> .nav-wrap > nav#main-nav.main-nav.is-open) > .nav-wrap > a.mobile-header-whatsapp {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* Smaller tablet widths: preserve the same single-row header without shrinking the logo excessively. */
@media screen and (min-width: 701px) and (max-width: 820px) {
  html body header.site-header > .nav-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 132px) minmax(128px, 150px) 56px !important;
    gap: 6px !important;
  }
  html body header.site-header > .nav-wrap > a.brand > img.brand-logo {
    width: clamp(190px, 26vw, 230px) !important;
  }
  html body header.site-header > .nav-wrap > a.join-header-cta-mobile,
  html body header.site-header > .nav-wrap > a.mobile-header-whatsapp {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  html body header.site-header > .nav-wrap > nav#main-nav.main-nav.is-open {
    gap: 9px !important;
    padding: 13px !important;
  }
}


/* FINAL TABLET REFINEMENT — full-bleed tiles, larger header controls, CTA toggle.
   Strictly tablet-only. The orange hamburger retains its original rounded-button style. */
@media screen and (min-width:701px) and (max-width:1200px) {
  html body header.site-header {
    height:148px !important;
    min-height:148px !important;
    max-height:none !important;
  }
  html body header.site-header > .nav-wrap {
    height:148px !important;
    min-height:148px !important;
    max-height:148px !important;
    width:calc(100% - 24px) !important;
    grid-template-columns:minmax(0,1fr) minmax(142px,17vw) minmax(156px,19vw) 70px !important;
    grid-template-areas:"brand join whatsapp menu" !important;
    gap:clamp(8px,1.1vw,15px) !important;
    padding:8px 0 !important;
  }
  html body header.site-header > .nav-wrap > a.brand > img.brand-logo {
    width:clamp(245px,32vw,390px) !important;
    max-width:100% !important;
    max-height:128px !important;
    height:auto !important;
    object-fit:contain !important;
  }
  html body header.site-header > .nav-wrap > a.join-header-cta-mobile,
  html body header.site-header > .nav-wrap > a.mobile-header-whatsapp {
    height:70px !important;
    min-height:70px !important;
    max-height:70px !important;
    width:100% !important;
    max-width:none !important;
    padding:8px 10px !important;
    border-radius:16px !important;
    font-size:clamp(13px,1.25vw,17px) !important;
  }
  html body header.site-header > .nav-wrap > a.join-header-cta-mobile .join-header-copy strong,
  html body header.site-header > .nav-wrap > a.mobile-header-whatsapp .mobile-wa-copy strong,
  html body header.site-header > .nav-wrap > a.mobile-header-whatsapp .mobile-wa-copy small {
    font-size:clamp(12px,1.2vw,16px) !important;
    line-height:1.15 !important;
  }
  /* Original orange hamburger button: only enlarge; preserve rounded orange appearance. */
  html body header.site-header > .nav-wrap > button#menu-toggle.menu-toggle {
    width:70px !important;
    min-width:70px !important;
    max-width:70px !important;
    height:70px !important;
    min-height:70px !important;
    max-height:70px !important;
    flex:0 0 70px !important;
    border-radius:16px !important;
    background:linear-gradient(145deg,#FF9A1F 0%,#FF6A00 100%) !important;
    background-color:#FF6A00 !important;
    border:2px solid rgba(255,255,255,.9) !important;
    color:#fff !important;
    font-size:36px !important;
    line-height:1 !important;
    text-indent:0 !important;
    -webkit-text-fill-color:#fff !important;
    box-shadow:0 4px 12px rgba(210,91,0,.24) !important;
    filter:none !important;
  }
  html body header.site-header > .nav-wrap > button#menu-toggle.menu-toggle::before,
  html body header.site-header > .nav-wrap > button#menu-toggle.menu-toggle::after {
    content:none !important;
    display:none !important;
  }
  /* Open panel spans nearly the complete tablet width. Each tile fills its grid cell. */
  html body header.site-header > .nav-wrap > nav#main-nav.main-nav.is-open {
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;
    width:calc(100vw - 24px) !important;
    max-width:1440px !important;
    padding:18px !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:12px !important;
    box-sizing:border-box !important;
  }
  html body header.site-header > .nav-wrap > nav#main-nav.main-nav.is-open > a.nav-tile {
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    min-height:clamp(94px,10vw,126px) !important;
    height:100% !important;
    grid-column:auto !important;
    box-sizing:border-box !important;
  }
  /* Header CTAs disappear while the menu is open; closing with X restores them. */
  html body header.site-header.menu-open > .nav-wrap > a.join-header-cta-mobile,
  html body header.site-header.menu-open > .nav-wrap > a.mobile-header-whatsapp {
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
  /* Never duplicate those CTAs inside the open tile panel. */
  html body header.site-header > .nav-wrap > nav#main-nav.main-nav.is-open > a.join-header-cta,
  html body header.site-header > .nav-wrap > nav#main-nav.main-nav.is-open > a.nav-cta {
    display:none !important;
  }
}

@media screen and (min-width:701px) and (max-width:820px) {
  html body header.site-header > .nav-wrap {
    grid-template-columns:minmax(0,1fr) minmax(124px,140px) minmax(136px,150px) 64px !important;
    gap:6px !important;
  }
  html body header.site-header > .nav-wrap > a.brand > img.brand-logo {
    width:clamp(205px,27vw,250px) !important;
  }
  html body header.site-header > .nav-wrap > button#menu-toggle.menu-toggle {
    width:64px !important; min-width:64px !important; max-width:64px !important;
    height:64px !important; min-height:64px !important; max-height:64px !important;
    flex-basis:64px !important;
  }
}
