/* Cloudserve site styles.
   Page sections keep the mock-up's inline styles; this file holds fonts, tokens, base rules,
   the shared header/footer, form states and small-screen adjustments. */

/* ---------- self-hosted fonts (SIL OFL; copied from @fontsource at build time) ---------- */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2-variations'), url(/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

/* ---------- tokens ---------- */
:root {
  --maxw: 1440px;
  --accent: #8FD3EC;
  --ink: #002B3D; --ink-deep: #001F2D; --panel: #003A52; --line: #1D5269;
  --paper: #F3F6F8; --txt: #0B2533; --mute: #4A5E69; --dmute: #A9C4D0; --rule: #D5DEE3; --teal: #004E6C;
  --sans: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --disp: 'Bricolage Grotesque', 'Arial Narrow', Arial, sans-serif;
  --gutter: 28px;
  --sec-scale: 1;
  color-scheme: light;
}
@media (max-width: 640px) { :root { --gutter: 20px; --sec-scale: 0.55; } }

/* ---------- base (from the mock-up helmet) ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); font-family: var(--sans); color: var(--txt); -webkit-font-smoothing: antialiased; }
main { display: block; background: var(--paper); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { cursor: pointer; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[id] { scroll-margin-top: 16px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 3px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 3px; font-weight: 600; font-size: 15px; box-sizing: border-box; border: 1px solid transparent; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; }

/* ---------- utility bar ---------- */
.utility { background: var(--ink-deep); color: var(--dmute); font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.utility__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; min-height: 38px; }
.utility__status { display: flex; align-items: center; gap: 8px; }
.utility__links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.utility__links a { min-height: 38px; display: inline-flex; align-items: center; }
.utility__phone { color: #FFFFFF; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- nav ---------- */
.nav-bar { background: var(--ink); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo__img { display: block; height: 44px; width: auto; }
.footer .logo__img { height: 40px; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 14.5px; font-weight: 500; }
.nav__links > a:not(.btn) { padding: 10px 0; color: #D6E5EC; border-bottom: 2px solid transparent; }
.nav__links > a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--accent); }
.nav__links > .btn { font-size: 15px; }
.nav__toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: transparent; border: 0; color: #FFFFFF; margin-right: -12px; }

@media (max-width: 1100px) {
  .nav { min-height: 64px; padding-top: 0; padding-bottom: 0; }
  .nav__toggle { display: flex; }
  .nav__links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 18px; font-size: 16px; }
  .nav__links > a:not(.btn) { min-height: 44px; display: flex; align-items: center; padding: 0; border-bottom: 1px solid var(--line); }
  .nav__links > a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .nav__links > .btn { margin-top: 16px; justify-content: center; min-height: 52px; font-size: 16px; }
  .nav.is-open .nav__links { display: flex; }
}
@media (max-width: 640px) {
  .utility__inner { min-height: 44px; flex-wrap: nowrap; }
  .utility__status, .utility__links a.u-hide-sm { display: none; }
  .utility__links { justify-content: space-between; width: 100%; }
  .utility__links a { min-height: 44px; display: flex; align-items: center; }
  .logo__img { height: 38px; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--dmute); font-size: 14.5px; border-top: 1px solid var(--line); }
.footer__inner { padding-top: 64px; padding-bottom: 36px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 40px 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand p { margin: 0; line-height: 1.55; max-width: 260px; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__hd { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: #FFFFFF; margin: 0 0 4px; }
.footer__strong { color: #FFFFFF; }
.footer address { font-style: normal; line-height: 1.55; }
.footer__also { margin-top: 48px; font-size: 13.5px; }
.footer__also a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 640px) {
  .footer__inner { padding-top: 40px; }
}
/* touch screens of any size (phones, tablets): bigger tap areas, tighter gaps to compensate */
@media (pointer: coarse), (max-width: 640px) {
  .footer__col { gap: 2px; }
  .footer__col a, .footer__legal-links a { min-height: 36px; display: flex; align-items: center; }
}

/* ---------- comfortable tap targets for links inside page sections ---------- */
#contact span > a { display: inline-flex; align-items: center; min-height: 44px; }
nav[aria-label="Breadcrumb"] a { display: inline-block; padding: 14px 0; margin: -14px 0; }

/* ---------- forms ---------- */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
form { position: relative; }
.cf-turnstile { min-height: 65px; }
.form-status { margin: 0; font-size: 15px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-error { color: #A12A1E; font-weight: 600; }
.form-status.is-ok { color: var(--teal); font-weight: 600; }
form[aria-busy="true"] button[type="submit"] { opacity: 0.6; cursor: progress; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #A12A1E !important; }
.field-error { font-size: 13.5px; color: #A12A1E; }
.form-done { display: flex; flex-direction: column; gap: 12px; }
.form-done h3 { margin: 0; font-family: var(--disp); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; color: var(--txt); }
.form-done p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--mute); }

/* ---------- simple content pages (privacy, cookies, terms, thanks, 404) ---------- */
.page-hero { background: var(--ink); color: #FFFFFF; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 96px 96px; background-position: center top; }
.page-hero .wrap { padding-top: calc(72px * var(--sec-scale)); padding-bottom: calc(72px * var(--sec-scale)); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.page-hero h1 { font-family: var(--disp); font-weight: 600; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.page-hero p { margin: 0; font-size: 18px; line-height: 1.55; color: #D6E5EC; max-width: 640px; }
.prose { max-width: 760px; padding-top: calc(72px * var(--sec-scale)); padding-bottom: calc(96px * var(--sec-scale)); font-size: 16.5px; line-height: 1.65; color: var(--txt); }
.prose h2 { font-family: var(--disp); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose p, .prose ul { margin: 0 0 16px; color: var(--mute); }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); vertical-align: top; color: var(--mute); }
.prose th { color: var(--txt); font-weight: 600; }
.placeholder { background: #FFF6E3; border: 1px dashed #F0B45A; border-radius: 4px; padding: 14px 16px; color: #6B4A12 !important; }

/* Cookie consent banner (only rendered when Google Analytics is configured) */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: #002B3D; color: #D6E5EC; border-top: 1px solid #1D5269; box-shadow: 0 -12px 32px -16px rgba(0,0,0,0.5); }
.consent__inner { max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.consent__text { margin: 0; flex: 1 1 420px; font-size: 14.5px; line-height: 1.5; }
.consent__text a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent__btn { min-height: 44px; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; }
.consent__btn--ghost { background: transparent; color: #FFFFFF; border-color: #8FD3EC; }
@media (max-width: 640px) { .consent__actions { width: 100%; } .consent__btn { flex: 1; justify-content: center; } }
.footer__cookie-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: inherit; min-height: 36px; }
.footer__cookie-btn:hover { text-decoration: underline; }
