/* ===========================================================================
   Clairvoya — site stylesheet
   ---------------------------------------------------------------------------
   A visual-first rebuild of clairvoyatech.com. The palette, the typeface and
   the background imagery all come from the company's own material, recovered
   from the web archive:

     • Colours read out of the site's own child-theme CSS: orange #f6ab1b and
       #f86500, green #10c07b, periwinkle #6974e2, slate #575d85, lavender
       #e5e8f7. The dark navy below is sampled from the site's own hero
       backgrounds, which average around #0b1f34.
     • Typeface: Avenir, the site's own webfont files, self-hosted.
     • Hero and section backgrounds: the company's own archived PNG/JPEG art.

   Layout is written fresh - the original ran on a WordPress page builder whose
   markup is not reproduced here. The README says what is original and what is
   reconstructed.
   =========================================================================== */

@font-face { font-family: 'Avenir'; src: url('../font/Avenir-Light.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Avenir'; src: url('../font/Avenir-Roman.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Avenir'; src: url('../font/Avenir-Oblique.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Avenir'; src: url('../font/Avenir-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Avenir'; src: url('../font/Avenir-Heavy.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Avenir'; src: url('../font/Avenir-Black.woff') format('woff'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --navy: #0b1f34;
  --navy-2: #102a45;
  --navy-3: #16304d;
  --ink: #0a1a2b;

  --orange: #f6ab1b;
  --orange-deep: #f86500;
  --green: #10c07b;
  --peri: #6974e2;
  --slate: #575d85;
  --lavender: #e5e8f7;

  --paper: #ffffff;
  --paper-2: #f6f8fc;
  --line: #e3e8f2;
  --text: #1d2b3d;
  --text-soft: #5a6b80;
  --text-on-dark: #ffffff;
  --text-on-dark-soft: #b9c7d8;

  --wrap: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --pill: 100px;
  --shadow: 0 14px 44px rgba(11, 31, 52, .12);
  --shadow-lg: 0 26px 70px rgba(11, 31, 52, .2);
  --ease: cubic-bezier(.2, .7, .3, 1);
  --font: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.no-scroll { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .6rem;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 800; }
h4 { font-size: 1.05rem; font-weight: 800; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 400; background: var(--orange); color: var(--ink); padding: .7rem 1.1rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

.wrap { width: min(var(--wrap), 90vw); margin-inline: auto; }
.wrap-narrow { width: min(820px, 90vw); margin-inline: auto; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.muted { color: var(--text-soft); }
.small { font-size: .875rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 1.8rem; } .mt-4 { margin-top: 2.6rem; }

/* definition list */
.deflist { margin: 0; display: grid; gap: .1rem; }
.deflist dt { font-weight: 800; color: var(--ink); margin-top: .9rem; }
.deflist dd { margin: .25rem 0 0; color: var(--text-soft); }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--text-soft); line-height: 1.5; }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--text-on-dark); }
.on-dark .lede, .on-dark p { color: var(--text-on-dark-soft); }

.eyebrow {
  font-size: .78rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 .7rem;
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11, 31, 52, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; padding: .8rem 0; }
.brand { margin-right: auto; display: block; }
.brand img { height: 34px; width: auto; }
.nav ul { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; margin: 0; }
.nav a { display: block; padding: .6rem .8rem; color: #d7e2ee; font-size: .95rem; font-weight: 500; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; }
.nav .has-sub > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
/* .nav ul sets display:flex, so this needs the extra class to win on
   specificity - a dropdown is a stacked list, not a row */
.nav .submenu {
  position: absolute; top: calc(100% + 6px); left: 0; display: block; gap: 0;
  width: auto; min-width: 280px; max-width: min(320px, calc(100vw - 2rem));
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .5rem; margin: 0; list-style: none; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 10;
}
/* the trailing menus hang off the right edge of the bar, so anchor them inward
   instead of letting a long label push the submenu past the viewport */
.nav > ul > li:nth-last-child(-n+2) > .submenu { left: auto; right: 0; }
.nav li:hover > .submenu, .nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { color: var(--text); font-weight: 500; border-radius: 9px; padding: .5rem .7rem; white-space: normal; }
.submenu a:hover { background: var(--paper-2); color: var(--orange-deep); }

.header-cta { white-space: nowrap; }
.nav-toggle { display: none; width: 46px; height: 42px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .22s var(--ease), opacity .22s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 58px 0 auto; z-index: 190; background: var(--navy-2);
  border-bottom: 1px solid rgba(255,255,255,.1); padding: 1rem 0 1.5rem;
  max-height: calc(100vh - 58px); overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
.drawer ul { list-style: none; margin: 0 0 .8rem; padding: 0; }
.drawer a { display: block; padding: .7rem .2rem; color: #d7e2ee; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer .sub a { padding-left: 1rem; font-size: .92rem; color: #a8bccf; }
.drawer a[aria-current="page"] { color: var(--orange); }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .brand img { height: 28px; }
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.6rem; border: 0; border-radius: var(--pill);
  font: inherit; font-size: .95rem; font-weight: 800; cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #ffbe3d; color: var(--ink); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #ffbe3d; color: var(--ink); }
.btn-green { background: var(--green); color: #05261a; }
.btn-green:hover { background: #23d78f; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--orange); color: var(--orange-deep); }
.btn-sm { padding: .6rem 1.15rem; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; }
.link-arrow::after { content: "\2192"; transition: transform .18s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------ hero slider */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease);
  background-size: cover; background-position: center;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(11,31,52,.94) 0%, rgba(11,31,52,.78) 46%, rgba(11,31,52,.42) 100%); }
.hero-inner { position: relative; z-index: 2; padding: clamp(3.4rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5.4rem); }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lede { color: #c9d8e7; max-width: 54ch; margin-top: 1rem; }
.hero-actions { margin-top: 1.8rem; }
.hero-dots { position: relative; z-index: 3; display: flex; gap: .5rem; padding-bottom: 1.6rem; }
.hero-dots button { width: 34px; height: 4px; border: 0; border-radius: 3px; background: rgba(255,255,255,.32); cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: var(--orange); }

/* --------------------------------------------------------- page banners */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(11,31,52,.95), rgba(11,31,52,.6)); }
.page-hero .wrap { position: relative; z-index: 2; padding: clamp(2.6rem, 5.4vw, 4.4rem) 0 clamp(2.4rem, 5vw, 3.8rem); }
.page-hero h1 { color: #fff; max-width: 24ch; }
.page-hero .lede { color: #c9d8e7; max-width: 60ch; }
.breadcrumb { font-size: .82rem; color: #93a8bd; padding: 1.2rem 0 0; position: relative; z-index: 2; }
.breadcrumb a { color: #93a8bd; }
.breadcrumb span { margin: 0 .45rem; }

/* ------------------------------------------------------------ sections */
.section { padding: clamp(2.8rem, 6vw, 5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section-soft { background: var(--paper-2); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #c3d2e2; }
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ----------------------------------------------------------------- grid */
.grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(1.8rem, 4.6vw, 3.6rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-wide { grid-template-columns: 1.06fr .94fr; }
  .split-narrow { grid-template-columns: .94fr 1.06fr; }
}

/* ---------------------------------------------------------------- cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card-flat { background: var(--paper-2); border: 1px solid var(--line); }
.card-navy { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.6rem; }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--orange); }

/* icon cards: big icon, short line */
.icon-card { text-align: center; }
.icon-card img { height: 62px; width: auto; margin: 0 auto 1rem; }
.icon-card h3 { font-size: 1.2rem; }

/* image cards */
.media-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.media-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.media-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media-card .body { padding: 1.3rem 1.5rem 1.6rem; }

/* capsules - the original's pill-shaped colour blocks */
.capsules { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.capsules li { margin: 0; }
.capsule { display: inline-block; padding: .45rem 1.05rem; border-radius: var(--pill); font-size: .88rem; font-weight: 800; }
.capsule-yellow { background: rgba(246,171,27,.16); color: #a86f00; }
.capsule-purple { background: rgba(105,116,226,.16); color: #3c47b8; }
.capsule-orange { background: rgba(248,101,0,.15); color: #b84a00; }
.capsule-green { background: rgba(16,192,123,.16); color: #087a4e; }
.capsule-grey { background: #eef1f7; color: var(--slate); }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 1.5rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { display: block; font-family: var(--font); font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1; color: var(--orange); }
.stat span { display: block; margin-top: .45rem; font-size: .875rem; color: var(--text-soft); }

/* three-up colour panels (Ready / Set / Know) */
.panels { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .panels { grid-template-columns: repeat(3, 1fr); } }
.panel { border-radius: var(--radius-lg); padding: 1.9rem; color: #08243a; }
.panel h3 { font-size: 1.6rem; color: #08243a; margin-bottom: .5rem; }
.panel p { color: rgba(8,36,58,.8); margin: 0; }
.panel-yellow { background: var(--orange); }
.panel-purple { background: var(--peri); }
.panel-purple h3 { color: #fff; } .panel-purple p { color: rgba(255,255,255,.92); }
.panel-green { background: var(--green); }
.panel-orange { background: var(--orange-deep); }
.panel-orange h3 { color: #fff; } .panel-orange p { color: rgba(255,255,255,.94); }

/* --------------------------------------------------------------- video */
.video-block { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #05121f; aspect-ratio: 16 / 9; }
.video-block img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--orange); color: var(--ink); display: grid; place-items: center; padding-left: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45); transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.video-play::before { content: ""; display: block; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent currentColor; }
.video-play:hover { transform: translate(-50%, -50%) scale(1.08); background: #ffbe3d; }
.video-block.is-playing img, .video-block.is-playing .video-play, .video-block.is-playing .video-cap { display: none; }
.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.5rem .9rem; background: linear-gradient(to top, rgba(5,18,31,.94), rgba(5,18,31,0)); font-size: .85rem; color: #c9d8e7; }
.video-cap b { color: #fff; display: block; }

/* ------------------------------------------------------ image showcase */
.showcase { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .showcase { grid-template-columns: repeat(3, 1fr); } }
.showcase figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.showcase img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.showcase figcaption { padding: .8rem 1rem; font-size: .84rem; color: #c9d8e7; }

/* --------------------------------------------------------------- lists */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; color: var(--text-soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .42rem; width: 15px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg) scale(.9); transform-origin: left center; }
.on-dark .checklist li { color: #c3d2e2; }

.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; gap: 1rem; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.specs .k { color: var(--text-soft); }
.specs .v { font-weight: 800; text-align: right; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.8rem; }
@media (max-width: 699px) { .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; } }
.tab { border: 1px solid var(--line); background: var(--paper); cursor: pointer; white-space: nowrap; padding: .6rem 1.15rem; font: inherit; font-size: .92rem; font-weight: 800; color: var(--text-soft); border-radius: var(--pill); }
.tab:hover { border-color: var(--orange); color: var(--orange-deep); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fade .3s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------- accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: none; border: 0; padding: 1.15rem .2rem; cursor: pointer; text-align: left; font-family: var(--font); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.acc-btn:hover { color: var(--orange-deep); }
.acc-btn .chev { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.acc-btn .chev::before, .acc-btn .chev::after { content: ""; position: absolute; top: 10px; left: 3px; width: 16px; height: 2.5px; background: var(--orange); border-radius: 2px; transition: transform .22s var(--ease); }
.acc-btn .chev::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .chev::after { transform: rotate(0); }
.acc-panel > div { padding: 0 .2rem 1.3rem; color: var(--text-soft); }

/* ------------------------------------------------------------- figures */
figure { margin: 0; }
.fig-frame { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem, 2.4vw, 1.6rem); margin: 0; }
.fig-frame img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; }
figcaption { font-size: .84rem; color: var(--text-soft); margin-top: .8rem; }

/* -------------------------------------------------------- callout/notice */
.callout { border-left: 4px solid var(--orange); background: rgba(246,171,27,.09); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-navy { border-left-color: var(--peri); background: rgba(105,116,226,.1); }
.notice { background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; font-size: .9375rem; color: var(--text-soft); }

/* --------------------------------------------------------------- forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .38rem; }
.field label { font-size: .92rem; font-weight: 800; }
.field .req { color: var(--orange-deep); }
.field input, .field textarea, .field select { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 1rem; color: var(--text); background: var(--paper); transition: border-color .16s var(--ease), box-shadow .16s var(--ease); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(246,171,27,.2); }
.field .err { font-size: .84rem; color: #c0392b; min-height: 1.05em; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #c0392b; }
.form-note { font-size: .875rem; color: var(--text-soft); }
.form-status { border-radius: 10px; padding: .9rem 1.1rem; font-size: .9375rem; }
.form-status[hidden] { display: none; }
.form-status.ok { background: rgba(16,192,123,.14); color: #076c46; border: 1px solid rgba(16,192,123,.4); }
.form-status.bad { background: #fdecea; color: #a5342a; border: 1px solid #e9a79f; }
.checkline { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--text-soft); }
.checkline input { width: auto; margin-top: .3rem; }

/* -------------------------------------------------------------- footer */
.site-footer { position: relative; background: var(--navy); color: #b9c7d8; padding: clamp(2.6rem, 5vw, 3.8rem) 0 1.5rem; font-size: .9375rem; overflow: hidden; }
.site-footer .bg { position: absolute; inset: 0; background: url('../img/footer-bg.png') center/cover no-repeat; opacity: .5; }
.site-footer .wrap { position: relative; z-index: 2; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand img { height: 32px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #b9c7d8; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .82rem; color: #8fa5bb; }

/* -------------------------------------------------------- reveal / misc */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.to-top { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 150; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; border: 0; background: var(--orange); color: var(--ink); display: grid; place-items: center; opacity: 0; visibility: hidden; box-shadow: var(--shadow); transition: opacity .2s var(--ease), visibility .2s, transform .2s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide { transition: none; }
}

@media print {
  .site-header, .drawer, .to-top, .site-footer, .video-block { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .section-navy, .page-hero, .hero { background: #fff !important; color: #000 !important; }
}
