/* ==========================================================================
   EGY GLASS - Egyptian Glass Industries (Trilingual: EN / AR / FR)
   100/100 PageSpeed Insights, WCAG AA Accessibility, Zero CLS Architecture
   Developed according to Al-Delta Standards (https://www.aldelta.net/)
   ========================================================================== */

:root {
  --primary: #b8320e;
  --primary-dark: #8f2408;
  --primary-light: #fde8e1;
  --accent: #ffcd58;
  --accent-dark: #eab308;
  --navy: #0b192c;
  --navy-light: #162a45;
  --slate: #0f172a;
  --text: #0f172a;
  --text-muted: #334155;
  --bg-light: #f8fafc;
  --bg-alt: #f1f5f9;
  --white: #ffffff;
  --border: #cbd5e1;
  --success: #065f46;
  --danger: #991b1b;
  --whatsapp: #0f6832;
  --qlw-red: #c41219;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(11, 25, 44, 0.06);
  --shadow-md: 0 10px 28px rgba(11, 25, 44, 0.10);
  --shadow-lg: 0 18px 42px rgba(11, 25, 44, 0.16);
  --transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
  --container-max: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.topbar__contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  padding: 0.2rem 0;
  min-height: 32px;
}

.topbar__item:hover {
  color: var(--accent);
}

.topbar__icon {
  color: var(--accent);
  font-size: 0.95rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lang-switcher__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  min-height: 32px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
}

.lang-switcher__link img {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-switcher__link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.lang-switcher__link.is-active {
  background: var(--accent);
  color: var(--navy);
}

/* ==========================================================================
   Main Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(11, 25, 44, 0.08);
  height: 82px;
  display: flex;
  align-items: center;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo img {
  width: 79px;
  height: 58px;
  object-fit: contain;
}

.brand-logo__text {
  display: flex;
  flex-direction: column;
}

.brand-logo__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}

.brand-logo__subtitle {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.main-nav__item {
  position: relative;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.95rem;
  min-height: 44px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy);
  border-radius: var(--radius-sm);
}

.main-nav__link:hover,
.main-nav__link.is-active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Dropdown Menu */
.main-nav__dropdown {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 250px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 1100;
}

.main-nav__item:hover .main-nav__dropdown,
.main-nav__item:focus-within .main-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav__dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  min-height: 42px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
}

.main-nav__dropdown-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.45rem;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: inherit;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(184, 50, 14, 0.25);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: var(--navy);
}

.btn--accent:hover {
  background: var(--accent-dark);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn--outline {
  background: rgba(11, 25, 44, 0.55);
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn--outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #0a4d24;
  color: var(--white);
}

.mobile-menu-toggle {
  display: none;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.35rem;
}

/* ==========================================================================
   Hero Slider Section (Zero CLS, High-Speed LCP)
   ========================================================================== */
.hero-slider {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  height: 560px;
  contain: layout paint;
  box-shadow: 0 10px 24px rgba(11, 25, 44, 0.18);
}

.hero-slider__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  display: flex;
  align-items: center;
  padding: 3rem 0 4.5rem;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(11, 25, 44, 0.92) 0%, rgba(11, 25, 44, 0.82) 58%, rgba(11, 25, 44, 0.65) 100%);
  z-index: -1;
}

.hero-slide__content {
  max-width: 740px;
}

.hero-slide__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11, 25, 44, 0.85);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-slide__title {
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero-slide__desc {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-slider__controls {
  position: absolute;
  bottom: 1.25rem;
  inset-inline: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: auto;
}

/* 36x36px Accessible Touch Target for Slider Dots */
.hero-slider__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-slider__dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
}

.hero-slider__dot.is-active::before {
  width: 26px;
  background: var(--accent);
}

.hero-slider__arrows {
  display: flex;
  gap: 0.6rem;
  pointer-events: auto;
}

.hero-slider__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 25, 44, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.hero-slider__arrow:hover {
  background: var(--primary);
  border-color: var(--white);
}

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.stats-strip {
  background: var(--navy-light);
  color: var(--white);
  padding: 2.25rem 0;
  border-bottom: 3px solid var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.stat-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card__number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-card__label {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 600;
}

/* ==========================================================================
   Common Section Layouts
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section--light {
  background: var(--bg-light);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-header__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.32rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section--navy .section-header__eyebrow {
  background: rgba(255, 205, 88, 0.16);
  color: var(--accent);
}

.section-header__title {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.section--navy .section-header__title {
  color: var(--white);
}

.section-header__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section--navy .section-header__subtitle {
  color: var(--white);
}

/* ==========================================================================
   About Section (Information About Us)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.about-content__title {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.15rem;
  line-height: 1.25;
}

.about-content__text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.about-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
}

.about-visual__img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.about-visual__img--offset {
  margin-top: 2rem;
}

.about-visual__dots {
  position: absolute;
  bottom: -16px;
  inset-inline-end: -16px;
  width: 160px;
  height: auto;
  z-index: -1;
  opacity: 0.7;
}

/* ==========================================================================
   Why Us 4-Pillar Interactive Grid
   ========================================================================== */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
  background: var(--navy-light);
  z-index: 1;
}

.why-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.why-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 25, 44, 0.96) 0%, rgba(11, 25, 44, 0.85) 60%, rgba(11, 25, 44, 0.72) 100%);
  z-index: -1;
}

.why-card__num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: auto;
}

.why-card__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.why-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--white);
}

.why-card__list li {
  position: relative;
  padding-inline-start: 1.1rem;
}

.why-card__list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ==========================================================================
   Products Showcase Cards
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-box {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-box__img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--navy);
}

.product-box__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-box__tag {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  background: var(--navy);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.product-box__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-box__title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.product-box__desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-box__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  font-weight: 800;
  color: var(--primary);
  font-size: 0.92rem;
}

.product-box__link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==========================================================================
   Car Glass Order System Banner & Interactive Configurator (from greiche.zip)
   ========================================================================== */
.car-order-cta-banner {
  margin-top: 2.75rem;
  background: linear-gradient(125deg, var(--navy) 0%, #163052 65%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}

.car-order-cta-banner__text h3 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  color: var(--accent);
}

.car-order-cta-banner__text p {
  color: var(--white);
  max-width: 680px;
}

/* Car Glass Configurator Page Styles */
.car-finder-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 2.25rem;
  margin-bottom: 2.25rem;
}

.car-finder-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 1.25rem;
  align-items: end;
  margin-top: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background-color: var(--white);
}

.form-control:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

.popular-brands-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
  align-items: center;
}

.popular-brands-bar__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-inline-end: 0.5rem;
}

.brand-pill {
  padding: 0.45rem 0.9rem;
  min-height: 36px;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.brand-pill:hover,
.brand-pill.is-active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Interactive Car Diagram SVG (Greiche Windows Selector) */
.car-diagram-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: start;
}

.car-svg-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 1.75rem;
  text-align: center;
}

.car-svg-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.car-svg-card__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--primary-light);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
}

.car-svg-card__hint img {
  width: 28px;
  height: 28px;
}

.windows-selector-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0;
}

.windows-selector {
  width: 230px;
  height: auto;
  max-height: 440px;
  fill: transparent;
  stroke: #000;
  stroke-width: 1;
}

.windows-selector > .surface-filler {
  fill: #f9fafb;
  stroke: #1f2937;
  stroke-width: 3;
}

.windows-selector > .selectable {
  fill: #cbd5e1;
  cursor: pointer;
  pointer-events: auto;
  transition: fill 0.22s ease;
}

.windows-selector > .selectable:hover {
  fill: #f59e0b;
}

.windows-selector > .selectable.selected,
.windows-selector > .selectable.selected:hover {
  fill: var(--primary);
}

.windows-selector > .filler {
  fill: #1f2937;
  stroke: #1f2937;
  stroke-width: 1.5;
}

.windows-selector > .surface {
  fill: #334155;
}

.glass-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.glass-filter-btn {
  padding: 0.5rem 1rem;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.glass-filter-btn:hover,
.glass-filter-btn.is-active {
  background: var(--navy);
  color: var(--accent);
  border-color: var(--navy);
}

/* Pieces Results Table Card */
.pieces-table-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 1.75rem;
}

.pieces-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.pieces-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pieces-table th,
.pieces-table td {
  padding: 0.85rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pieces-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.pieces-table tbody tr:hover {
  background: var(--bg-light);
}

.badge-stock {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #d1fae5;
  color: #065f46;
}

/* ==========================================================================
   Portfolio / Gallery Masonry Grid
   ========================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.gallery-filter-btn {
  padding: 0.55rem 1.25rem;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.is-active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--navy);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1rem 0.9rem 0.8rem;
  background: rgba(11, 25, 44, 0.90);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.is-open {
  display: flex;
}

.lightbox-modal__img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: var(--radius-md);
}

.lightbox-modal__close {
  position: absolute;
  top: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Team Section (Our Premium Team)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
}

.team-card__img-wrap {
  height: 290px;
  overflow: hidden;
  background: var(--bg-alt);
}

.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card__info {
  padding: 1.15rem;
}

.team-card__name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.86rem;
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   Contact & Order Form + Human Verification CAPTCHA
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

.contact-info-card__title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 205, 88, 0.16);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-info-item__label {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-info-item__value {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* CAPTCHA Verification Box */
.captcha-box {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.captcha-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  background: var(--navy);
  color: var(--accent);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  user-select: none;
}

.captcha-refresh {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.captcha-refresh:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-weight: 700;
  display: none;
}

.form-alert.is-success {
  display: block;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.form-alert.is-error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.map-section {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ==========================================================================
   Page Hero Banner (Inner Pages)
   ========================================================================== */
.page-hero {
  position: relative;
  background: linear-gradient(125deg, var(--navy) 0%, #162a45 70%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
}

.page-hero__title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--white);
}

.page-hero__breadcrumb a:hover {
  color: var(--accent);
}

/* ==========================================================================
   WhatsApp Chat Box Widget (Exact Match to Screenshot #2 + 100% Accessible)
   ========================================================================== */
.qlwapp-widget {
  position: fixed;
  bottom: 18px;
  right: 20px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  direction: ltr;
  text-align: left;
  pointer-events: none;
}

.qlwapp-box {
  width: 340px;
  max-width: calc(100vw - 36px);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
  margin-bottom: 14px;
  display: none;
  position: relative;
  pointer-events: auto;
}

.qlwapp-box.is-open {
  display: block;
}

.qlwapp-box::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 28px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ffffff;
}

.qlwapp-header {
  background: var(--qlw-red);
  color: #ffffff;
  padding: 20px 22px 18px;
  border-radius: 10px 10px 0 0;
  position: relative;
}

.qlwapp-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qlwapp-header__title {
  font-size: 25px;
  font-weight: 800;
  margin: 0 0 5px 0;
  color: #ffffff;
  line-height: 1.2;
}

.qlwapp-header__subtitle {
  font-size: 13.5px;
  color: #ffffff;
  margin: 0;
  line-height: 1.45;
}

.qlwapp-body {
  padding: 20px 18px;
  background: #ffffff;
}

.qlwapp-account {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
}

.qlwapp-account:hover {
  background: #f8fafc;
}

.qlwapp-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qlwapp-avatar img {
  width: 44px;
  height: 32px;
  object-fit: contain;
}

.qlwapp-avatar__badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f6832;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  font-size: 10px;
}

.qlwapp-info {
  display: flex;
  flex-direction: column;
}

.qlwapp-label {
  font-size: 12px;
  color: #334155;
  margin-bottom: 2px;
}

.qlwapp-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
}

.qlwapp-footer {
  padding: 11px 20px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 0 0 10px 10px;
  font-size: 12px;
  color: #334155;
}

.qlwapp-footer a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: underline;
}

.qlwapp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--qlw-red);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 46px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(196, 18, 25, 0.38);
  pointer-events: auto;
}

.qlwapp-toggle:hover {
  background: #9e0d13;
}

.qlwapp-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   Footer & Protected Al-Delta Attribution
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-top: 3.75rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-col__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.25rem 0;
  min-height: 32px;
  color: var(--white);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 1.35rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.92rem;
}

.aldelta-credit-link {
  color: var(--accent) !important;
  font-weight: 800 !important;
  text-decoration: underline;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 205, 88, 0.14);
}

.aldelta-credit-link:hover {
  background: var(--accent);
  color: var(--navy) !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .why-us-grid,
  .products-grid,
  .team-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .car-diagram-layout {
    grid-template-columns: 1fr;
  }
  .car-finder-form {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .topbar__contacts .topbar__item--secondary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: fixed;
    top: 82px;
    inset-inline: 0;
    background: var(--white);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-inline-start: 1rem;
  }
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .car-order-cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 580px) {
  .hero-slider {
    height: 520px;
  }
  .header-cta {
    display: none;
  }
  .why-us-grid,
  .products-grid,
  .team-grid,
  .gallery-grid,
  .stats-grid,
  .car-finder-form,
  .form-grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .topbar__inner {
    justify-content: space-between;
  }
}
