/* ==========================================================
   Fe-No SRL — site styles
   ========================================================== */

/* Manrope (SIL Open Font License, see assets/fonts/OFL.txt) is self-hosted, so pages make no third-party font requests. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --soft: #f4f6f9;
  --ink: #0e1a2b;
  --ink-2: #1c2b42;
  --muted: #4f5d73;
  --line: #dfe5ed;
  --field: #8a96a8;
  --accent: #c2410c;
  --accent-strong: #9a3412;
  --accent-soft: #fdeadf;
  --ok: #15803d;
  --on-dark: #e6ebf2;
  --on-dark-muted: #a9b4c4;
  --dark-line: #26354d;
  --accent-on-dark: #fb923c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 14px 36px rgba(14, 26, 43, .10);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: -.03em; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-on-dark); }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

.wrap { width: min(100% - 2rem, 1140px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .02em;
  padding-right: 3px;
}
.brand-mark::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-on-dark); }
.brand-name { font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; line-height: 1; }
.brand-name .dash { color: var(--accent); }
.brand-name small { margin-left: .4rem; font-size: .7rem; font-weight: 800; letter-spacing: .14em; color: var(--muted); vertical-align: middle; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }

.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  content: ""; transition: transform .25s ease, background .25s ease;
}
.bars { position: relative; }
.bars::before { position: absolute; top: -6px; }
.bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: .1rem;
  background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1rem 1.5rem;
}
.nav.open { display: flex; }
.nav a { padding: .75rem .25rem; text-decoration: none; font-weight: 600; }
.nav .btn { margin-top: .6rem; align-self: flex-start; padding: .7rem 1.2rem; }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 1.8rem; padding: 0; border: 0; background: none; }
  .nav a { padding: 0; }
  .nav a:not(.btn):hover { color: var(--accent); }
  .nav .btn { margin: 0; padding: .6rem 1.1rem; font-size: .96rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font: 700 1rem/1.2 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #c5cfdb; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Shared ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-head .lede { margin: 0; }
.check { width: 18px; height: 18px; flex: none; color: var(--ok); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 16px; transition: opacity .7s ease, translate .7s ease; }
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--soft) 0%, #fff 75%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 78% 35%, #000 0%, transparent 62%);
  mask-image: radial-gradient(ellipse at 78% 35%, #000 0%, transparent 62%);
}
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.hero h1 .hl { color: var(--accent); }
.hero .lede { margin: 1.4rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 2rem 0 0; }
.facts li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .92rem; font-weight: 600; color: var(--ink-2);
}

.tracker {
  width: 100%; max-width: 440px; margin-inline: auto; padding: 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.tracker-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-weight: 800; }
.tracker-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tracker-head .tag { margin-left: auto; padding: .25rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: .78rem; font-weight: 800; }
.tracker-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.tracker-steps li { position: relative; display: flex; gap: .9rem; align-items: flex-start; padding: .7rem .4rem; }
.tracker-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(.4rem + 13px); top: calc(.7rem + 30px); bottom: -.95rem;
  width: 2px; background: var(--line);
}
.tracker-steps li.done:not(:last-child)::after { background: var(--ok); }
.tracker-steps .ico {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; color: #fff;
}
.tracker-steps .ico svg { width: 15px; height: 15px; }
.tracker-steps .done .ico { background: var(--ok); border-color: var(--ok); }
.tracker-steps .now .ico { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 5px #fff; }
.tracker-steps b { display: block; font-weight: 800; }
.tracker-steps small { color: var(--muted); font-size: .88rem; }
.tracker-bar { height: 6px; margin-top: 1rem; border-radius: 999px; background: var(--soft); overflow: hidden; }
.tracker-bar span { display: block; width: 62%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), var(--accent)); }

/* ---------- Services ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card {
  display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.card .icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); }
.card .icon svg { width: 22px; height: 22px; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: .6rem; align-self: flex-start; font-weight: 700; color: var(--accent-strong); text-decoration: none; }
.card .more::after { content: " \2192"; }
.card .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.note { margin: 2rem 0 0; color: var(--muted); }
.note a { color: var(--accent-strong); font-weight: 600; }

/* ---------- How we work (dark band) ---------- */
.band { background: var(--ink); color: var(--on-dark); }
.band .eyebrow { color: var(--accent-on-dark); }
.band .lede { color: var(--on-dark-muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { padding: 1.6rem; background: var(--ink-2); border: 1px solid var(--dark-line); border-radius: var(--radius); }
.steps .n { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 1rem; border-radius: 10px; background: rgba(251, 146, 60, .14); color: var(--accent-on-dark); font-weight: 800; }
.steps h3 { margin-bottom: .5rem; color: #fff; }
.steps p { margin: 0; color: var(--on-dark-muted); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 920px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.about-grid h2 { margin-bottom: 1.1rem; }
.values { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.values li { display: flex; gap: .65rem; align-items: center; font-weight: 600; }
.details { padding: 1.6rem; background: var(--soft); border: 1px solid var(--line); border-radius: 18px; }
.details h3 { margin-bottom: .9rem; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.details dl { margin: 0; }
.details dl > div { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.details dt { color: var(--muted); font-weight: 600; }
.details dd { margin: 0; font-weight: 700; }
@media (max-width: 520px) { .details dl > div { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; } }
.contact-grid h2 { margin-bottom: 1rem; }
.tips { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .65rem; color: var(--muted); }
.tips li { position: relative; padding-left: 1.4rem; }
.tips li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.office { margin-top: 2rem; padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.office h3 { margin-bottom: .5rem; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.office p { margin: 0; font-weight: 600; }
.office p + p { margin-top: .4rem; }
.office .muted { color: var(--muted); font-weight: 500; font-size: .95rem; }
.contact-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.contact-list li { display: flex; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.contact-list li > :first-child { min-width: 4.5rem; color: var(--muted); }

.form-card { padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .95rem; font-weight: 700; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: inherit;
  background: #fff; border: 1px solid var(--field); border-radius: 10px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field ::placeholder { color: #6b778a; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; color: #b42318; font-weight: 600; }
.form-status:not(:empty) { margin-top: .9rem; }
.fine { margin: .9rem 0 0; font-size: .9rem; color: var(--muted); }
.fine a { color: var(--accent-strong); }
.form-done { padding: 2.5rem 1rem; text-align: center; }
.form-done h3 { margin-bottom: .6rem; font-size: 1.8rem; }
.form-done p { margin: 0; color: var(--muted); }
.form-done:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 3.5rem 0 2rem; background: var(--ink); color: var(--on-dark); }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: #fff; color: var(--ink); }
.site-footer .brand-name .dash { color: var(--accent-on-dark); }
.site-footer .brand-name small { color: var(--on-dark-muted); }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot-note { max-width: 26rem; margin: .9rem 0 0; color: var(--on-dark-muted); }
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.foot-h { margin: 0 0 .3rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--dark-line);
  color: var(--on-dark-muted); font-size: .88rem;
}

/* ---------- Inner pages (legal notice, privacy, thanks, 404) ---------- */
.page-head { width: min(100% - 2rem, 780px); margin-inline: auto; padding: clamp(3rem, 7vw, 5rem) 0 1.5rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head .meta { margin: .8rem 0 0; color: var(--muted); }
.prose { width: min(100% - 2rem, 780px); margin: 0 auto; padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose h2 { margin: 2.2rem 0 .7rem; font-size: 1.45rem; letter-spacing: -.02em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--accent-strong); }
.prose .details { margin: 1.25rem 0 0; }
.center-page { min-height: 60vh; display: grid; place-items: center; padding: 4rem 1rem; text-align: center; }
.center-page .lede { margin: 1.1rem auto 2rem; }
