/* ==========================================================================
   Handy Services — Group site styles v4 ("Cold Steel")
   handyservices.co.za · Parent brand: Web Slabs Design · SafeStop · Slabs OS
   Cool industrial: midnight steel, ice lines, electric cyan. Glow where it counts.
   ========================================================================== */

:root {
  --paper: #EEF2F7;
  --coal: #0B1220;
  --coal-2: #0E1728;
  --coal-3: #14203A;
  --ink: #101828;
  --ink-2: #5A6B82;
  --line: #D5DEE9;
  --line-dark: #1D2A44;
  --cyan: #22D3EE;
  --cyan-2: #06B6D4;
  --blue: #3B82F6;
  --green: #34D399;
  --amber: #FBBF24;
  --cream: #EAF0F8;
  --card: #FFFFFF;
  --muted-dark: #9DA9BC;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: #06202A; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin: 0; }

p { color: inherit; }

a { color: var(--cyan-2); }

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(9, 15, 27, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 8px 32px rgba(2, 8, 20, .35);
}

.header-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--cream);
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 12px;
  filter: brightness(1.08) drop-shadow(0 0 12px rgba(34, 211, 238, .6));
  box-shadow: 0 0 0 1.5px rgba(34, 211, 238, .38), 0 4px 18px rgba(2, 8, 20, .55);
}

.logo b {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(92deg, #F2FAFF 0%, #C9EDFF 55%, #9BE8FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 9px rgba(34, 211, 238, .55)) drop-shadow(0 2px 5px rgba(2, 8, 20, .65));
}

.logo .sub {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9FB0C9;
}

nav { display: flex; align-items: center; gap: 20px; }

nav a {
  text-decoration: none;
  color: #AEB9CB;
  font-size: .88rem;
  font-weight: 500;
  transition: color .15s;
}

nav a:hover { color: #FFFFFF; }

.nav-cta {
  background: var(--cyan);
  color: #06202A !important;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(34, 211, 238, .35);
  transition: background .2s, transform .2s, box-shadow .2s;
}

.nav-cta:hover { background: #67E8F9; color: #06202A !important; transform: translateY(-1px); box-shadow: 0 0 26px rgba(34, 211, 238, .55); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 600px at 85% -20%, rgba(96, 165, 250, .34), transparent 60%),
    radial-gradient(900px 520px at 80% 118%, rgba(37, 99, 235, .42), transparent 65%),
    radial-gradient(820px 480px at -4% 112%, rgba(30, 64, 175, .48), transparent 62%),
    linear-gradient(158deg, #060D22 0%, #0A1738 32%, #122B6E 70%, #1B3FAE 100%);
  color: var(--cream);
  padding: 150px 0 96px;
  overflow: hidden;
}

/* flowing glow ribbons — slow aurora drift over the blue field */
.hero::before {
  content: '';
  position: absolute;
  inset: -32%;
  background:
    radial-gradient(38% 30% at 28% 36%, rgba(59, 130, 246, .38), transparent 70%),
    radial-gradient(30% 26% at 74% 58%, rgba(34, 211, 238, .22), transparent 70%),
    radial-gradient(26% 24% at 55% 16%, rgba(129, 140, 248, .26), transparent 70%);
  filter: blur(46px);
  animation: heroFlow 24s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroFlow {
  0%   { transform: translate3d(-3%, -2%, 0) rotate(-2deg) scale(1); }
  50%  { transform: translate3d(2.5%, 2%, 0) rotate(1.5deg) scale(1.06); }
  100% { transform: translate3d(3.5%, -2.5%, 0) rotate(2.5deg) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.5rem);
  margin: 18px 0 20px;
  color: #F4F8FE;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  color: transparent;
  background: linear-gradient(92deg, #67E8F9 0%, #22D3EE 45%, #3B82F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: #A9B4C6;
  max-width: 52ch;
  line-height: 1.65;
  margin: 0 0 28px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #93A2BA;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(148, 180, 220, 0.05);
}

.stamp .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(52, 211, 153, .8); }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-orange { background: var(--cyan); color: #06202A; box-shadow: 0 4px 24px rgba(34, 211, 238, .35); }
.btn-orange:hover { background: #67E8F9; color: #06202A; box-shadow: 0 8px 34px rgba(34, 211, 238, .5); }

.btn-ghost { border-color: #2C3E63; color: var(--cream); background: rgba(148, 180, 220, .04); }
.btn-ghost:hover { border-color: var(--cyan); color: #CFF8FF; }

/* ---------- Terminal card ---------- */
.terminal {
  background: #060B14;
  border: 1px solid #1B2A47;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 8, 20, .6), 0 0 0 1px rgba(34, 211, 238, .06), 0 0 44px rgba(34, 211, 238, .07);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid #1B2A47;
  background: #0A1220;
}

.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.terminal-bar i:nth-child(1) { background: #FF5F57; }
.terminal-bar i:nth-child(2) { background: #FEBC2E; }
.terminal-bar i:nth-child(3) { background: #28C840; }
.terminal-bar span {
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: .1em;
  color: #64748E;
}

.terminal-body {
  padding: 18px 18px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  line-height: 1.9;
  color: #C7D2E4;
}

.terminal-body .p { color: var(--cyan); font-weight: 700; }
.terminal-body .ok { color: var(--green); }
.terminal-body .dim { color: #5D6E8C; }
.terminal-body a { color: #C7D2E4; text-decoration: none; border-bottom: 1px dotted #3D527A; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }

.section-dark {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(34, 211, 238, .07), transparent 60%),
    linear-gradient(180deg, var(--coal) 0%, #0A111F 100%);
  color: var(--cream);
}

.section-dark h2 { color: #F4F8FE; }

.section-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; margin-bottom: 44px; align-items: end; }

.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-top: 10px; }

.section-head p { margin: 0; color: #4A5B74; font-size: 1.02rem; max-width: 48ch; }

.section-dark .section-head p { color: var(--muted-dark); }

/* ---------- Division cards ---------- */
.div-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.div-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}

.div-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent 72%);
  opacity: 0;
  transition: opacity .25s;
}

.div-card:hover { transform: translateY(-3px); border-color: #9BD9E8; box-shadow: 0 18px 44px rgba(6, 34, 52, .12), 0 0 0 1px rgba(34, 211, 238, .18); }
.div-card:hover::after { opacity: 1; }

.div-card .glyph {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--coal);
}

.div-card h3 { font-size: 1.18rem; }
.div-card p { margin: 0; font-size: .9rem; color: #4A5B74; line-height: 1.62; }
.div-card .go { margin-top: auto; font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-2); }
.div-card .tag { font-family: 'JetBrains Mono', monospace; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #51637E; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; width: fit-content; }

/* ---------- OS module chips ---------- */
.os-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.module-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }

.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .08em;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #2C3E63;
  color: #B7C3D6;
  background: rgba(148, 180, 220, .05);
}

.chip.free { border-color: rgba(52, 211, 153, .45); color: var(--green); }

.chip.paid { border-color: rgba(34, 211, 238, .5); color: var(--cyan); }

.model-note { color: var(--muted-dark); font-size: .98rem; max-width: 48ch; }

/* ---------- Contact / forms ---------- */
.form-shell {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 48px;
  align-items: start;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 18px 48px rgba(6, 34, 52, .08);
}

fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 0 0 14px; }

legend { font-family: 'JetBrains Mono', monospace; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #51637E; padding: 0 6px; }

label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; margin-bottom: 12px; color: var(--ink); }

input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid #C4CFDC;
  background: #FBFCFE;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan-2);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .18);
}

textarea { resize: vertical; min-height: 76px; }

.checks { display: flex; flex-wrap: wrap; gap: 7px; }

.checks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FBFCFE;
  cursor: pointer;
  font-weight: 600;
  font-size: .8rem;
  margin: 0;
  color: #33415C;
  transition: border-color .15s, background .15s, color .15s;
}

.checks label:hover { border-color: var(--cyan-2); }

.checks label:has(input:checked) { background: var(--coal); color: var(--cream); border-color: var(--coal); }

.checks input { position: absolute; opacity: 0; width: 0; height: 0; }

label.consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  background: #F3F7FB;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  margin: 4px 0 16px;
  font-size: .84rem;
  color: #33415C;
}

label.consent input { width: 16px; height: 16px; min-width: 16px; accent-color: var(--cyan-2); }

.honeypot { position: absolute; left: -9999px; }

.success, .error { display: flex; gap: 10px; padding: 13px 15px; border-radius: 12px; margin-bottom: 16px; font-size: .9rem; align-items: flex-start; }
.success span, .error span { font-weight: 700; }
.success p, .error p { margin: 2px 0 0; font-size: .84rem; }
.success { background: #E7F8F1; border: 1px solid #A7DFC6; color: #0B5138; }
.error { background: #FDECEC; border: 1px solid #F3B4B4; color: #7C2323; }
.error ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Footer ---------- */
footer {
  background: var(--coal);
  color: var(--cream);
  border-top: 1px solid var(--line-dark);
  padding: 56px 0 40px;
}

.foot-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr .8fr; gap: 32px; }

.foot-grid h4 {
  margin: 0 0 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7E8CA3;
}

.foot-grid p, .foot-grid a { font-size: .87rem; color: #A9B4C6; text-decoration: none; line-height: 1.85; }
.foot-grid a:hover { color: #FFFFFF; }

.foot-base {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 18px 32px 0;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748E;
}

/* ---------- Page header ---------- */
.page-header { padding: 150px 0 20px; }

.page-header h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); margin: 16px 0 14px; }

.page-header p { font-size: 1.08rem; color: #4A5B74; max-width: 56ch; margin: 0; }

.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan-2); }

/* ---------- Stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 56px;
  box-shadow: 0 14px 40px rgba(6, 34, 52, .07);
}

.stat {
  background: var(--card);
  padding: 22px;
}

.stat b { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }

.stat span { font-family: 'JetBrains Mono', monospace; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #51637E; }

/* ---------- Prose blocks ---------- */
.prose { max-width: 70ch; }
.prose p { color: #3D4E68; margin: 0 0 18px; font-size: 1.02rem; }
.prose strong { color: var(--ink); }

/* ---------- Details / FAQ ---------- */
details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 10px; overflow: hidden; }

summary { list-style: none; padding: 14px 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .92rem; user-select: none; color: var(--ink); }

summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--cyan-2); font-weight: 700; }
details[open] summary::after { content: '−'; }

.details-body { padding: 0 16px 16px; font-size: .92rem; color: #3D4E68; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .wrap { padding: 0 16px; }
  .header-in { padding: 10px 16px; }
  nav { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  nav a:not(.nav-cta) { font-size: .78rem; }
  .hero { padding: 120px 0 56px; }
  .hero-grid, .os-grid, .form-shell, .section-head { grid-template-columns: 1fr; gap: 28px; }
  .div-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 56px 0; }
  .page-header { padding: 120px 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
