/* =========================================================
   Jaxio Digital: styles
   Brand colors live in :root below. Change --brand and
   --accent to re-skin the whole site.
   ========================================================= */

:root {
  --brand: #4f46e5;        /* indigo */
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --accent: #06b6d4;       /* cyan */
  --ink: #0f172a;          /* near-black text */
  --ink-soft: #475569;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --line: #e5e7eb;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --container: 1140px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ebf5;
    --ink-soft: #a3accb;
    --bg: #0b1020;
    --bg-alt: #10162b;
    --line: #222b45;
    --card: #131a30;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(79, 70, 229, .45); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
}
.brand-name { font-family: var(--font-head); font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn-ghost { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent),
    radial-gradient(900px 500px at 0% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 1.4rem; }
.hero-trust {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 1rem;
  color: var(--ink-soft);
  font-size: .92rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* Hero art */
.hero-art { position: relative; height: 360px; }
.orb { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .8; }
.orb-a { width: 240px; height: 240px; right: 10%; top: 6%;
  background: radial-gradient(circle at 30% 30%, var(--brand), transparent 70%); }
.orb-b { width: 200px; height: 200px; left: 6%; bottom: 4%;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%); }
.card-float {
  position: absolute;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .7rem 1rem;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.card-float svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.card-1 { top: 12%; left: 8%; }
.card-2 { top: 46%; right: 4%; animation-delay: .8s; }
.card-3 { bottom: 8%; left: 20%; animation-delay: 1.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.service-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--brand);
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  margin-bottom: 1rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* ---------- Process ---------- */
.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 800; font-family: var(--font-head);
  margin-bottom: .9rem;
}
.step p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: center;
}
.checklist { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; color: var(--ink-soft); }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0;
  color: #fff;
  background: var(--brand);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700;
  top: 3px;
}
.about-stats {
  display: grid;
  gap: 1rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  box-shadow: var(--shadow);
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--brand);
}
.stat-label { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.contact-list li { margin-bottom: .7rem; color: var(--ink-soft); display: flex; align-items: flex-start; gap: .55rem; }
.contact-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 3px; }
.contact-list a { color: var(--brand); font-weight: 600; }

.quote-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field textarea { resize: vertical; }
.form-note { font-size: .8rem; color: var(--ink-soft); text-align: center; margin: .9rem 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 3rem 0 2rem;
}
@media (prefers-color-scheme: dark) {
  .site-footer { background: #060a16; }
}
.footer-inner { text-align: center; display: grid; gap: 1rem; justify-items: center; }
.site-footer .brand-name { color: #fff; }
.footer-tag { color: #94a3b8; margin: 0; max-width: 40ch; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #cbd5e1; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.copyright { color: #64748b; font-size: .85rem; margin: .4rem 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 24px 1.4rem;
    transform: translateY(-120%);
    transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn-ghost { margin-top: .6rem; border: 1px solid var(--brand); }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
