/* ==========================================================================
   Syncbos global design system
   Shared by every public-facing page (marketing, pricing, booking, support).
   Defines the design tokens (colors, radius, shadow) and the reusable
   building blocks (buttons, cards/glass, headings, badges/tags) once, so
   individual pages only need page-specific layout CSS on top of this.
   ========================================================================== */

:root {
  /* Clean corporate canvas: white background, slate text. */
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --ink: #0F172A;
  --ink-muted: #5B6478;
  --line: rgba(15, 23, 42, .10);

  /* Brand: indigo = primary action, emerald = positive/success,
     amber = pending/warning, danger = overdue/negative - the same
     semantic system used in the app, carried into the marketing site. */
  --indigo: #4F46E5;
  --indigo-bright: #6366F1;
  --emerald: #10B981;
  --amber: #F59E0B;
  --danger: #DC2626;

  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .65);

  --shadow-soft: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lift: 0 30px 70px -30px rgba(79, 70, 229, .45);
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, .brand { font-family: 'Sora', sans-serif; letter-spacing: -.02em; line-height: 1.1; }
a { text-decoration: none; color: inherit; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* ambient aurora backdrop - the color/blur behind every glass surface */
.aurora { position: fixed; inset: 0; z-index: -2; background: var(--bg); }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 18s ease-in-out infinite; }
.a1 { width: 520px; height: 520px; background: rgba(79, 70, 229, .42); top: -160px; left: -80px; }
.a2 { width: 480px; height: 480px; background: rgba(16, 185, 129, .38); top: 220px; right: -140px; animation-delay: -6s; }
.a3 { width: 420px; height: 420px; background: rgba(245, 158, 11, .22); bottom: -140px; left: 35%; animation-delay: -11s; }
@keyframes drift { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(40px,-40px,0) scale(1.12); } }
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000, transparent 78%);
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.9);
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; border-radius: 12px; padding: 11px 18px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--indigo-bright)); color: #fff; box-shadow: 0 14px 30px -14px rgba(79,70,229,.95); }
.btn-ghost { background: rgba(255,255,255,.6); border-color: var(--line); color: var(--ink); }
.btn-emerald { background: linear-gradient(135deg, var(--emerald), #34D399); color: #04291f; box-shadow: 0 14px 30px -14px rgba(16,185,129,.9); }
.btn-white { background: #fff; color: var(--indigo); }

/* Headings & body copy */
.head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.head p { color: var(--ink-muted); margin-top: 12px; font-size: 16.5px; }
.grad { background: linear-gradient(115deg, var(--indigo), var(--emerald)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cards */
.card { padding: 26px; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-muted); font-size: 15px; }

/* Pills / tags / badges */
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--indigo);
  background: rgba(79,70,229,.10); border: 1px solid rgba(79,70,229,.22); padding: 7px 14px; border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.tag { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: rgba(16,185,129,.14); color: #047857; }
.tag.i { background: rgba(79,70,229,.12); color: var(--indigo); }
.tag.warn { background: rgba(245,158,11,.16); color: #92400E; }

/* Site logo in the header - falls back to the gradient mark square when no
   logo has been uploaded via /admin -> General Settings. */
.brand img.site-logo { height: 38px; width: auto; max-width: 180px; object-fit: contain; }

/* Form fields - used by any public-facing form (support, quote requests). */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.field .error { color: var(--danger); font-size: 12.5px; margin-top: 5px; }
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: #047857; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; }

/* ==========================================================================
   Shared header + footer - used by every public page via
   partials.site-header / partials.site-footer, so nav/branding changes
   happen in exactly one place.
   ========================================================================== */
header { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.nav { display: flex; align-items: center; gap: 22px; padding: 12px 14px 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--indigo), var(--emerald)); box-shadow: 0 8px 18px -8px rgba(79,70,229,.9); }
nav.links { display: flex; gap: 26px; margin-left: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-muted); }
nav.links a { position: relative; transition: color .2s; }
nav.links a:hover { color: var(--ink); }
nav.links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: linear-gradient(90deg, var(--indigo), var(--emerald)); transition: width .25s; }
nav.links a:hover::after { width: 100%; }
.nav .spacer { flex: 1; }
.burger { display: none; font-size: 22px; background: none; border: 0; color: var(--ink); }

footer { margin-top: 40px; padding: 0 0 34px; }
.foot { padding: 40px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot p { color: var(--ink-muted); font-size: 14.5px; margin-top: 12px; max-width: 280px; }
.foot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; color: var(--ink-muted); }
.foot ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-muted); font-weight: 600; }
.foot ul a:hover { color: var(--indigo); }
.bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-muted); }

.simple-footer { max-width: 1120px; margin: 0 auto; padding: 32px 24px; display: flex; justify-content: space-between; color: var(--ink-muted); font-size: 13px; flex-wrap: wrap; gap: 12px; }
.simple-footer a:hover { color: var(--indigo); }

@media (max-width: 960px) {
  nav.links { display: none; }
  .burger { display: block; }
  .foot { grid-template-columns: 1fr; }
}
