/* Veritas Automotive — site styles */

:root {
  --blue: #2457a0;
  --blue-dark: #1b4580;
  --blue-deep: #0f2a52;
  --red: #e2392a;
  --text: #3b3b3b;
  --muted: #6b6b6b;
  --grey: #dedede;
  --grey-light: #f2f2f2;
  --line: #d4d4d4;
  --white: #ffffff;

  --header: 82px;
  --narrow: 720px;
  --wide: 1140px;
  --gutter: clamp(16px, 4vw, 40px);

  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header); }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

svg { display: block; }
a { color: var(--blue); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px; z-index: 200;
  background: var(--blue); color: var(--white); padding: 8px 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.bar {
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
}

.bar-left { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  width: 44px; height: 44px; padding: 6px;
  background: none; border: 0; cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 32px; height: 24px; margin: auto; }
.nav-toggle .i-close { display: none; width: 22px; height: 22px; color: var(--blue); }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.bar-icon { color: var(--red); padding: 8px; }
.bar-icon svg { width: 24px; height: 24px; }

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--blue);
}
.brand svg { width: 44px; height: 44px; }
.brand-text {
  font-weight: 900; font-size: 1.2rem; letter-spacing: 0.06em; line-height: 1;
  text-align: right;
}
.brand-text small {
  display: block; margin-top: 4px;
  font-weight: 400; font-size: 0.62rem; letter-spacing: 0.32em;
  color: var(--red);
}

/* Slide-down menu */
.menu {
  display: none;
  position: absolute; left: 0; right: 0; top: var(--header);
  height: calc(100vh - var(--header));
  overflow-y: auto;
  background: var(--white);
  padding: 0 var(--gutter) 40px;
}
.menu.open { display: block; }
.menu ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wide); }
.menu li { border-bottom: 1px solid var(--line); }
.menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 2px;
  text-decoration: none; text-transform: uppercase;
  color: var(--text); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.02em;
}
.menu a span { font-size: 1.8rem; line-height: 1; font-weight: 300; }
.menu a:hover { color: var(--blue); }

body.menu-open { overflow: hidden; }

/* Fixed side quick links */
.quick {
  position: fixed; right: 0; top: 45%; z-index: 90;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--text); border-right: 0;
}
.quick a {
  width: 44px; height: 42px;
  display: grid; place-items: center;
  color: var(--text);
}
.quick a + a { border-top: 1px solid var(--text); }
.quick a:first-child { color: var(--red); }
.quick a:hover { background: var(--grey-light); }
.quick svg { width: 26px; height: 26px; }

@media (max-width: 1100px) {
  .quick { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  height: clamp(320px, 62vh, 620px);
  background:
    linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.10) 38.2%, rgba(120,170,240,0.35) 55%, transparent 55.2%),
    linear-gradient(100deg, transparent 58%, rgba(120,170,240,0.25) 58.2%, rgba(160,200,255,0.55) 78%, transparent 78.2%),
    radial-gradient(ellipse at 80% 40%, #4f8ee0 0%, transparent 55%),
    linear-gradient(120deg, #07152b 0%, var(--blue-deep) 40%, var(--blue) 100%);
  display: grid; place-items: center;
}
.hero-type {
  display: flex; flex-direction: column; align-items: center;
  font-weight: 900; line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--white);
  text-align: center;
}
.hero-type span { font-size: clamp(3.2rem, 13vw, 10rem); }
.hero-type .outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.9);
}
.hero-down {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: var(--white); padding: 8px;
}
.hero-down svg { width: 48px; height: 24px; }

/* ---------- Blocks ---------- */

.block { padding: clamp(56px, 8vw, 96px) var(--gutter); }
.block.pt-0 { padding-top: 0; }
.block.grey { background: var(--grey); }
.block.blue { background: var(--blue); color: var(--white); }

.narrow { max-width: var(--narrow); margin: 0 auto; }
.wide { max-width: var(--wide); margin: 0 auto; }

.title {
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.title strong { font-weight: 700; }
.title.big { font-size: clamp(1.6rem, 2.8vw, 2rem); line-height: 1.25; }
.title.center, .center { text-align: center; }
.title.mt { margin-top: clamp(56px, 7vw, 88px); margin-bottom: 32px; }
.blue .title { color: var(--white); }

.subtitle {
  font-weight: 300;
  font-size: 1.3rem; line-height: 1.3;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}
.blue .subtitle { color: var(--white); }

.lead { max-width: var(--narrow); margin: 0 auto 48px; }

/* Two-column statement: heading left, copy right */
.statement {
  max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.7fr; gap: 48px;
}
.statement .title { margin: 0; }
@media (max-width: 760px) {
  .statement { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Key figures slider ---------- */

.figures {
  position: relative;
  background: var(--blue); color: var(--white);
  padding: 64px var(--gutter) 56px;
  text-align: center;
}
.figures-track { position: relative; min-height: 170px; }
.figure {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}
.figure.is-active { opacity: 1; visibility: visible; }
.figure .pre { font-size: 1rem; }
.figure b {
  font-weight: 300; font-size: clamp(3rem, 8vw, 5rem); line-height: 1.1;
  margin: 4px 0;
}
.figure b::after {
  content: ""; display: block;
  width: 180px; height: 1px; margin: 10px auto 12px;
  background: rgba(255,255,255,0.8);
  transform: rotate(-4deg);
}
.figure span:last-child { font-weight: 700; font-size: 1.05rem; }

.fig-prev, .fig-next {
  position: absolute; top: 50%; transform: translateY(-60%);
  background: none; border: 0; color: var(--white);
  padding: 10px; cursor: pointer;
}
.fig-prev svg, .fig-next svg { width: 24px; height: 48px; }
.fig-prev { left: max(var(--gutter), calc(50% - 300px)); }
.fig-next { right: max(var(--gutter), calc(50% - 300px)); }

.fig-dots { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.fig-dots button {
  width: 26px; height: 26px; padding: 0;
  background: none; border: 0; cursor: pointer;
  display: grid; place-items: center;
}
.fig-dots button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.fig-dots button[aria-selected="true"]::before { background: var(--white); }

/* ---------- Product / facility cards ---------- */

.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 40px;
}
.cards.two { grid-template-columns: repeat(2, 1fr); max-width: 940px; margin: 56px auto 0; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards, .cards.two { grid-template-columns: 1fr; } }

.pcard .media { margin-bottom: 22px; }
.pcard p { font-size: 1rem; margin: 0; }

.media {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.9);
  overflow: hidden;
}
.media svg { width: 34%; height: auto; }
.media.m1 { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); }
.media.m2 { background: linear-gradient(135deg, var(--blue), #4f8ee0); }
.media.m3 { background: linear-gradient(135deg, #3b3b3b, #6b7a8c); }
.media.m4 { background: linear-gradient(135deg, var(--blue-dark), #3b3b3b); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Process ---------- */

.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--white);
}
.flow li { padding: 32px 24px; border-right: 1px solid var(--grey); }
.flow li:last-child { border-right: 0; }
.flow .n {
  display: block;
  font-weight: 300; font-size: 2.6rem; line-height: 1;
  color: var(--red); margin-bottom: 14px;
}
.flow h3 {
  font-weight: 700; font-size: 1.05rem; text-transform: uppercase;
  color: var(--blue); margin-bottom: 8px;
}
.flow p { font-size: 0.95rem; margin: 0; }

@media (max-width: 980px) {
  .flow { grid-template-columns: 1fr; }
  .flow li { border-right: 0; border-bottom: 1px solid var(--grey); display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; }
  .flow li:last-child { border-bottom: 0; }
  .flow .n { grid-row: span 2; font-size: 2.2rem; }
}

/* ---------- Maintenance modes & KPIs ---------- */

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; gap: 28px; } }
.modes article { border-top: 3px solid var(--blue); padding-top: 20px; }
.modes p { margin: 0; }

.tag {
  display: inline-block;
  background: var(--text); color: var(--white);
  font-size: 0.75rem; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px; margin-bottom: 14px;
}

.kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }
.kpi { background: var(--white); padding: 24px; }
.kpi b {
  display: block;
  font-weight: 700; text-transform: uppercase; color: var(--blue);
  font-size: 1.05rem;
}
.kpi .dir {
  display: block; margin: 2px 0 8px;
  font-size: 0.82rem; font-weight: 500; color: var(--red);
}
.kpi p { font-size: 0.95rem; margin: 0; }

/* ---------- Open roles (news-card style) ---------- */

.roles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px;
  margin-top: 28px;
}
@media (max-width: 400px) { .roles { grid-template-columns: 1fr; } }

.role { background: var(--white); display: flex; flex-direction: column; }
.role-head {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  height: 120px;
  display: flex; align-items: flex-end; justify-content: center; gap: 4px;
}
.role-head span {
  background: var(--text); color: var(--white);
  font-size: 0.75rem; font-weight: 400; text-transform: uppercase;
  padding: 3px 12px;
}
.role-body {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 26px 26px 30px;
}
.role .meta { font-size: 0.82rem; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.role h3 {
  font-weight: 700; font-size: 1.15rem; text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}
.role p { font-size: 0.95rem; }
.role .btn { margin-top: auto; }

.btn {
  display: inline-block;
  background: var(--blue); color: var(--white);
  padding: 10px 22px;
  font-weight: 700; font-size: 0.95rem; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: var(--blue-dark); }
.btn.red { background: var(--red); }
.btn.red:hover { background: #c22d20; }

/* ---------- Footer ---------- */

.site-footer { background: var(--text); color: #e6e6e6; text-align: center; }
.foot { padding: 56px var(--gutter) 40px; max-width: var(--wide); margin: 0 auto; }
.foot .brand { justify-content: center; margin-bottom: 14px; }
.foot .brand svg { width: 56px; height: 56px; }
.foot-name { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; color: var(--white); }
.foot p { font-size: 0.95rem; }

.foot-contacts {
  list-style: none; padding: 0; margin: 24px 0 32px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.95rem;
}
.foot-contacts li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.foot-contacts svg { width: 18px; height: 18px; }
.foot-contacts span { color: #bdbdbd; }
.foot-contacts span::after { content: ":"; }
.foot-contacts a { color: var(--white); text-decoration: none; }
.foot-contacts a:hover { text-decoration: underline; }

.foot-nav ul { list-style: none; padding: 0; margin: 0 0 14px; }
.foot-nav li { margin: 6px 0; }
.foot-nav a {
  color: #e6e6e6; text-decoration: none; text-transform: uppercase;
  font-size: 0.92rem;
}
.foot-nav a:hover { color: var(--white); text-decoration: underline; }

.copyright {
  background: var(--blue); color: var(--white);
  padding: 18px var(--gutter);
  font-size: 0.9rem;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100vh - var(--header) - 60px);
  display: grid; place-items: center; text-align: center;
  padding: 60px var(--gutter);
}
.notfound p { margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
