/* ARC.S-CLEAN — custom styles layered on top of Tailwind */

:root {
  --brand-50:  #f0f9ff;
  --brand-100: #e0f2fe;
  --brand-200: #bae6fd;
  --brand-500: #0ea5e9;
  --brand-600: #0284c7;
  --brand-700: #0369a1;
  --brand-900: #0c4a6e;
  --ink-900:   #0f172a;
  --ink-700:   #334155;
  --ink-500:   #64748b;
  --ink-200:   #e2e8f0;
  --ink-50:    #f8fafc;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-700);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink-900);
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Selection */
::selection { background: var(--brand-100); color: var(--brand-900); }

/* Focus ring */
:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header scroll state */
.site-header {
  transition: box-shadow .2s ease, background-color .2s ease, backdrop-filter .2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px -10px rgba(15, 23, 42, .12);
  background-color: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
}

/* Brand logo type */
.brand-logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink-900);
}
.brand-logo .dot { color: var(--brand-500); }
.brand-logo .accent { color: var(--brand-500); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: .85rem 1.5rem;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(14, 165, 233, .55);
}
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
}
.btn-ghost:hover { border-color: var(--ink-900); }
.btn-light {
  background: #fff;
  color: var(--ink-900);
}
.btn-light:hover { background: var(--ink-50); }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(12,74,110,.78) 0%, rgba(2,132,199,.55) 50%, rgba(15,23,42,.45) 100%);
  z-index: -1;
}

/* Card */
.card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 18px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px rgba(15, 23, 42, .25);
  border-color: var(--brand-200);
}

/* Service icon bubble */
.icon-bubble {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--brand-50);
  color: var(--brand-600);
}

/* Numbered process steps */
.step-num {
  width: 44px; height: 44px;
  border-radius: 9999px;
  background: var(--brand-500);
  color: #fff;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -10px rgba(14, 165, 233, .6);
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--ink-200); }
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 600;
  color: var(--ink-900);
  font-size: 1.05rem;
}
.faq-q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--brand-500);
  transition: transform .2s ease;
  font-weight: 400;
}
.faq-item.is-open .faq-q::after { content: "–"; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  color: var(--ink-700);
}
.faq-item.is-open .faq-a {
  max-height: 600px;
  padding-bottom: 1.25rem;
}

/* Reveal animation */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
}

/* Mobile menu */
.mobile-nav {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0;
  width: min(85%, 360px); height: 100%;
  background: #fff; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.mobile-nav.is-open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav a {
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--ink-200);
  font-weight: 500;
  color: var(--ink-900);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 80;
  background: #ffffff;
  border: 1px solid var(--ink-200);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .35);
  padding: 1.25rem 1.25rem;
  display: none;
}
.cookie-banner.is-visible { display: block; }
@media (min-width: 768px) {
  .cookie-banner {
    left: auto; right: 1.5rem; bottom: 1.5rem;
    max-width: 460px;
    padding: 1.5rem;
  }
}

/* Form */
.field-label { display:block; font-weight:600; font-size:.9rem; color: var(--ink-900); margin-bottom: .35rem; }
.field-input, .field-textarea, .field-select {
  width: 100%;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  padding: .85rem 1rem;
  font-size: 1rem;
  background: #fff;
  color: var(--ink-900);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field-input:focus, .field-textarea:focus, .field-select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .15);
}
.field-textarea { min-height: 140px; resize: vertical; }
.field-error { color: #b91c1c; font-size: .85rem; margin-top: .35rem; display: none; }
.field-error.is-visible { display: block; }
.honeypot {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Tag */
.tag {
  display: inline-flex; align-items: center;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: .35rem .75rem;
  border-radius: 9999px;
  border: 1px solid var(--brand-100);
}

/* Stat number */
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Generic prose for legal pages */
.prose-legal h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: .75rem; }
.prose-legal h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: .5rem; }
.prose-legal p, .prose-legal li { font-size: 1rem; line-height: 1.7; color: var(--ink-700); }
.prose-legal ul { list-style: disc; padding-left: 1.25rem; margin: .75rem 0; }
.prose-legal a { color: var(--brand-600); text-decoration: underline; }
.prose-legal strong { color: var(--ink-900); }

/* Image hover */
.img-hover {
  overflow: hidden; border-radius: 18px;
}
.img-hover img {
  transition: transform .6s ease;
}
.img-hover:hover img { transform: scale(1.04); }

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