/* ====================================================================
   robohi-base.css
   Single source of truth for shared CSS. Loaded globally via layout.
   Contains:
     • CSS variables, reset, container, section-pad
     • Site chrome (header, footer, scroll-fab)
     • Reusable components (button, info-card, project-card, news-card,
       section-heading, page-hero, breadcrumb, kicker, timeline,
       filter-tabs, tag, section-kicker)
     • Pseudo-element / animation helpers (button hover chain,
       company-timeline vertical line, scroll-fab hexagon)
   Per-section UI (hero, ecosystem, about, company, solutions,
   features, technology, projects, news, career, contact) is inlined
   as Tailwind utility classes in the Blade sections — no per-section CSS.
   @theme tokens: see resources/css/app.css
==================================================================== */

:root {
  --red: #ff2b2b;
  --red-dark: #d71818;
  --ink: #101828;
  --text: #4a5565;
  --muted: #6a7282;
  --pale: #f9fafb;
  --line: #e5e7eb;
  --navy: #0f1932;
  --white: #ffffff;
  --shadow: 0 16px 48px rgba(16, 24, 40, 0.08);
  --container: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.section-heading h2,
.hero__title {
  text-wrap: balance;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/*
 * Article/news pages. The flat 20px gutter of .container leaves body copy
 * 42-60px short of where .site-header and .site-footer start their content
 * (they use clamp(20px, 8vw, 80px)), so an article reads as flush against
 * the edge below a comfortably inset header. Match that same gutter here.
 *
 * This is a width formula rather than padding on purpose: past ~1400px the
 * gutter already exceeds the header's 80px and no correction is wanted, and
 * a border-box padding would instead eat into the text measure.
 *
 * Used in place of .container - not alongside it - so the Tailwind utility of
 * the same name does not also apply its max-width breakpoints, which make the
 * gutter jump non-monotonically (20px at 1024, 38px at 1100, 20px at 1280).
 */
.container-article {
  width: min(100% - 2 * clamp(20px, 8vw, 80px), var(--container));
  margin-inline: auto;
}

/*
 * Article headline spacing.
 *
 * The typography defaults above set `margin-top: 0` on h1/h2/h3/p and
 * `margin-bottom: 0` on h1 for the Figma hero blocks. Those are element
 * selectors in no cascade layer, and Tailwind v4 emits its utilities inside
 * `@layer utilities` - unlayered declarations beat layered ones, so the
 * `mb-8` on the article <h1> silently resolved to 0 and the excerpt sat
 * flush against the headline. (The `!normal-case` on the same element is
 * the author working around the identical conflict on text-transform.)
 *
 * Restore the spacing here rather than with `!` utilities in the markup, so
 * it holds for every article without another !important to maintain.
 */
.article-title {
  margin-top: 24px;
  margin-bottom: 32px;
}

.section-pad {
  padding-block: clamp(72px, 8vw, 128px);
}

/* ============================ Typography defaults ============================ */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  color: var(--ink);
}

.bg-brand-600 h1,
.bg-brand-600 h2,
.bg-brand-600 h3,
.bg-ink-900 h1,
.bg-ink-900 h2,
.bg-ink-900 h3,
.bg-navy-700 h1,
.bg-navy-700 h2,
.bg-navy-700 h3,
.bg-navy-900 h1,
.bg-navy-900 h2,
.bg-navy-900 h3 {
  color: #fff !important;
}

/* All paragraphs inside dark-background sections default to white.
   Use Tailwind text-white* utilities on individual elements to fine-tune. */
.bg-brand-600 p,
.bg-ink-900 p,
.bg-navy-700 p,
.bg-navy-900 p {
  color: rgba(255, 255, 255, 0.9) !important;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ============================ Header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 90px;
  padding: 16px clamp(20px, 8vw, 80px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo_img {
  width: 110px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  margin-left: auto;
  color: #364153;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
}

.main-nav a.is-active,
.language-switcher .is-active {
  color: var(--red-dark);
}

.main-nav a:hover { color: var(--red); }

.language-switcher {
  display: flex;
  gap: 10px;
  color: #99a1af;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.language-switcher span + span::before {
  content: "|";
  margin-right: 10px;
  color: #d1d5dc;
}

/* ============================ Footer ============================ */
.site-footer {
  padding: 56px clamp(20px, 8vw, 80px) 24px;
  color: var(--white);
  background: var(--navy);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.site-footer .footer__brand img { width: 160px; }

.site-footer .tagline {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer h2 {
  margin: 0 0 18px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 800;
}

.site-footer nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer nav a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 4px 0;
}

.site-footer nav a:hover { color: var(--red); }

.site-footer .socials {
  display: flex;
  gap: 14px;
}

.site-footer .socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}

.site-footer .socials a:hover {
  border-color: var(--red);
  color: var(--red);
}

.site-footer .footer__connect h2 {
  margin: 0 0 22px;
}

.site-footer .footer__connect .socials {
  display: flex;
  gap: 12px;
}

.site-footer .socials a svg { width: 18px; height: 18px; }

.site-footer .copyright {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================ Scroll FAB hexagon ============================ */
.scroll-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(255, 43, 43, 0.4);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.scroll-fab:hover { background: var(--red-dark); transform: translateY(-2px); }
.scroll-fab svg { width: 22px; height: 22px; }

/* ============================ Tag (hero badge) ============================ */
.tag {
  width: fit-content;
  margin: 0;
  padding: 9px 18px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ============================ Section kicker (line + label) ============================ */
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-kicker span {
  width: 48px;
  height: 1px;
  background: var(--red);
}

/* ============================ Section heading (reusable) ============================ */
.section-kicker p,
:where(.eyebrow) {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

:where(.section-heading) p:not(.eyebrow) {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.section-heading--left {
  max-width: 100%;
  margin-bottom: 56px;
}

.section-heading--center {
  max-width: 880px;
  margin: 0 auto 56px;
  text-align: center;
  place-items: center;
}

.section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-heading--wide {
  text-align: left;
  justify-items: start;
  margin-bottom: 48px;
}

.section-heading--inverse,
.section-heading--inverse h2,
.section-heading--inverse p {
  color: var(--white);
}

.red-line {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--red);
  margin-top: 8px;
}

.red-line--center,
.red-line.center { margin-inline: auto; }
.red-line--white { background: rgba(255, 255, 255, 0.5); }

/* ============================ Button (reusable) ============================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  min-height: 56px;
  padding: 0 32px;
  color: var(--white);
  background: var(--red);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(255, 43, 43, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover { background: var(--red-dark); transform: translateY(-1px); }

.button__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
  margin-left: 4px;
}

.button--ghost {
  color: var(--red);
  background: var(--white);
  border: 1px solid var(--red);
  box-shadow: none;
}

.button--ghost:hover { background: var(--red); color: var(--white); }

.button--white {
  color: var(--red);
  background: var(--white);
  border: 1px solid var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.button--white:hover { background: var(--pale); color: var(--red-dark); border-color: var(--pale); }

.text-link::after,
.project-card a::after,
.news-card__body a::after {
  content: "›";
  margin-left: 4px;
  font-size: 18px;
  line-height: 1;
}

/* ============================ Info card / metric-card / solution-panel ============================ */
.info-card,
.metric-card,
.project-card,
.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.info-card {
  border-radius: 18px;
  padding: 32px 40px 36px 40px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  max-width: 760px;
  margin-left: auto;
  min-height: 200px;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 50%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.info-card h3 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.info-card p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 14px;
}

.quote {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
}

.solution-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric-card {
  min-height: 170px;
  padding: 28px;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.metric-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-family: "Inter", sans-serif;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
}

.metric-card span {
  color: #364153;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.check-list {
  grid-column: 1 / -1;
  display: grid;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.check-list li {
  padding: 16px 22px 16px 52px;
  border-bottom: 1px solid var(--line);
  color: #364153;
  font-weight: 600;
  font-size: 14px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid var(--red);
  border-radius: 50%;
}

.check-list li:last-child { border-bottom: 0; }

/* ============================ Info list / date-box / contact-row ============================ */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.info-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.info-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffe2e2;
  color: var(--red);
  flex: 0 0 auto;
}

.info-icon svg { width: 24px; height: 24px; }

.info-text {
  display: grid;
  gap: 4px;
}

.info-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info-value {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

dd {
  margin: -4px 0 4px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  font-size: 14px;
}

.date-box {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.date-box__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffe2e2;
  color: var(--red);
  flex: 0 0 auto;
}

.date-box__icon svg { width: 22px; height: 22px; }

.date-box__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.date-box .date {
  color: var(--red);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 0;
}

.date-box .name {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 768px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.contact-box {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: #fff5f5;
  border: 1px solid #fde0e0;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-box:hover {
  border-color: var(--red);
  background: #ffecec;
}

.contact-box .info-value {
  font-size: 15px;
  word-break: break-all;
}

.company-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .company-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.company-col .col-heading {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin: 0 0 16px;
}

/* ============================ Info card list (about contact CTA) ============================ */
.info-card-list {
  display: grid;
  gap: 18px;
}

.info-card-list > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.info-card-list .icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffe2e2;
  color: var(--red);
}

.info-card-list .icon svg { width: 22px; height: 22px; }

.info-card-list h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.info-card-list p {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}

/* ============================ Project card / card-slider ============================ */
.card-slider {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(16, 24, 40, 0.14);
}

.project-card__image {
  height: 200px;
  background: linear-gradient(135deg, #fde2e2, #f3f4f6);
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card p {
  margin: 18px 22px 6px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0 22px 14px;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  min-height: 48px;
}

.project-card a {
  display: inline-flex;
  align-items: center;
  margin: 0 22px 22px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================ News card variants ============================ */
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: 32px;
}

.news-card {
  border-radius: 18px;
  overflow: hidden;
}

.news-card--featured {
  display: grid;
  grid-template-rows: 420px auto;
}

.news-card__image {
  height: 420px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3a6b, #0d1830);
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__image time {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  color: var(--white);
}

.news-card__image time .d {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--red);
  font-size: 22px;
  line-height: 1;
  border-radius: 4px;
}

.news-card__image time .m-y {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  color: var(--white);
}

.news-card__body {
  padding: 24px 26px 28px;
}

.news-card__date {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.news-card__body h3 {
  margin: 0 0 12px;
  font-family: "Inter", sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
}

.news-card__body p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.news-card__body a {
  display: inline-flex;
  align-items: center;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.news-card--compact {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
}

.news-card--compact .thumb {
  width: 110px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--pale);
}

.news-card--compact .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card--compact .news-card__content {
  display: grid;
  gap: 6px;
}

.news-card--compact .news-card__date {
  margin: 0;
  font-size: 11px;
}

.news-card--compact h3 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.news-card--compact a {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

/* ============================ Page hero (sub-pages) ============================ */
.page-hero {
  position: relative;
  padding: clamp(72px, 8vw, 128px) 0 clamp(48px, 6vw, 80px);
  background: var(--navy);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 25, 50, 0.92), rgba(15, 25, 50, 0.65)),
    url('../assets/images/bg/bg-page-hero.jpg') center / cover no-repeat;
  z-index: -1;
}

.page-hero h1 {
  margin: 0 0 16px;
  color: var(--white);
}

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
}

.kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 500;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.breadcrumb a:hover { color: var(--white); }

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
  color: var(--white);
  font-weight: 600;
}

/* ============================ About grid (general two-column) ============================ */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* ============================ Timeline (about page legacy timeline) ============================ */
.timeline {
  display: grid;
  gap: 56px;
  position: relative;
  padding-left: 0;
}

.timeline::before { display: none; }

.timeline__item {
  position: relative;
}

.timeline__watermark {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center center;
  width: 720px;
  max-width: 140%;
  height: auto;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.timeline__date {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  flex-shrink: 0;
}

.timeline__date span { display: block; }
.timeline__date strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
}

.timeline__date::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 32px;
  height: 2px;
  background: var(--line);
}

/* ============================ Filter tabs (projects index) ============================ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--white);
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.filter-tabs span {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-tabs span:hover {
  background: var(--pale);
  color: var(--ink);
}

.filter-tabs span.is-active {
  background: var(--red);
  color: var(--white);
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--red);
  color: var(--white);
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-date .d {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--pale);
  color: var(--text);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.arrow {
  display: inline-block;
  margin-left: 6px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

/* Company timeline vertical line — used by sections/company.blade.php */
.company-timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(35% + clamp(40px, 6vw, 96px) / 2);
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(229, 231, 235, 0.35) 0%,
    rgba(229, 231, 235, 0.85) 12%,
    rgba(229, 231, 235, 1) 50%,
    rgba(229, 231, 235, 0.85) 88%,
    rgba(229, 231, 235, 0.35) 100%
  );
  z-index: 1;
}

/* Company timeline cross (horizontal stem + center dot) per item */
.company-timeline__cross {
  width: 80px;
  height: 20px;
}
.company-timeline__cross > span:first-child {
  margin: 0 auto;
  width: 80px;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(229, 231, 235, 0.4) 0%,
    rgba(229, 231, 235, 0.95) 25%,
    rgba(229, 231, 235, 1) 50%,
    rgba(229, 231, 235, 0.95) 75%,
    rgba(229, 231, 235, 0.4) 100%
  );
}
.company-timeline__cross > span:last-child {
  background: var(--red) !important;
  box-shadow:
    0 0 10px 2px rgba(255, 43, 43, 0.45),
    0 0 22px 6px rgba(255, 43, 43, 0.22),
    0 0 38px 12px rgba(255, 43, 43, 0.1);
}

/* Hero watermark — used by sections/hero.blade.php */
.hero__watermark {
  position: absolute;
  top: 50%;
  right: -140px;
  transform: translateY(-40%) rotate(90deg);
  height: auto;
  width: clamp(220px, 22vw, 380px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.divider {
  margin: 28px 0 20px;
  border-top: 1px solid var(--line);
}


/* ============================ Responsive base ============================ */

/* ── Tablet (≤ 1024px) ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* News: stack featured + list */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline::before { display: none; }
  .timeline { padding-left: 0; }
  .timeline__date { position: static; width: auto; margin-bottom: 16px; }
  .timeline__date::after { display: none; }
}

/* ── Mobile landscape / large phone (≤ 820px) ─────────────────── */
@media (max-width: 820px) {
  .container { width: min(100% - 28px, var(--container)); }

  /* Header */
  .site-header { min-height: 68px; }
  .main-nav { display: none; }

  /* Hero */
  h1 { font-size: 32px; }
  .hero__watermark { display: none; }

  /* About */
  .about__grid { grid-template-columns: 1fr; }

  /* Company */
  .company-details,
  .solution-panel { grid-template-columns: 1fr; }

  /* Solutions – cert panel: stack vertically */
  .solutions-cert-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; }

  /* News cards */
  .news-card--featured { grid-template-rows: 240px auto; }
  .news-card__image { height: 240px; }
  .news-card--compact { grid-template-columns: 1fr; }

  /* Contact map: reduce height */
  .contact-map { min-height: 320px !important; }
}

/* ── Mobile portrait (≤ 640px) ────────────────────────────────── */
@media (max-width: 640px) {
  /* Hero: single column */
  .hero-figure { }
  .hero-content { text-align: left; }
  .hero-content .button { }


  /* Solutions section: text + cert stack */
  .solutions-content {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Features icons: 2 per row on small screens */
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px 16px !important;
  }

  /* Technology circles: 2 per row */
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .tech-grid article { gap: 12px !important; }

  /* Projects heading area */
  .projects-intro {
    grid-template-columns: 1fr !important;
  }

  /* Career cards: single column */
  .career-cards {
    grid-template-columns: 1fr !important;
  }
  .career-cards article { min-height: auto !important; padding: 32px !important; }

  /* Contact: map below address */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  .contact-map { min-height: 280px !important; }

  /* News grid: single col */
  .news-grid { grid-template-columns: 1fr; }
  .news-stack { display: grid; gap: 16px; }
  .news-card--compact { grid-template-columns: 80px 1fr; gap: 12px; }
  .news-card--compact .thumb { height: 80px; border-radius: 8px; overflow: hidden; }


  /* Section heading sizes */
  .section-heading h2 { font-size: clamp(26px, 6vw, 38px) !important; }

  /* Button: full width on very small screens */
  .button { width: 100%; justify-content: center; }
}

/* ── Very small screens (≤ 400px) ─────────────────────────────── */
@media (max-width: 400px) {
  .features-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================ Technology Sub Navigation ============================ */
.tech-subnav {
  position: sticky;
  top: 90px;
  z-index: 20;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}
.tech-subnav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.tech-subnav-list::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  .tech-subnav-list {
    gap: 32px;
    font-size: 16px;
    justify-content: center;
  }
}
@media (max-width: 820px) {
  /* Matches the header's rendered height here (76px), not its min-height of
     68px — at 68px the sub-nav slid under the header and clipped the links. */
  .tech-subnav {
    top: 76px;
  }
}
