/* WebFMS Sites: mobile-first. Base = phones; min-width 640 / 900 / 1200. */

:root {
  --navy-950: #021a25;
  --navy-900: #04293a;
  --navy-800: #023a51;
  --navy-700: #0b4c66;
  --orange: #f07b1d;
  --orange-600: #d9650c;
  --amber: #f6a33c;
  --ink: #0d2430;
  --muted: #55707c;
  --line: #dde6ea;
  --paper: #ffffff;
  --tint: #f2f6f8;
  --photo-bg: #e2ecf0;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --gutter: 20px;
  --header-h: 64px;
  --shadow: 0 1px 2px rgb(2 26 37 / .06), 0 8px 24px -8px rgb(2 26 37 / .14);
}

*, *::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: 400 1rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--orange); color: #fff; box-shadow: 0 6px 18px -6px rgb(240 123 29 / .7); }
.btn--accent:hover { background: var(--orange-600); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .3); }
.btn--ghost:hover { background: rgb(255 255 255 / .08); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn .ico { transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: 14px;
}
.eyebrow--light { color: var(--amber); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgb(240 123 29 / .2); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  color: #fff;
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled, .site-header.is-open { background: rgb(4 41 58 / .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgb(255 255 255 / .06); }
.site-header__row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.375rem/1 var(--font-display); letter-spacing: -.02em; }
.brand img { width: 26px; height: auto; }
.brand small { font: 600 .6875rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-left: 6px; vertical-align: 3px; }

.nav-toggle {
  display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; color: inherit; cursor: pointer; border-radius: 12px;
}
.nav-toggle .ico { width: 26px; height: 26px; }

.nav {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 auto;
  background: var(--navy-900);
  padding: 8px var(--gutter) 24px;
  border-top: 1px solid rgb(255 255 255 / .08);
  box-shadow: 0 24px 40px -12px rgb(0 0 0 / .4);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav.is-open { opacity: 1; transform: none; visibility: visible; }
.nav ul a {
  display: flex; align-items: center; min-height: 56px;
  font: 600 1.25rem/1 var(--font-display); text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.nav__cta { width: 100%; margin-top: 20px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 50% at 85% 20%, rgb(240 123 29 / .28), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgb(11 76 102 / .9), transparent 70%),
    var(--navy-900);
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 36px) 0 56px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 44px; }
.hero h1 { font-size: clamp(2.375rem, 9.5vw, 4.5rem); font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--amber), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 18px; font-size: 1.0625rem; color: rgb(255 255 255 / .78); max-width: 34em; }
.hero__actions { display: grid; gap: 12px; margin-top: 28px; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: .875rem; color: rgb(255 255 255 / .75); }
.hero__ticks li { display: inline-flex; align-items: center; gap: 6px; }
.hero__ticks .ico { color: var(--amber); width: 1.1em; height: 1.1em; stroke-width: 2.6; }

.hero__visual { position: relative; max-width: 460px; width: 100%; margin-inline: auto; padding: 0 12px; }
.hero__photo {
  border-radius: var(--r-lg); overflow: hidden; background: var(--photo-bg);
  aspect-ratio: 1; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55);
  outline: 1px solid rgb(255 255 255 / .12); outline-offset: 6px;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: .8125rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 12px 28px -10px rgb(2 26 37 / .5);
  animation: float 6s ease-in-out infinite;
}
.chip .ico { color: var(--orange); }
.chip--a { top: 8%; right: -4px; }
.chip--b { top: 48%; left: -4px; animation-delay: -2s; }
.chip--c { bottom: 6%; right: 0; background: var(--orange); color: #fff; animation-delay: -4s; }
.chip--c .ico { color: #fff; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Strip */
.strip { background: var(--navy-950); color: rgb(255 255 255 / .55); overflow: hidden; border-top: 1px solid rgb(255 255 255 / .06); }
.strip__track { display: flex; width: max-content; padding: 18px 0; animation: marquee 30s linear infinite; font: 600 1rem/1 var(--font-display); letter-spacing: .02em; }
.strip__track span { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; }
.strip__track span::after { content: "✦"; color: var(--orange); font-size: .75rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 640px; margin-bottom: 36px; }
.section__head h2, .why h2, .contact h2 { font-size: clamp(2rem, 7.4vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; }
.section__head > p:last-child { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; }

/* Services bento */
.bento { display: grid; gap: 14px; }
.card {
  position: relative; padding: 26px 22px; border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.375rem; margin: 18px 0 8px; }
.card p { color: var(--muted); }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: #fff1e5; color: var(--orange-600);
}
.card__icon .ico { width: 24px; height: 24px; }
.card--feature { background: linear-gradient(160deg, #fff7ef, #fff 60%); border-color: #f7dcc4; }
.card--feature h3 { font-size: 1.75rem; }
.card--dark { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.card--dark p { color: rgb(255 255 255 / .75); }
.card--dark .card__icon { background: rgb(255 255 255 / .1); color: var(--amber); }
.list-check { display: grid; gap: 10px; margin: 20px 0 22px; }
.list-check li { display: flex; gap: 10px; font-weight: 500; }
.list-check .ico { color: var(--orange); stroke-width: 2.6; margin-top: 2px; }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--orange-600); text-decoration: none; }
.link:hover .ico { transform: translateX(3px); }
.link .ico { transition: transform .2s; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pay span { padding: 6px 12px; border-radius: 8px; background: rgb(255 255 255 / .1); font-size: .8125rem; font-weight: 700; }
.pay span:first-child { background: #fff; color: #000; }

/* Why */
.why { display: grid; gap: 40px; }
.why__media { position: relative; margin: 0; }
.why__media img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.why__badge {
  position: absolute; left: 14px; right: 14px; bottom: -22px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--r);
  background: var(--navy-900); color: #fff; box-shadow: 0 18px 36px -14px rgb(2 26 37 / .6);
}
.why__badge strong { font: 800 2rem/1 var(--font-display); color: var(--amber); }
.why__badge span { font-size: .875rem; line-height: 1.4; color: rgb(255 255 255 / .85); }
.why__copy { padding-top: 12px; }
.why__lead { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; }
.values { display: grid; gap: 4px; margin-top: 28px; }
.values li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.values__n { font: 700 .875rem/1.9 var(--font-display); color: var(--orange-600); min-width: 24px; }
.values h3 { font-size: 1.1875rem; margin-bottom: 4px; }
.values p { color: var(--muted); }

/* Process */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { position: relative; padding: 24px 22px 24px 82px; border-radius: var(--r); background: var(--tint); }
.step__n {
  position: absolute; left: 22px; top: 22px;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font: 700 1.125rem/1 var(--font-display);
}
.step:last-child .step__n { background: var(--orange); }
.step h3 { font-size: 1.25rem; margin-bottom: 4px; }
.step p { color: var(--muted); }

/* Contact */
.contact {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(70% 60% at 100% 0%, rgb(240 123 29 / .22), transparent 70%), var(--navy-900);
  padding: 72px 0;
}
.contact__grid { display: grid; gap: 36px; }
.contact__copy > p { margin-top: 14px; color: rgb(255 255 255 / .78); font-size: 1.0625rem; max-width: 30em; }
.contact__mail { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; text-decoration: none; font-weight: 700; font-size: 1.125rem; min-height: 44px; }
.contact__mail small { display: block; font-size: .8125rem; font-weight: 500; color: rgb(255 255 255 / .6); }
.contact__mail-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--orange); }

.form { display: grid; gap: 16px; padding: 24px 20px; border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: 0 30px 60px -24px rgb(0 0 0 / .5); }
.form__row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .875rem; font-weight: 600; }
.field i { color: var(--orange-600); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background: var(--tint); border: 1.5px solid transparent; border-radius: 12px;
  transition: border-color .2s, background-color .2s;
  appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2355707c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--orange); }
.field .is-invalid { border-color: #d33; background: #fff5f5; }
.form__status { font-size: .9375rem; font-weight: 600; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #13804b; }
.form__status.is-error { color: #c42b2b; }

/* Footer */
.site-footer { background: var(--navy-950); color: rgb(255 255 255 / .7); padding: 56px 0 calc(92px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { max-width: 30em; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .875rem; }
.site-footer__base a { text-decoration: none; }

/* Mobile bottom bar */
.mbar {
  position: fixed; inset: auto 0 0; z-index: 40;
  display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / .94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s;
}
.mbar.is-visible { transform: none; }
.mbar .btn { flex: 1; }
.mbar__mail { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-800); color: #fff; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ≥640 */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__actions { display: flex; flex-wrap: wrap; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--feature { grid-column: span 2; }
  .form { padding: 32px; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ≥900 */
@media (min-width: 900px) {
  :root { --header-h: 80px; }
  .site-footer { padding-bottom: 24px; }
  .mbar { display: none; }
  .nav-toggle { display: none; }
  .nav {
    position: static; display: flex; align-items: center; gap: 32px;
    padding: 0; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav ul { display: flex; gap: 28px; }
  .nav ul a { min-height: 44px; border: 0; font: 600 .9375rem/1 var(--font-body); color: rgb(255 255 255 / .82); }
  .nav ul a:hover { color: #fff; }
  .nav__cta { width: auto; margin: 0; min-height: 44px; }

  .hero { padding: calc(var(--header-h) + 64px) 0 96px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
  .hero__visual { max-width: 520px; }
  .chip { font-size: .875rem; padding: 12px 16px; }
  .chip--a { right: -18px; }
  .chip--b { left: -28px; }

  .section { padding: 112px 0; }
  .section__head { margin-bottom: 52px; }
  .bento { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card { padding: 32px 28px; }
  .card--feature { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; padding: 40px; }
  .card--feature h3 { font-size: 2.25rem; margin-top: 28px; }
  .card--feature p { font-size: 1.125rem; max-width: 30em; }
  .card--feature .link { margin-top: auto; }

  .why { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .why__badge { left: auto; right: -24px; bottom: 32px; max-width: 280px; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .step { padding: 28px 24px; }
  .step__n { position: static; margin-bottom: 22px; }

  .contact { padding: 112px 0; }
  .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
  .form { padding: 40px; }
}

/* ≥1200 */
@media (min-width: 1200px) {
  .hero__grid { gap: 80px; }
  .hero h1 { font-size: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- WordPress inner pages (page.php, single.php, index.php, 404.php) ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--outline { color: var(--navy-800); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--outline:hover { background: var(--tint); }

.page-hero {
  color: #fff;
  background: radial-gradient(60% 80% at 90% 0%, rgb(240 123 29 / .22), transparent 70%), var(--navy-900);
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 40px) 0 48px;
}
.page-hero h1 { font-size: clamp(2rem, 7.4vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; max-width: 18em; }
.page-hero__intro { margin-top: 14px; max-width: 36em; color: rgb(255 255 255 / .78); font-size: 1.0625rem; }

.prose { font-size: 1.0625rem; }
.prose > * { max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.75rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.375rem; margin-top: 1.6em; }
.prose a { color: var(--orange-600); }
.prose ul, .prose ol { padding-left: 1.3em; list-style: revert; }
.prose img, .prose__media img { border-radius: var(--r); }
.prose blockquote { margin-inline: 0; padding-left: 18px; border-left: 3px solid var(--orange); color: var(--muted); }

.post-list { display: grid; gap: 14px; }
.post-card h2 { font-size: 1.375rem; margin: 6px 0 8px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card__date { font-size: .875rem; color: var(--muted); }
.nav-links { display: flex; gap: 8px; margin-top: 32px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--tint); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--navy-800); color: #fff; }

@media (min-width: 640px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .page-hero { padding: calc(var(--header-h) + 72px) 0 72px; }
  .post-list { grid-template-columns: repeat(3, 1fr); }
}
