/* Utility bar (thin contact strip above the header) */
.utility-bar {
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-small);
  text-align: center;
  padding-block: var(--space-05);
}

.utility-bar a {
  color: #fff;
  font-weight: 700;
}

/* Header CTA button */
.header-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.2em 0.6em;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: #94100f;
}

/* Hero (background photo with a dark blue overlay for text contrast) */
.hero {
  position: relative;
  background: var(--color-background) url('../images/hero-building.jpg') center/cover no-repeat;
  color: #fff;
  padding-block: calc(var(--space-8) * 1.5);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.5);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  max-width: 46rem;
  margin-top: 0;
}

.hero__subtext {
  max-width: 100%;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero__cta {
  margin-top: var(--space-2);
}

.hero .button--secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.hero .button--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Alerte / Anunțuri banner (highlighted region on front page) */
.region-highlighted {
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-accent);
}

.region-highlighted .block-content,
.region-highlighted p {
  margin: 0;
  padding: var(--space-2) 0;
  color: var(--color-text);
  font-weight: 600;
}

.region-highlighted__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  align-items: center;
}

.region-highlighted__col {
  min-width: 0;
}

@media (max-width: 700px) {
  .region-highlighted__grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage sections */
.home-section {
  padding-block: 10px 0px;
}

/* "Ultimele Noutăți" news section: centered heading, then the cards, then a
   centered "Vezi toate" pill button below them (axigen "MEET OUR CUSTOMERS"
   style, using the site accent color). */
.home-section--centered {
  padding-top: var(--space-6);
}

.home-section--centered .home-section__heading {
  margin-top: 0;
  text-align: center;
}

.home-section--centered .home-section__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.home-section--centered .home-section__footer::before,
.home-section--centered .home-section__footer::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(13, 45, 87, 0.25);
}

.home-section--centered .home-section__more-btn {
  display: inline-block;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  transition: all 0.2s ease-in-out 0s;
  min-width: 156px;
  height: 51px;
  line-height: 47px;
  padding: 0 40px;
  border: 2px solid var(--color-primary);
  background: var(--color-surface);
  color: var(--color-primary);
}

.home-section--centered .home-section__more-btn:hover {
  background: var(--color-surface-muted);
}

/* Acces rapid */
.quick-access__carousel {
  position: relative;
  margin-top: 20px;
	margin-bottom: 40px;
}

/* Only the strip is clipped; the arrows stay outside the viewport so they
   can overhang the card edges without being cut in half. */
.quick-access__viewport {
  overflow: hidden;
}

/* The strip itself never scrolls natively; the carousel JS animates it with
   transform: translateX(), which runs on the compositor thread and stays
   smooth even when the main thread is busy. */
.quick-access__grid {
  display: flex;
  gap: 24px;
  will-change: transform;
  backface-visibility: hidden;
}
/* The "quick_access" region wraps its blocks in a plain div; strip it out
   of layout so the cards remain direct grid items. */
.quick-access__grid > div {
  display: contents;
}

.quick-access__grid .quick-access__card {
  flex: 0 0 calc((100% - 72px) / 4);

}

@media (max-width: 1100px) {
  .quick-access__grid .quick-access__card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 700px) {
  .quick-access__grid {
    gap: 18px;
  }
  .quick-access__grid .quick-access__card { flex-basis: 100%; }
}

/* Carousel arrows */
.quick-access__carousel {
  --qa-overflow: 0;
}

.quick-access__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.quick-access__carousel[style*="--qa-overflow: 0"] .quick-access__arrow,
.quick-access__carousel:not([style*="--qa-overflow: 1"]) .quick-access__arrow {
  display: none;
}

.quick-access__arrow:hover {
  background: #eef1f5;
}

.quick-access__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.quick-access__arrow--prev { left: -22px; }
.quick-access__arrow--next { right: -22px; }

.quick-access__arrow svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 700px) {
  .quick-access__arrow--prev { left: 4px; }
  .quick-access__arrow--next { right: 4px; }
}

.quick-access__card {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: #002e5f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
  isolation: isolate;
  color: #fff;
  text-decoration: none;
  display: block;
}

.quick-access__image {
  position: absolute;
  inset: 0;
 /* width: 100%;*/
/*height: 80%;*/
 margin-top:30px;
  box-sizing: border-box;
  object-fit: cover;
  display: block;
  transition: transform 0.1s;
  will-change: transform;
}

.quick-access__card:hover .quick-access__image {
  transform: scale(1.1);
}

.quick-access__content {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 59%;
  bottom: 24px;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.quick-access__title {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.15;
  color: #fff;
}

.quick-access__button {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: auto;
  line-height: 46px;
  border-radius: 25px;
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.quick-access__card:hover .quick-access__button {
  transform: translateY(-2px);
  background: #eeeeee;
}

@media (max-width: 700px) {
  .quick-access__card {
    height: 400px;
  }

  /* Mobile: the image becomes a band vertically centred in the card, so the
     label/button read clearly below it. The transform keeps the centred
     position on hover (when scale kicks in). */
  .quick-access__image {
    margin-top: 10px;
    left: auto;
    right: auto;
    margin-left: auto;
    margin-right: auto;
    object-position: center;
  }

  .quick-access__content {
    top: auto;
    bottom: 24px;
  }
}

/* Full-bleed section backgrounds (Bine ați venit / Valorile noastre) */
.section--muted {
  background: var(--color-surface-muted);
  margin-bottom: 10px;
}

.section--dark {
  background: var(--color-secondary);
  color: #fff;
}

/* Space between the "Alege o carieră în intelligence" section and the
   "Valorile noastre" dark section which follows it. scoped so the quote
   block (which also uses .section--dark) is not affected. */
.section--dark:not(.quote-block) {
  margin-top: 40px;
}

.section--dark h2 {
  color: #fff;
}

.section-inner {
  padding-block: var(--space-6);
}

/* "Bine ați venit" only — 10% shorter than the shared .section-inner
   padding used by .section--dark ("Valorile noastre"). */
.section--muted .section-inner {
  padding-block: calc(var(--space-6) * 0.9);
}

.section-kicker {
  display: block;
  text-align: center;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-small);
  margin-bottom: var(--space-1);
}

.section--dark .section-kicker {
  color: var(--color-accent-light);
}

.section-heading {
  text-align: center;
  margin-top: 0;
}

.section-lede {
  max-width: 100%;
  margin: 0 auto var(--space-4);
  text-align: center;
  font-size: 1.125rem;
}

.section-ctas {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

/* Section heading that doubles as a link (e.g. "Alege o carieră în
   intelligence" linking to posturi vacante): keep the heading's own color
   and no underline until hover, so it doesn't read as a generic blue link. */
.home-section > h2 {
  text-align: center;
}

.home-section > h2 > a {
  color: inherit;
  text-decoration: none;
}

.home-section > h2 > a:hover {
  text-decoration: underline;
}

/* Feature cards: photo/plain top area + solid caption panel (Cariere,
   Aflați mai multe) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  display: flex;
  flex-direction: column;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #002e5f
}

.feature-card__media {
  aspect-ratio: 16 / 10;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.feature-card__media--logo img {
  height: 60%;
  width: auto;
  max-width: 60%;
}

/* "Aflați mai multe despre SIS" cards: the uploaded banner image fills the
   whole card (not a small centered logo), and the card text is centered. */
.feature-card--photo .feature-card__media--photo {
  aspect-ratio: auto;
  background: none;
  display: block;
}

.feature-card--photo .feature-card__media--photo img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-card--photo .feature-card__body {
  text-align: center;
}

.feature-card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
  background: #f4f6f9;
  color: var(--color-text);
}

.feature-card__body h3 {
  margin: 0;
  font-size: 1.125rem;
}

.feature-card__body a {
  color: #0b1f3a;
  text-decoration: none;
}

.feature-card__body a:hover {
  text-decoration: underline;
}

.feature-card__body p {
  margin: 0;
  color: #464d58;
}

/* Quote block */
.quote-block {
  margin-top: var(--space-3);
  padding-block: var(--space-3);
  text-align: center;
}

.quote-block .container::before,
.quote-block .container::after {
  content: "";
  display: block;
  height: 1px;
  background-color: rgba(13, 45, 87, 0.25);
}

.quote-block .container::before {
  margin-bottom: var(--space-4);
}

.quote-block .container::after {
  margin-top: var(--space-4);
}

.quote-block blockquote {
  max-width: 48rem;
  margin: 0 auto;
  font-size: 1.375rem;
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.4;
}

/* Values grid (2x2) */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: rgba(255, 255, 255, 0.15);
}

/* The "values_cards" region wraps its blocks in a plain div; strip it out
   of layout so the cards remain direct grid items. */
.values-grid > div {
  display: contents;
}

@media (min-width: 700px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

.value-card {
  background: var(--color-secondary);
  padding: var(--space-4);
  text-align: center;
}

.value-card h3 {
  color: #fff;
  margin: 0 0 var(--space-1);
}

.value-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
