/* =====================================================================
   WITT Electrical: coming-soon page
   Brand: WITT blue #4F8DCA + graphite grey #7A7A7B (from Main_WITTE_Primary.svg)
   Layout and type follow the WITT 3D Printing site (Outfit + Inter).
   ===================================================================== */

:root {
  /* brand */
  --brand: #4F8DCA;            /* logo blue: accents and highlights on dark */
  --brand-strong: #2F6EAD;     /* button fill, white text = 5.3:1 */
  --brand-strong-hover: #275E95;
  --brand-glow: rgba(79, 141, 202, .45);
  --brand-grey: #7A7A7B;

  /* neutrals (dark page) */
  --ink: #0A0E13;
  --ink-2: #121821;
  --text: #F2F4F7;
  --text-muted: #B3BCC7;       /* 9:1 on --ink */
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .28);
  --field-bg: rgba(255, 255, 255, .06);
  --panel-bg: rgba(14, 19, 26, .78);

  /* feedback */
  --danger: #FF8A80;           /* readable on dark */
  --success: #7FD3A0;

  /* type */
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* layout */
  --container: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 150ms;
  --t: 220ms;

  /* z-index scale */
  --z-bg: 0;
  --z-content: 10;
  --z-toggle: 40;
  --z-skip: 1000;

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: rgba(79, 141, 202, .6); }
a:hover { color: var(--brand); }
h1, h2 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: var(--z-skip); background: var(--brand-strong); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- moving photo background ---------- */
.bg {
  position: fixed; inset: 0; z-index: var(--z-bg);
  overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at 70% 30%, #142235 0%, var(--ink) 60%);
}
.bg__track {
  position: absolute; left: 50%; top: 50%;
  width: max(170vw, 1500px); height: 190vh;
  display: flex; justify-content: center; gap: clamp(10px, 1.4vw, 18px);
  transform: translate(-50%, -50%) rotate(-9deg);
}
.bg__col { flex: none; width: clamp(190px, 23vw, 380px); overflow: hidden; }
.bg__inner {
  display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 18px);
  animation: drift-up var(--dur, 90s) linear infinite;
  will-change: transform;
}
.bg__col--down .bg__inner { animation-name: drift-down; }
.bg__inner img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 14px;
  filter: saturate(.95) brightness(.95);
  background: var(--ink-2);
}
/* inner holds two identical sets; moving by half loops seamlessly */
@keyframes drift-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes drift-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.is-still .bg__inner { animation-play-state: paused; }

/* readability scrim + brand glow
   Previous (darker): 90deg stops .92 / .74 / .5, edge fades .9 / .8, image brightness .85 */
.bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 18% 30%, rgba(79, 141, 202, .18), transparent 70%),
    linear-gradient(90deg, rgba(10, 14, 19, .84) 0%, rgba(10, 14, 19, .6) 48%, rgba(10, 14, 19, .32) 100%),
    linear-gradient(0deg, rgba(10, 14, 19, .75) 0%, transparent 25%, transparent 80%, rgba(10, 14, 19, .6) 100%);
}
/* soft dark halo behind the text so it stays readable over brighter photos */
.intro h1, .intro .lead, .intro .eyebrow, .contact { text-shadow: 0 1px 14px rgba(10, 14, 19, .85); }

/* ---------- header ---------- */
.site-header { position: relative; z-index: var(--z-content); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; padding-block: 18px; }
.brand { display: block; flex: none; border-radius: 6px; }
.logo { height: 60px; width: auto; overflow: visible; }
.logo-wave { fill: var(--brand); }
.logo-mark { fill: #D9DDE2; }
.logo-text { fill: #C3C9D0; font-family: var(--font-head); font-weight: 500; font-size: 41px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--brand-strong); --btn-fg: #fff; --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 22px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 600; font-size: .9375rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, box-shadow var(--t) ease, transform var(--t-fast) ease;
  touch-action: manipulation;
}
.btn:hover { --btn-bg: var(--brand-strong-hover); color: var(--btn-fg); box-shadow: 0 0 0 4px rgba(79, 141, 202, .18), 0 10px 30px -8px var(--brand-glow); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--outline { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .55); }
.btn--outline:hover { --btn-bg: rgba(255, 255, 255, .08); --btn-border: #fff; }
.btn--ghost { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; --btn-border: var(--line-strong); backdrop-filter: blur(6px); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .16); }
.btn .spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero layout ---------- */
.hero {
  position: relative; z-index: var(--z-content);
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
  padding-block: clamp(24px, 5vh, 64px) clamp(40px, 7vh, 80px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 700; color: #fff; max-width: 12ch; }
h1 .accent {
  display: block;
  color: var(--brand);
  text-shadow: 0 0 36px rgba(79, 141, 202, .45);
}
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-muted); max-width: 48ch; margin-bottom: 28px; }

.services { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.services li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(79, 141, 202, .12); border: 1px solid rgba(79, 141, 202, .35);
  color: #E3ECF6; font-size: .9375rem; font-weight: 500;
}
.services .icon { width: 17px; height: 17px; color: var(--brand); }

.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--text-muted); }
.contact li { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; }
.contact .icon { width: 18px; height: 18px; color: var(--brand); }
.contact a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- enquiry form ---------- */
.enquiry {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  position: relative;
}
.enquiry::before { /* thin blue current along the top edge */
  content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.enquiry h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 700; color: #fff; margin-bottom: 6px; }
.enquiry__sub { color: var(--text-muted); font-size: .9375rem; margin-bottom: 22px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { margin-bottom: 14px; min-width: 0; }
.field label { display: block; font-size: .875rem; font-weight: 500; color: #DCE3EA; margin-bottom: 6px; }
.req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: var(--field-bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--text); font-size: 1rem; /* 16px avoids iOS zoom */
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, background-color var(--t-fast) ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3BCC7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field select option { background: var(--ink-2); color: var(--text); }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background-color: rgba(79, 141, 202, .08); box-shadow: 0 0 0 3px rgba(79, 141, 202, .35); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { margin: 6px 0 0; font-size: .875rem; color: var(--danger); display: none; align-items: center; gap: 6px; }
.field.has-error .field__error { display: flex; }
.field__error .icon { width: 16px; height: 16px; }
.hint { margin: -6px 0 14px; font-size: .8125rem; color: var(--text-muted); }
.hint.is-error { color: var(--danger); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.enquiry .btn--block { margin-top: 6px; }
.form-status { margin-top: 14px; font-size: .9375rem; }
.form-status:empty { display: none; }
.form-status .msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); }
.form-status .msg--ok { background: rgba(127, 211, 160, .12); border: 1px solid rgba(127, 211, 160, .4); color: #D6F3E2; }
.form-status .msg--err { background: rgba(255, 138, 128, .1); border: 1px solid rgba(255, 138, 128, .4); color: #FFD9D5; }
.form-status .msg .icon { margin-top: 2px; }
.form-status .msg--ok .icon { color: var(--success); }
.form-status .msg--err .icon { color: var(--danger); }
.form-status a { color: inherit; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: var(--z-content); border-top: 1px solid var(--line); background: rgba(10, 14, 19, .7); backdrop-filter: blur(8px); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 18px; font-size: .875rem; color: var(--text-muted); }
.creds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.creds li { color: #E3E8EE; font-variant-numeric: tabular-nums; }
.creds span { color: var(--text-muted); margin-right: 4px; }
.copy { margin: 0; }

/* ---------- background pause toggle ---------- */
.footer-end { display: flex; align-items: center; gap: 16px; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  background: rgba(10, 14, 19, .72); color: #fff; font-size: .8125rem; font-weight: 500;
  backdrop-filter: blur(8px);
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.motion-toggle:hover { background: rgba(30, 40, 54, .9); border-color: rgba(255, 255, 255, .5); }
.motion-toggle .icon { width: 15px; height: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .intro { max-width: 680px; }
  .enquiry { max-width: 680px; }
  .bg::after {
    background:
      radial-gradient(ellipse 80% 40% at 20% 15%, rgba(79, 141, 202, .2), transparent 70%),
      linear-gradient(180deg, rgba(10, 14, 19, .64) 0%, rgba(10, 14, 19, .74) 45%, rgba(10, 14, 19, .86) 100%);
  }
}
@media (max-width: 640px) {
  .site-header__inner { min-height: 72px; padding-block: 14px; }
  .logo { height: 36px; }
  .header-call span { display: none; } /* keep a 44px call icon next to the logo */
  .header-call { width: 44px; padding: 0; }
  .ctas .btn { flex: 1 1 100%; }
  .row { grid-template-columns: 1fr; }
  .services li { font-size: .875rem; padding: 7px 12px; }
  .creds { flex-direction: column; }
  .footer-end { width: 100%; justify-content: space-between; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bg__inner { animation: none; }
  .pulse::after { animation: none; }
  .motion-toggle { display: none; }
  .btn, .field input, .field select, .field textarea { transition: none; }
}
