/* AG microsite overrides on top of elis-agregate style.css */
.home-intro {
  background-image: url(../images/cover-home-golden.png) !important;
  background-attachment: scroll !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-color: #0a0a0a;
  min-height: 520px;
  height: auto !important;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Mobile / tablet: still fill the area */
.home-intro {
  background-size: cover !important;
}
.home-intro .overlay {
  opacity: 0.55 !important;
  background-color: #000000 !important;
}

/* Desktop: overlay puternic + zoom ca imaginea sa umple tot hero-ul */
@media only screen and (min-width: 992px) {
  .home-intro {
    /* fundal pe layer separat, ca scale sa umple fara benzi goale */
    background-image: none !important;
    background-color: #0a0a0a;
    min-height: 78vh;
    height: 78vh !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .home-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url(../images/cover-home-golden.png);
    background-size: cover;
    /* focus pe partea de jos a imaginii */
    background-position: center 72%;
    background-repeat: no-repeat;
    transform: scale(1.15);
    transform-origin: center 70%;
  }
  .home-intro .overlay {
    opacity: 0.72 !important;
    z-index: 1;
  }
  .home-intro .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1140px;
  }
  .home-intro-content {
    max-width: 820px;
  }
}

/* Contact slide (sageata din header): fundal alb, text/iconite lizibile */
.contact-slide-hide {
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.12);
}
.contact-slide-hide .contact_close {
  color: #231f20 !important;
}
.contact-slide-hide .contact-info,
.contact-slide-hide .icon-content,
.contact-slide-hide .icon-content h5,
.contact-slide-hide .icon-content p,
.contact-slide-hide .contact-nav {
  color: #231f20 !important;
}
.contact-slide-hide .icon-xs,
.contact-slide-hide .icon-xs i,
.contact-slide-hide .fa,
.contact-slide-hide .fa-solid {
  color: #231f20 !important;
}

.mt-bnr-inr.cover-despre { background-image: url(../images/cover-despre.jpg); background-size: cover; background-position: center; }
.mt-bnr-inr.cover-servicii { background-image: url(../images/cover-servicii.jpg); background-size: cover; background-position: center; }
.mt-bnr-inr.cover-portofoliu { background-image: url(../images/cover-portofoliu.jpg); background-size: cover; background-position: center; }
.mt-bnr-inr.cover-dotari { background-image: url(../images/cover-dotari.jpg); background-size: cover; background-position: center center; }
.mt-bnr-inr.cover-contact { background-image: url(../images/cover-contact.jpg); background-size: cover; background-position: center center; }

/* Complete supplied logo; frame removes blank PNG margins only.
   Source: 1418 x 1182; visible frame: x=80, y=315, w=1255, h=550. */
.brand-logo-frame {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1255 / 550;
  overflow: hidden;
}
.logo-header-inner .brand-logo-frame img,
.logo-footer .brand-logo-frame img {
  display: block;
  position: absolute;
  width: 112.988048%;
  max-width: none;
  height: auto;
  max-height: none;
  left: -6.374502%;
  top: -57.272727%;
}
.site-header .logo-header {
  width: 140px;
  max-width: 140px;
  height: 72.8px;
}
.logo-header-inner a.logo-link {
  display: block;
  width: 100%;
  text-decoration: none;
}
.logo-footer {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .site-header .logo-header {
    width: 105px;
    height: 54.6px;
  }
}

/* White footer, 90% black text, rounded about panels. */
.site-footer,
.site-footer .footer-top,
.site-footer .footer-bottom {
  background: #ffffff !important;
  color: #1a1a1a;
}
.site-footer .overlay-main {
  display: none;
}
.site-footer h4,
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer a,
.site-footer .widget-title,
.site-footer .copyrights-text {
  color: #1a1a1a !important;
}
.site-footer .widget_about {
  border-radius: 10px;
  overflow: hidden;
}
.site-footer .widget_about > .site-bg-primary {
  border-radius: 10px;
}
.site-footer .widget_about a.site-button-secondry {
  background: #1a1a1a;
  color: #ffffff !important;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  box-shadow: none;
  transition: background-color .2s ease, color .2s ease;
}
.site-footer .widget_about a.site-button-secondry:hover,
.site-footer .widget_about a.site-button-secondry:focus-visible {
  background: #ffffff;
  color: #1a1a1a !important;
}
.site-footer .widget_about a.site-button-secondry::before,
.site-footer .widget_about a.site-button-secondry::after {
  content: none;
  display: none;
}

/* Intro article prose */
.intro-article p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 1.1em;
}
.intro-article h3 {
  margin-top: 1.5rem;
}

/* Stats counters row (home + inner pages) */
.ag-stats-section {
  position: relative;
}
.ag-stats-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: #f5bf23;
}
.ag-stats-row {
  margin-left: -10px;
  margin-right: -10px;
}
.ag-stats-row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}
.ag-stat-card {
  text-align: center;
  padding: 28px 18px 26px;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #f5bf23;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.ag-stat-card:hover {
  background: rgba(245, 191, 35, 0.08);
  border-color: rgba(245, 191, 35, 0.45);
  transform: translateY(-3px);
}
.ag-stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 191, 35, 0.15);
  color: #f5bf23;
  font-size: 18px;
}
.ag-stat-numline {
  font-family: Poppins, sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  font-weight: 700;
  color: #f5bf23;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.ag-stat-numline .counter {
  display: inline-block;
  min-width: 0.6em;
}
.ag-stat-suffix {
  display: inline-block;
  margin-left: 1px;
  color: #f5bf23;
}
.ag-stat-label {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  text-transform: none;
  letter-spacing: 0.01em;
  max-width: 12rem;
  margin: 0 auto;
}

/* Legacy boxes on light pages */
.ag-stat-box {
  text-align: center;
  padding: 22px 14px;
  background: #fff;
  margin-bottom: 0;
  border: 1px solid #eee;
  border-top: 3px solid #f5bf23;
  height: 100%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}
.ag-stat-box .ag-stat-num {
  font-family: Poppins, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #f5bf23;
  line-height: 1.1;
  display: block;
}
.ag-stat-box .ag-stat-label {
  font-size: 13px;
  color: #555;
  margin-top: 8px;
  display: block;
  max-width: none;
}

/*
 * Dotari alternating rule:
 *  light section → dark cards
 *  dark section  → light cards
 */
.ag-flip-card {
  text-align: center;
  padding: 28px 20px 26px;
  height: 100%;
  border-top: 3px solid #f5bf23;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ag-flip-card:hover {
  transform: translateY(-3px);
}
.ag-flip-card--tall {
  text-align: left;
  padding: 32px 28px 28px;
}
.ag-flip-card--tall.text-left {
  text-align: left;
}
.ag-flip-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
}
.ag-flip-card--tall .ag-flip-icon {
  margin-left: 0;
  margin-right: 0;
}
.ag-flip-num {
  font-family: Poppins, sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.05;
  color: #f5bf23;
  margin-bottom: 8px;
}
.ag-flip-label {
  font-size: 13px;
  line-height: 1.45;
  max-width: 12rem;
  margin: 0 auto;
}
.ag-flip-title {
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}
.ag-flip-heading {
  font-family: Poppins, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.3;
}
.ag-flip-text {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.ag-flip-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ag-flip-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.25rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ag-flip-list li:last-child {
  border-bottom: 0;
}
.ag-flip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 8px;
  height: 8px;
  background: #f5bf23;
  border-radius: 1px;
}

/* Carduri NEGRE pe fundal ALB */
.ag-flip-card--dark {
  background: #1a1718;
  border: 1px solid #2a2627;
  border-top: 3px solid #f5bf23;
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.ag-flip-card--dark:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}
.ag-flip-card--dark .ag-flip-icon {
  background: rgba(245, 191, 35, 0.14);
  color: #f5bf23;
}
.ag-flip-card--dark .ag-flip-label,
.ag-flip-card--dark .ag-flip-text {
  color: rgba(255, 255, 255, 0.78);
}
.ag-flip-card--dark .ag-flip-title,
.ag-flip-card--dark .ag-flip-heading {
  color: #fff;
}
.ag-flip-card--dark .ag-flip-list li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

/* Dotari — spatiu extra deasupra butonului Contact */
.ag-dotari-cta {
  margin-top: 2.25rem;
  padding-top: 1.35rem;
}

/* Carduri ALBE pe fundal NEGRU */
.ag-flip-card--light {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid #f5bf23;
  color: #413c35;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.ag-flip-card--light:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}
.ag-flip-card--light .ag-flip-icon {
  background: rgba(245, 191, 35, 0.16);
  color: #c9a00e;
}
.ag-flip-card--light .ag-flip-title,
.ag-flip-card--light .ag-flip-heading {
  color: #231f20;
}
.ag-flip-card--light .ag-flip-text {
  color: #555;
}
.ag-flip-card--light .ag-flip-list li {
  border-bottom-color: #eee;
  color: #413c35;
}

/* keep old equip class as alias if needed */
.ag-equip-card {
  text-align: center;
  padding: 28px 16px 24px;
  height: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-top: 3px solid #f5bf23;
}

/* Unit cards + media frames (only where images fit content) */
.ag-unit-card {
  height: 100%;
  background: #fafafa;
  border: 1px solid #eee;
  border-top: 3px solid #f5bf23;
}
.ag-unit-body {
  padding: 28px 26px 24px;
}
.ag-unit-body h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.ag-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ag-check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  color: #413c35;
  line-height: 1.5;
  border-bottom: 1px solid #eee;
}
.ag-check-list li:last-child {
  border-bottom: 0;
}
.ag-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: #f5bf23;
  border-radius: 1px;
}
.ag-media-frame {
  overflow: hidden;
  border: 1px solid #e5e5e5;
  background: #111;
  line-height: 0;
}
.ag-media-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.ag-media-frame--sm img {
  aspect-ratio: 16 / 9;
}
.ag-media-caption {
  margin: 10px 0 0;
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}
/* Light-page variant of yellow icon circle */
.ag-unit-card .ag-stat-icon {
  background: rgba(245, 191, 35, 0.16);
  color: #c9a00e;
}

/* ========== Portfolio gallery (desktop: desc always in view; mobile: under) ========== */
.portfolio-gallery {
  display: block;
  scroll-margin-top: 100px;
}

.portfolio-gallery__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}

/* View: categorii din prezentare */
.pg-cats {
  display: block;
}
.pg-cats[hidden],
.pg-projects[hidden] {
  display: none !important;
}
.pg-cats__stage {
  position: relative;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  line-height: 0;
}
.pg-cats__cover {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.pg-cats__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.12) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 32px 36px;
  pointer-events: none;
}
.pg-cats__overlay .site-button {
  pointer-events: auto;
}
.pg-cats__count {
  display: inline-block;
  background: #f5bf23;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 10px 18px;
  margin-bottom: 12px;
  font-family: Poppins, sans-serif;
}
.pg-cats__name {
  color: #fff;
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.25;
  max-width: 18em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.pg-projects__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pg-back {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: #111;
  line-height: 1.3;
}
.pg-back:hover {
  border-color: #f5bf23;
  background: #fff8e0;
}
.pg-back:focus-visible {
  outline: 2px solid #231f20;
  outline-offset: 2px;
}
.pg-projects__cat {
  font-size: 16px;
  font-weight: 600;
  font-family: Poppins, sans-serif;
  color: #111;
}

.portfolio-gallery__stage {
  background: transparent;
  position: relative;
  overflow: hidden;
  min-height: 0;
  line-height: 0;
}

.portfolio-gallery__main {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: contain;
  background: transparent;
  margin: 0 auto;
  cursor: zoom-in;
}

/* Nav sub imagine — nu acopera textul din slide-urile PDF */
.portfolio-gallery__nav--bar,
.portfolio-gallery__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: static;
  transform: none;
  pointer-events: auto;
  padding: 12px 0 4px;
  margin: 0;
}

.portfolio-gallery__nav-hint {
  font-size: 12px;
  color: #888;
  letter-spacing: 0.02em;
  user-select: none;
}

.portfolio-gallery__nav button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: #f5bf23;
  color: #111;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.portfolio-gallery__nav button:hover {
  background: #ffd24a;
}

.portfolio-gallery__nav button:focus-visible {
  outline: 2px solid #231f20;
  outline-offset: 2px;
}

.portfolio-gallery__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 4px;
  -webkit-overflow-scrolling: touch;
}

.portfolio-gallery__thumb {
  flex: 0 0 88px;
  height: 62px;
  border: 2px solid transparent;
  padding: 0;
  background: #ddd;
  cursor: pointer;
  overflow: hidden;
}

.portfolio-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-gallery__thumb.is-active {
  border-color: #f5bf23;
}

.portfolio-gallery__desc {
  background: #f5f5f5;
  padding: 28px 26px;
  border-left: 4px solid #f5bf23;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.portfolio-gallery__cat {
  display: inline-block;
  background: #f5bf23;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  margin-bottom: 12px;
  font-family: Poppins, sans-serif;
}

.portfolio-gallery__desc h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

.portfolio-gallery__loc {
  color: #666;
  margin-bottom: 16px;
  font-size: 15px;
}

.portfolio-gallery__meta {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.portfolio-gallery__meta li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.45;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 8px;
}

.portfolio-gallery__meta strong {
  display: block;
  color: #111;
  font-weight: 600;
  margin-bottom: 2px;
}

.portfolio-gallery__works {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

.portfolio-gallery__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}

.portfolio-gallery__keys button {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  /* greutate fixa — altfel bold la active schimba latimea si „sare” layout-ul */
  font-weight: 500;
  max-width: 100%;
  box-sizing: border-box;
  /* rezerva spatiu vizual fara reflow */
  box-shadow: inset 0 0 0 0 transparent;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.portfolio-gallery__keys button.is-active {
  border-color: #f5bf23;
  background: #fff8e0;
  font-weight: 500; /* acelasi weight ca restul */
  box-shadow: inset 3px 0 0 #f5bf23;
}

@media (max-width: 991px) {
  .portfolio-gallery__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pg-cats__cover {
    max-height: none;
    height: auto;
    object-fit: contain;
  }
  .pg-cats__overlay {
    padding: 20px 18px;
  }
  .pg-cats__name {
    font-size: 22px;
    max-width: none;
  }
  .portfolio-gallery__desc {
    position: static;
    max-height: none;
    order: 2;
  }
  .portfolio-gallery__media {
    order: 1;
  }
  /* pe mobil: fara „dreptunghi” negru sub / in jurul pozei */
  .portfolio-gallery__stage {
    min-height: 0 !important;
    background: transparent !important;
    border-radius: 0;
  }
  .portfolio-gallery__main {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
  }
  .portfolio-gallery__nav-hint {
    display: none; /* economiseste spatiu pe ecrane mici */
  }
  .portfolio-gallery__keys {
    gap: 6px;
  }
  .portfolio-gallery__keys button {
    font-size: 11px;
    padding: 5px 8px;
  }
}

/* ========== Portfolio lightbox (tap = full screen + zoom) ========== */
.pg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.94);
  touch-action: none;
  overscroll-behavior: contain;
}
.pg-lightbox.is-open {
  display: flex;
}
.pg-lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}
.pg-lightbox__img.is-dragging {
  cursor: grabbing;
}
.pg-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f5bf23;
  color: #111;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.pg-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 4px;
  background: #f5bf23;
  color: #111;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pg-lightbox__nav:hover {
  background: #ffd24a;
}
.pg-lightbox__nav--prev {
  left: 12px;
}
.pg-lightbox__nav--next {
  right: 12px;
}
.pg-lightbox__counter {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-family: Poppins, sans-serif;
  white-space: nowrap;
  pointer-events: none;
  max-width: calc(100% - 120px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg-lightbox__hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
body.pg-lightbox-open {
  overflow: hidden;
}

/* Mobil: sagetile sub imagine (bara fixa), nu peste textul din slide */
@media (max-width: 991px) {
  .pg-lightbox__inner {
    /* lasa loc jos pentru bara de navigare */
    padding: 56px 12px 88px;
    box-sizing: border-box;
  }
  .pg-lightbox__img {
    max-height: calc(100% - 8px);
  }
  .pg-lightbox__nav {
    top: auto;
    bottom: 18px;
    transform: none;
    width: 48px;
    height: 48px;
    font-size: 26px;
    /* bara pe fundal intunecat, clar sub continut */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  }
  .pg-lightbox__nav--prev {
    left: max(16px, calc(50% - 72px));
  }
  .pg-lightbox__nav--next {
    right: max(16px, calc(50% - 72px));
    left: auto;
  }
  .pg-lightbox__hint {
    display: none; /* pe mobil e suficienta bara de sageti */
  }
  .pg-lightbox__counter {
    top: 12px;
    font-size: 12px;
    max-width: calc(100% - 100px);
  }
  .pg-lightbox__close {
    top: 10px;
    right: 10px;
  }
}

/* Contact page — centered icon cards */
.ag-contact-icons {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
/* Casete contact — stil carduri negre ca pe Dotari */
.ag-contact-item {
  text-align: center;
  padding: 28px 22px 26px;
  height: 100%;
  background: #1a1718;
  border: 1px solid #2a2627;
  border-top: 3px solid #f5bf23;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ag-contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}
.ag-contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 191, 35, 0.14);
  color: #f5bf23;
  font-size: 22px;
}
.ag-contact-item h5 {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px;
}
.ag-contact-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}
.ag-contact-item a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.ag-contact-item a:hover {
  color: #f5bf23;
  border-bottom-color: #f5bf23;
}
.ag-contact-note {
  margin-top: 4px !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.ag-factory-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ag-factory-list li {
  padding: 14px 0;
  border-bottom: 1px solid #e5e5e5;
}
.ag-factory-list li:last-child {
  border-bottom: 0;
}
.ag-factory-list strong {
  display: block;
  font-family: Poppins, sans-serif;
  color: #231f20;
  margin-bottom: 4px;
}
.ag-factory-list span {
  font-size: 14px;
  color: #666;
}

.ag-contact-form-wrap {
  background: #fff;
  border: 1px solid #eee;
  border-top: 3px solid #f5bf23;
  padding: 28px 26px 30px;
  box-shadow: 0 8px 22px rgba(35, 31, 32, 0.05);
}
.ag-contact-form .form-control {
  border-radius: 0;
  height: auto;
  padding: 12px 14px;
  margin-bottom: 15px;
  border-color: #ddd;
}
.ag-contact-form .form-control:focus {
  border-color: #f5bf23;
  box-shadow: none;
}
.ag-contact-form textarea.form-control {
  min-height: 140px;
}
.ag-contact-form .site-button {
  min-width: 140px;
}

/* ========== Despre noi — layout modern text + imagini ========== */
.despre-lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: #666;
  font-size: 1.02rem;
  line-height: 1.65;
}
.despre-story {
  max-width: 36rem;
}
.despre-story p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #413c35;
  margin-bottom: 1.1em;
}
.despre-story__title {
  font-family: Poppins, sans-serif;
  font-size: clamp(1rem, 1.76vw, 1.24rem);
  font-weight: 700;
  color: #231f20;
  line-height: 1.35;
  margin: 0 0 1.15rem;
}
/* badge 2020 — fara spatiu ciudat pe stanga */
.despre-year-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0 0 1.35rem;
  padding: 0 0 0 1rem;
  border-left: 4px solid #f5bf23;
}
.despre-year-badge__num {
  font-family: Poppins, sans-serif;
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1;
  color: #f5bf23;
  letter-spacing: -0.02em;
}
.despre-year-badge__label {
  font-family: Poppins, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #231f20;
}
.despre-photo {
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(35, 31, 32, 0.12);
  background: #1a1718;
  line-height: 0;
}
.despre-photo::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: -10px;
  width: 72px;
  height: 72px;
  background: #f5bf23;
  z-index: 0;
}
.despre-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
/* Galerie intro */
.despre-gallery {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 0 16px 16px;
}
.despre-gallery::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36%;
  height: 36%;
  background: #f5bf23;
  z-index: 0;
}
.despre-gallery__carousel,
.despre-gallery .owl-carousel {
  position: relative;
  z-index: 1;
  width: 100% !important;
}
.despre-gallery .item {
  margin: 0 !important;
  box-shadow: none !important;
}
.despre-gallery__frame {
  position: relative;
  overflow: hidden;
  background: #1a1718;
  box-shadow: 0 16px 40px rgba(35, 31, 32, 0.14);
  line-height: 0;
}
.despre-gallery__frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  min-height: 300px;
}
@media (min-width: 992px) {
  .despre-gallery {
    padding: 0 0 20px 20px;
  }
  .despre-gallery__frame img,
  .despre-photo img {
    min-height: 380px;
  }
  .despre-story {
    padding-left: 0.75rem;
  }
}
@media (max-width: 991px) {
  .despre-story {
    max-width: none;
  }
}

/* Services: image/title first; details on hover, keyboard focus or touch toggle. */
.ag-svc-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  height: 100%;
  background: #f3f2eb;
  border: 1px solid #e5e5dc;
  border-top: 3px solid #f5bf23;
  transition: box-shadow .25s ease;
}
.ag-svc-card:focus-visible { outline: 3px solid #f5bf23; outline-offset: 3px; }
.ag-svc-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  transition: opacity .25s ease;
}
.ag-svc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.78));
  opacity: 1;
  z-index: 1;
  transition: opacity .25s ease;
}
.ag-svc-body { position: relative; z-index: 2; padding: 1.5rem 1.35rem; }
.ag-svc-title {
  font-family: Poppins, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}
.ag-svc-desc {
  display: none;
  margin: .85rem 0 0;
  font-size: .95rem;
  line-height: 1.55;
  color: #333;
}
.ag-svc-more {
  display: none;
  margin-top: 1rem;
  padding: .55rem .9rem;
  border: 0;
  border-radius: 4px;
  background: #f5bf23;
  color: #1a1a1a;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.ag-svc-more:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 3px; }
.ag-svc-card.is-expanded .ag-svc-photo,
.ag-svc-card.is-expanded .ag-svc-overlay { opacity: 0; }
.ag-svc-card.is-expanded .ag-svc-title { color: #231f20; }
.ag-svc-card.is-expanded .ag-svc-desc { display: block; }
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .ag-svc-card:hover .ag-svc-photo,
  .ag-svc-card:hover .ag-svc-overlay,
  .ag-svc-card:focus-visible .ag-svc-photo,
  .ag-svc-card:focus-visible .ag-svc-overlay { opacity: 0; }
  .ag-svc-card:hover .ag-svc-title,
  .ag-svc-card:focus-visible .ag-svc-title { color: #231f20; }
  .ag-svc-card:hover .ag-svc-desc,
  .ag-svc-card:focus-visible .ag-svc-desc { display: block; }
}
@media (max-width: 767px), (hover: none), (pointer: coarse) {
  .ag-svc-more { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-svc-card, .ag-svc-photo, .ag-svc-overlay { transition: none; }
}

/* Ensure sticky header space */
.site-header .main-bar {
  z-index: 999;
}


/* Keep the complete, smaller header logo padded in the sticky header. */
.site-header .is-fixed .logo-header {
  display: block;
  height: auto !important;
  min-height: 0;
  padding: 10px 0 !important;
}
.site-header .is-fixed .logo-header-inner {
  display: block;
  height: auto;
}

/* Bootstrap service modal actions: projects left, close right. */
.modal[id^="service-modal-"] .modal-footer {
  display: block;
  padding: 16px 20px !important;
}
.modal[id^="service-modal-"] .modal-footer > .row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
}
.modal[id^="service-modal-"] .modal-footer > .row > div {
  display: flex;
  flex: 0 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0 !important;
}
.modal[id^="service-modal-"] .modal-footer > .row > div:last-child {
  margin-left: auto;
}
/* The original list icon is outside the project link. */
.modal[id^="service-modal-"] .modal-footer > .row > div > i {
  display: none;
}
.modal[id^="service-modal-"] .modal-footer a.read-more,
.modal[id^="service-modal-"] .modal-footer button[data-bs-dismiss="modal"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.modal[id^="service-modal-"] .modal-footer a.read-more {
  background: #f5bf23;
  border-color: #f5bf23;
  color: #1a1a1a !important;
}
.modal[id^="service-modal-"] .modal-footer a.read-more strong {
  color: inherit;
}
.modal[id^="service-modal-"] .modal-footer a.read-more::before,
.modal[id^="service-modal-"] .modal-footer a.read-more::after {
  content: none;
}
.modal[id^="service-modal-"] .modal-footer a.read-more:hover {
  background: #e4af16;
  border-color: #e4af16;
}
.modal[id^="service-modal-"] .modal-footer button[data-bs-dismiss="modal"] {
  background: #000000;
  border-color: #000000;
  color: #ffffff !important;
}
.modal[id^="service-modal-"] .modal-footer button[data-bs-dismiss="modal"]:hover {
  background: #262626;
  border-color: #262626;
}
.modal[id^="service-modal-"] .modal-footer a.read-more:focus-visible,
.modal[id^="service-modal-"] .modal-footer button[data-bs-dismiss="modal"]:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 3px;
}

/* Compact footer headings, readable on desktop and mobile. */
.site-footer h4 {
  font-size: 14px;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .site-footer h4 { font-size: 12px; }
}
.site-footer .logo-footer {
  margin-bottom: 20px;
}

/* Portfolio: flat category controls above the gallery, stacked project details. */
.portfolio-gallery__toolbar { align-items: flex-start; row-gap: 14px; margin-bottom: 24px; }
.portfolio-gallery__toolbar .portfolio-gallery__keys { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.portfolio-gallery__toolbar .portfolio-gallery__keys button {
  flex: 0 1 auto; width: auto; max-width: 100%; padding: 10px 14px;
  border: 0; border-radius: 4px; background: #f2f2f2; color: #231f20;
  box-shadow: none; font-size: 13px; font-weight: 500; text-align: left;
  white-space: normal; line-height: 1.4; min-height: 44px;
}
.portfolio-gallery__toolbar .portfolio-gallery__keys button:hover { background: #fff2cc; }
.portfolio-gallery__toolbar .portfolio-gallery__keys button.is-active { background: #f5bf23; color: #231f20; }
.portfolio-gallery__toolbar .portfolio-gallery__nav { justify-content: flex-end; gap: 8px; padding: 0; }
.portfolio-gallery__toolbar .portfolio-gallery__nav button {
  width: 48px; height: 44px; border: 0; border-radius: 4px;
  background: #231f20; color: #fff; box-shadow: none; font-size: 22px;
}
.portfolio-gallery__toolbar .portfolio-gallery__nav button:hover { background: #f5bf23; color: #231f20; }
.portfolio-gallery__toolbar button:focus-visible { outline: 2px solid #231f20; outline-offset: 3px; }
.pg-projects__bar { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
.pg-projects__cat { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 600; }
.pg-back { border: 0; border-radius: 4px; background: #f2f2f2; min-height: 44px; padding: 10px 16px; }
.pg-back:hover { background: #f5bf23; }
.pg-projects__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.pg-project { padding-bottom: 40px; border-bottom: 1px solid #e8e8e8; scroll-margin-top: 110px; }
.pg-project:last-child { padding-bottom: 0; border-bottom: 0; }
.pg-project .portfolio-gallery__desc { position: static; box-shadow: none; background: transparent; }
.pg-project .portfolio-gallery__desc h4 { font-size: 24px; line-height: 1.3; margin: 0 0 16px; }
.pg-project [hidden] { display: none !important; }
@media (max-width: 991px) {
  .portfolio-gallery__toolbar .portfolio-gallery__nav { justify-content: flex-start; }
  .pg-projects__cat { font-size: 24px; }
  .pg-project .portfolio-gallery__desc h4 { font-size: 21px; }
}

/* About: the first three image/story sections share a spacious editorial layout. */
.despre-feature.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin: 0;
}
.despre-feature.row > [class*="col-"] {
  width: auto;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  margin-bottom: 0;
}
.despre-feature .despre-story {
  max-width: none;
  padding: 0;
}
.despre-feature .despre-story__title {
  font-size: clamp(19.2px, 1.84vw, 25.6px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.despre-feature .despre-story__title::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin-top: 24px;
  border-radius: 2px;
  background: linear-gradient(to right, #f5bf23 0 72%, #231f20 72% 100%);
}
.despre-feature .despre-photo {
  border-radius: 6px;
  box-shadow: none;
  background: #f2f2f2;
}
.despre-feature .despre-photo::after { content: none; }
.despre-feature .despre-photo img {
  aspect-ratio: 4 / 3;
  min-height: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}
@media (min-width: 992px) {
  .despre-feature.row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 80px);
  }
}
