/* Taplaw Services - shared styles. Page layout uses inline styles carried over from the approved design. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1e293b; background: #ffffff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
img[height] { height: auto; }
a { color: #0F766E; }
a:hover { color: #111759; }
[id] { scroll-margin-top: 16px; }

input, select, textarea, button { font-family: inherit; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #0F766E; outline-offset: 1px; }
a:focus-visible, button:focus-visible { outline: 3px solid #5EC4B6; outline-offset: 2px; border-radius: 4px; }
button[disabled] { opacity: 0.7; cursor: progress !important; }

/* Skip link: hidden until focused with the keyboard */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #111759; color: #ffffff; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: #ffffff; }

/* Header navigation: current page */
header nav a[aria-current="page"] { text-decoration: underline !important; text-decoration-color: #5EC4B6 !important; text-decoration-thickness: 3px !important; text-underline-offset: 8px; }

/* Enquiry form */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 15px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-success { color: #0F766E; font-weight: 600; }
.form-status.is-error { color: #b91c1c; font-weight: 600; }
input:user-invalid, textarea:user-invalid { border-color: #b91c1c !important; }
form [style*="flex: 1 1"] { min-width: 0; }
form select { width: 100%; min-width: 0; text-overflow: ellipsis; }

/* Small screens (from the approved phone design) */
@media (max-width: 640px) {
  .tl-h1 { font-size: 36px !important; }
  .tl-h2 { font-size: 28px !important; }
  .tl-pad { padding-left: 20px !important; padding-right: 20px !important; }
  .tl-hide-sm { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .skip-link, nav, form, footer nav { display: none !important; }
  body { color: #000000; }
}
