/* =========================================================
   Nimbus Optimus: site styles
   Colors, fonts and spacing are set once in :root below.
   Change a color there and it updates everywhere.
   ========================================================= */

:root {
  --ink: #0f172a;          /* headings, dark text */
  --ink-soft: #334155;     /* body text */
  --muted: #5b6474;        /* secondary text */
  --line: #e2e8f0;         /* thin borders */
  --field-line: #8792a2;   /* form field borders */
  --bg: #ffffff;
  --bg-soft: #f6f7fb;      /* light sections */
  --night: #1e1b4b;        /* deep indigo (top banner, footer) */
  --brand: #312e81;        /* indigo */
  --accent: #4f46e5;       /* buttons */
  --accent-hover: #4338ca;
  --accent-text: #4338ca;  /* indigo dark enough for text on white */
  --sky: #06b6d4;          /* cyan highlight (decoration only) */
  --sky-light: #a5f3fc;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .14);
  --container: 1160px;
  --header-h: 72px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-soft); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.center { text-align: center; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .75rem 1.5rem; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--sm { min-height: 44px; padding: .55rem 1.2rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 8px 22px rgba(79, 70, 229, .35); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--night); }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 3rem + 3.5vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section > .container > h2 { margin-bottom: 1.75rem; }
.section > .container > h2.center { margin-bottom: 2.75rem; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-head .lead { margin: 0; }
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.2rem); color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name span { color: var(--accent-text); }
.nav-list { display: flex; gap: 1.75rem; }
.nav-list a { position: relative; padding: .4rem 0; font-weight: 650; font-size: .98rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 899px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: .25rem 1.25rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(15, 23, 42, .1);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-list.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-list a { display: block; padding: .95rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-list li:last-child a { border-bottom: 0; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current] { color: var(--accent-text); }
}
@media (max-width: 420px) { .header-cta { display: none; } }

/* ---------- Home: top banner ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(6, 182, 212, .28), transparent 70%),
    radial-gradient(500px 380px at 10% 110%, rgba(129, 140, 248, .35), transparent 70%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e3a5f 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero-kicker { margin-bottom: .9rem; font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-light); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.7rem); line-height: 1.06; margin-bottom: 1.25rem; }
.hero-lead { font-size: clamp(1.0625rem, 1rem + .45vw, 1.25rem); color: rgba(255, 255, 255, .85); margin-bottom: 2rem; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-card {
  display: grid; gap: 1.1rem; padding: 1.75rem;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-card li { display: flex; gap: .9rem; align-items: flex-start; }
.hero-card .icon { width: 2.5rem; height: 2.5rem; padding: .6rem; border-radius: 12px; background: rgba(6, 182, 212, .18); color: var(--sky-light); }
.hero-card span { color: rgba(255, 255, 255, .75); font-size: .95rem; line-height: 1.4; }
.hero-card strong { display: block; color: #fff; font-size: 1.02rem; }
.hero-text > *, .hero-card { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-card { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hero-actions .btn { flex: 1 1 100%; } .hero-card { padding: 1.25rem; } }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; height: 100%; padding: 1.75rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.25rem; border-radius: 14px; background: #eef2ff; color: var(--accent-text); }
.card-icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; font-weight: 700; color: var(--accent-text); }
.card-more .icon { width: 1em; height: 1em; transition: transform .2s; }
.card:hover .card-more .icon { transform: translateX(4px); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- "Sound familiar?" ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.pains { display: grid; gap: .8rem; }
.pains li { position: relative; padding: 1rem 1.25rem 1rem 2.9rem; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); color: var(--ink); font-weight: 600; }
.pains li::before { content: ""; position: absolute; left: 1.25rem; top: 50%; width: .65rem; height: .65rem; transform: translateY(-50%); border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(6, 182, 212, .18); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1rem; border-radius: 50%; background: var(--night); color: var(--sky-light); font-weight: 900; font-size: 1.15rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .step { display: grid; grid-template-columns: 46px 1fr; column-gap: 1rem; }
  .step-num { grid-row: 1 / span 2; margin: 0; }
  .step > h3, .step > p { grid-column: 2; }
}

/* ---------- Who we work with ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .6rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 650; font-size: .95rem; color: var(--ink); }

/* ---------- Inner page top ---------- */
.page-hero { padding-block: clamp(3rem, 2.25rem + 3vw, 5rem); background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%); }
.page-hero .container > * { max-width: 760px; }
.page-hero .lead { margin-bottom: 1.75rem; }
.page-hero .lead:last-child { margin-bottom: 0; }
.page-hero--center { text-align: center; }
.page-hero--center .container > * { margin-inline: auto; }
.page-hero--center .hero-actions { justify-content: center; }
.page-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.25rem; border-radius: 16px; background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .3); }
.page-icon .icon { width: 28px; height: 28px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; font-size: .9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .page-hero .hero-actions .btn { flex: 1 1 100%; } }

/* ---------- Article text ---------- */
.prose { max-width: 760px; }
.prose > h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin: 2.75rem 0 .8rem; }
.prose > h2:first-child { margin-top: 0; }
.prose a { font-weight: 600; text-underline-offset: 3px; }
.check-list { display: grid; gap: .55rem; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 1.75rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (min-width: 640px) { .check-list--cols { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.numbered { display: grid; gap: 1rem; counter-reset: n; }
.numbered li { position: relative; padding-left: 2.75rem; counter-increment: n; }
.numbered li::before {
  content: counter(n); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.9rem; height: 1.9rem;
  border-radius: 50%; background: #eef2ff; color: var(--accent-text); font-weight: 800; font-size: .95rem;
}
.numbered strong { color: var(--ink); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-bottom: 1rem; }
.values li { padding-top: 1rem; border-top: 3px solid var(--sky); }
.values h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.values p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }
.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list a { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; transition: border-color .2s; }
.pill-list a:hover { border-color: var(--accent); }

/* ---------- Questions ---------- */
.faq { display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary { position: relative; padding: 1.1rem 3.5rem 1.1rem 1.35rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 1.35rem; top: 50%; width: 14px; height: 2px; background: var(--accent-text); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0; padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* ---------- Call-to-action band ---------- */
.cta-band {
  color: rgba(255, 255, 255, .82); padding-block: clamp(3.25rem, 2.5rem + 2.5vw, 4.75rem);
  background: radial-gradient(500px 300px at 90% 0%, rgba(6, 182, 212, .3), transparent 70%), linear-gradient(135deg, #1e1b4b, #312e81);
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-inner > div:first-child { max-width: 640px; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; font-size: 1.1rem; }
@media (max-width: 600px) { .cta-actions, .cta-actions .btn { width: 100%; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.contact-email { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.booking { margin-top: 1.75rem; padding: 1.5rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.booking p { margin-bottom: 1rem; }
.form-card { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .95rem; color: var(--ink); }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--field-line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; padding-right: 2.5rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right .9rem center / 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79, 70, 229, .15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.is-success { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.form-status.is-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.form-note { margin: 0; font-size: .875rem; color: var(--muted); text-align: center; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: 3.5rem; background: var(--night); color: rgba(255, 255, 255, .72); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.brand--light { color: #fff; margin-bottom: 1rem; }
.brand--light .brand-name span { color: var(--sky-light); }
.footer-brand p { max-width: 340px; }
.footer-title { margin-bottom: 1rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--sky-light); }
.footer-bottom { padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Phone-only bottom bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 759px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
  }
  .mobile-bar .btn { min-height: 48px; }
  body { padding-bottom: 72px; }
}

/* ---------- Gentle fade-in as you scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* People who turn off motion in their device settings get no animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
