/*
 * IIBS Global Mirex — main.css
 * Layout + sectiuni replica Bridge live
 */

/* === HEADER — sticky fixed match LIVE === */
.gm-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  border-bottom: 1px solid transparent;
}
.gm-header.is-scrolled {
  background: var(--gm-white);
  border-bottom-color: var(--gm-rule);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
/* Site content padding-top pentru a evita overlap cu header fixed */
.gm-main { padding-top: 0; }
.gm-hero-page { margin-top: var(--gm-header-height); }
.gm-page-content.has-hero { padding-top: 0; }
.gm-bridge-hero { margin-top: var(--gm-header-height); }
.gm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--gm-header-height);
  gap: var(--gm-s-5);
}
.gm-logo { flex-shrink: 0; }
.gm-logo-img { height: 46px; width: auto; }

.gm-lang-dropdown {
  position: relative;
  margin-right: auto;
  margin-left: var(--gm-s-4);
}
.gm-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gm-s-2);
  background: transparent;
  border: none;
  font-family: var(--gm-font-display);
  font-size: 14px;
  color: var(--gm-walnut-text);
  cursor: pointer;
  padding: var(--gm-s-2) var(--gm-s-3);
}
.gm-lang-btn:hover { color: var(--gm-red); }
.gm-lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--gm-white);
  border: 1px solid var(--gm-rule);
  border-radius: var(--gm-radius);
  box-shadow: var(--gm-shadow-card);
  list-style: none;
  margin: 0; padding: var(--gm-s-2);
  min-width: 140px;
}
.gm-lang-menu li a { display: block; padding: var(--gm-s-2) var(--gm-s-3); border-radius: var(--gm-radius-sm); }
.gm-lang-menu li a:hover { background: var(--gm-cream); }

.gm-nav { display: flex; align-items: center; gap: var(--gm-s-4); }
.gm-menu {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: var(--gm-s-5);
}
.gm-menu a {
  font-family: var(--gm-font-display);
  font-size: var(--gm-menu-size);
  font-weight: 500;
  color: var(--gm-walnut-text);
  position: relative;
}
.gm-menu a:hover,
.gm-menu a[aria-current="page"] { color: var(--gm-red); }
.gm-menu a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--gm-red);
}

/* === MEGA MENU PRODUSE — hover dropdown 14 branduri (match LIVE Bridge wide menu) === */
.gm-has-mega { position: static; }
.gm-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--gm-white);
  border-top: 1px solid var(--gm-rule);
  box-shadow: 0 12px 30px rgba(104, 83, 75, 0.18);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 99;
  padding: var(--gm-s-5) 0;
}
.gm-has-mega:hover .gm-mega-menu,
.gm-has-mega.is-open .gm-mega-menu,
.gm-mega-menu:hover {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.gm-mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gm-s-4) var(--gm-s-3);
}
.gm-mega-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: var(--gm-s-2);
  border-radius: var(--gm-radius);
  transition: var(--gm-transition);
}
.gm-mega-card:hover {
  background: var(--gm-cream);
  transform: translateY(-2px);
}
.gm-mega-img {
  width: 110px;
  height: 110px;
  border-radius: var(--gm-radius-circle);
  overflow: hidden;
  margin-bottom: var(--gm-s-2);
  box-shadow: var(--gm-shadow-card);
}
.gm-mega-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gm-mega-title {
  font-family: var(--gm-font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--gm-walnut-text);
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .gm-mega-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  /* Pe mobile mega-menu devine accordion sub Produse în nav vertical */
  .gm-mega-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding: var(--gm-s-3) 0 var(--gm-s-3) var(--gm-s-4);
    background: transparent;
    display: none;
  }
  .gm-has-mega.is-open .gm-mega-menu { display: block; }
  .gm-mega-grid { grid-template-columns: repeat(2, 1fr); gap: var(--gm-s-2); }
  .gm-mega-img { width: 70px; height: 70px; }
  .gm-mega-title { font-size: 11px; }
}

.gm-lang-flag img { display: block; }

.gm-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--gm-s-2);
}
.gm-bars { display: inline-flex; flex-direction: column; gap: 4px; }
.gm-bars span { display: block; width: 24px; height: 2px; background: var(--gm-walnut-text); }

/* === HERO SLIDER === */
.gm-hero-home { position: relative; min-height: 80vh; margin-top: 0; }
.gm-hero-swiper { width: 100%; min-height: 80vh; }
.gm-slide {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.gm-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.gm-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45));
}
.gm-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--gm-white);
  padding-top: var(--gm-s-8);
}
.gm-slide-subtitle {
  font-family: var(--gm-font-display);
  font-size: 18px;
  font-weight: 500;
  text-transform: none;
  margin-bottom: var(--gm-s-3);
  opacity: 0.9;
}
.gm-slide-title {
  color: var(--gm-white);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: var(--gm-s-5);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.gm-slide-cta {
  margin-top: var(--gm-s-3);
}

/* Swiper navigation custom */
.gm-slider-prev, .gm-slider-next {
  color: var(--gm-white);
  --swiper-navigation-size: 32px;
}
.gm-slider-pagination {
  bottom: 32px !important;
}
.swiper-pagination-bullet {
  background: var(--gm-white);
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  background: var(--gm-red);
  opacity: 1;
}

/* === HERO PAGE (non-home) === */
.gm-hero-page {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--gm-header-height);
}
.gm-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.gm-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.gm-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}
.gm-hero-title {
  color: var(--gm-white);
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 var(--gm-s-3);
}
.gm-hero-subtitle {
  color: var(--gm-white);
  opacity: 0.95;
  font-size: 18px;
  margin: 0;
  max-width: 720px;
  margin-inline: auto;
}

/* Brand-page hero — overlay maro semi-transparent (match Bridge) */
.gm-brand-single .gm-hero-page::after {
  display: none;
}
.gm-brand-single .gm-hero-overlay {
  background: var(--gm-bg-overlay);
  padding: var(--gm-s-6);
  max-width: 820px;
  margin-inline: auto;
  border-radius: 0;
}

/* === SECTIONS === */
.gm-section {
  padding: var(--gm-s-9) 0;
}
.gm-section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: var(--gm-s-6);
}
.gm-script-title {
  font-style: italic;
  font-weight: 500;
  color: var(--gm-walnut);
  letter-spacing: 0.01em;
}

/* === BRAND GRID (homepage) === */
.gm-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gm-s-6) var(--gm-s-5);
  max-width: 1100px;
  margin-inline: auto;
}
.gm-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}
.gm-brand-img {
  width: 220px;
  height: 220px;
  border-radius: var(--gm-radius-circle);
  overflow: hidden;
  box-shadow: var(--gm-shadow-card);
  margin-bottom: var(--gm-s-3);
  transition: var(--gm-transition);
}
.gm-brand-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gm-brand-card:hover .gm-brand-img {
  box-shadow: var(--gm-shadow-card-hover);
  transform: translateY(-4px);
}
.gm-brand-card:hover .gm-brand-img img {
  transform: scale(1.06);
}
.gm-brand-subtitle {
  display: block;
  font-family: var(--gm-font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gm-walnut);
  margin-bottom: var(--gm-s-1);
}
.gm-brand-title {
  font-size: 18px;
  color: var(--gm-walnut-text);
  margin: 0;
}

/* === SERVICII === */
.gm-services-section { background: var(--gm-cream); position: relative; }
.gm-services-intro {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--gm-s-6);
  font-size: 16px;
  color: var(--gm-walnut-text);
}
.gm-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gm-s-5);
}
.gm-service-card {
  text-align: left;
  padding: var(--gm-s-4);
}
.gm-service-icon {
  font-size: 32px;
  margin-bottom: var(--gm-s-3);
  display: inline-block;
}
.gm-service-green .gm-service-icon { color: var(--gm-green); }
.gm-service-red .gm-service-icon { color: var(--gm-red); }
.gm-service-title {
  font-family: var(--gm-font-display);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 var(--gm-s-2);
}
.gm-service-green .gm-service-title { color: var(--gm-green); }
.gm-service-red .gm-service-title { color: var(--gm-red); }
.gm-service-text {
  font-size: 14px;
  line-height: 22px;
  color: var(--gm-walnut-text);
  margin: 0;
}
.gm-vespa-illustration {
  position: absolute;
  bottom: 32px; right: 32px;
  width: 180px;
  opacity: 0.4;
  pointer-events: none;
}

/* === COMPANIA ÎN CIFRE === */
.gm-stats-section {
  position: relative;
  color: var(--gm-white);
  padding: var(--gm-s-9) 0;
  overflow: hidden;
}
.gm-stats-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 1;
}
.gm-stats-overlay {
  position: absolute; inset: 0;
  background: rgba(91, 69, 56, 0.85);
  z-index: 2;
}
.gm-stats-section .container {
  position: relative;
  z-index: 3;
}
.gm-stats-title {
  color: var(--gm-white);
  font-style: normal;
  margin-bottom: var(--gm-s-7);
}
.gm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gm-s-4);
}
.gm-stat-card {
  background: var(--gm-white);
  border-radius: var(--gm-radius);
  overflow: hidden;
  box-shadow: var(--gm-shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.gm-stat-image {
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}
.gm-stat-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gm-stat-body {
  padding: var(--gm-s-5) var(--gm-s-4);
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.gm-stat-superscript {
  display: block;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--gm-s-1);
  opacity: 0.85;
}
.gm-stat-number {
  display: block;
  font-family: var(--gm-font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: var(--gm-s-2);
}
.gm-stat-label {
  display: block;
  font-size: 13px;
  line-height: 18px;
  opacity: 0.9;
}
/* Color variants per card */
.gm-stat-green .gm-stat-body { background: var(--gm-green); color: var(--gm-white); }
.gm-stat-cream .gm-stat-body { background: var(--gm-cream); color: var(--gm-walnut-text); }
.gm-stat-red .gm-stat-body { background: var(--gm-red); color: var(--gm-white); }
.gm-stat-orange .gm-stat-body { background: var(--gm-orange); color: var(--gm-white); }

/* === LOGOS CLIENTI === */
.gm-clients-section { background: var(--gm-cream); }
.gm-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--gm-s-5);
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin-inline: auto;
}
.gm-client-logo {
  filter: grayscale(0.3);
  opacity: 0.8;
  transition: var(--gm-transition);
}
.gm-client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}
.gm-client-logo img {
  max-width: 140px;
  max-height: 80px;
  object-fit: contain;
}

/* === FOOTER === */
.gm-footer {
  background: var(--gm-white);
  padding: var(--gm-s-6) 0 var(--gm-s-4);
  border-top: 1px solid var(--gm-rule);
}
.gm-footer-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--gm-s-6);
  align-items: start;
}
.gm-footer-logo {
  display: inline-block;
  margin-bottom: var(--gm-s-4);
}
.gm-footer-logo img {
  max-width: 120px;
  height: auto;
  display: block;
}
.gm-footer-nav { margin-top: var(--gm-s-3); }
.gm-footer-menu {
  list-style: none;
  margin: 0; padding: 0;
}
.gm-footer-menu li { margin-bottom: var(--gm-s-2); }
.gm-footer-menu a {
  color: var(--gm-text-strong);
  font-size: 14px;
  font-family: var(--gm-font-display);
  font-weight: 500;
}
.gm-footer-menu a:hover { color: var(--gm-orange); }
.gm-copyright {
  margin-top: var(--gm-s-5);
  font-size: 11px;
  line-height: 16px;
  color: var(--gm-text-muted);
}
.gm-footer-fb h5, .gm-footer-ig h5 {
  font-family: var(--gm-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--gm-text-strong);
  margin: 0 0 var(--gm-s-3);
}
.gm-fb-widget {
  width: 100%;
  max-width: 340px;
  background: #f5f5f5;
  border-radius: var(--gm-radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gm-fb-widget iframe {
  width: 100%;
  max-width: 340px;
  border: 0;
  display: block;
}
.gm-ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-width: 340px;
}
.gm-ig-tile {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  transition: var(--gm-transition);
}
.gm-ig-tile:hover {
  opacity: 0.85;
  transform: scale(0.98);
}
.gm-ig-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .gm-services-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-brand-grid { grid-template-columns: repeat(3, 1fr); }
  .gm-slide-title { font-size: 42px; }
}
@media (max-width: 768px) {
  .gm-nav-toggle {
    display: inline-flex;
    position: fixed;
    top: 28px;
    right: 16px;
    background: var(--gm-white);
    border-radius: var(--gm-radius-sm);
    padding: var(--gm-s-2);
    z-index: 101;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .gm-nav-toggle:hover { background: var(--gm-cream); }
  .gm-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    height: 100vh;
    width: 320px;
    max-width: 90vw;
    background: var(--gm-white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 80px var(--gm-s-4) var(--gm-s-4);
    z-index: 100;
    overflow-y: auto;
    box-shadow: -8px 0 24px rgba(0,0,0,0.08);
    display: block;
    align-items: initial;
    gap: 0;
  }
  .gm-nav.is-open { transform: translateX(0); }
  .gm-menu { flex-direction: column; gap: var(--gm-s-3); }
  .gm-brand-grid { grid-template-columns: repeat(2, 1fr); gap: var(--gm-s-4); }
  .gm-brand-img { width: 160px; height: 160px; }
  .gm-services-grid { grid-template-columns: 1fr; }
  .gm-stats-grid { grid-template-columns: 1fr; }
  .gm-footer-cols { grid-template-columns: 1fr; }
  .gm-section { padding: var(--gm-s-7) 0; }
  .gm-slide-title { font-size: 32px; }
  .gm-hero-title { font-size: 32px; }
  .gm-hero-page { min-height: 280px; }
}

/* === Skip link a11y === */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gm-s-3); top: var(--gm-s-3); z-index: 1000; padding: var(--gm-s-3); background: var(--gm-red); color: var(--gm-white); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* === Cookie consent banner — match LIVE === */
.gm-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--gm-cream);
  border-top: 1px solid var(--gm-rule);
  z-index: 9999;
  padding: var(--gm-s-3);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
.gm-cookie-banner[hidden] { display: none; }
.gm-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gm-s-4);
  flex-wrap: wrap;
}
.gm-cookie-inner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gm-walnut-text);
  flex: 1;
  min-width: 0;
}
.gm-cookie-inner a {
  color: var(--gm-orange);
  text-decoration: underline;
}
.gm-cookie-accept {
  background: var(--gm-text-strong);
  color: var(--gm-white);
  border: 0;
  padding: var(--gm-s-2) var(--gm-s-4);
  font-family: var(--gm-font-display);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--gm-radius-sm);
  cursor: pointer;
  transition: var(--gm-transition);
  flex-shrink: 0;
}
.gm-cookie-accept:hover { background: var(--gm-walnut-text); }

/* === Scroll-to-top button — match LIVE Bridge === */
.gm-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--gm-radius-circle);
  background: rgba(91, 69, 56, 0.85);
  color: var(--gm-white);
  border: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gm-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.gm-scroll-top:hover {
  background: var(--gm-red);
}

@media (max-width: 768px) {
  .gm-cookie-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .gm-cookie-accept { width: 100%; }
  .gm-scroll-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}

/* === Lightbox overlay — match LIVE prettyPhoto === */
.gm-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gm-s-5);
}
.gm-lightbox-overlay.is-open { display: flex; }
.gm-lb-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 12px 48px rgba(0,0,0,0.8);
}
.gm-lb-close, .gm-lb-prev, .gm-lb-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  color: var(--gm-white);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--gm-radius-circle);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--gm-transition);
}
.gm-lb-close:hover, .gm-lb-prev:hover, .gm-lb-next:hover {
  background: var(--gm-red);
}
.gm-lb-close {
  top: 24px;
  right: 24px;
  font-size: 28px;
}
.gm-lb-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
}
.gm-lb-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
}
.gm-lb-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--gm-white);
  padding: var(--gm-s-2) var(--gm-s-4);
  border-radius: var(--gm-radius-sm);
  font-size: 14px;
  max-width: 80vw;
  text-align: center;
}

/* Lightbox link cursor */
.gm-lightbox {
  display: block;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}
.gm-lightbox:hover img {
  filter: brightness(0.95);
  transform: scale(1.02);
  transition: var(--gm-transition);
}
.gm-lightbox img {
  transition: var(--gm-transition);
}
