/* FLORIN Engineering — site styles */

:root {
  --ink: #14171A;
  --bg: #FAF9F7;
  --accent: #1F4E5F;
  --line: #E2DED8;
  --line-dark: #2A2F33;
  --muted: #6B6257;
  --muted-cool: #6B7478;
  --body: #4A5458;
  --light: #7FAAB4;
  --sans: "Space Grotesk", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 1180px;
}

*, *::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-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.section-head {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: baseline; justify-content: space-between;
  margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 600; letter-spacing: -0.03em; }
.section { padding-top: 84px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 0;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.topbar span { color: #9AA6AB; }
.topbar a { color: var(--bg); }
.topbar a:hover { color: var(--light); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 2px; color: var(--ink); }
.brand img {
  width: 26px; height: 29px; object-fit: contain;
  margin-right: 10px; align-self: center;
  mix-blend-mode: multiply;
}
.brand-strong { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.brand-light { font-size: 19px; font-weight: 400; letter-spacing: -0.01em; color: #5B676C; }
.site-nav {
  display: flex; flex-wrap: wrap; gap: 26px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--accent); }
.site-nav a.is-cta { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ---------- hero ---------- */
.hero { display: grid; gap: 48px; align-items: end; padding: 72px 0 40px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 600; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .eyebrow { display: block; margin-bottom: 22px; }
.hero p {
  margin-top: 26px; font-size: 18px; line-height: 1.55;
  color: #3E484C; max-width: 44ch; text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-block; padding: 15px 26px; white-space: nowrap;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.hero figure { position: relative; border: 1px solid var(--line); }
.hero figure img {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: 62% 50%; filter: saturate(0.9);
}
.hero figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 12px;
}

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats li { padding: 22px 20px; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.stats span { display: block; color: var(--muted-cool); margin-top: 6px; }

/* ---------- hairline card grids ---------- */
.grid-hairline {
  display: grid; grid-template-columns: repeat(1, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.grid-hairline > * {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service { background: var(--bg); padding: 30px 26px 34px; transition: background 160ms ease; }
.service:hover { background: #F3F0EA; }
.service .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 46px; }
.service h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.service p { font-size: 15px; line-height: 1.6; color: var(--body); text-wrap: pretty; }

/* ---------- competences (dark band) ---------- */
.band-dark {
  background-color: var(--ink);
  background-image: linear-gradient(rgba(20, 23, 26, 0.9), rgba(20, 23, 26, 0.95)), url("../assets/photos/kanaler-moerk-web.jpg");
  background-size: cover; background-position: center;
  color: var(--bg);
  margin-top: 84px; padding: 84px 0;
}
.band-dark .section-head { margin-bottom: 44px; }
.band-dark .eyebrow { color: var(--light); }
.skills { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0 56px; }
.skills li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 17px 0; border-bottom: 1px solid var(--line-dark);
}
.skills .n { font-family: var(--mono); font-size: 11px; color: var(--light); flex: 0 0 22px; }
.skills .t { font-size: 16.5px; line-height: 1.35; color: #EDEAE4; }

/* ---------- audiences ---------- */
.audiences { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 20px; }
.audiences li { border: 1px solid var(--line); background: #FFFFFF; }
.audiences img {
  display: block; width: 100%; aspect-ratio: 3 / 2;
  object-fit: cover; filter: saturate(0.85);
}
.audiences .txt { padding: 18px 20px 22px; }
.audiences h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.audiences p { font-size: 14px; line-height: 1.5; color: var(--muted-cool); margin-top: 6px; }

/* ---------- client wall ---------- */
.clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clients li {
  background: #FFFFFF; height: 104px;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 24px;
}
.clients img {
  max-width: 100%; max-height: 56px; width: auto; height: auto;
  object-fit: contain; filter: grayscale(1); opacity: 0.72;
  transition: filter 180ms ease, opacity 180ms ease;
}
.clients img:hover { filter: grayscale(0); opacity: 1; }
.caption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); margin-top: 14px; }

/* ---------- contact ---------- */
.contact { margin-top: 84px; }
.contact-card {
  background-color: var(--ink); color: var(--bg);
  display: grid; grid-template-columns: repeat(1, minmax(0, 1fr));
}
.contact-card > div { padding: 46px 40px; }
.contact-card h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 600;
  letter-spacing: -0.03em; margin: 20px 0 14px; text-wrap: balance;
}
.contact-card .lead { font-size: 16px; line-height: 1.6; color: #B3BCC0; max-width: 42ch; text-wrap: pretty; }
.contact-card .eyebrow { color: var(--light); }
.person {
  display: flex; align-items: center; gap: 18px;
  margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line-dark);
}
.person img {
  flex: 0 0 168px; width: 168px; height: 168px;
  object-fit: cover; object-position: 50% 26%;
  display: block; border: 1px solid var(--line-dark);
}
.person .name { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.person .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); margin-top: 6px; }
.fields { display: flex; flex-direction: column; gap: 26px; }
.fields .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); margin-bottom: 7px; }
.fields a { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--bg); }
.fields a:hover { color: var(--light); }
.fields p { font-size: 16px; line-height: 1.5; color: #E4E1DB; }

/* ---------- footer ---------- */
.site-footer { padding: 48px 24px 56px; max-width: var(--wrap); margin: 0 auto; }
.site-footer div {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted);
}

/* ---------- breakpoints ---------- */
@media (min-width: 560px) {
  .grid-hairline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card > div:first-child { border-right: 1px solid var(--line-dark); }
}
@media (min-width: 1040px) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .audiences { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clients li { height: 88px; padding: 14px; }
  .contact-card > div { padding: 34px 24px; }
  .person img { flex-basis: 120px; width: 120px; height: 120px; }
}
