/* GB Modern — design system
   Direction: cool light corporate tech, teal signal accent, Sora + IBM Plex Sans.
   Not a clone of Fenixel/DG — structural clarity only. */

:root {
  --bg: #f2f5f8;
  --bg-soft: #e8eef3;
  --surface: #ffffff;
  --ink: #0b1520;
  --ink-2: #243447;
  --muted: #5c6b7a;
  --line: #cfd8e3;
  --line-strong: #9aabbc;
  --accent: #0d8a7d;
  --accent-hover: #0a6f65;
  --accent-soft: rgba(13, 138, 125, 0.12);
  --hero-veil: linear-gradient(105deg, rgba(8, 14, 24, 0.82) 0%, rgba(8, 14, 24, 0.45) 55%, rgba(8, 14, 24, 0.25) 100%);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

/* Buttons — sharp, not pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(242, 245, 248, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand:hover {
  color: inherit;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--ink);
}

.nav-list a:hover::after,
.nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after {
  transform: scaleX(1);
}

.header-cta {
  display: none;
}

@media (min-width: 1100px) {
  .header-cta {
    display: inline-flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.header-linkedin:hover {
  color: #0a66c2;
  border-color: #0a66c2;
  background: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 2px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 961px) {
  .header-actions {
    order: 3;
    margin-left: 0;
  }

  .site-nav {
    margin-left: auto;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .header-cta {
    display: inline-flex;
    width: 100%;
  }
}

/* Hero — one composition, brand-first, full-bleed */
.hero {
  position: relative;
  min-height: min(88svh, 820px);
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #0b1520;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.03);
  animation: heroZoom 20s var(--ease) forwards;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 14, 24, 0.78) 0%, rgba(8, 14, 24, 0.42) 48%, rgba(8, 14, 24, 0.18) 100%),
    linear-gradient(to top, rgba(8, 14, 24, 0.35), transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 4.5rem;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fd8cf;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.85s var(--ease) 0.05s forwards;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 1rem;
  color: #fff;
  max-width: 12ch;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.95rem;
  max-width: 18ch;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

.hero__text {
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero .btn-group {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.52s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

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

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* Service list — interactive rows, not card chrome */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.service-list a:hover {
  background: var(--accent-soft);
  padding-left: 0.75rem;
  color: inherit;
}

.service-list__idx {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.service-list__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.service-list__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

.service-list__arrow {
  font-size: 1.25rem;
  color: var(--line-strong);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
  align-self: center;
}

.service-list a:hover .service-list__arrow {
  transform: translateX(4px);
  color: var(--accent);
}

@media (max-width: 700px) {
  .service-list a {
    grid-template-columns: 2.5rem 1fr;
  }

  .service-list__arrow {
    display: none;
  }
}

/* Split about */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split__media {
  min-height: 360px;
  background:
    linear-gradient(160deg, rgba(13, 138, 125, 0.18), transparent 50%),
    #0b1520 url("../img/hero-old.jpg") center / cover;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 21, 32, 0.55), transparent 45%);
}

.split__panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.split__lead {
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.15rem !important;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.split__panel p {
  margin-bottom: 0.95rem;
}

.split__panel p:last-of-type {
  margin-bottom: 0;
}

.mid-banner .split__panel .btn-group {
  margin-top: 1.5rem;
}

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

  .split__media {
    min-height: 240px;
    order: -1;
  }
}

/* Partners */
.partners-section .section-head {
  margin-bottom: 2rem;
}

.partner-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.partner-grid li {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 1rem 0.75rem;
  transition: background 0.25s var(--ease);
}

.partner-grid li:hover {
  background: var(--bg-soft);
}

.partner-grid img {
  max-width: 118px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.78;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}

.partner-grid li:hover img {
  filter: none;
  opacity: 1;
}

@media (max-width: 1100px) {
  .partner-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product strips */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-grid article {
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  min-height: 150px;
}

.product-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.product-grid p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Blog */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
  transition: border-color 0.25s var(--ease);
}

.post-item:hover {
  border-top-color: var(--accent);
  color: inherit;
}

.post-item time {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-item h3 {
  font-size: 1.15rem;
  margin: 0;
}

.post-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

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

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  max-width: 18ch;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 36rem;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

.content-block {
  padding: 3rem 0 4rem;
}

.content-block .entry {
  max-width: 46rem;
}

.content-block .entry--wide {
  max-width: 52rem;
}

.content-block .entry h2 {
  font-size: 1.45rem;
  margin-top: 2.1rem;
  margin-bottom: 0.7rem;
}

.content-block .entry p {
  margin-bottom: 1.05rem;
}

.content-block .entry ul {
  padding-left: 1.2rem;
  color: var(--ink-2);
  margin: 0 0 1.25rem;
}

.content-block .entry li {
  margin-bottom: 0.45rem;
}

.content-figure {
  margin: 0 0 1.75rem;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.content-figure img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.content-block .entry .content-figure + .content-figure {
  margin-top: 2rem;
}

/* FAQ */
.faq-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.faq-block h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 0 0 1.25rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 2px;
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 1.1rem 1.1rem;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-card {
  padding: 0;
}

.contact-card dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.contact-card dd {
  margin: 0 0 1.5rem;
  color: var(--ink-2);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 2px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
}

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

/* Footer */
.site-footer {
  background: #08101a;
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-social {
  margin-top: 0.75rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

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

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
