/* ===== CSS VARIABLES ===== */
:root {
  --primary-dark: #1b3a5c;
  --primary-mid: #24507a;
  --accent: #c94c4c;
  --accent-hover: #d96060;
  --text-dark: #2c3e50;
  --text-light: #f4f6f8;
  --bg-light: #f0f4f8;
  --bg-white: #ffffff;
  --steel-gray: #607080;
  --border: #d8dee6;
  --shadow: 0 4px 20px rgba(27, 58, 92, 0.08);
  --shadow-lg: 0 8px 30px rgba(27, 58, 92, 0.12);
  --radius: 8px;
  --transition: 0.3s ease;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-arabic: 'Noto Sans Arabic', 'Open Sans', sans-serif;
}

/* ===== RESET / BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-loader, .scroll-progress,
  .hero-content h1 > span,
  .hero-content > p,
  .hero-content > .hero-buttons {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--bg-white);
  overflow-x: hidden;
}

[dir="rtl"] body {
  font-family: var(--font-arabic);
}

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

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

ul, ol {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-dark);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: var(--font-arabic);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

/* ===== LAYOUT UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

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

.section-dark {
  background: var(--primary-dark);
  color: var(--text-light);
}

.section-dark h2, .section-dark h3 {
  color: var(--text-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--steel-gray);
  max-width: 600px;
  margin: 0 auto;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 76, 76, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

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

.btn-dark {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

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

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar-left a {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-bar-left a:hover {
  color: var(--accent);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
  transition: all var(--transition);
}

.lang-btn:hover, .lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== HEADER / NAVIGATION ===== */
.header {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition), padding var(--transition);
}

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

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary-dark);
  direction: ltr;
  unicode-bidi: bidi-override;
}

.logo span {
  color: var(--accent);
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-dark);
  color: #fff;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 58, 92, 0.8), rgba(36, 80, 122, 0.7));
  z-index: 1;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: #fff;
  font-size: 3.2rem;
  margin-bottom: 1rem;
  font-weight: 800;
  direction: ltr;
  unicode-bidi: bidi-override;
}

.hero-content h1 .accent {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.8;
}

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

.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(27, 58, 92, 0.9), rgba(36, 80, 122, 0.85)),
    url('https://images.pexels.com/photos/36003984/pexels-photo-36003984.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover no-repeat;
  color: #fff;
}

.page-hero h1 {
  color: #fff;
  font-size: 2.8rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-top: 0.5rem;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary-dark);
  padding: 3rem 0;
}

.stats-bar .grid-4 {
  text-align: center;
  color: #fff;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(201, 76, 76, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  color: var(--accent);
}

.card h3 {
  margin-bottom: 0.8rem;
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.card-link:hover {
  gap: 0.7rem;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.product-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

[dir="rtl"] .product-card-badge {
  left: auto;
  right: 1rem;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-card-body p {
  color: var(--steel-gray);
  font-size: 0.9rem;
}

/* ===== WHY CHOOSE US ===== */
.why-us-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-us-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-us-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-us-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-us-item i {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.why-us-item h4 {
  margin-bottom: 0.3rem;
}

.why-us-item p {
  color: var(--steel-gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===== ABOUT PAGE ===== */
.about-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--steel-gray);
  margin-bottom: 1rem;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-detail-item i {
  color: var(--accent);
}

.about-detail-item strong {
  font-size: 0.9rem;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.value-card .card-icon {
  margin: 0 auto 1.2rem;
}

.director-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

.director-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--steel-gray);
}

.director-info h3 {
  margin-bottom: 0.3rem;
}

.director-info .title {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* ===== VIDEO SHOWCASE ===== */
.video-showcase {
  padding: 1.5rem 0;
  background: var(--bg-light);
}

.video-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 0 auto;
}

.video-wrapper video {
  width: 100%;
  display: block;
  background: #000;
  max-height: 280px;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 58, 92, 0.7), rgba(36, 80, 122, 0.5));
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
  transition: opacity var(--transition);
}

.video-play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.video-play-overlay:hover .video-play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(201, 76, 76, 0.5);
}

.video-play-overlay p {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

/* ===== PRODUCTS PAGE ===== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: all var(--transition);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

/* ===== SERVICES PAGE ===== */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block.reverse {
}

.service-block.reverse .service-img {
  order: 2;
}

.service-block.reverse .service-text {
  order: 1;
}

[dir="rtl"] .service-block.reverse .service-img {
  order: 1;
}

[dir="rtl"] .service-block.reverse .service-text {
  order: 2;
}

.service-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.service-text h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-text p {
  color: var(--steel-gray);
  margin-bottom: 1rem;
}

.service-text ul {
  margin-top: 1rem;
}

.service-text ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--steel-gray);
}

.service-text ul li i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.process-step {
  position: relative;
}

.process-step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.process-step h4 {
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--steel-gray);
  font-size: 0.9rem;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -1rem;
  width: calc(100% - 60px);
  height: 2px;
  background: var(--border);
}

.process-step:last-child::after {
  display: none;
}

[dir="rtl"] .process-step::after {
  right: auto;
  left: -1rem;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 92, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
}

[dir="rtl"] .lightbox-close {
  right: auto;
  left: 1.5rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

[dir="rtl"] .lightbox-prev {
  left: auto;
  right: 1.5rem;
}

[dir="rtl"] .lightbox-next {
  right: auto;
  left: 1.5rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.contact-form-group {
  margin-bottom: 1.2rem;
}

.contact-form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--bg-white);
  color: var(--text-dark);
}

[dir="rtl"] .contact-form-group input,
[dir="rtl"] .contact-form-group select,
[dir="rtl"] .contact-form-group textarea {
  font-family: var(--font-arabic);
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form-group textarea {
  height: 150px;
  resize: vertical;
}

.contact-form-group .error-msg {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: none;
}

.contact-info-box {
  background: var(--primary-dark);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-info-box h3 {
  color: #fff;
  margin-bottom: 2rem;
}

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

.contact-info-item i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-info-item a {
  color: var(--text-light);
}

.contact-info-item a:hover {
  color: var(--accent);
}

.contact-map {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.form-success {
  background: #2ecc71;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
}

.form-error {
  background: #e74c3c;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col .logo {
  margin-bottom: 1rem;
  color: #fff;
}


.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact-item {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-contact-item span,
.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  letter-spacing: 2px;
  display: flex;
  direction: ltr;
  unicode-bidi: bidi-override;
  overflow: hidden;
}

.loader-logo .loader-comar,
.loader-logo .loader-fer {
  display: inline-block;
  opacity: 0;
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
}

.loader-logo .loader-comar {
  color: #fff;
  transform: translateX(-60px);
  animation-name: slide-in-left;
  animation-delay: 0.2s;
}

.loader-logo .loader-fer {
  color: var(--accent);
  transform: translateX(60px);
  animation-name: slide-in-right;
  animation-delay: 0.4s;
}

.loader-line {
  position: absolute;
  bottom: 35%;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: loader-line-grow 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes slide-in-left {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes loader-line-grow {
  to { width: 180px; }
}

/* Hide loader after shown once */
.loader-once-done .page-loader {
  display: none;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  z-index: 9998;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(201, 76, 76, 0.4);
}

/* ===== HERO TEXT REVEAL ===== */
.hero-content h1 {
  overflow: hidden;
}

.hero-content h1 > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: hero-word-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 > span:nth-child(1) {
  animation-delay: 0.3s;
}

.hero-content h1 > span:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-content > p {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-content > .hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

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

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

/* Disable animations when loader has NOT finished yet */
body:not(.loader-done) .hero-content h1 > span,
body:not(.loader-done) .hero-content > p,
body:not(.loader-done) .hero-content > .hero-buttons {
  animation-play-state: paused;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }

  .hamburger { display: flex; }
  .loader-logo { font-size: 2.8rem; }
  @keyframes loader-line-grow { to { width: 150px; } }

  /* Hide mobile phone on tablet to save space; keep landline + email */
  .top-bar-left a:nth-child(2) { display: none; }
  .top-bar-left { gap: 1rem; font-size: 0.8rem; flex-wrap: nowrap; min-width: 0; }
  .top-bar-left a { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    padding: 4rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
    z-index: 999;
  }

  [dir="rtl"] .nav-links {
    right: auto;
    left: -100%;
  }

  .nav-links.open {
    right: 0;
  }

  [dir="rtl"] .nav-links.open {
    left: 0;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .nav-overlay.open {
    display: block;
  }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .hero-content h1 { font-size: 2.5rem; }

  .about-overview,
  .why-us-content,
  .service-block,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-block.reverse .service-img,
  .service-block.reverse .service-text {
    order: unset;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step::after {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .director-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  html { font-size: 15px; }

  .container { padding: 0 1.2rem; }
  .section { padding: 3.5rem 0; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .top-bar-left { gap: 0.6rem; font-size: 0.7rem; }
  .top-bar-left a:nth-child(1) { display: none; }
  .top-bar-left a:nth-child(2) { display: flex; }
  .top-bar-left a:nth-child(3) { display: flex; }
  .loader-logo { font-size: 2.2rem; letter-spacing: 1px; }
  @keyframes loader-line-grow { to { width: 120px; } }

  .hero { min-height: 80vh; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }

  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  .stats-bar .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    gap: 0.5rem;
  }

  .filter-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .page-hero { min-height: 30vh; }
  .page-hero h1 { font-size: 2rem; }
}
