/* ==========================================================
   Add A Jack — styles
   ========================================================== */

:root {
  --ink: #14171C;
  --muted: #454B54;
  --subtle: #5A606A;
  --ground: #F5F4EF;
  --white: #FFFFFF;
  --line: #E2E0D8;
  --line-2: #DDDBD3;
  --night: #0B0F16;
  --night-2: #1A2029;
  --night-line: #323A47;

  --accent: #1D4ED8;
  --accent-2: #7C3AED;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --glow-a: rgba(29, 78, 216, 0.40);
  --glow-b: rgba(124, 58, 237, 0.33);

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1160px;
  --section-pad: 104px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #8FB0FF; outline-offset: 3px; border-radius: 4px; }

/* Page fills the window so the footer always sits at the bottom */
.page { min-height: 100vh; display: flex; flex-direction: column; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-md { display: flex; flex-direction: column; gap: 20px; }
.stack-xl { display: flex; flex-direction: column; gap: 52px; }
.measure { max-width: 40ch; }
.measure-sm { max-width: 36ch; }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

h2 {
  font-weight: 900;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.grad-text {
  background-image: linear-gradient(90deg, #8FB0FF, #C9A8FF 60%, #F0A8D8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 18px; min-height: 44px; }
.btn-lg { padding: 14px 24px; min-height: 50px; }
.btn-grad { background-image: var(--grad); color: #fff; }
.btn-grad:hover { color: #fff; }
.btn-lg.btn-grad { box-shadow: 0 10px 30px -8px var(--glow-a); }
.btn-lg.btn-grad:hover { box-shadow: 0 14px 36px -8px var(--glow-a); }
.btn-ghost { border: 1.5px solid #5A6270; background: rgba(255,255,255,0.04); color: #fff; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.10); }

/* ---------- Hero ---------- */
.hero-wrap {
  background-color: var(--night);
  background-image:
    radial-gradient(#252C38 1.2px, transparent 1.2px),
    radial-gradient(55% 65% at 82% 38%, var(--glow-b), transparent 72%),
    radial-gradient(55% 60% at 55% 105%, var(--glow-a), transparent 70%),
    radial-gradient(40% 50% at 0% 0%, #1A2333, transparent 70%);
  background-size: 22px 22px, 100% 100%, 100% 100%, 100% 100%;
  color: #ECEDEF;
}

.site-header {
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand .logo { display: block; height: 70px; width: auto; }
@media (max-width: 760px) { .brand .logo { height: 56px; } }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 500; font-size: 16px; }
.site-nav a:not(.btn) { color: #D5D8DE; text-decoration: none; }
.site-nav a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--night-line);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hero {
  padding-top: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px;
  align-items: end;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; padding-bottom: 88px; }
.eyebrow-live { color: #9FB6E8; display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 0 rgba(61,214,140,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,214,140,.55); } 70% { box-shadow: 0 0 0 8px rgba(61,214,140,0); } 100% { box-shadow: 0 0 0 0 rgba(61,214,140,0); } }

.hero h1 {
  font-weight: 900;
  font-size: clamp(52px, 7.2vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #fff;
}
.lead { font-size: 20px; color: #B9BEC6; max-width: 32ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-art { width: 100%; height: auto; display: block; }

/* ---------- Wire-colour stripe ---------- */
.wire-stripe {
  height: 10px;
  flex: none;
  background: linear-gradient(90deg,
    #F3C9A6 0 12.5%, #E8772E 12.5% 25%, #BFE0CB 25% 37.5%, #2F6FDB 37.5% 50%,
    #C3D5F5 50% 62.5%, #2E9E5B 62.5% 75%, #DCC7B8 75% 87.5%, #8A5A3B 87.5% 100%);
}

/* ---------- Referred by ---------- */
.referred { background: var(--white); border-bottom: 1px solid var(--line); }
.referred-inner { padding-block: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.referred-names { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 44px; font-family: var(--font-display); font-weight: 800; font-size: 28px; color: #3A3F47; letter-spacing: -0.01em; }
.referred-more { font-weight: 500; font-size: 18px; color: var(--subtle); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-services { background-image: linear-gradient(180deg, #F5F4EF 0%, #EEF0F8 100%); }
.section-about { background-image: linear-gradient(180deg, #F5F4EF 0%, #F2EFF8 100%); }
#faq { border-bottom: 0; }

.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px;
  align-items: start;
}

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background-image: linear-gradient(90deg, var(--c), var(--tint)); }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(20, 23, 28, .25); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.icon-tile { width: 52px; height: 52px; border-radius: 12px; background-image: linear-gradient(140deg, var(--tint), #fff); display: flex; align-items: center; justify-content: center; }
.icon-tile svg { width: 26px; height: 26px; fill: none; stroke: var(--icon, #14171C); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.num { font-family: var(--font-mono); font-size: 13px; color: #8A8F97; }
.card h3 { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-num { flex: none; width: 48px; height: 48px; border-radius: 50%; background-image: var(--grad); box-shadow: 0 8px 20px -8px var(--glow-a); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.step-line { flex: 1; height: 2px; background-image: repeating-linear-gradient(90deg, #C9C6BC 0 8px, transparent 8px 14px); }
.steps h3 { font-weight: 800; font-size: 22px; }
.steps p { color: var(--muted); font-size: 16px; }

/* ---------- About ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 12px; }
.stat { border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 4px; color: #fff; }
.stat-dark { background-image: linear-gradient(160deg, #222A37, #0B0F16); }
.stat-grad { background-image: var(--grad); }
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 11vw, 60px); line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: 15px; color: #DCE2EE; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checklist li { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.checklist svg { flex: none; width: 26px; height: 26px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.checklist div { display: flex; flex-direction: column; gap: 4px; }
.checklist strong { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.checklist span { color: var(--muted); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background-image: var(--grad); display: flex; align-items: center; justify-content: center; }
.faq-icon svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; transition: transform .2s ease; }
.faq details[open] .faq-icon svg { transform: rotate(45deg); }
.faq details p { padding: 0 56px 24px 0; color: var(--muted); font-size: 16px; }

/* ---------- Contact + footer ---------- */
.contact {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  background-color: var(--night);
  background-image:
    radial-gradient(#252C38 1.2px, transparent 1.2px),
    radial-gradient(50% 70% at 10% 100%, var(--glow-a), transparent 70%),
    radial-gradient(45% 60% at 95% 10%, var(--glow-b), transparent 70%);
  background-size: 22px 22px, 100% 100%, 100% 100%;
  color: #ECEDEF;
}
.contact-inner { flex: 1 0 auto; padding-top: var(--section-pad); padding-bottom: 40px; display: flex; flex-direction: column; gap: 64px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: end; }
.contact-title { font-size: clamp(40px, 5.4vw, 72px); line-height: 0.98; letter-spacing: -0.035em; color: #fff; }
.on-dark-muted { color: #B9BEC6; }

.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-card:hover { color: #fff; transform: translateY(-2px); }
.contact-card > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.contact-card:hover svg { transform: translateX(4px); }
.contact-card-grad { background-image: var(--grad); box-shadow: 0 14px 40px -12px var(--glow-a); }
.contact-card-glass { background-image: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); border: 1px solid var(--night-line); }
.contact-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #C9D3EA; }
.contact-value { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.contact-email { font-size: 24px; overflow-wrap: anywhere; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid #2A313C;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  font-size: 14px;
  color: #9AA3B0;
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  :root { --section-pad: 72px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 12px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; }
  .site-nav .btn { justify-content: center; margin-top: 8px; }
  .hero { padding-top: 40px; }
  .hero-copy { padding-bottom: 24px; }
  .referred-names { font-size: 22px; gap: 8px 28px; }
  .faq details p { padding-right: 0; }
}

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