/* Tiba Plastic Factory — dark industrial theme */
:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --primary: #e53935;
  --primary-dim: rgba(229, 57, 53, 0.35);
  --secondary: #b3b3b3;
  --text: #ffffff;
  --border: #2a2a2a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --glow: 0 0 28px rgba(229, 57, 53, 0.35);
  --transition: 0.35s ease;
  --transition-slow: 0.55s ease;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: #ff6b67;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--secondary);
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--text);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  text-align: center;
}

.page-loader__logo {
  margin: 0 auto 1rem;
  animation: pulse-logo 1.2s ease-in-out infinite;
}

.page-loader__bar {
  width: 160px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.page-loader__bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--primary);
  animation: loader-bar 1s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

@keyframes loader-bar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition-slow), border-color var(--transition-slow),
    backdrop-filter var(--transition-slow);
}

.site-header.is-scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFFFFF; /* حول اللون للأسود للأبيض */
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-logo:hover {
  color: var(--text);
}

.site-logo__text {
  display: inline;
}

@media (max-width: 480px) {
  .site-logo__text {
    font-size: 0.95rem;
  }
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  color: var(--secondary);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--text);
}

.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.site-header__cta {
  flex-shrink: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.lang-switcher:hover {
  border-color: var(--primary);
  color: var(--text);
}

.lang-switcher__text {
  font-family: var(--font-head);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-header__cta {
    display: none;
  }

  .site-nav__list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(13, 13, 13, 0.98);
    border-bottom: 1px solid var(--border);
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-slow), opacity var(--transition-slow), visibility var(--transition-slow);
  }

  .site-nav.is-open .site-nav__list {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav__link {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition),
    border-color var(--transition), color var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--primary);
  color: var(--text);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(229, 57, 53, 0.25);
}

.btn--primary:hover {
  transform: scale(1.03);
  box-shadow: var(--glow);
  color: var(--text);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--text);
  box-shadow: var(--glow);
  transform: scale(1.03);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.btn--whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.btn--whatsapp:hover {
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.45);
  color: #fff;
}

/* Flash */
.flash {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.flash--fixed {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 900;
  margin: 0;
  border-radius: 0;
  text-align: center;
  border-left: none;
  border-right: none;
}

.flash--success {
  background: rgba(46, 160, 67, 0.2);
  border: 1px solid rgba(46, 160, 67, 0.5);
  color: #7ee787;
}

.flash--error {
  background: rgba(229, 57, 53, 0.15);
  border: 1px solid rgba(229, 57, 53, 0.45);
  color: #ffb4b1;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  background: var(--bg) center / cover no-repeat;
  background-image: url("../images/hero-fallback.svg");
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  max-width: 880px;
}

.hero__title {
  color: var(--text);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-in 0.9s ease 0.2s forwards;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--secondary);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-in 0.9s ease 0.45s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  animation: hero-slide-up 0.85s ease 0.65s forwards;
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-slide-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--secondary);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: hero-fade-in 1s ease 1s forwards;
  opacity: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 768px) {
  .hero__video {
    display: none;
  }

  .hero__fallback {
    display: block;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--surface {
  background: var(--surface);
}

#some-products.section--surface {
  min-height: clamp(720px, 80vh, 880px);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section__label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section__title {
  color: var(--text);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.05;
}

.section__lead {
  margin: 0;
  font-size: 1.05rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 57, 53, 0.45);
  box-shadow: var(--shadow), var(--glow);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(229, 57, 53, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon {
  width: 32px;
  height: 32px;
  display: block;
  filter: brightness(0) invert(1);
}

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

/* Product filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    transform var(--transition);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: rgba(229, 57, 53, 0.15);
  border-color: var(--primary);
  color: var(--text);
  transform: scale(1.02);
}

.filter-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  vertical-align: middle;
  display: inline-block;
  filter: brightness(0) invert(1);
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(229, 57, 53, 0.4);
  box-shadow: var(--shadow), 0 0 32px rgba(229, 57, 53, 0.2);
}

.product-card__media {
  aspect-ratio: 4/3;
  background: var(--bg);
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);

  margin: auto;
}

.product-card:hover .product-card__media img {
  transform: scale(1.06);
}

.product-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.35rem;
  font-family: var(--font-head);
  font-weight: 600;
}

.product-card h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.92rem;
  flex: 1;
}

.product-card.is-hidden {
  display: none;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.why-item:hover {
  border-color: rgba(229, 57, 53, 0.35);
  box-shadow: var(--glow);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  justify-items: center;
}

.leadership-card {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.leadership-card:hover {
  border-color: rgba(229, 57, 53, 0.4);
  transform: translateY(-4px);
}

.leadership-card img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border-radius: calc(var(--radius) - 2px);
}

.leadership-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text);
}

@media (max-width: 900px) {
  .leadership-preview {
    grid-template-columns: 1fr;
  }
}

.why-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(229, 57, 53, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
}

.why-item h3 {
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: 1rem;
}

.why-item p {
  margin: 0;
  font-size: 0.9rem;
}

/* Stepper */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--border));
  opacity: 0.5;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem 0.5rem;
}

.step__num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(229, 57, 53, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover .step__num {
  transform: scale(1.08);
  box-shadow: var(--glow);
}

.step h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 900px) {
  .stepper {
    grid-template-columns: repeat(2, 1fr);
  }

  .stepper::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .stepper {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.testimonial-swiper {
  padding-bottom: 2.5rem;
  overflow: hidden;
}

.testimonial-swiper .swiper-pagination {
  position: relative;
  margin-top: 1.25rem;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 2px solid var(--primary);
  object-fit: cover;
  background: var(--surface);
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--secondary);
  line-height: 1.65;
}

.testimonial-card__name {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
}

.testimonial-card__role {
  font-size: 0.85rem;
  color: var(--secondary);
}

.swiper-pagination-bullet-active {
  background: var(--primary);
}

/* CTA band */
.cta-band {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.2), var(--surface));
  border: 1px solid rgba(229, 57, 53, 0.35);
  text-align: center;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 50%, rgba(229, 57, 53, 0.15), transparent 50%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band p {
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--secondary);
  margin: 0;
}

/* Page hero inner pages */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, rgba(229, 57, 53, 0.12), transparent 55%);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

/* About timeline */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-dim);
}

.timeline__year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Contact layout */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
  background: var(--surface);
}

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

.info-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.info-list li {
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.info-list a {
  color: var(--text);
}

.info-list a:hover {
  color: var(--primary);
}

/* Product detail page */
.product-detail {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.product-detail__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--secondary);
}

.feature-list li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
  background: #0a0a0a;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.site-footer__tagline {
  font-size: 0.92rem;
  margin: 0.75rem 0 1rem;
  max-width: 280px;
}

.site-footer__title {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: var(--secondary);
  display: inline-block;
  padding: 0.25rem 0;
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__text {
  font-size: 0.92rem;
  margin: 0 0 0.35rem;
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.site-footer__bottom-inner {
  text-align: center;
}

.site-footer__bottom-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-links__a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: border-color var(--transition), color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.social-links__a:hover {
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.value-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--transition), transform var(--transition);
}

.value-card:hover {
  border-color: rgba(229, 57, 53, 0.4);
  transform: translateY(-4px);
}

.value-card h3 {
  color: var(--text);
  font-size: 1.05rem;
}

/* Certificates grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
  justify-items: center;
}

.certificate-card {
  width: 100%;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition), transform var(--transition);
  text-align: center;
}

@media (max-width: 1100px) {
  .certificates-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

@media (max-width: 700px) {
  .certificates-grid {
    grid-template-columns: 1fr;
  }
}

.certificate-card:hover {
  border-color: rgba(229, 57, 53, 0.4);
  transform: translateY(-4px);
}

.certificate-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: calc(var(--radius) - 2px);
}

/* Section Surface */
.section--surface {
  min-height: 80vh; /* يخلي السيكشن أطول */
  padding: 3rem 0;
}

/* Product Images Grid */
.product-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Product Card */
.product-images-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
  text-align: center;
  overflow: hidden;
}

/* Hover Effect */
.product-images-card:hover {
  border-color: rgba(229, 57, 53, 0.4);
  transform: translateY(-6px);
}

/* Product Image */
.product-images-card img {
  display: block;
  width: 100%;
  height: 300px; /* حجم أكبر للصورة */
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  transition: transform 0.4s ease;
}

/* Image Zoom on Hover */
.product-images-card:hover img {
  transform: scale(1.05);
}
/* Product Images Swiper */
.product-images-swiper {
  margin-top: 2.5rem;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius);
}

.product-slide {
  position: relative;
  height: clamp(420px, 48vh, 560px);
  min-height: 420px;
  overflow: hidden;
}

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

.product-slide__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--text);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.product-slide__overlay h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.product-slide__overlay p {
  margin: 0 0 1rem;
  opacity: 0.9;
}

.product-slide__overlay .btn {
  margin-top: 0.5rem;
}

.product-overlay-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
}

/* Swiper Pagination */
.product-images-swiper .swiper-pagination {
  bottom: 1rem;
  text-align: center;
}

.product-images-swiper .swiper-pagination-bullet {
  background: var(--text);
  opacity: 0.5;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  transition: opacity var(--transition);
}

.product-images-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--primary);
}

/* RTL Support */
.rtl {
  direction: rtl;
}

.rtl .site-header__inner {
  flex-direction: row-reverse;
}

.rtl .site-nav__list {
  text-align: right;
}

.rtl .site-nav__link::after {
  left: auto;
  right: 0;
}

.rtl .hero__content {
  text-align: right;
}

.rtl .hero__actions {
  justify-content: flex-end;
}

.rtl .services-grid {
  direction: rtl;
}

.rtl .service-card {
  text-align: right;
}

.rtl .why-grid {
  direction: rtl;
}

.rtl .stepper {
  direction: rtl;
}

.rtl .testimonial-swiper {
  direction: rtl;
}

.rtl .product-images-swiper {
  direction: rtl;
}

.rtl .contact-layout {
  direction: rtl;
}

/* Responsive RTL */
@media (max-width: 768px) {
  .rtl .site-header__actions {
    flex-direction: row-reverse;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .product-slide {
    height: clamp(320px, 35vh, 420px);
  }

  .product-slide__overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .product-slide__overlay h3 {
    font-size: 1.25rem;
  }
}

/* Utilities */
.mt-0 {
  margin-top: 0;
}
.mb-2 {
  margin-bottom: 2rem;
}
.text-center {
  text-align: center;
}
