/* =========================================================
   Brnas Ploče d.o.o. — modern static site
   Plain HTML / CSS / vanilla JS
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --brand: #0a9bd6;
  --brand-600: #0883b8;
  --brand-700: #066a97;
  --brand-soft: #e7f5fc;
  --brand-glow: rgba(10, 155, 214, 0.35);

  /* Neutrals */
  --navy: #0b1622;
  --navy-2: #10202f;
  --ink: #111a26;
  --body: #38465a;
  --muted: #6b7a8d;
  --line: #e6ecf3;
  --line-strong: #d4dde7;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-soft-2: #eef3f8;

  /* UI */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 32, 47, 0.06), 0 2px 8px rgba(16, 32, 47, 0.05);
  --shadow: 0 10px 30px -12px rgba(16, 32, 47, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(16, 32, 47, 0.28);
  --shadow-brand: 0 18px 40px -16px var(--brand-glow);

  --container: 1180px;
  --nav-h: 80px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Sora", var(--font-body);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  position: relative;
}

.section--soft { background: var(--bg-soft); }

.section--dark {
  background: var(--navy);
  color: #c6d2df;
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section--dark .eyebrow { color: #67c7ee; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  margin-top: 1rem;
}

.section-lead {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 60ch;
}
.section-head--center .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px -14px var(--brand-glow);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-3px);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    height 0.35s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.3s var(--ease);
}
.nav__brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #fff;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav__brand-text b { font-size: 1.05rem; }
.nav__brand-text span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.nav__cta { margin-left: 0.5rem; }
.nav__cta .btn { padding: 0.7rem 1.3rem; }

/* Scrolled state */
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  height: 68px;
}
.nav.is-scrolled .nav__brand { color: var(--ink); }
.nav.is-scrolled .nav__links a { color: var(--body); }
.nav.is-scrolled .nav__links a:hover { color: var(--brand-700); background: var(--brand-soft); }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  border-radius: 12px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background 0.3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 4rem;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/img/header-bg.jpg") center/cover no-repeat;
  transform: scale(1.05);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      105deg,
      rgba(8, 18, 30, 0.94) 0%,
      rgba(8, 20, 33, 0.82) 42%,
      rgba(10, 27, 44, 0.55) 100%
    ),
    radial-gradient(120% 90% at 80% 10%, rgba(10, 155, 214, 0.28), transparent 60%);
}
.hero__grid-glow {
  position: absolute;
  z-index: -1;
  width: 540px;
  height: 540px;
  right: -120px;
  top: 10%;
  background: radial-gradient(circle, var(--brand-glow), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__content { max-width: 760px; }

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  display: block;
  margin-top: 0.08em;
  background: linear-gradient(120deg, #4cc4f0, #0a9bd6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
}
.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__stats {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.hero__stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  letter-spacing: -0.02em;
}
.hero__stat .num span { color: #4cc4f0; }
.hero__stat .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.15rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.hero__scroll .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  position: relative;
}
.hero__scroll .mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: wheel 1.6s var(--ease) infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  padding: 2.4rem 2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  color: var(--brand-700);
  background: var(--brand-soft);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.service-card h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.service-card p { color: var(--muted); margin: 0; }

/* ---------- Ovlaštenja / brands ---------- */
.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}
.brand-chip {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding: 0.85rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.brand-chip:hover {
  transform: translateY(-4px);
  color: var(--brand-700);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__body p { color: var(--body); margin-bottom: 1.1rem; }
.about__body p:last-child { margin-bottom: 0; }
.about__lead {
  font-size: 1.2rem;
  color: var(--ink) !important;
  font-weight: 500;
}

.about__panel {
  position: relative;
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: -100px;
  background: radial-gradient(circle, var(--brand-glow), transparent 65%);
}
.about__stats {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.about__stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.about__stat .num span { color: #4cc4f0; }
.about__stat .label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}
.about__stat { padding-bottom: 0.4rem; }

/* ---------- Timeline (roadmap) ---------- */
.rmap {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
}
.rmap__item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
}
.rmap__item:last-child { padding-bottom: 0; }

/* vertical rail running down through the dots */
.rmap__item::before {
  content: "";
  position: absolute;
  left: calc(90px + 1.25rem);
  top: 0.5rem;
  bottom: -0.5rem;
  width: 2px;
  transform: translateX(-1px);
  background: linear-gradient(var(--brand), rgba(10, 155, 214, 0.3));
}
.rmap__item:last-child::before { display: none; }

/* dot on the rail */
.rmap__item::after {
  content: "";
  position: absolute;
  left: calc(90px + 1.25rem);
  top: 0.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 4px solid var(--brand);
  box-shadow: 0 0 0 5px rgba(10, 155, 214, 0.12);
  transform: translate(-50%, 0);
  z-index: 1;
}

.rmap__year {
  text-align: right;
  font-family: var(--font-head);
  line-height: 1.15;
  padding-top: 0.1rem;
}
.rmap__year b {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-700);
}
.rmap__year span {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.rmap__content {
  padding-left: 1.5rem;
  padding-bottom: 0.25rem;
}
.rmap__card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.rmap__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rmap__img {
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
}
.rmap__text h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.rmap__text p { color: var(--muted); margin: 0; }

/* closing call-to-action step */
.rmap__item--cta::after {
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  border-color: var(--brand-700);
}
.rmap__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  padding: 1.7rem 1.9rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff;
  box-shadow: var(--shadow);
}
.rmap__cta h3 { color: #fff; margin: 0 0 0.25rem; font-size: 1.25rem; }
.rmap__cta p { color: rgba(255, 255, 255, 0.7); margin: 0; }
.rmap__cta .btn { flex-shrink: 0; }

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.founder__media {
  position: relative;
  max-width: 380px;
}
.founder__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.founder__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  z-index: 0;
}
.founder__badge {
  position: absolute;
  z-index: 2;
  right: -14px;
  bottom: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.founder__badge svg { width: 26px; height: 26px; color: var(--brand-700); }
.founder__badge b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.founder__badge span { font-size: 0.8rem; color: var(--muted); }

.founder__name { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 1rem 0 0.3rem; }
.founder__role {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brand-700);
  margin-bottom: 1.4rem;
}
.founder__quote {
  font-size: 1.15rem;
  color: var(--ink);
  border-left: 3px solid var(--brand);
  padding-left: 1.2rem;
  margin: 0 0 1.4rem;
}
.founder__text { color: var(--muted); margin: 0; }

/* ---------- Clients ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.client {
  display: grid;
  place-items: center;
  padding: 1.8rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 130px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.client:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.client img {
  max-height: 78px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.client:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__intro h2 { color: #fff; }
.contact__intro .section-lead { color: rgba(255, 255, 255, 0.72); }

.contact__list {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  display: grid;
  gap: 1.1rem;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact__item .ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #5fc6ee;
}
.contact__item .ico svg { width: 22px; height: 22px; }
.contact__item .label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.contact__item a, .contact__item span.val { color: #fff; font-weight: 600; font-family: var(--font-head); font-size: 1.05rem; }
.contact__item a:hover { color: #5fc6ee; }

/* Form card */
.form-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-lg);
  color: var(--body);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
  font-family: var(--font-head);
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9aa7b6; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(10, 155, 214, 0.14);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #e5484d;
}
.field .err {
  display: none;
  color: #d33;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}
.field.has-error .err { display: block; }
.field.has-error input,
.field.has-error textarea { border-color: #e5484d; }

.form-foot {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-note { font-size: 0.82rem; color: var(--muted); }

.form-alert {
  display: none;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-alert.show { display: block; }
.form-alert--ok { background: #e7f8ee; color: #15683b; border: 1px solid #b6e6c9; }
.form-alert--err { background: #fdecec; color: #a3262b; border: 1px solid #f4c2c4; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.1rem; }
.footer__brand img { width: 46px; height: 46px; border-radius: 12px; background: #fff; padding: 5px; }
.footer__brand b { font-family: var(--font-head); color: #fff; font-size: 1.15rem; }
.footer__about { max-width: 38ch; font-size: 0.95rem; }
.footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer ul a { font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer ul a:hover { color: #5fc6ee; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.8rem;
  font-size: 0.88rem;
}
.footer__bottom a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Legal / simple page ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3.5rem;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; margin: 2.2rem 0 0.8rem; }
.prose p { margin-bottom: 1rem; }
.prose a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; }
  .about,
  .founder,
  .contact { grid-template-columns: 1fr; }
  .founder__media { margin-inline: auto; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand-col { grid-column: 1 / -1; }
}

/* timeline → year stacks above content, rail on the left */
@media (max-width: 620px) {
  .rmap__item {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 2.4rem;
  }
  .rmap__item::before { left: 7px; }
  .rmap__item::after { left: 7px; }
  .rmap__year {
    text-align: left;
    margin-bottom: 0.6rem;
  }
  .rmap__year b { display: inline; font-size: 1.05rem; }
  .rmap__year span { display: inline; }
  .rmap__year span::before { content: " – "; }
  .rmap__content { padding-left: 0; }
  .rmap__card { gap: 1rem; padding: 0.9rem; }
  .rmap__img { width: 88px; height: 88px; align-self: flex-start; }
}

@media (max-width: 760px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  /* mobile menu panel */
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav.is-open .nav__menu { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    width: 100%;
  }
  .nav__menu .nav__links a {
    color: var(--ink);
    padding: 0.85rem 1rem;
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
  }
  .nav__menu .nav__links a:hover { background: var(--brand-soft); color: var(--brand-700); }
  .nav__menu .nav__cta { display: block; margin: 0.6rem 0 0; }
  .nav__menu .nav__cta .btn { width: 100%; }

  .clients { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}

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