/* ============================================================
   JOUNICO TRADING & CONTRACTING — CORPORATE STYLESHEET
   Industrial Steel Authority — Since 1978
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* ── Custom Properties ── */
:root {
  --blue:          #2255e0;
  --blue-dark:     #1a3faa;
  --blue-light:    #3a6aee;
  --steel:         #3d4a5c;
  --steel-light:   #5a6a7e;
  --charcoal:      #1a1c20;
  --charcoal-mid:  #2c2f35;
  --charcoal-light:#3d4147;
  --silver:        #8a9099;
  --off-white:     #f4f5f7;
  --white:         #ffffff;
  --accent-orange: #e8671a;

  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'Barlow', sans-serif;

  --nav-h:     104px;
  --section-pad: clamp(5rem, 8vw, 8rem);
  --card-shadow: 0 4px 24px rgba(0,0,0,0.15);
  --transition: 0.25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ── Typography ── */
h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: 0.03em;
}

h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

p { margin-bottom: 1rem; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.75rem;
}

.eyebrow--white { color: rgba(255,255,255,0.7); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-orange {
  background: var(--accent-orange);
  color: var(--white);
  border-color: var(--accent-orange);
}
.btn-orange:hover {
  background: #c85510;
  border-color: #c85510;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid #e0e3e8;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo img {
  height: 60px;
  width: auto;
  display: block;
  padding: 6px 0;
  mix-blend-mode: multiply;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.navbar__links .btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  border-bottom: none;
}

.navbar__links .btn:hover {
  border-bottom: none;
}

/* Keep the nav Quote button as a button on every page (never a blue active link) */
.navbar__links a.btn,
.navbar__links a.btn.active,
.navbar__links a.btn-orange,
.navbar__links a.btn-orange.active {
  color: var(--white);
  border-bottom: none;
}
.navbar__links a.btn-orange,
.navbar__links a.btn-orange.active { background: var(--accent-orange); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--charcoal);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--white); }

/* ── Section Spacing ── */
.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--charcoal); }
.section--mid  { background: var(--charcoal-mid); }
.section--off  { background: var(--off-white); }
.section--blue { background: var(--blue); }
.section--white{ background: var(--white); }

/* ── Section Header ── */
.section-header { margin-bottom: 3.5rem; }
.section-header--center { text-align: center; }

.section-header h2 { margin-bottom: 1rem; }

.section-header p {
  font-size: 1.05rem;
  max-width: 600px;
  color: var(--steel-light);
}

.section-header--center p { margin: 0 auto; }
.section-header--dark p   { color: rgba(255,255,255,0.65); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background-color: var(--charcoal);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.018) 0,
    rgba(255,255,255,0.018) 1px,
    transparent 1px,
    transparent 60px
  );
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 62%;
}

.hero__content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero__content h1 span { color: var(--blue); }

.hero__subtext {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero geometric decoration */
.hero__geo {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 600px;
  z-index: 1;
}

.hero__geo-rect1 {
  position: absolute;
  width: 320px;
  height: 420px;
  background: linear-gradient(135deg, rgba(34,85,224,0.2) 0%, rgba(34,85,224,0.05) 100%);
  border: 1px solid rgba(34,85,224,0.25);
  top: 60px;
  left: 80px;
}

.hero__geo-rect2 {
  position: absolute;
  width: 200px;
  height: 280px;
  background: linear-gradient(135deg, rgba(34,85,224,0.15) 0%, rgba(26,63,170,0.05) 100%);
  border: 1px solid rgba(34,85,224,0.2);
  top: 0;
  left: 0;
}

.hero__geo-rect3 {
  position: absolute;
  width: 160px;
  height: 200px;
  background: linear-gradient(135deg, rgba(58,106,238,0.2) 0%, rgba(34,85,224,0.08) 100%);
  border: 1px solid rgba(58,106,238,0.3);
  bottom: 20px;
  right: 0;
}

.hero__geo-line1 {
  position: absolute;
  width: 3px;
  height: 300px;
  background: linear-gradient(to bottom, rgba(34,85,224,0.6), transparent);
  top: 40px;
  left: 70px;
}

.hero__geo-line2 {
  position: absolute;
  width: 200px;
  height: 3px;
  background: linear-gradient(to right, rgba(34,85,224,0.6), transparent);
  top: 40px;
  left: 70px;
}

/* ── Hero Page Bar (inner pages) ── */
.hero-bar {
  background-color: var(--charcoal);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.018) 0,
    rgba(255,255,255,0.018) 1px,
    transparent 1px,
    transparent 60px
  );
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  border-bottom: 3px solid var(--blue);
}

.hero-bar h1 { color: var(--white); margin-bottom: 0.75rem; }
.hero-bar p  { color: rgba(255,255,255,0.65); max-width: 600px; font-size: 1.05rem; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--blue);
  padding: 3.5rem 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stat-item:last-child { border-right: none; }

.stat-item__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--white);
  line-height: 1;
  display: block;
}

.stat-item__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  display: block;
}

/* ── Service Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-top: 3px solid var(--blue);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  border-top-color: var(--blue);
  border-left: 3px solid var(--blue);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--off-white);
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.service-card h3 {
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--steel);
  margin-bottom: 1.25rem;
}

.service-card__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color var(--transition);
}

.service-card__link:hover { color: var(--blue-dark); }

/* ── Products Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--charcoal-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 3px solid var(--blue);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  border-top-color: var(--accent-orange);
}

.product-card__img {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.product-card__img--beams {
  background: linear-gradient(135deg, #1a2535 0%, #2255e0 40%, #1a3faa 70%, #0d1520 100%);
}
.product-card__img--plates {
  background: linear-gradient(135deg, #2c3545 0%, #3d4a5c 50%, #1a2535 100%);
}
.product-card__img--hollow {
  background: linear-gradient(135deg, #1a1c20 0%, #3d4a5c 40%, #2255e0 80%, #1a1c20 100%);
}
.product-card__img--pipes {
  background: linear-gradient(135deg, #2c2f35 0%, #5a6a7e 50%, #2c3545 100%);
}
.product-card__img--rebar {
  background: linear-gradient(135deg, #1a2535 0%, #2255e0 30%, #3d4a5c 60%, #1a1c20 100%);
}
.product-card__img--stainless {
  background: linear-gradient(135deg, #3d4147 0%, #8a9099 50%, #3d4147 100%);
}

.product-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 20px,
    rgba(255,255,255,0.03) 20px,
    rgba(255,255,255,0.03) 21px
  );
}

.product-card__body {
  padding: 1.5rem;
}

.product-card__body h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.product-card__body p {
  font-size: 0.9rem;
  color: var(--silver);
  margin-bottom: 0;
}

/* ── Why Section ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-item {
  padding: 0;
}

.why-item__icon {
  width: 56px;
  height: 56px;
  background: var(--blue);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.why-item h3 {
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--steel);
}

/* ── Project Cards ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--charcoal-mid);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: transform var(--transition);
}

.project-card:hover { transform: translateY(-3px); }

.project-card__img {
  height: 200px;
}

.project-card__img--1 {
  background: linear-gradient(135deg, #0d1520 0%, #1a3faa 50%, #2255e0 100%);
}
.project-card__img--2 {
  background: linear-gradient(135deg, #2c2f35 0%, #3d4a5c 40%, #1a2535 100%);
}
.project-card__img--3 {
  background: linear-gradient(135deg, #1a1c20 0%, #2255e0 30%, #3d4a5c 70%, #1a1c20 100%);
}
.project-card__img--4 {
  background: linear-gradient(135deg, #1a2535 0%, #1a3faa 60%, #0d1520 100%);
}
.project-card__img--5 {
  background: linear-gradient(135deg, #2c3545 0%, #5a6a7e 50%, #1a2535 100%);
}
.project-card__img--6 {
  background: linear-gradient(135deg, #1a1c20 0%, #3d4147 40%, #2255e0 80%, #1a1c20 100%);
}

.project-card__body { padding: 1.5rem; }

.project-card__type {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.4rem;
  display: block;
}

.project-card h3 {
  color: var(--white);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  margin-bottom: 0.4rem;
}

.project-card__meta {
  font-size: 0.85rem;
  color: var(--silver);
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--blue);
  padding: 5rem 0;
  text-align: center;
}

.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.05rem; }

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  padding: 4rem 0 0;
  border-top: 3px solid var(--blue);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__logo img {
  height: 58px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1); /* render the dark logo as white on the dark footer */
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer__col h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__col ul li { margin-bottom: 0.6rem; }

.footer__col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer__col ul li a:hover { color: var(--white); }

.footer__contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

.footer__contact-item strong {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  min-width: 60px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blue);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--blue);
  border: 3px solid var(--off-white);
  outline: 2px solid var(--blue);
}

.timeline-item__year {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  color: var(--charcoal);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--steel);
  margin: 0;
}

/* ── Values/Pillars ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--white);
  border-top: 3px solid var(--blue);
  padding: 2.5rem 2rem;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.pillar-card__icon {
  width: 64px;
  height: 64px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
  color: var(--white);
}

.pillar-card h3 { color: var(--charcoal); margin-bottom: 0.75rem; }
.pillar-card p  { font-size: 0.95rem; color: var(--steel); margin: 0; }

/* ── Services Detail (Services Page) ── */
.service-detail {
  padding: var(--section-pad) 0;
}

.service-detail--off { background: var(--off-white); }
.service-detail--white { background: var(--white); }

.service-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.service-detail__inner.reverse { direction: rtl; }
.service-detail__inner.reverse > * { direction: ltr; }

.service-detail__text h2 { margin-bottom: 1rem; }

.service-detail__text p {
  color: var(--steel);
  margin-bottom: 1.5rem;
}

.service-detail__list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--steel);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.service-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--blue);
}

.service-detail__visual {
  height: 380px;
  position: relative;
}

.service-detail__visual--1 {
  background: linear-gradient(135deg, #1a2535 0%, #2255e0 50%, #1a3faa 100%);
}
.service-detail__visual--2 {
  background: linear-gradient(135deg, #2c3545 0%, #3d4a5c 50%, #1a2535 100%);
}
.service-detail__visual--3 {
  background: linear-gradient(135deg, #1a1c20 0%, #2255e0 40%, #3d4a5c 100%);
}
.service-detail__visual--4 {
  background: linear-gradient(135deg, #2c2f35 0%, #5a6a7e 40%, #2255e0 100%);
}

.service-detail__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 30px,
    rgba(255,255,255,0.03) 30px,
    rgba(255,255,255,0.03) 31px
  );
}

.service-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.4);
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--blue);
}

/* ── Products Page ── */
.product-full-card {
  background: var(--white);
  border-top: 3px solid var(--blue);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  margin-bottom: 2rem;
}

.product-full-card__img {
  height: 100%;
  min-height: 220px;
}

.product-full-card__body {
  padding: 2rem 2.5rem;
}

.product-full-card__body h3 { margin-bottom: 0.75rem; color: var(--charcoal); }
.product-full-card__body > p { color: var(--steel); margin-bottom: 1.5rem; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.spec-table tr { border-bottom: 1px solid rgba(0,0,0,0.07); }
.spec-table tr:nth-child(even) { background: var(--off-white); }

.spec-table td {
  padding: 0.5rem 0.75rem;
  color: var(--steel);
}

.spec-table td:first-child {
  font-weight: 500;
  color: var(--charcoal);
  width: 35%;
}

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.contact-form__group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 0;
  transition: border-color var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(34,85,224,0.1);
}

.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-details__card {
  background: var(--charcoal);
  color: var(--white);
  padding: 2.5rem;
}

.contact-details__card h3 {
  color: var(--white);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--blue);
}

.contact-detail-item {
  margin-bottom: 1.5rem;
}

.contact-detail-item__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.3rem;
}

.contact-detail-item__value {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.map-placeholder {
  height: 200px;
  background: var(--charcoal-mid);
  border: 1px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  position: relative;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(34,85,224,0.3);
}

/* ── Project Filter ── */
.filter-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  width: fit-content;
}

.filter-tab {
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.filter-tab:last-child { border-right: none; }

.filter-tab:hover,
.filter-tab.active {
  background: var(--blue);
  color: var(--white);
}

/* ── Honeypot (bot trap) ──
   Visually and audibly hidden, never focusable. Real visitors
   cannot fill this in; most bots fill every field they find. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Form Feedback ── */
.form-message {
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  border-left: 3px solid;
  display: none;
}

.form-message.success {
  background: rgba(34,85,224,0.08);
  border-color: var(--blue);
  color: var(--blue-dark);
  display: block;
}

.form-message.error {
  background: rgba(232,103,26,0.08);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  display: block;
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── About Page Story ── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.story-visual {
  height: 460px;
  background: linear-gradient(135deg, #1a2535 0%, #2255e0 40%, #1a3faa 70%, #0d1520 100%);
  position: relative;
}

.story-visual::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--blue);
  opacity: 0.4;
}

.story-visual::after {
  content: 'SINCE 1978';
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
}

.story-text h2 { margin-bottom: 1.25rem; }
.story-text p   { color: var(--steel); }

/* ── Utility ── */
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-blue   { color: var(--blue); }
.text-silver { color: var(--silver); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.gap-1  { gap: 1rem; }
.align-center { align-items: center; }
.divider {
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 2rem 0;
}
.divider--dark { background: rgba(255,255,255,0.1); }

/* ── Page-specific helpers ── */
.projects-cta {
  text-align: center;
  margin-top: 3rem;
}

.projects-cta a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-orange);
  border-bottom: 1px solid var(--accent-orange);
  padding-bottom: 2px;
  transition: color var(--transition);
}

.projects-cta a:hover { color: #c85510; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .cards-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer__grid    { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .products-grid   { grid-template-columns: repeat(2, 1fr); }
  .projects-grid   { grid-template-columns: repeat(2, 1fr); }
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid    { grid-template-columns: repeat(2, 1fr); }
  .story-grid      { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid    { grid-template-columns: 1fr; }
  .service-detail__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-detail__inner.reverse { direction: ltr; }
  .product-full-card { grid-template-columns: 1fr; }
  .product-full-card__img { min-height: 180px; height: 180px; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar__links   { display: none; }
  .hamburger       { display: flex; }
  .hero__content   { max-width: 100%; }
  .hero__geo       { display: none; }
  .cards-grid      { grid-template-columns: 1fr; }
  .why-grid        { grid-template-columns: 1fr; }
  .pillars-grid    { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .products-grid   { grid-template-columns: 1fr; }
  .projects-grid   { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid    { grid-template-columns: 1fr; }
}

/* ============================================================
   REAL PHOTOGRAPHY SUPPORT  (added — real Jounico images)
   ============================================================ */

/* Any card/visual slot that now holds a real <img> */
.has-img { position: relative; overflow: hidden; }

.product-card__img.has-img img,
.project-card__img.has-img img,
.product-full-card__img.has-img img,
.proc-card__img.has-img img,
.story-visual.has-img img,
.service-detail__visual.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Remove the gradient/scanline decorations once a real photo is present */
.has-img::after { display: none !important; }
.story-visual.has-img { background: var(--charcoal); }

.product-card:hover .product-card__img.has-img img,
.project-card:hover .project-card__img.has-img img,
.proc-card:hover .proc-card__img.has-img img { transform: scale(1.05); }

/* Make whole product card on the homepage a clickable block */
a.product-card { color: inherit; display: block; }

/* ── Photo Hero (homepage) ── */
.hero--photo {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero--photo .hero__content { max-width: 70%; }

/* ── Trusted-By Strip ── */
.trust-bar {
  background: var(--off-white);
  border-top: 1px solid #e3e6ea;
  border-bottom: 1px solid #e3e6ea;
  padding: 1.75rem 0;
}
.trust-bar .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-bar__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-light);
}
.trust-bar__logos {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.trust-bar__logos span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--steel);
  opacity: 0.75;
}
.trust-bar--dark { background: var(--charcoal); border-color: rgba(255,255,255,0.08); }
.trust-bar--dark .trust-bar__label { color: var(--silver); }
.trust-bar--dark .trust-bar__logos span { color: rgba(255,255,255,0.8); }

/* ── Fabrication Process Cards (services) ── */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.proc-card {
  background: var(--white);
  border: 1px solid #e3e6ea;
  border-top: 3px solid var(--blue);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.proc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.proc-card__img { height: 200px; }
.proc-card__body { padding: 1.5rem 1.75rem; }
.proc-card__body h3 { color: var(--charcoal); margin-bottom: 0.5rem; }
.proc-card__body p { font-size: 0.92rem; color: var(--steel); margin: 0; }

/* ── Footer Social ── */
.footer__social { display: flex; gap: 1.25rem; margin-top: 1.25rem; }
.footer__social a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.footer__social a:hover { color: var(--white); border-bottom-color: var(--blue); }

@media (max-width: 1100px) { .proc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .hero--photo .hero__content { max-width: 100%; }
  .proc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v2 — MODAL, MARQUEE, FEATURE CARDS, MOBILE TYPE (added)
   ============================================================ */

/* ── Hamburger fix (was white-on-white → invisible) ── */
.hamburger { z-index: 1001; }
.hamburger span { background: var(--accent-orange); height: 3px; width: 28px; border-radius: 2px; }
.hamburger.open span { background: var(--white); }

/* ── Hero legibility (lighter overlay set inline) ── */
.hero--photo .hero__content h1 { text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.hero--photo .hero__subtext { text-shadow: 0 1px 14px rgba(0,0,0,0.4); color: rgba(255,255,255,0.92); }

/* ── Sliding Trust Marquee ── */
.trust-marquee {
  background: var(--off-white);
  border-top: 1px solid #e3e6ea;
  border-bottom: 1px solid #e3e6ea;
  padding: 1.4rem 0;
  overflow: hidden;
}
.trust-marquee__label {
  display: block; text-align: center;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel-light); margin-bottom: 0.9rem;
}
.marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; width: max-content; gap: 4rem;
  animation: marquee-scroll 26s linear infinite;
}
.marquee__item {
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem;
  letter-spacing: 0.05em; color: var(--steel); opacity: 0.72; white-space: nowrap;
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.trust-marquee--dark { background: var(--charcoal); border-color: rgba(255,255,255,0.08); }
.trust-marquee--dark .trust-marquee__label { color: var(--silver); }
.trust-marquee--dark .marquee__item { color: rgba(255,255,255,0.85); }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ── Photo Feature Cards (What We Do) ── */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature-card {
  position: relative; min-height: 400px; overflow: hidden;
  display: block; color: var(--white); background: var(--charcoal);
}
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.feature-card__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,13,18,0.92) 0%, rgba(10,13,18,0.55) 45%, rgba(10,13,18,0.12) 100%); }
.feature-card__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; z-index: 2; }
.feature-card__num { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.2em; color: var(--blue-light); display: block; margin-bottom: 0.6rem; }
.feature-card__content h3 { color: var(--white); margin-bottom: 0.5rem; }
.feature-card__content p { color: rgba(255,255,255,0.8); font-size: 0.92rem; margin-bottom: 0.85rem; line-height: 1.6; }
.feature-card__link { font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-orange); }
.feature-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--blue); z-index: 3; transition: background 0.25s ease; }
.feature-card:hover img { transform: scale(1.07); }
.feature-card:hover::after { background: var(--accent-orange); }

/* ── Numbered Value Blocks (services pillars / about values) ── */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.value-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 1024px) { .value-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .value-grid--4 { grid-template-columns: 1fr; } }
.value-block { display: flex; gap: 1.25rem; align-items: flex-start; }
.value-block__num { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--blue); border-left: 3px solid var(--blue); padding-left: 1rem; flex-shrink: 0; }
.value-block h3 { color: var(--charcoal); margin-bottom: 0.5rem; }
.value-block p { color: var(--steel); font-size: 0.96rem; margin: 0; }

/* ── Why-item SVG icons ── */
.why-item__icon svg { width: 28px; height: 28px; }

/* ── Clickable Project Cards ── */
.project-card.js-project { cursor: pointer; }
.project-card__view {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  background: rgba(34,85,224,0.94); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 0.75rem;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.project-card:hover .project-card__view,
.project-card:focus .project-card__view { opacity: 1; transform: translateY(0); }
.project-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.proj-section { margin-bottom: 3.5rem; }
.proj-section:last-child { margin-bottom: 0; }
.proj-section .section-header { margin-bottom: 2rem; }

/* ── Quick Contact Buttons ── */
.quick-btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; padding: 0.7rem 1.1rem; border: 2px solid; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.quick-btn svg { flex-shrink: 0; }
.quick-btn--call { background: var(--blue); color: #fff; border-color: var(--blue); }
.quick-btn--call:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.quick-btn--email { background: transparent; color: var(--blue); border-color: var(--blue); }
.quick-btn--email:hover { background: var(--blue); color: #fff; }
.contact-quick { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.75rem; }

/* ── Modal ── */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto; }
.modal.open { display: flex; }
.modal__overlay { position: fixed; inset: 0; background: rgba(8,11,16,0.72); }
.modal__dialog { position: relative; z-index: 2; background: var(--white); width: 100%; max-width: 620px; margin: auto; box-shadow: 0 30px 80px rgba(0,0,0,0.45); animation: modal-in 0.25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal__close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 20;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45); border: none; border-radius: 50%;
  font-size: 1.7rem; line-height: 1; color: #fff; cursor: pointer; padding: 0;
  transition: background 0.2s ease;
}
.modal__close:hover { background: var(--accent-orange); }
.modal__quickbar { background: var(--charcoal); color: #fff; padding: 1.1rem 3.5rem 1.1rem 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.modal__quickbar-label { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.modal__quickbar-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.modal__quickbar .quick-btn { padding: 0.55rem 0.9rem; font-size: 0.78rem; }
.modal__quickbar .quick-btn--email { color: #fff; border-color: rgba(255,255,255,0.6); }
.modal__quickbar .quick-btn--email:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.modal__head { padding: 1.75rem 1.75rem 0.5rem; }
.modal__head h3 { font-size: 1.6rem; color: var(--charcoal); margin-bottom: 0.4rem; }
.modal__head p { color: var(--steel); font-size: 0.95rem; margin: 0; }
.modal__body { padding: 1.25rem 1.75rem 1.75rem; }
.modal__dialog--project { max-width: 760px; }
.project-modal__img { height: 300px; }
.project-modal__img img { width: 100%; height: 100%; object-fit: cover; }
.project-modal__body { padding: 1.75rem; }
.project-modal__body h3 { color: var(--charcoal); margin: 0.25rem 0 0.75rem; font-size: 1.7rem; }
.project-modal__body > p { color: var(--steel); margin-bottom: 1.25rem; }
.project-modal__meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.project-modal__meta li { display: flex; flex-direction: column; border-left: 3px solid var(--blue); padding-left: 0.85rem; }
.project-modal__meta strong { font-family: var(--font-body); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-light); margin-bottom: 0.2rem; }
.project-modal__meta span { font-size: 1rem; color: var(--charcoal); }
.req { color: var(--accent-orange); }

/* ── Document viewer (brochure / project portfolio) ──────────
   The PDF opens in a modal so the visitor never leaves the site.
   Desktop gets an inline viewer; phones get direct open/download
   buttons instead, because mobile browsers refuse to render a
   PDF inside a frame and would otherwise show a blank panel. */
.hero-bar__actions {
  margin-top: 1.85rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-doc {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-doc svg { flex: none; }

.modal__dialog--doc {
  max-width: 1120px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.doc-modal__bar {
  background: var(--charcoal);
  color: #fff;
  padding: 1rem 3.5rem 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  flex: none;
}
.doc-modal__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin: 0;
  color: #fff;
}
.doc-modal__meta {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-top: 0.15rem;
}
.doc-modal__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.doc-modal__actions .quick-btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.doc-modal__actions .quick-btn:hover {
  background: #fff;
  color: var(--charcoal);
  border-color: #fff;
}

.doc-modal__frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 70vh;
  border: 0;
  display: block;
  background: var(--off-white);
}
/* An explicit display value beats the browser's [hidden] rule, so the
   hidden frame would otherwise still reserve 70vh and push the fallback
   off the screen. Both panels need this. */
.doc-modal__frame[hidden],
.doc-modal__fallback[hidden] { display: none; }

.doc-modal__fallback {
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: var(--off-white);
}
.doc-modal__fallback svg { color: var(--blue); margin-bottom: 0.9rem; }
.doc-modal__fallback h4 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.doc-modal__fallback p {
  color: var(--steel);
  font-size: 0.95rem;
  max-width: 26rem;
  margin: 0 auto 1.4rem;
}
.doc-modal__fallback .btn { margin: 0 0.3rem 0.5rem; }

@media (max-width: 700px) {
  .modal__dialog--doc { max-height: 94vh; }
  .doc-modal__bar { padding: 0.9rem 3.25rem 0.9rem 1.1rem; }
  .doc-modal__title { font-size: 1rem; }
}

body.modal-open { overflow: hidden; }

/* ── Bigger, clearer mobile typography ── */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 768px) {
  body { font-size: 17px; font-weight: 400; line-height: 1.7; }
  .section-header p, .hero__subtext { font-size: 1.08rem; }
  .service-card p, .proc-card__body p, .product-card__body p,
  .value-block p, .why-item p, .feature-card__content p,
  .project-card__meta, .timeline-item p { font-size: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 320px; }
  .project-modal__meta { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal__dialog { max-width: none; min-height: 100%; }
  /* The document viewer sizes to its content instead: when the inline
     frame is swapped for the open/download panel, a full-height dialog
     would leave a large empty area under it. */
  .modal__dialog--doc { min-height: 0; }
  .modal__quickbar { flex-direction: column; align-items: stretch; }
  .modal__quickbar .quick-btn { justify-content: center; }
  .stat-item__num { font-size: 2.4rem; }
  .trust-marquee__label { font-size: 0.8rem; }
  .marquee__item { font-size: 1.4rem; }
}

/* ============================================================
   v3 — SLEEK STATS, SIDE DRAWER, CAPABILITIES, FILTER, SHOWCASE,
        RENDER→REALITY, LIGHTBOX  (added)
   ============================================================ */

/* ── Sleeker, thinner stats bar ── */
.stats-bar { background: var(--white); border-top: 1px solid #e6e8ec; border-bottom: 1px solid #e6e8ec; padding: 2rem 0; }
.stats-bar__grid { gap: 0; }
.stat-item { padding: 0.4rem 1.5rem; border-right: 1px solid #edeff2; }
.stat-item:last-child { border-right: none; }
.stat-item__num { font-size: 2.9rem; color: var(--blue); font-weight: 700; }
.stat-item__label { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--steel-light); margin-top: 0.5rem; }
.stats-bar__grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 680px; margin: 0 auto; }

/* ── Vertically center the whole nav row (fixes top-alignment) ── */
.navbar .container { height: 100%; }
.navbar__inner { height: 100%; align-items: center; }

/* ── Navbar mobile (Request a Quote centered between logo + hamburger) ── */
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.72rem; letter-spacing: 0.06em; }
.navbar__quote-mobile { display: none; }
.hamburger { display: none; align-items: center; }
@media (max-width: 1024px) {
  /* Grid row: logo (left) | quote (centred) | hamburger (right, always reserved) */
  .navbar__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem; }
  .navbar__links { display: none; }
  .navbar__quote-mobile { display: inline-flex; justify-self: center; margin: 0; }
  .hamburger { display: flex; justify-self: end; }
}
@media (max-width: 600px) {
  .navbar .container { padding: 0 1rem; }
  .navbar__logo img { height: 74px; padding: 4px 0; } /* ← logo size on phones (≤600px) */
}
@media (max-width: 480px) {
  .navbar__logo img { height: 66px; }              /* ← logo size on small phones (≤480px) */
  .navbar__quote-mobile { padding: 0.5rem 0.8rem; font-size: 0.62rem; letter-spacing: 0.03em; }
  .hamburger span { width: 24px; }
}
@media (max-width: 360px) {
  .navbar__logo img { height: 56px; }              /* ← logo size on tiny phones (≤360px) */
  .navbar__quote-mobile { padding: 0.45rem 0.6rem; font-size: 0.56rem; }
}

/* ── Slide-in Side Drawer ── */
.side-menu {
  position: fixed; top: 0; right: 0; z-index: 1200;
  width: min(360px, 86vw); height: 100%;
  background: var(--charcoal); color: #fff;
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.5rem 1.5rem 2rem;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.32s;
  box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  overflow-y: auto;
}
.side-menu.open { transform: translateX(0); visibility: visible; transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0s; }
.side-menu__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.side-menu__logo img { height: 46px; filter: brightness(0) invert(1); }
.side-menu__close { background: none; border: none; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 0 0.25rem; }
.side-menu__close:hover { color: var(--accent-orange); }
.side-menu__links { display: flex; flex-direction: column; }
.side-menu__links a {
  font-family: var(--font-body); font-weight: 500; font-size: 1.05rem;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.85);
  padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition), padding-left var(--transition);
}
.side-menu__links a:hover, .side-menu__links a.active { color: var(--blue-light); padding-left: 0.4rem; }
.side-menu__quote { width: 100%; text-align: center; padding: 0.9rem; font-size: 0.95rem; }
.side-menu__contact { display: flex; gap: 0.6rem; }
.side-menu__contact .quick-btn { flex: 1; justify-content: center; padding: 0.6rem; font-size: 0.78rem; }
.side-menu__contact .quick-btn--email { color: #fff; border-color: rgba(255,255,255,0.5); }
.side-menu__social { display: flex; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.side-menu__social a { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.side-menu__social a:hover { color: #fff; }
.side-menu__overlay { position: fixed; inset: 0; z-index: 1150; background: rgba(8,11,16,0.6); opacity: 0; transition: opacity 0.32s ease; }
.side-menu__overlay.open { opacity: 1; }

/* ── Products / generic light filter bar ── */
.filter-bar { background: var(--off-white); border-bottom: 1px solid #e3e6ea; position: sticky; top: var(--nav-h); z-index: 90; padding: 1rem 0; }
/* No white container box — tabs are individual pills on the bar */
.filter-tabs--light { border: none; background: transparent; flex-wrap: wrap; gap: 0.5rem; width: 100%; margin: 0; }
.filter-tabs--light .filter-tab { border: 1px solid #d4d8de; color: var(--steel); }
.filter-tabs--light .filter-tab:last-child { border-right: 1px solid #d4d8de; }
.filter-tabs--light .filter-tab:hover, .filter-tabs--light .filter-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Services: featured capability + capability list ── */
.cap-feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; margin-bottom: 2.5rem; background: var(--white); border-top: 3px solid var(--blue); box-shadow: var(--card-shadow); overflow: hidden; }
.cap-feature__img { position: relative; min-height: 340px; }
.cap-feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap-feature__body { padding: 2.5rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.cap-feature__body h3 { font-size: 1.9rem; color: var(--charcoal); margin: 0.25rem 0 0.75rem; }
.cap-feature__body p { color: var(--steel); margin-bottom: 1.5rem; }
.cap-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.cap-card { display: grid; grid-template-columns: 150px 1fr; background: var(--white); border: 1px solid #e7e9ee; border-left: 3px solid var(--blue); box-shadow: 0 2px 14px rgba(0,0,0,0.05); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.cap-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.cap-card__img { position: relative; min-height: 130px; }
.cap-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap-card__text { padding: 1.1rem 1.35rem; display: flex; flex-direction: column; justify-content: center; }
.cap-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; }
.cap-card__head h3 { font-size: 1.15rem; color: var(--charcoal); margin: 0; }
.cap-card__text p { font-size: 0.9rem; color: var(--steel); margin: 0; }
.cap-chip { flex-shrink: 0; font-family: var(--font-body); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); background: rgba(34,85,224,0.1); padding: 0.25rem 0.6rem; white-space: nowrap; }
.cap-chip--lg { font-size: 0.8rem; padding: 0.4rem 0.9rem; margin-bottom: 1.25rem; }
/* Stack capability cards on phones so the description never clips */
@media (max-width: 560px) {
  .cap-card { grid-template-columns: 1fr; }
  .cap-card__img { position: relative; min-height: 0; height: 170px; }
  .cap-card__head { flex-wrap: wrap; gap: 0.45rem; }
  .cap-card__text { padding: 1.1rem 1.25rem 1.3rem; }
}

/* ── Branded Project Showcase (sliding cards) ── */
.showcase { padding: var(--section-pad) 0; background: var(--white); }
.showcase--dark { background: var(--charcoal); }
.showcase--compact { padding: 1.75rem 0 2.25rem; }
.showcase .section-header { margin-bottom: 2.25rem; }
.showcase__label { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-light); margin-bottom: 1rem; }
.showcase__label--dark { color: var(--silver); }
.section--tight { padding: 3rem 0 4rem; }
.showcase__marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee__track--cards { gap: 1.5rem; animation-duration: 60s; }
.showcase:hover .marquee__track--cards { animation-play-state: paused; }
.showcase-card { flex-shrink: 0; width: 420px; max-width: 80vw; position: relative; border: none; padding: 0; background: var(--charcoal-mid); cursor: pointer; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.showcase-card img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.showcase-card:hover img { transform: scale(1.04); }
.showcase-card__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 0.15rem; padding: 1.5rem 1.1rem 0.9rem; background: linear-gradient(to top, rgba(8,11,16,0.9), transparent); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-align: left; }
.showcase-card__cap small { font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: rgba(255,255,255,0.75); }

/* ── Render → Reality ── */
.rr-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.rr-item { position: relative; margin: 0; cursor: pointer; overflow: hidden; box-shadow: var(--card-shadow); background: var(--charcoal); }
.rr-item img { width: 100%; height: 340px; object-fit: cover; background: #14171d; display: block; transition: transform 0.5s ease; }
.rr-item:hover img { transform: scale(1.04); }
.rr-item figcaption { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.15rem 1.4rem 1.3rem; background: var(--white); }
.rr-item figcaption strong { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--charcoal); }
.rr-desc { font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--steel); line-height: 1.55; }
.rr-tag { font-family: var(--font-body); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.rr-tag--built { color: var(--accent-orange); }
.rr-arrow { color: var(--accent-orange); display: flex; align-items: center; justify-content: center; }

/* ── Lightbox ── */
.lightbox { position: relative; z-index: 2; margin: auto; max-width: 1000px; width: 100%; text-align: center; }
.lightbox img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__caption { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-top: 1rem; }
.lightbox__close { position: fixed; top: 1.25rem; right: 1.5rem; width: 46px; height: 46px; font-size: 2rem; }

@media (max-width: 1100px) { .cap-list { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .cap-feature { grid-template-columns: 1fr; }
  .cap-feature__img { min-height: 240px; }
  .rr-grid { grid-template-columns: 1fr; }
  .rr-arrow { transform: rotate(90deg); }
}
@media (max-width: 768px) {
  .showcase-card { width: 300px; }
  .showcase-card img { height: 230px; }
  .rr-item img { height: 240px; }
  .filter-bar { position: static; }
  .stat-item__num { font-size: 2.4rem; }
}

/* ============================================================
   v4 — BRAND BANNER, GALLERY, PRODUCTS GRID, CLICKABLE HINT
   ============================================================ */

/* ── Full-width branded banner ── */
.brand-banner {
  background-size: cover; background-position: center; background-attachment: fixed;
  padding: clamp(5rem, 10vw, 9rem) 0; position: relative;
}
.brand-banner__content { max-width: 640px; }
.brand-banner__content h2 { margin: 0.5rem 0 1rem; }
.brand-banner__content p { color: rgba(255,255,255,0.88); font-size: 1.08rem; margin: 0; }

/* ── Photo gallery — FULL, uncropped images (masonry columns) ── */
.gallery-grid { column-count: 3; column-gap: 1rem; }
.gallery-item { display: block; width: 100%; margin: 0 0 1rem; break-inside: avoid; position: relative; border: none; padding: 0; cursor: pointer; overflow: hidden; background: var(--charcoal); box-shadow: 0 4px 18px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item::after { content: '+'; position: absolute; top: 0.5rem; right: 0.75rem; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: rgba(13,17,24,0.6); color: #fff; font-size: 1.2rem; opacity: 0; transition: opacity 0.25s ease; }
.gallery-item:hover::after { opacity: 1; }

/* ── Products: 2-column catalogue grid ── */
.products-catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.products-catalog .product-full-card { grid-template-columns: 150px 1fr; margin-bottom: 0; transition: transform var(--transition), box-shadow var(--transition); }
.products-catalog .product-full-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,0.14); }
.products-catalog .product-full-card__body { padding: 1.4rem 1.6rem; }
.products-catalog .spec-table { margin-bottom: 1.1rem; }
@media (max-width: 1024px) { .products-catalog { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .products-catalog .product-full-card { grid-template-columns: 1fr; }
  .products-catalog .product-full-card__img { height: 180px; min-height: auto; }
}

/* ── Subtle persistent "clickable" hint on project cards ── */
.project-card__view {
  opacity: 1; transform: none;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(13,17,24,0.58); color: #fff; padding: 0.35rem 0.6rem;
  font-size: 0.66rem; letter-spacing: 0.08em;
  transition: background 0.25s ease;
}
.project-card__view svg { display: block; }
.project-card:hover .project-card__view,
.project-card:focus .project-card__view { background: var(--blue); transform: none; opacity: 1; }

@media (max-width: 768px) {
  .brand-banner { background-attachment: scroll; }
  .gallery-grid { column-count: 2; }

  /* Filter tabs → tidy wrapping pills on mobile (fixes alignment + overflow) */
  .filter-tabs { flex-wrap: wrap; width: 100%; border: none; gap: 0.5rem; margin-bottom: 1.75rem; }
  .filter-tab { padding: 0.55rem 1rem; border: 1px solid rgba(255,255,255,0.28); }
  .filter-tab:last-child { border-right: 1px solid rgba(255,255,255,0.28); }
  .filter-tabs--light .filter-tab { border-color: #d4d8de; }
}
@media (max-width: 520px) {
  .gallery-grid { column-count: 1; }
}

/* ============================================================
   MOBILE-FIRST GUARDS — no horizontal overflow / white space
   ============================================================ */
body { max-width: 100%; }
.marquee, .showcase__marquee, .trust-marquee { max-width: 100%; }
img, iframe, table, video { max-width: 100%; }
/* project detail modal: 3 even meta items */
.project-modal__meta { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 680px) { .project-modal__meta { grid-template-columns: 1fr; } }

/* ============================================================
   LANGUAGE TOGGLE (EN / AR) + RTL ARABIC LAYOUT
   ============================================================ */

/* Nav toggle (desktop) */
.navbar__links .lang-toggle {
  background: none; border: 1px solid #d4d8de; color: var(--charcoal);
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 0.42rem 0.75rem; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease;
}
.navbar__links .lang-toggle:hover { border-color: var(--blue); color: var(--blue); }

/* Drawer toggle */
.side-menu__lang {
  width: 100%; background: none; border: 1px solid rgba(255,255,255,0.3); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em;
  padding: 0.75rem; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease;
}
.side-menu__lang:hover { background: var(--blue); border-color: var(--blue); }

/* Floating switcher (bottom-right) */
.lang-fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 1100;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--charcoal); color: #fff; border: 2px solid var(--blue);
  padding: 0.6rem 1rem; border-radius: 40px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}
.lang-fab:hover { background: var(--blue); transform: translateY(-2px); }
.lang-fab svg { flex-shrink: 0; }
@media (max-width: 600px) { .lang-fab { bottom: 1rem; right: 1rem; padding: 0.55rem 0.85rem; font-size: 0.76rem; } }

/* ── RTL layout ── */
[dir="rtl"] body { direction: rtl; }
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .eyebrow,
[dir="rtl"] .btn, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea, [dir="rtl"] button,
[dir="rtl"] .stat-item__num, [dir="rtl"] .marquee__item, [dir="rtl"] .timeline-item__year,
[dir="rtl"] .value-block__num, [dir="rtl"] .feature-card__num, [dir="rtl"] .rr-item figcaption strong,
[dir="rtl"] .navbar__links a, [dir="rtl"] .side-menu__links a {
  font-family: 'Tajawal', 'Barlow', sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .eyebrow,
[dir="rtl"] .stat-item__label, [dir="rtl"] .btn { letter-spacing: 0; }
[dir="rtl"] .section-header p, [dir="rtl"] .hero__subtext { margin-left: auto; margin-right: 0; }

/* Flip directional accents */
[dir="rtl"] .value-block__num { border-left: none; border-right: 3px solid var(--blue); padding-left: 0; padding-right: 1rem; }
[dir="rtl"] .cap-card { border-left: 1px solid #e7e9ee; border-right: 3px solid var(--blue); }
[dir="rtl"] .project-modal__meta li { border-left: none; border-right: 3px solid var(--blue); padding-left: 0; padding-right: 0.85rem; }
[dir="rtl"] .product-full-card, [dir="rtl"] .service-card { border-left: none; }
[dir="rtl"] .timeline { padding-left: 0; padding-right: 3rem; }
[dir="rtl"] .timeline::before { left: auto; right: 10px; }
[dir="rtl"] .timeline-item::before { left: auto; right: -2.6rem; }
[dir="rtl"] .contact-details__card h3 { text-align: right; }

/* Drawer + fab mirror to the left in RTL */
[dir="rtl"] .side-menu { right: auto; left: 0; transform: translateX(-105%); box-shadow: 10px 0 40px rgba(0,0,0,0.4); }
[dir="rtl"] .side-menu.open { transform: translateX(0); }
[dir="rtl"] .lang-fab { right: auto; left: 1.25rem; }
@media (max-width: 600px) { [dir="rtl"] .lang-fab { left: 1rem; right: auto; } }

/* Hero legibility in RTL (text moves to the right side) */
[dir="rtl"] .hero--photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(250deg, rgba(13,17,24,0.86) 0%, rgba(13,17,24,0.5) 50%, rgba(13,17,24,0.12) 100%);
}
[dir="rtl"] .hero__content { z-index: 2; }
