*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-deep-tide); }
h1, p { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, .chip:has(input:focus-visible) {
  outline: 3px solid var(--color-buoy-yellow);
  outline-offset: 2px;
}

/* Two layouts from Paper: desktop (1440 design) and mobile (390 design). */
.page { margin: 0 auto; }
.page-desktop { width: 100% !important; min-width: 1440px; }
.page-mobile { width: 100% !important; display: none !important; }
@media (max-width: 1023px) {
  .page-desktop { display: none !important; }
  .page-mobile { display: flex !important; }
}
/* 1024–1439px: the desktop design scales down to fit (set in main.js). */
@media (min-width: 1024px) and (max-width: 1439px) {
  .page-desktop { zoom: var(--fit, 1); }
}

/* Quote form */
.chip-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip:has(.chip-input:checked) { background-color: var(--chip-on-bg); }
.chip:has(.chip-input:checked) span { color: var(--chip-on-color) !important; }
.chip:has(.chip-input:checked) span::before { content: "✓ "; white-space: pre; }
input::placeholder { color: #9AA6AE; opacity: 1; }
button[type="submit"]:hover { filter: brightness(1.04); }
button[type="submit"]:active { transform: translate(3px, 3px); box-shadow: var(--color-deep-tide) 2px 2px 0 !important; }
button[type="submit"][disabled] { opacity: .7; cursor: wait; }
.form-done { display: flex; flex-direction: column; gap: 12px; padding: 32px 22px; font-family: "DM Sans", system-ui, sans-serif; font-size: 17px; line-height: 155%; color: var(--color-deep-tide); }
.form-done strong { font-family: "Archivo", system-ui, sans-serif; font-weight: 900; font-size: 30px; line-height: 105%; letter-spacing: -0.025em; }
[data-form-note].is-error { color: #B42318 !important; }

/* Mobile menu */
.mobile-menu {
  position: absolute; z-index: 20; top: 64px; right: 20px; left: 20px;
  display: flex; flex-direction: column;
  background: #FFFFFF; border: 2.5px solid var(--color-deep-tide); border-radius: 6px;
  box-shadow: var(--color-deep-tide) 4px 4px 0;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 16px 18px; color: var(--color-deep-tide); text-decoration: none;
  font-family: "Archivo", system-ui, sans-serif; font-weight: 800; font-size: 18px; line-height: 22px;
}
.mobile-menu a + a { border-top: 2px solid var(--color-deep-tide); }
