:root {
  --ink: #111114;
  --text: #1c1c21;
  --muted: #5d5d68;
  --bg: #ffffff;
  --bg-soft: #f6f5f3;
  --bg-warm: #fff7f0;
  --line: #e8e6e3;
  --accent-text: #c2410c;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --max: 1160px;
  --radius: 14px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.accent-text { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(234, 58, 18, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(234, 58, 18, 0.38); filter: saturate(1.1); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 18px; font-size: 14px; box-shadow: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  opacity: 0.9;
}

.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s; }
.link-arrow:hover { opacity: 1; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.scrolled .site-nav a:not(.btn),
.site-header.solid .site-nav a:not(.btn) { color: var(--text); }
.site-header.scrolled .nav-toggle span,
.site-header.solid .nav-toggle span { background: var(--ink); }

.site-header .container { width: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { height: 42px; width: auto; }

.site-header .brand { align-items: baseline; gap: 0; }
.site-header .brand img { transition: height 0.45s ease; }
.brand-text {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-16px);
  color: var(--ink);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  transition: max-width 0.45s ease, opacity 0.35s ease, transform 0.45s ease;
}
.site-header.scrolled .brand-text,
.site-header.solid .brand-text,
.site-header:has(.site-nav.open) .brand-text { max-width: 4.5em; opacity: 1; transform: none; }
.site-header.scrolled .brand img,
.site-header.solid .brand img,
.site-header:has(.site-nav.open) .brand img { height: 0.75em; font-size: 40px; }

.brand-word { display: inline-block; gap: 0; color: var(--ink); font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.brand.brand-word img { display: inline-block; height: 0.75em; vertical-align: baseline; margin-left: 0.04em; }

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a:not(.btn) {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.78;
  transition: opacity 0.2s;
  position: relative;
}

.site-nav a:not(.btn):hover, .site-nav a.active { opacity: 1; }

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc((100% - 72px) / 2 - 1px);
  height: 2px;
  border-radius: 0;
  background: var(--accent);
}

.site-nav .social { display: inline-flex; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
  color: #fff;
  background: var(--ink) url("/img/hero-3.webp") center / cover no-repeat;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(17, 17, 20, 0.72) 0%, rgba(17, 17, 20, 0.5) 50%, rgba(17, 17, 20, 0.2) 100%);
}

.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 720px; }

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 800;
}

.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: #d6d6de; max-width: 620px; margin: 0; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 38px; }

/* Sections */
.section { padding: 110px 0; }
.section-soft { background: var(--bg-soft); }
.section-warm { background: var(--bg-warm); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
.section-head p { margin: 18px 0 0; font-size: 19px; color: var(--muted); }
/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.about h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 50px); font-weight: 800; }
.about p { margin: 0; font-size: 19px; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(17, 17, 20, 0.08); }
.card:hover::before { transform: scaleX(1); }

.card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff4ec;
  margin-bottom: 22px;
}

.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

/* Steps */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
}

.step { position: relative; }

.step-num {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 0 0 8px var(--bg-warm);
  margin-bottom: 24px;
}

.step h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

/* CTA strip */
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 36px 40px;
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  box-shadow: 0 18px 40px rgba(17, 17, 20, 0.06);
}

.cta-strip h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.cta-strip p { margin: 0; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.contact h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
.contact .lead { margin: 18px 0 32px; color: var(--muted); font-size: 17px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list .icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #fff4ec; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.contact-list a { font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--accent-text); }

.contact-form {
  display: grid;
  gap: 16px;
  padding: 36px;
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(17, 17, 20, 0.07);
}

.contact-form h3 { font-size: 22px; font-weight: 800; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fc6a0f;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(252, 106, 15, 0.15);
}

.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-note a { color: var(--accent-text); }
.form-status { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0; min-height: 1.4em; }
.form-status.ok { color: #15803d; }
.form-status.error { color: #b91c1c; }

/* Blog (hidden for now) */
.blog { max-width: 760px; margin: 0 auto; padding: 40px 24px 60px; }

/* Article / legal pages */
.article { max-width: 760px; margin: 0 auto; padding: 140px 24px 90px; }
.article h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; margin: 12px 0 28px; }
.article h2 { font-size: 21px; font-weight: 700; margin: 40px 0 10px; }
.article p, .article li { color: #3c3c45; }
.article a { color: var(--accent-text); }
.article ul li, .article ol li { margin-bottom: 8px; }
.article .meta { font-size: 14px; color: var(--muted); }
.article .back { display: inline-flex; margin-top: 40px; font-weight: 700; text-decoration: none; }

/* Footer */
.site-footer { background: var(--bg-soft); color: var(--muted); padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-links a { color: var(--text); opacity: 0.75; text-decoration: none; font-weight: 600; font-size: 15px; }
.footer-links a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video { display: none; }
  .btn, .card, .card::before, .brand-text, .site-header .brand img { transition: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .cards, .cards-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .step { padding-left: 84px; }
  .step-num { position: absolute; left: 0; top: 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(17, 17, 20, 0.08);
  }

  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; font-size: 17px; color: var(--text); }
  .site-nav a.active::after { display: none; }
  .site-nav .btn { margin-top: 10px; }
  .site-header:has(.site-nav.open) { background: #fff; }
  .site-header:has(.site-nav.open) .nav-toggle span { background: var(--ink); }
}

@media (max-width: 600px) {
  .section { padding: 76px 0; }
  .cards, .cards-5 { grid-template-columns: 1fr; }
  .cta-strip { padding: 28px 24px; }
  .contact-form { padding: 24px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
  .brand-text { font-size: 32px; }
  .site-header.scrolled .brand img,
  .site-header.solid .brand img,
  .site-header:has(.site-nav.open) .brand img { font-size: 32px; }
}
