/* ============================================================
   PROCUREX - Main Stylesheet
   Brand: Deep Red (#8B0000 / #C0392B) + Dark Blue (#0A1628 / #1a2f5e)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&family=Barlow+Condensed:wght@400;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --red-dark:    #7B0000;
  --red-primary: #A50000;
  --red-mid:     #C0392B;
  --red-light:   #E74C3C;
  --red-pale:    #FDECEA;

  --blue-deep:   #050D1A;
  --blue-dark:   #0A1628;
  --blue-mid:    #1A2F5E;
  --blue-accent: #1E3A7A;
  --blue-light:  #2E5090;

  --gold:        #C9A84C;
  --gold-light:  #F0C96B;
  --white:       #FFFFFF;
  --off-white:   #F7F5F2;
  --light-gray:  #EFEFEF;
  --mid-gray:    #8A8A8A;
  --dark-gray:   #3A3A3A;
  --text-dark:   #1A1A1A;

  --gradient-brand: linear-gradient(135deg, var(--red-primary) 0%, var(--blue-dark) 60%, var(--blue-deep) 100%);
  --gradient-red:   linear-gradient(135deg, var(--red-dark) 0%, var(--red-mid) 100%);
  --gradient-blue:  linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  --gradient-hero:  linear-gradient(160deg, rgba(165,0,0,0.88) 0%, rgba(10,22,40,0.92) 55%, rgba(5,13,26,0.96) 100%);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Barlow', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.18);
  --shadow-red: 0 8px 32px rgba(165,0,0,0.30);

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  32px;

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);
  --header-height: 44px; /* top bar */
  --nav-height: 72px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth; font-size: 16px;
  overflow-x: hidden; /* both html AND body needed for cross-browser overflow fix */
}
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  /* Do NOT set max-width or width on body — breaks mobile layout */
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.2; color: var(--blue-dark); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--dark-gray); line-height: 1.75; }

.section-label {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 36px; height: 2px;
  background: var(--red-primary);
}

/* ── Utility ───────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1480px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-red { color: var(--red-primary); }
.text-blue { color: var(--blue-mid); }
.text-white { color: var(--white); }
.bg-dark { background: var(--blue-dark); }
.bg-red { background: var(--red-primary); }
.bg-off { background: var(--off-white); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 128px 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-cond);
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0; transition: var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--gradient-red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(165,0,0,0.4); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-dark {
  background: var(--blue-dark);
  color: var(--white);
}
.btn-dark:hover { background: var(--blue-mid); transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--blue-dark);
}
.btn-icon { width: 46px; height: 46px; padding: 0; border-radius: 50%; justify-content: center; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.arrow-icon { font-size: 1.1em; transition: transform 0.25s; }
.btn:hover .arrow-icon { transform: translateX(4px); }

/* ── TOP BAR ───────────────────────────────────────────────── */
#top-bar {
  background: var(--blue-deep);
  min-height: 56px;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
  padding: 6px 0;
  flex-wrap: nowrap;
}

/* Left group: optional topbar logo + contact items */
.top-left-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.topbar-logo-wrap {
  flex-shrink: 0;
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}
/* Each info item: icon + two-line label/value */
.top-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}
.top-info-item:last-child { border-right: none; }
.top-info-item:hover .top-info-label,
.top-info-item:hover .top-info-value { color: var(--red-light); }

.top-info-icon {
  width: 32px; height: 32px;
  background: rgba(165,0,0,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.top-info-icon svg { width: 15px; height: 15px; color: var(--red-light); }

.top-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.top-info-label {
  font-family: var(--font-cond);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--topbar-text-dim, rgba(255,255,255,0.45));
  transition: var(--transition);
}
.top-info-value {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--topbar-text-bright, rgba(255,255,255,0.85));
  transition: var(--transition);
}

/* Right group: translate + search + socials */
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Google Translate widget */
.translate-widget {
  display: flex;
  align-items: center;
}

.top-search-wrap { position: relative; }
.top-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--topbar-text-dim, rgba(255,255,255,0.6));
  transition: var(--transition);
  background: rgba(255,255,255,0.06);
}
.top-search-btn:hover { color: var(--white); background: var(--red-primary); }
.top-search-btn svg { width: 15px; height: 15px; }


.search-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 300px; background: var(--white);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 12px; display: none; z-index: 200;
  border-top: 3px solid var(--red-primary);
}
.search-dropdown.open { display: flex; gap: 8px; }
.search-dropdown input {
  flex: 1; border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: 0.875rem; outline: none;
}
.search-dropdown input:focus { border-color: var(--red-primary); }
.search-dropdown button {
  background: var(--red-primary); color: var(--white);
  border-radius: var(--radius-sm); padding: 8px 14px;
  font-size: 0.8rem; font-weight: 600;
  font-family: var(--font-cond); letter-spacing: 0.05em;
}

.social-links { display: flex; align-items: center; gap: 4px; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
  font-size: 0.75rem; font-weight: 700;
}
.social-links a:hover { color: var(--white); background: var(--red-primary); }
.social-links svg { width: 13px; height: 13px; }

/* ── NAVIGATION ────────────────────────────────────────────── */
#main-nav {
  position: sticky; top: 0; z-index: 99;
  background: var(--nav-bg, var(--blue-dark));
  height: var(--nav-height);
  display: flex;           /* logo+menu on left, CTA fills right edge */
  align-items: stretch;    /* children fill full nav height */
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
#main-nav.scrolled {
  background: var(--nav-bg-scrolled, rgba(10,22,40,0.97));
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  height: 60px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#main-nav.scrolled .nav-logo-text { font-size: 1.3rem; }
/* When logo is in topbar, hide logo block in nav but keep spacing minimal */
.nav-logo-topbar-mode {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--nav-text, var(--white));
  opacity: 0.7;
  pointer-events: none;
  display: none; /* hide completely when logo is in topbar */
}

.nav-inner {
  /* .nav-inner is the .container — it grows to fill all nav space left of .nav-cta */
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-inner > .nav-logo  { flex: 0 0 auto; margin-right: 16px; }
.nav-inner > .nav-menu  { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.nav-inner > .hamburger { flex: 0 0 auto; margin-left: auto; }

/* Request Quote button: shrink gracefully, icon-only on tight screens */
.nav-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.nav-cta-text { white-space: nowrap; }

.nav-logo { display: flex; align-items: center; gap: 12px; }
/* Uploaded logo image inside nav */
.nav-logo img {
  height: 42px;
  max-width: 180px;
  object-fit: contain;
  display: block;
  transition: height var(--transition);
}
#main-nav.scrolled .nav-logo img { height: 34px; }
.logo-mark {
  width: 42px; height: 42px;
  background: var(--gradient-red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-red);
  letter-spacing: -1px;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--white);
  transition: font-size var(--transition);
  line-height: 1;
}
.nav-logo-text span { color: var(--red-light); }
.nav-logo-sub {
  font-family: var(--font-cond);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.nav-menu { display: flex; align-items: center; gap: 0; min-width: 0; flex-wrap: nowrap; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 10px;
  font-family: var(--font-cond);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--navlink-color, rgba(255,255,255,0.78));
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 2px; left: 14px; right: 14px;
  height: 2px; background: var(--red-light);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--transition);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active {
  color: var(--navlink-hover-color, var(--white));
  background: rgba(255,255,255,0.06);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--red-primary);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transition-delay: 0.35s; /* stay visible 350ms after mouse leaves */
  z-index: 300;
}
.dropdown.mega { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dropdown-col { padding: 24px 20px; }
.dropdown-col:first-child { border-right: 1px solid var(--light-gray); }
.dropdown-col-title {
  font-family: var(--font-cond);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--mid-gray);
  padding: 0 0 10px 0; margin-bottom: 8px;
  border-bottom: 1px solid var(--light-gray);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0); transition-delay: 0s; }

/* ── DROPDOWN VISIBILITY GUARANTEE ─────────────────────────────
   Forces overflow:visible on every ancestor in the dropdown's
   containing chain, with maximum specificity, to eliminate any
   possibility of the dropdown being clipped. ───────────────── */
#main-nav,
#main-nav .nav-inner,
#main-nav .nav-menu,
#main-nav .nav-item {
  overflow: visible !important;
}
#main-nav .dropdown {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#main-nav .nav-item:hover .dropdown,
#main-nav .nav-item:focus-within .dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
  transform: translateY(0) !important;
  transition-delay: 0s !important;
}


.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--dark-gray);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown a .dd-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--off-white); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
.dropdown a .dd-icon svg { width: 14px; height: 14px; color: var(--red-primary); }
.dropdown a:hover { background: var(--off-white); color: var(--red-primary); }
.dropdown a:hover .dd-icon { background: var(--red-pale); }

.nav-cta {
  /* Outside .container — fills right edge of nav flush */
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}
.nav-cta .btn {
  display: flex; align-items: center; gap: 8px;
  padding: 0 28px;
  height: 100%;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
  border-radius: 0;
  box-shadow: none !important;
  background: linear-gradient(135deg, #A50000 0%, #C0392B 100%);
  color: #fff;
  transition: opacity 0.2s;
}
.nav-cta .btn:hover { opacity: 0.88; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--white); transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--blue-deep);
  z-index: 150; padding: 80px 24px 40px;
  overflow-y: auto; overflow-x: hidden;
  gap: 8px;
  /* Use visibility+opacity instead of translateX to avoid Android overflow bug */
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.3s, opacity 0.3s ease;
  pointer-events: none;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s linear 0s, opacity 0.3s ease;
  pointer-events: all;
}
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  font-family: var(--font-cond);
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.mobile-nav-link:hover { color: var(--red-light); padding-left: 24px; }
.mobile-sub { display: none; padding-left: 16px; }
.mobile-sub a {
  display: block; padding: 10px 16px;
  font-size: 0.875rem; color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.mobile-sub a:hover { color: var(--red-light); }
/* Arrow rotation when sub-menu is open */
.mobile-nav-link--open { color: var(--red-light) !important; }
.mobile-close {
  position: absolute; top: 20px; right: 20px;
  color: rgba(255,255,255,0.6); font-size: 1.5rem;
  cursor: pointer; transition: var(--transition);
}
.mobile-close:hover { color: var(--red-light); }

/* ── HERO SLIDER ───────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%; height: calc(100vh - 44px);
  min-height: 600px; max-height: 960px;
  overflow: hidden; background: var(--blue-deep);
}
.hero-slides {
  display: flex; height: 100%;
  width: 100%;         /* prevent any width overflow */
  transition: transform 0.8s cubic-bezier(0.77,0,0.175,1);
}
.hero-slide {
  width: 100%;         /* use width not min-width for better mobile containment */
  min-width: 100%;
  max-width: 100%;     /* hard stop: never wider than viewport */
  height: 100%;
  position: relative; flex-shrink: 0; overflow: hidden;
}
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero-slide.active .slide-bg { transform: scale(1); }
.slide-overlay {
  position: absolute; inset: 0;
  background: var(--gradient-hero);
}
.slide-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}
.slide-label {
  font-family: var(--font-cond);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--red-light);
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(20px);
  transition: all 0.7s 0.2s ease;
}
.slide-label::before {
  content: ''; display: inline-block;
  width: 36px; height: 2px; background: var(--red-light);
}
.hero-slide.active .slide-label { opacity: 1; transform: translateY(0); }
.slide-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  font-weight: 900; line-height: 1.1;
  color: var(--white);
  max-width: 720px; margin: 20px 0 24px;
  opacity: 0; transform: translateY(30px);
  transition: all 0.7s 0.4s ease;
}
.hero-slide.active .slide-h1 { opacity: 1; transform: translateY(0); }
.slide-desc {
  font-size: 1.05rem; color: rgba(255,255,255,0.72);
  max-width: 540px; line-height: 1.7;
  opacity: 0; transform: translateY(20px);
  transition: all 0.7s 0.55s ease;
}
.hero-slide.active .slide-desc { opacity: 1; transform: translateY(0); }
.slide-btns {
  display: flex; gap: 14px; margin-top: 36px;
  opacity: 0; transform: translateY(20px);
  transition: all 0.7s 0.7s ease;
  flex-wrap: wrap;
}
.hero-slide.active .slide-btns { opacity: 1; transform: translateY(0); }

/* Slide controls */
.hero-controls {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; gap: 12px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer; transition: var(--transition);
  border: none;
}
.hero-dot.active { background: var(--red-primary); width: 28px; border-radius: 4px; }

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white); transition: var(--transition);
  backdrop-filter: blur(4px);
}
.hero-nav:hover { background: var(--red-primary); }
.hero-nav svg { width: 20px; height: 20px; }
#hero-prev { left: 24px; }
#hero-next { right: 24px; }

/* Slide counter */
.hero-counter {
  position: absolute; bottom: 40px; right: 40px; z-index: 10;
  font-family: var(--font-cond);
  font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,0.5);
}
.hero-counter span { color: var(--white); font-size: 1.4rem; font-weight: 700; }

/* Hero stats bar */
.hero-stats-bar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: 80px;
}
.hero-stat {
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(165,0,0,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-stat-icon svg { width: 20px; height: 20px; color: var(--red-light); }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-cond);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ── BRAND / ABOUT SECTION ─────────────────────────────────── */
.brand-section { background: var(--white); }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.brand-image-wrap { position: relative; }
.brand-img-main {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-brand);
  height: 420px;            /* fixed height — no aspect-ratio conflict */
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.brand-img-photo {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.brand-img-badge {
  position: absolute; bottom: -24px; right: -24px;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--gradient-red);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-red);
  text-align: center;
  border: 4px solid var(--white);
}
.badge-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 900; color: var(--white); line-height: 1;
}
.badge-text {
  font-family: var(--font-cond); font-size: 0.65rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); text-align: center; padding: 0 10px;
}
.brand-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.brand-feat {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; border-radius: var(--radius-md);
  background: var(--off-white); transition: var(--transition);
}
.brand-feat:hover { background: var(--red-pale); }
.feat-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--gradient-red); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 18px; height: 18px; color: var(--white); }
.feat-label { font-size: 0.85rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 2px; }
.feat-desc { font-size: 0.78rem; color: var(--mid-gray); line-height: 1.4; }

/* ── SERVICES GRID ─────────────────────────────────────────── */
.services-section { background: var(--off-white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-card-num {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 900;
  color: var(--light-gray); line-height: 1;
  margin-bottom: 20px;
}
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(10,22,40,0.25);
}
.service-icon svg { width: 28px; height: 28px; color: var(--white); }
.service-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.service-card p { font-size: 0.875rem; color: var(--mid-gray); }
.service-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  font-family: var(--font-cond); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-primary); transition: var(--transition);
}
.service-link:hover { gap: 10px; }

/* ── WHY CHOOSE US ─────────────────────────────────────────── */
.why-section {
  background: var(--gradient-brand);
  position: relative; overflow: hidden;
}
.why-section::before {
  content: 'PROCUREX';
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 14rem; font-weight: 900;
  color: rgba(255,255,255,0.03); white-space: nowrap; line-height: 1; pointer-events: none;
}
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-items { display: flex; flex-direction: column; gap: 28px; }
.why-item {
  display: flex; gap: 20px;
  padding: 24px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.why-item:hover { background: rgba(255,255,255,0.09); }
.why-item-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(165,0,0,0.3); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(165,0,0,0.4);
}
.why-item-icon svg { width: 22px; height: 22px; color: var(--red-light); }
.why-item h4 { color: var(--white); margin-bottom: 6px; }
.why-item p { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.why-image { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.why-img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  background: rgba(255,255,255,0.1);
  min-height: 400px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.why-img-overlay {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: rgba(10,22,40,0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}
.why-img-overlay-title { font-family: var(--font-cond); font-weight: 700; color: var(--white); font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px; }
.cert-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.cert-badge {
  padding: 5px 12px; border-radius: 4px;
  background: rgba(165,0,0,0.3); border: 1px solid var(--red-primary);
  font-family: var(--font-cond); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-light);
}

/* ── CLIENTS / PARTNERS ────────────────────────────────────── */
.clients-section { background: var(--white); border-top: 1px solid var(--light-gray); }
.clients-header { text-align: center; margin-bottom: 48px; }
.clients-ticker {
  overflow: hidden; position: relative;
}
.clients-track {
  display: flex; gap: 48px; align-items: center;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}
.clients-track:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: var(--radius-md);
  background: var(--off-white); border: 1px solid var(--light-gray);
  min-width: 160px; height: 72px;
  font-family: var(--font-cond); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--mid-gray);
  transition: var(--transition); flex-shrink: 0;
}
.client-logo:hover { border-color: var(--red-primary); color: var(--red-primary); }

/* ── REVIEWS SECTION ───────────────────────────────────────── */
.reviews-section { background: var(--off-white); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition); position: relative;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-quote {
  font-size: 3rem; line-height: 1; color: var(--red-pale);
  font-family: var(--font-display); font-weight: 900;
  margin-bottom: 16px; user-select: none;
}
.review-text {
  font-size: 0.9rem; color: var(--dark-gray);
  line-height: 1.75; font-style: italic; margin-bottom: 24px;
}
.review-stars { display: flex; gap: 3px; margin-bottom: 20px; }
.star { color: var(--gold); font-size: 1rem; }
.review-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--white); flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.9rem; color: var(--blue-dark); }
.author-role { font-size: 0.78rem; color: var(--mid-gray); }
.author-company { font-size: 0.72rem; color: var(--red-primary); font-weight: 600; }

/* ── NEWS SECTION ──────────────────────────────────────────── */
.news-section { background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.news-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition); background: var(--white);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-img {
  height: 200px; background: var(--gradient-brand);
  position: relative; overflow: hidden;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-cat {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 10px; border-radius: 4px;
  background: var(--red-primary); color: var(--white);
  font-family: var(--font-cond); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.news-body { padding: 24px; }
.news-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-cond); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 12px;
}
.news-date-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--mid-gray); }
.news-title {
  font-size: 0.95rem; font-weight: 700; color: var(--blue-dark);
  line-height: 1.4; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-excerpt {
  font-size: 0.82rem; color: var(--mid-gray);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.6; margin-bottom: 16px;
}
.news-read-more {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-cond); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-primary); transition: var(--transition);
}
.news-read-more:hover { gap: 10px; }

/* ── CTA BANNER ────────────────────────────────────────────── */
.cta-banner {
  background: var(--gradient-red);
  position: relative; overflow: hidden;
  padding: 80px 0;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; position: relative; z-index: 1; }
.cta-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: var(--white); margin-bottom: 12px; }
.cta-desc { color: rgba(255,255,255,0.75); font-size: 1rem; }
.cta-actions { display: flex; gap: 14px; align-items: center; flex-shrink: 0; }

/* ── NEWSLETTER ────────────────────────────────────────────── */
.newsletter-section {
  background: var(--blue-dark);
  padding: 72px 0;
}
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.newsletter-text h2 { color: var(--white); font-size: 2rem; margin-bottom: 12px; }
.newsletter-text p { color: rgba(255,255,255,0.6); }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-row { display: flex; gap: 10px; width: 100%; }
.newsletter-input {
  flex: 1 1 auto; min-width: 0; /* allow shrinking */
  padding: 14px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm); color: var(--white);
  font-size: 0.9rem; outline: none; transition: var(--transition);
  box-sizing: border-box; width: 100%;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-input:focus { border-color: var(--red-primary); background: rgba(255,255,255,0.1); }
.newsletter-note { font-size: 0.75rem; color: rgba(255,255,255,0.35); }

/* ── FOOTER ────────────────────────────────────────────────── */
#footer {
  background: var(--blue-deep);
  padding-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.875rem; line-height: 1.75; margin: 20px 0 24px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); transition: var(--transition); font-size: 0.8rem;
}
.footer-social a:hover { background: var(--red-primary); border-color: var(--red-primary); color: var(--white); }
.footer-social svg { width: 15px; height: 15px; }
.footer-col-title {
  font-family: var(--font-cond); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem; color: rgba(255,255,255,0.55);
  display: flex; align-items: center; gap: 7px; transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 6px; }
.footer-links a::before { content: '›'; color: var(--red-primary); font-size: 1rem; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px;
}
.footer-contact-item svg { width: 15px; height: 15px; color: var(--red-primary); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item span { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.55; }
.footer-bottom {
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-copyright { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.35); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--red-light); }

/* ── BREADCRUMB ────────────────────────────────────────────── */
.page-hero {
  background: var(--gradient-brand);
  padding: 80px 0 60px;
  position: relative; overflow: hidden;
  z-index: 1; /* must be below nav dropdowns (z-index:300) */
}
/* When a background image is uploaded, overlay keeps text readable */
.page-hero[style*="background-image"]::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, rgba(165,0,0,0.82) 0%, rgba(10,22,40,0.88) 60%, rgba(5,13,26,0.94) 100%);
}
.page-hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-content { position: relative; z-index: 1; text-align: center; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a, .breadcrumb span {
  font-family: var(--font-cond); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.breadcrumb .current { color: var(--red-light); }

/* ── BACK TO TOP ───────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red-primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-red);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(16px);
  transition: var(--transition);
}
#back-to-top.visible { opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0); }
#back-to-top:hover { background: var(--red-dark); transform: translateY(-4px); }
#back-to-top svg { width: 20px; height: 20px; }

/* ── ANIMATIONS ────────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* ── FORMS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text-dark);
  outline: none; transition: var(--transition);
  background: var(--white);
}
.form-control:focus { border-color: var(--red-primary); box-shadow: 0 0 0 3px rgba(165,0,0,0.08); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-success { display: none; padding: 14px 18px; background: #e8f5e9; border-radius: var(--radius-sm); color: #2e7d32; font-weight: 500; font-size: 0.9rem; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ── PAGINATION ────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.page-btn {
  min-width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-cond); font-size: 0.85rem; font-weight: 700;
  background: var(--off-white); color: var(--mid-gray);
  transition: var(--transition); cursor: pointer; border: 1px solid var(--light-gray);
}
.page-btn:hover, .page-btn.active { background: var(--red-primary); color: var(--white); border-color: var(--red-primary); }

/* ── PRELOADER ─────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--blue-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; transition: opacity 0.5s ease;
}
#preloader.hidden { opacity: 0; pointer-events: none; }
.preloader-logo {
  font-family: var(--font-display); font-size: 2.5rem;
  font-weight: 900; color: var(--white);
}
.preloader-logo span { color: var(--red-light); }
.preloader-bar-wrap {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px; overflow: hidden;
}
.preloader-bar {
  height: 100%; width: 0%; border-radius: 3px;
  background: var(--gradient-red);
  animation: preloadBar 1.5s ease forwards;
}
@keyframes preloadBar { to { width: 100%; } }

/* ── SCROLL INDICATOR ──────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 200;
  background: var(--red-primary); width: 0%; transition: width 0.1s linear;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE GRID SYSTEM
   Replaces all inline style="display:grid;grid-template-columns:..."
   across every PHP page. Media queries here control ALL page layouts.
   ══════════════════════════════════════════════════════════════ */

/* Base desktop layouts */
.g-2col        { display: grid; grid-template-columns: 1fr 1fr;       gap: 28px; }
.g-3col        { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.g-4col        { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.g-sidebar     { display: grid; grid-template-columns: 260px 1fr;     gap: 36px; }
.g-sidebar-r   { display: grid; grid-template-columns: 1fr 360px;     gap: 48px; }
.g-service-row { display: grid; grid-template-columns: 1fr 1fr;       gap: 64px; align-items: center; }

/* ── 1200px: tighten gaps ─────────────────────────────────── */
@media (max-width: 1200px) {
  .g-4col       { grid-template-columns: repeat(3,1fr); }
  .g-service-row { gap: 48px; }
}

/* ── 992px: multi-col starts collapsing ───────────────────── */
@media (max-width: 992px) {
  .g-3col        { grid-template-columns: 1fr 1fr; }
  .g-4col        { grid-template-columns: 1fr 1fr; }
  .g-sidebar     { grid-template-columns: 1fr; }
  .g-sidebar-r   { grid-template-columns: 1fr; }
  .g-service-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 !important; }
  /* Sidebar goes below content on tablet */
  .g-sidebar   > aside,
  .g-sidebar-r > aside { order: 2; }
  .g-sidebar   > aside div[style*="sticky"],
  .g-sidebar-r > aside div[style*="sticky"] { position: static !important; }
}

/* ── 768px: everything single column ──────────────────────── */
@media (max-width: 768px) {
  .g-2col, .g-3col, .g-4col,
  .g-sidebar, .g-sidebar-r,
  .g-service-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Sidebar: filters above content on mobile */
  .g-sidebar   > aside,
  .g-sidebar-r > aside { order: -1 !important; }
  .g-sidebar   > aside div[style*="sticky"],
  .g-sidebar-r > aside div[style*="sticky"],
  .g-sidebar   > aside > div,
  .g-sidebar-r > aside > div { position: static !important; top: auto !important; }
  /* Service rows: no reverse alternation on mobile */
  .g-service-row > div { order: unset !important; direction: ltr !important; }
  .g-service-row { padding: 36px 0 !important; }
  /* Gallery stays 2-col on mobile (looks better than 1) */
  .g-4col.gallery-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
}

/* ── 480px: tiny phones ───────────────────────────────────── */
@media (max-width: 480px) {
  .g-2col { gap: 12px !important; }
  .g-service-row { padding: 28px 0 !important; }
}



/* ═══════════════════════════════════════════════════════════
   PX RESPONSIVE GRID SYSTEM
   All page layouts use these classes instead of inline styles.
   Controls responsiveness for every page at all screen sizes.
   ═══════════════════════════════════════════════════════════ */

/* Desktop base */
.px-grid-2          { display:grid; grid-template-columns:1fr 1fr;       gap:28px; }
.px-grid-3          { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.px-grid-4          { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.px-grid-sidebar    { display:grid; grid-template-columns:260px 1fr;     gap:36px; align-items:start; }
.px-grid-sidebar-r  { display:grid; grid-template-columns:1fr 360px;     gap:48px; align-items:start; }
.px-service-row     { display:grid; grid-template-columns:1fr 1fr;       gap:64px; align-items:center; padding:72px 0; border-bottom:1px solid var(--light-gray); }

/* ── 1100px tablet ─────────────────────────────────────── */
@media (max-width:1100px) {
  .px-grid-4      { grid-template-columns:repeat(2,1fr); }
  .px-service-row { gap:40px; padding:56px 0; }
}

/* ── 992px small tablet ────────────────────────────────── */
@media (max-width:992px) {
  .px-grid-3         { grid-template-columns:1fr 1fr; }
  .px-grid-sidebar   { grid-template-columns:1fr; }
  .px-grid-sidebar   > aside { order:2; }
  .px-grid-sidebar-r { grid-template-columns:1fr; }
  .px-grid-sidebar-r > aside { order:2; }
  .px-service-row    { grid-template-columns:1fr; gap:28px; padding:48px 0; }
  .px-service-row > div { order:unset !important; }
}

/* ── 768px mobile ──────────────────────────────────────── */
@media (max-width:768px) {
  .px-grid-2,
  .px-grid-3,
  .px-grid-4,
  .px-grid-sidebar,
  .px-grid-sidebar-r,
  .px-service-row    { grid-template-columns:1fr !important; gap:20px !important; }
  .px-service-row    { padding:32px 0 !important; }
  /* Sidebar always above content on mobile */
  .px-grid-sidebar   > aside,
  .px-grid-sidebar-r > aside { order:-1 !important; }
  /* Kill sticky on sidebar inner divs */
  .px-grid-sidebar   aside > div,
  .px-grid-sidebar-r aside > div { position:static !important; top:auto !important; }
  /* Gallery stays 2-col (looks better than 1-col) */
  .px-grid-4.px-gallery { grid-template-columns:1fr 1fr !important; gap:8px !important; }
}

/* ── 480px small phones (main target) ─────────────────── */
@media (max-width:480px) {
  .px-grid-2,
  .px-grid-3,
  .px-grid-4,
  .px-grid-sidebar,
  .px-grid-sidebar-r,
  .px-service-row    { grid-template-columns:1fr !important; gap:16px !important; }
  .px-service-row    { padding:24px 0 !important; }
  /* On tiny phones gallery also goes 1-col */
  .px-grid-4.px-gallery { grid-template-columns:1fr 1fr !important; gap:6px !important; }
}


/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  /* Hide work hours at 1200 to prevent overflow */
  .top-hide-md { display: none !important; }
  /* Tighten nav link spacing */
  .nav-link { padding: 8px 7px; font-size: 0.76rem; letter-spacing: 0.03em; }
}

/* ── 1100px: NAV COLLAPSES — catches Android tablets (1024px viewport) ── */
@media (max-width: 1100px) {
  .nav-menu  { display: none !important; }
  .nav-cta   { display: none !important; }  /* hide CTA — it's in mobile menu instead */
  .hamburger { display: flex !important; }
  .nav-inner > .nav-logo  { margin-right: 0; }
  .top-hide-sm { display: none !important; }
}

@media (max-width: 992px) {
  .brand-grid, .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .brand-img-main { height: 340px !important; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: flex-start; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
}

/* ── 768px: mobile nav (full mobile layout) ─────────────────── */
@media (max-width: 768px) {
  /* Nav already collapsed at 1100px above — nothing extra needed for nav here */

  /* Top bar: stack vertically, full-width rows */
  #top-bar { min-height: auto; }
  .top-bar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    gap: 6px;
  }
  .top-left-group {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .topbar-logo-wrap {
    display: flex;
    justify-content: center;
    margin-right: 0;
    margin-bottom: 4px;
  }
  .top-contact {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }
  /* Each contact item: compact row */
  .top-info-item {
    flex: 1 1 calc(50% - 1px);
    min-width: 140px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 6px 10px;
    justify-content: center;
  }
  .top-info-item:last-child { border-bottom: none; }
  .top-info-icon { width: 26px; height: 26px; }
  .top-info-icon svg { width: 12px; height: 12px; }
  .top-info-label { font-size: 0.58rem; }
  .top-info-value { font-size: 0.72rem; }

  /* Right side: search + socials + translate — centre them */
  .top-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0 2px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .social-links a { width: 30px; height: 30px; }
  .translate-widget { margin: 0 4px; }

  /* Other layout */
  .hero-stats-bar { display: none; }
  #hero { height: 85vh; min-height: 480px; }

  /* ── Slide content: constrain to viewport on mobile ── */
  .slide-h1    { font-size: clamp(1.6rem, 7vw, 2.4rem); max-width: 100%; margin: 12px 0 16px; }
  .slide-btns  { flex-direction: column; gap: 10px; }
  .slide-btns .btn { width: 100%; justify-content: center; }
  .slide-desc  { font-size: 0.9rem; max-width: 100%; }
  .slide-btns  { flex-direction: column; gap: 10px; margin-top: 20px; }
  .slide-btns .btn { width: 100%; justify-content: center; }
  .slide-content { padding: 60px 0 80px; }

  /* ── Grids → single column ── */
  .services-grid   { grid-template-columns: 1fr; }
  .reviews-grid    { grid-template-columns: 1fr; }
  .news-grid       { grid-template-columns: 1fr; }
  .brand-grid      { grid-template-columns: 1fr; gap: 32px; }
  .why-grid        { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-inner{ grid-template-columns: 1fr; gap: 40px; }
  .newsletter-row  { flex-direction: column; }
  .footer-grid     { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .form-row        { grid-template-columns: 1fr; }

  /* ── Brand section image ── */
  .brand-img-main  { height: 260px !important; }
  .brand-img-badge { display: none; }
  .brand-features  { grid-template-columns: 1fr; }

  /* ── Why Us section ── */
  .why-image       { order: -1; }
  .why-img         { min-height: 240px; }

  /* ── Typography: prevent overflow ── */
  h1, h2, h3 { word-break: break-word; overflow-wrap: break-word; }
  .section-label { font-size: 0.65rem; }

  /* ── Section padding ── */
  .section    { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .section-lg { padding: 72px 0; }

  /* ── Container padding on very narrow screens ── */
  .container, .container-wide { padding: 0 16px; }

  /* ── Hero nav buttons ── */
  #hero-prev, #hero-next { display: none; }

  /* ── CTA section ── */
  .cta-inner   { text-align: center; }
  .cta-actions { justify-content: center; flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .brand-img-main { height: 220px !important; }
  .hero-controls { bottom: 20px; }
  .hero-counter  { display: none; }
  .slide-h1 { font-size: clamp(1.4rem, 8vw, 2rem); }

  /* Contact items full width on tiny screens */
  .top-info-item { flex: 1 1 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .top-info-text { text-align: left; }

  /* Service cards: tighter on small phones */
  .service-card { padding: 24px 20px; }

  /* Stat cards: 2-col on small screens */
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
}
