/* ============================================================
   Shared design system — modern, responsive, light/dark aware.
   Each site overrides the CSS variables in :root to re-theme.
   ============================================================ */

:root {
  /* Brand — override per site */
  --accent:        #6366f1;
  --accent-2:      #8b5cf6;
  --accent-soft:   rgba(99, 102, 241, 0.12);

  /* Surfaces & text (light) */
  --bg:            #ffffff;
  --bg-alt:        #f7f7fb;
  --surface:       #ffffff;
  --border:        #e7e7ee;
  --text:          #16161d;
  --text-muted:    #5b5b6b;
  --shadow:        0 10px 40px -12px rgba(20, 20, 40, 0.18);

  --radius:        18px;
  --radius-sm:     12px;
  --maxw:          1120px;
  --font:          "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0b0b12;
    --bg-alt:      #11111c;
    --surface:     #15151f;
    --border:      #262633;
    --text:        #f2f2f7;
    --text-muted:  #a0a0b2;
    --shadow:      0 10px 40px -12px rgba(0, 0, 0, 0.6);
    --accent-soft: rgba(99, 102, 241, 0.18);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 60ch; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--text); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px -8px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px var(--accent); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-2px); }

/* ---- Hero ---- */
.hero { position: relative; padding: 120px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; height: 620px; z-index: -1;
  background: radial-gradient(60% 60% at 70% 20%, var(--accent-soft), transparent 70%);
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Cards / grid ---- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.card h3 { margin-bottom: 8px; }

.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.bg-alt { background: var(--bg-alt); }

/* ---- Contact form ---- */
.contact-wrap { max-width: 620px; margin: 0 auto; }
.form { display: grid; gap: 16px; margin-top: 28px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { min-height: 130px; resize: vertical; }
/* Honeypot — hidden from real users, catches bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-note { font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #10b981; }
.form-note.err { color: #ef4444; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: 44px 0; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { font-size: 0.9rem; }
.social { display: flex; gap: 18px; }
.social a { color: var(--text-muted); transition: color .2s; }
.social a:hover { color: var(--accent); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 16px 24px 24px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  section { padding: 72px 0; }
}
/* Business site palette — teal/emerald. Override the shared tokens. */
:root {
  --accent:      #0ea5a4;
  --accent-2:    #22c55e;
  --accent-soft: rgba(14, 165, 164, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root { --accent-soft: rgba(14, 165, 164, 0.20); }
}
