/* Shared responsive safeguards for every page served by Firebase Hosting. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

img,
video {
  height: auto;
}

main,
section,
article,
header,
footer,
nav,
form,
figure {
  min-width: 0;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

input,
select,
textarea {
  font-size: max(16px, 1em);
}

table {
  max-width: 100%;
}

@media (max-width: 760px) {
  /* Keep campaign landing page actions usable without horizontal scrolling. */
  .topbar {
    height: auto;
    min-height: 72px;
    padding-block: 12px;
    flex-wrap: wrap;
  }

  .top-actions {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero,
  .intro,
  .closing,
  .ct,
  .wrap {
    min-width: 0;
  }

  footer,
  .footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
  }

  .top-actions .cta {
    padding: 11px 13px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
    overflow-wrap: anywhere;
  }

  .section,
  .steps,
  .closing,
  .footer {
    padding-inline: 5vw;
  }

  .project-dialog {
    width: calc(100% - 16px);
    max-height: 96dvh;
  }
}

/* Keep the consultation action reachable when the desktop header button is hidden. */
.mobile-booking { display: none !important; }
@media (max-width: 860px) {
  .mobile-booking { display: block !important; margin-top: 8px; padding: 15px 16px !important; background: #C86E28; color: #fff !important; border: 0 !important; font-weight: 600; text-align: center; }
  .mobile-booking:hover { background: #E5883E; color: #fff !important; }
}
