/* ==========================================================================
   HDtranS – components.css
   Buttons, header/nav, slider, cards, forms, footer, FAQ, etc.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn,
.btn-primary,
.btn-outline,
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--btn-radius); /* square / "kanciaste" */
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red-600);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(237, 28, 36, 0.32);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 26px;
}
.btn-outline:hover {
  background: #fff;
  color: var(--ink-black);
}

.btn-dark {
  background: var(--ink-black);
  color: #fff;
}
.btn-dark:hover {
  background: #1a222e;
  color: #fff;
  transform: translateY(-2px);
}

.btn .icon,
.btn-primary .icon,
.btn-outline .icon,
.btn-dark .icon {
  transition: transform var(--transition);
}
.btn-primary:hover .icon,
.btn-dark:hover .icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   CTA button – two square boxes (label + arrow), per "CTA Button.svg".
   Default arrow ↗ (up-right) → hover → (right). 150ms ease-in-out.
   -------------------------------------------------------------------------- */
.btn-cta {
  display: inline-flex;
  align-items: stretch;
  gap: 5px; /* the gap shows the section background between the two boxes */
  text-decoration: none;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
}
.btn-cta__label {
  display: inline-flex;
  align-items: center;
  padding: 10px 30px;
  background: var(--red-600);
  color: #fff;
  border-radius: var(--btn-radius);
  transition: background 150ms ease-in-out;
}
.btn-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  background: var(--red-600);
  color: #fff;
  border-radius: var(--btn-radius);
  transition: background 150ms ease-in-out, transform 150ms ease-in-out;
}
.btn-cta__arrow {
  /* Default = up-right (↗): a right arrow rotated -45deg. */
  transform: rotate(-45deg);
  transition: transform 150ms ease-in-out;
}
.btn-cta:hover .btn-cta__label,
.btn-cta:hover .btn-cta__icon,
.btn-cta:focus-visible .btn-cta__label,
.btn-cta:focus-visible .btn-cta__icon {
  background: var(--red-700);
}
/* On hover the two boxes move closer together (same 150ms ease-in-out). */
.btn-cta:hover .btn-cta__icon,
.btn-cta:focus-visible .btn-cta__icon {
  transform: translateX(-5px);
}
.btn-cta:hover .btn-cta__arrow,
.btn-cta:focus-visible .btn-cta__arrow {
  /* Hover = straight right (→). */
  transform: rotate(0deg);
}
/* On dark backgrounds, keep the inter-box gap subtle. */
.cta-banner .btn-cta,
.hero-slide .btn-cta,
.landing-hero .btn-cta {
  gap: 4px;
}

/* --------------------------------------------------------------------------
   Header / navigation – snow background, logo left, two-level info right
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--snow);
  border-bottom: 1px solid var(--black-50);
  transition: transform 0.35s ease, box-shadow var(--transition);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-nav);
}
/* Slide the whole header out of view on scroll-down, back in on scroll-up. */
.site-header.is-hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

/* Logo (left) */
.nav__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
}
.nav__logo img,
.custom-logo {
  height: 56px;          /* explicit height so SVGs without intrinsic size render */
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.nav__logo-text {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-black);
  letter-spacing: -0.5px;
}
.nav__logo-text span {
  color: var(--red-600);
}

/* Right side: two stacked rows, right-aligned */
.nav__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Top row: addresses */
.nav__addresses {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: #3a424d;
}
.nav__address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__address .icon {
  color: var(--red-600);
}

/* Bottom row: navigation links */
.nav__primary {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__menu .menu-item > a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-black);
  position: relative;
}
.nav__menu .menu-item > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--red-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__menu .menu-item > a:hover::after,
.nav__menu .current-menu-item > a::after {
  transform: scaleX(1);
}
.nav__menu .menu-item > a:hover {
  color: var(--red-600);
}

/* Dropdown (sub-menu) */
.nav__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--snow);
  box-shadow: var(--shadow-card);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 20;
}
.nav__menu .menu-item-has-children {
  position: relative;
}
.nav__menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Contact link (red) in the bottom nav row */
.nav__contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 5px 15px;
  background: var(--red-600);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--btn-radius);
  transition: background var(--transition);
}
.nav__contact:hover {
  background: var(--red-700);
  color: #fff;
}

/* Hamburger */
.nav__panel-logo {
  display: none; /* only shown inside the mobile hamburger panel */
}
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 8px;
}
.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink-black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle.is-active .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-active .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero slider
   -------------------------------------------------------------------------- */
.hero-slider {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  background: var(--ink-black);
}
.hero-slider__track {
  position: relative;
  min-height: 85vh;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  z-index: 1;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Two stacked overlay layers above the image:
   1) solid black at 50% opacity (dims the photo)
   2) white top→transparent gradient, whole layer at 25% opacity */
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.hero-slide__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 5%,
    rgba(255, 255, 255, 0) 20%
  );
}
.hero-slide__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 80px;
  display: flex;
  justify-content: center;
}
/* Panel centered horizontally and vertically within the slider */
.hero-slide__content {
  max-width: 880px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 24px;
}
.hero-slide__title {
  color: #fff;
  margin-bottom: 20px;
}
.hero-slide__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: #eef0f3;
  margin-bottom: 32px;
  max-width: 640px;
}

/* Navigation – horizontal 2px lines (no arrows) */
.hero-slider__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-slider__dot {
  width: 32px;
  height: 2px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition);
}
.hero-slider__dot.is-active {
  background: var(--red-600);
}

/* --------------------------------------------------------------------------
   Services grid / cards
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--alabaster-grey);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #d8dce2;
}
.service-card__icon {
  position: absolute;
  left: 20px;
  bottom: -24px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--red-600);
  color: #fff;
  border-radius: var(--radius);
}
.service-card__body {
  padding: 36px 24px 28px;
}
.service-card__title {
  margin-bottom: 10px;
}
.service-card__text {
  color: #4a525c;
  margin-bottom: 16px;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red-600);
  font-weight: 600;
  font-size: 14px;
}
.service-card:hover .service-card__link .icon {
  transform: translateX(3px);
}
.service-card__link .icon {
  transition: transform var(--transition);
}

/* Tighter vertical rhythm between the home-page sections. */
.front-page .section {
  padding-block: 48px;
}

/* --------------------------------------------------------------------------
   Doświadczenie – two-column header + draggable tiles
   -------------------------------------------------------------------------- */
.experience-section {
  background: var(--snow);
  overflow: hidden;
}
.experience-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  align-items: start;
  margin-bottom: 44px;
}
/* Eyebrow spans the top; the black heading (left) and the text + CTA (right)
   sit in the next row, so the right column aligns to the heading, not the label. */
.experience-head__eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 22px;
}
.experience-head__title,
.experience-head__left .section__title {
  margin: 0;
}
.experience-head__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.experience-head__right .section__text {
  margin: 0;
}

/* Draggable, non-clickable tile rail */
.experience-tiles {
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* flush to the page (viewport) edge, not the container margin */
  padding-inline: 0;
  -webkit-user-select: none;
  user-select: none;
}
.experience-tiles::-webkit-scrollbar { display: none; }
.experience-tiles.is-dragging { cursor: grabbing; }
.experience-tiles__track {
  display: flex;
  gap: 16px;
  width: max-content;
}
.exp-tile {
  position: relative;
  flex: 0 0 auto;
  width: 506px;
  max-width: 80vw;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-color: #c9ced5;
  border-bottom: 6px solid var(--red-600);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.exp-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(4, 8, 15, 0) 40%, rgba(4, 8, 15, 0.75) 100%);
}
.exp-tile__label {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Dlaczego HDtranS – bullet list (left) + bordered image (right)
   -------------------------------------------------------------------------- */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why__content .section__title {
  margin-bottom: 24px;
}
.why__list {
  display: grid;
  gap: 14px;
}
.why__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #2b3440;
}
.why__list .icon {
  flex: 0 0 auto;
  color: var(--red-600);
}
.why__media img {
  width: 100%;
  aspect-ratio: 596 / 357;
  object-fit: cover;
  border: none;
  border-bottom: 6px solid var(--red-600);
}

/* --------------------------------------------------------------------------
   Contact band (form + map + locations) before footer
   -------------------------------------------------------------------------- */
.contact-band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.contact-band__info {
  display: flex;
  flex-direction: column;
}
.contact-band__branch + .contact-band__branch {
  margin-top: 20px;
}
.contact-band__branch-name {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--ink-black);
}
.contact-band__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-band__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #3a424d;
}
.contact-band__list .icon { color: var(--red-600); margin-top: 2px; }
.contact-band__list a:hover { color: var(--red-600); }
.contact-band__map {
  margin-top: 24px;
  flex: 1 1 auto;
  min-height: 260px;
}
.contact-band__map iframe {
  display: block;
  border-radius: var(--radius);
  height: 100%;
  min-height: 260px;
}
.contact-band__title {
  margin-bottom: 10px;
}
.contact-band__sub {
  color: #4a525c;
  margin-bottom: 24px;
}
.contact-band__submit {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Contact page (/kontakt): centered intro, location tiles, shared map
   -------------------------------------------------------------------------- */
.service-hero__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.service-hero__eyebrow {
  color: var(--red-600);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.service-hero__title {
  color: var(--ink-black);
  margin-bottom: 16px;
}
.service-hero__sub {
  color: #4a525c;
  font-size: 18px;
  line-height: 1.7;
}

.contact-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.contact-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--alabaster-grey);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-tile__photo {
  aspect-ratio: 1110 / 454;
  background-size: cover;
  background-position: center;
  background-color: #d8dce2;
}
.contact-tile__body {
  padding: 28px 32px;
}
.contact-tile__name {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--ink-black);
}
.contact-tile__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-tile__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-black);
}
.contact-tile__list a {
  color: var(--ink-black);
  text-decoration: none;
}
.contact-tile__list a:hover {
  color: var(--red-600);
}
.contact-tile__list .icon {
  color: var(--red-600);
  flex: 0 0 auto;
}
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.contact-map iframe {
  display: block;
}

/* --------------------------------------------------------------------------
   News cards / grid
   -------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--alabaster-grey);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.news-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d8dce2;
}
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card__media img {
  transform: scale(1.05);
}
.news-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #9aa2ad;
}
.news-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red-600);
  font-size: 13px;
  font-weight: 600;
}
.news-card__title {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 400;
  transition: color var(--transition);
}
.news-card:hover .news-card__title {
  color: var(--red-600);
}
.news-card__excerpt {
  color: #4a525c;
  flex: 1;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero,
.landing-hero,
.post-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--ink-black);
  color: #fff;
}
.page-hero__overlay,
.landing-hero__overlay,
.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(4, 8, 15, 0.82) 30%, rgba(4, 8, 15, 0.45) 100%);
}
.page-hero__inner,
.post-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 110px;
}
.page-hero__title,
.post-hero__title {
  color: #fff;
  margin-bottom: 14px;
  max-width: 760px;
}
.page-hero__text {
  font-size: 18px;
  color: #e7e9ee;
  max-width: 620px;
}
.section-label--light {
  color: var(--red-400);
}

/* --------------------------------------------------------------------------
   Inner-page head – two-column intro (heading left, text + CTA right) on a
   light band, followed by a full-width image with a red accent line.
   -------------------------------------------------------------------------- */
/* Centered section subtitle stays narrow (only affects centered heads
   that actually carry a paragraph, e.g. the specialization section). */
.section__head--center .section__text {
  max-width: 680px;
  margin-inline: auto;
}

/* Header-only section sitting directly above the next one – drop the bottom
   padding so the gap doesn't double up. */
.section--flush-bottom {
  padding-bottom: 0;
}
.section--flush-bottom .section__head {
  margin-bottom: 0;
}

.page-head {
  background: var(--alabaster-grey);
}
.page-head__top {
  padding-block: 64px 40px;
}
.page-head__eyebrow {
  display: block;
  margin-bottom: 22px;
}
.page-head__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.page-head__title {
  color: var(--ink-black);
  margin: 0;
}
.page-head__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.page-head__text {
  font-size: 18px;
  line-height: 1.7;
  color: #4a525c;
  margin: 0;
}
.page-head__media {
  width: 100%;
  height: clamp(240px, 34vw, 460px);
  background-size: cover;
  background-position: center;
  border-bottom: 5px solid var(--red-600);
}

/* 404 – centered text on the plain page background (slider-style). */
.error-hero__inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.error-hero__title {
  color: var(--ink-black);
  margin-bottom: 18px;
}
.error-hero__text {
  font-size: 18px;
  line-height: 1.7;
  color: #4a525c;
  max-width: 640px;
  margin-bottom: 32px;
}

.landing-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 130px;
}
.landing-hero__content {
  max-width: 640px;
}
.landing-hero__title {
  color: #fff;
  margin-bottom: 18px;
}
.landing-hero__text {
  font-size: 18px;
  color: #e7e9ee;
  margin-bottom: 30px;
}

/* Post hero specifics */
.post-hero__back {
  display: inline-block;
  color: #e7e9ee;
  font-size: 14px;
  margin-bottom: 18px;
}
.post-hero__back:hover { color: #fff; }
.post-hero__date {
  display: block;
  color: var(--red-400);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Intro block (two-column heading + text)
   -------------------------------------------------------------------------- */
.intro-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.intro-block__text {
  color: #4a525c;
  font-size: 16px;
  /* Pull the text down past the red label so it aligns with the black heading. */
  padding-top: 36px;
}
.intro-block__text p { margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   Alternating image + text rows
   -------------------------------------------------------------------------- */
.alternating-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 420px;
}
.alternating-row__image {
  background-size: cover;
  background-position: center;
  background-color: #d8dce2;
  min-height: 320px;
}
.alternating-row__content {
  display: flex;
  align-items: center;
  background: #fff;
}
.alternating-row:nth-child(even) .alternating-row__content {
  background: var(--snow);
}
.alternating-row__inner {
  padding: 64px;
  max-width: 560px;
}
.alternating-row__inner h3 {
  margin-bottom: 16px;
}
.alternating-row__inner p {
  color: #4a525c;
  font-size: 16px;
}
/* even rows: image on the right */
.alternating-row:nth-child(even) .alternating-row__image { order: 2; }
.alternating-row:nth-child(even) .alternating-row__content { order: 1; }
.alternating-row:nth-child(even) .alternating-row__inner {
  margin-left: auto;
}

/* Boxed variant (tiles): rows constrained to the content width, image reaches
   the page centre keeping its 1000×750 (4:3) ratio, rows alternate between the
   page background (Snow) and the theme grey, red accent line under each image. */
.alternating--boxed {
  background: var(--snow);
  /* Contain the full-bleed grey rows so they never add horizontal scroll. */
  overflow-x: clip;
}
.alternating--boxed .alternating-row {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 24px;
  min-height: 0;
  gap: 0;
  align-items: center;
  background: transparent;
}
/* Grey rows: content stays within the container, but the background bleeds
   out to the window edges (box-shadow spread, clipped to the row height). */
.alternating--boxed .alternating-row:nth-child(even) {
  background: var(--alabaster-grey);
  box-shadow: 0 0 0 100vw var(--alabaster-grey);
  clip-path: inset(0 -100vw 0 -100vw);
}
.alternating--boxed .alternating-row__image,
.alternating--boxed .alternating-row:nth-child(even) .alternating-row__image {
  aspect-ratio: 1000 / 750;
  min-height: 0;
  border-bottom: 4px solid var(--red-600);
}
.alternating--boxed .alternating-row__content,
.alternating--boxed .alternating-row:nth-child(even) .alternating-row__content {
  background: transparent;
}
/* Text sits on the half from the page centre out to the content margin. */
.alternating--boxed .alternating-row__inner {
  max-width: none;
  padding: 40px 0 40px 56px;
}
.alternating--boxed .alternating-row:nth-child(even) .alternating-row__inner {
  margin-left: 0;
  padding: 40px 56px 40px 0;
}

/* --------------------------------------------------------------------------
   Feature grids (capabilities, container types)
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--alabaster-grey);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.feature-card__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--red-50);
  color: var(--red-600);
  border-radius: var(--radius);
}
.feature-card__label {
  font-weight: 600;
  font-size: 15px;
}

/* Benefit cards (landing) */
.benefit-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--alabaster-grey);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.benefit-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--red-600);
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.benefit-card__title {
  font-size: 20px;
  margin-bottom: 8px;
}
.benefit-card__text {
  color: #4a525c;
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq-section { max-width: 820px; }
.faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  border: 1px solid var(--alabaster-grey);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-black);
}
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--red-600);
  border-radius: 2px;
  transition: transform var(--transition);
}
.faq__icon::before {
  top: 9px; left: 0;
  width: 20px; height: 2px;
}
.faq__icon::after {
  left: 9px; top: 0;
  width: 2px; height: 20px;
}
.faq__item.is-open .faq__icon::after {
  transform: scaleY(0);
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq__answer p {
  padding: 0 24px 22px;
  color: #4a525c;
}

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  background-color: var(--ink-black);
  border-bottom: 5px solid var(--red-600); /* HDtranS RED accent line */
}
.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75); /* #000000 @ 75% */
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
}
.cta-banner__title {
  color: #fff;
  margin-bottom: 16px;
}
.cta-banner__text {
  font-size: 18px;
  color: #e7e9ee;
  margin-bottom: 30px;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.offer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.offer-form--page {
  max-width: 760px;
  margin-inline: auto;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field--full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: 13px;
  font-weight: 600;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--alabaster-grey);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.12);
}
.form-field textarea {
  resize: vertical;
  min-height: 110px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: inherit;
  cursor: pointer;
}
.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red-600);
  flex: 0 0 auto;
}

/* Form feedback */
.form-feedback {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 14px;
}
.form-feedback--success {
  background: #e7f6ec;
  color: #1c6b39;
  border: 1px solid #b7e3c5;
}
.form-feedback--error {
  background: var(--red-50);
  color: var(--red-800);
  border: 1px solid var(--red-200);
}
.form-feedback p { margin: 0; }
.form-feedback p + p { margin-top: 4px; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-card {
  border: 1px solid var(--alabaster-grey);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.contact-card__name {
  font-size: 24px;
  padding: 28px 28px 0;
}
.contact-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 28px 24px;
}
.contact-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #4a525c;
}
.contact-card__list .icon {
  color: var(--red-600);
  margin-top: 2px;
}
.contact-card__list a:hover { color: var(--red-600); }
.contact-card__map iframe { display: block; }

.contact-form-section { max-width: 860px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Post article
   -------------------------------------------------------------------------- */
.post-article__inner {
  max-width: 760px;
  margin-inline: auto;
}
.post-content {
  font-size: 17px;
  line-height: 1.85;
  color: #2b3440;
}
.post-content > * + * { margin-top: 22px; }
.post-content h2 { font-size: 31px; margin-top: 40px; }
.post-content h3 { font-size: 24px; margin-top: 32px; }
.post-content img { border-radius: var(--radius); }
.post-content a { color: var(--red-600); text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid var(--red-600);
  padding-left: 20px;
  font-size: 19px;
  color: #1f2733;
  font-style: italic;
}
.post-content ul,
.post-content ol {
  padding-left: 22px;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li + li { margin-top: 6px; }

.post-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--alabaster-grey);
}
.post-share__label { font-weight: 600; }
.post-share__link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--red-50);
  color: var(--red-600);
  transition: background var(--transition), color var(--transition);
}
.post-share__link:hover {
  background: var(--red-600);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--alabaster-grey);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink-black);
  transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Footer – snow background, 3 sections, 50%-black separators
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--snow);
  color: #2b3440;
  font-size: 14px;
  border-top: 1px solid var(--black-50);
}

/* ---- Section 1: two columns split by a vertical gradient divider ---- */
.footer-main {
  position: relative;
  padding-block: 56px 40px;
}
.footer-main__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 112px;
  align-items: start;
}
.footer-main__col--left {
  /* navigation links */
}
.footer-main__col--right {
  padding-left: 8px;
}

/* Left column: navigation link groups */
.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-links__group {
  min-width: 160px;
}

/* Vertical divider: spans the full section height so it meets (crosses) the
   horizontal separator below. Appears from a gradient (transparent → black). */
.footer-main__divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 100%);
  opacity: 0.5;
}

.footer-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-branch__name {
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--ink-black);
}
.footer-branch__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-branch__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #3a424d;
}
.footer-branch__list .icon { color: var(--red-600); margin-top: 2px; }
.footer-branch__list a:hover { color: var(--red-600); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social__label {
  font-weight: 600;
  color: var(--ink-black);
  margin-right: 4px;
}
.footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--alabaster-grey);
  color: var(--ink-black);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social a:hover {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #fff;
}

.footer-col__title {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--ink-black);
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a { color: #3a424d; }
.footer-menu a:hover { color: var(--red-600); }

/* ---- Section 2: centered subpage bar (wraps into more columns) ---- */
.footer-landings {
  padding-block: 22px;
  border-top: 1px solid var(--black-50);
  border-bottom: 1px solid var(--black-50);
}
.footer-landings__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  font-size: 14px;
}
.footer-landings__menu a { color: #3a424d; }
.footer-landings__menu a:hover { color: var(--red-600); }

/* ---- Section 3: bottom bar – logo + company (left), copyright (right) ---- */
.footer-bottom {
  padding-block: 24px;
}
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-bottom__logo {
  display: inline-flex;
  align-items: center;
}
.footer-bottom__logo img {
  height: 44px;          /* explicit height so SVGs without intrinsic size render */
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.footer-bottom__logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-black);
}
.footer-bottom__logo-text span { color: var(--red-600); }
.footer-bottom__company {
  font-size: 13px;
  line-height: 1.6;
  color: #5a6470;
  font-style: normal;
}
.footer-bottom__company strong {
  color: var(--ink-black);
}
.footer-bottom__copy {
  font-size: 13px;
  color: #5a6470;
}

/* Mobile slide-out nav panel base (enhanced in responsive.css) */
body.nav-open { overflow: hidden; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 15, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 90;
}
body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}
