@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Outfit:wght@300;400;600;700&display=swap');

/* =========================================================
   BASE VARIABLES & THEME
========================================================= */
:root {
  --primary-color: #0b1a30;
  --secondary-color: #162f55;
  --accent-color: #d4af37;
  --accent-hover: #b4932b;
  --text-dark: #1f2937;
  --text-light: #f9fafb;
  --text-muted: #6b7280;
  --bg-color: #ffffff;
  --bg-alt: #f3f4f6;
  --font-en: 'Outfit', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --header-height: 118px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(11,26,48,0.10);
  --shadow-lg: 0 20px 48px rgba(11,26,48,0.15);
}

/* =========================================================
   RESETS & GLOBAL
========================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-en);
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

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

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

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 2.5rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 18px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
  border-radius: 4px;
}

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

.opacity-9 { opacity: 0.9; }

.container-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-hero {
  min-height: 40vh !important;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   NAVIGATION (HEADER)
========================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(11, 26, 48, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* ── LOGO ── */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* Slide in from left on load */
  animation: logoSlideIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes logoSlideIn {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

.nav-logo img {
  height: 110px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  filter: brightness(1.1) contrast(1.05) drop-shadow(0 2px 10px rgba(212,175,55,0.28));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.nav-logo img:hover {
  filter: brightness(1.18) contrast(1.08) drop-shadow(0 4px 18px rgba(212,175,55,0.48));
  transform: scale(1.05);
}

/* Mobile logo size */
@media (max-width: 768px) {
  .nav-logo img { height: 62px; max-width: 160px; }
}
@media (max-width: 480px) {
  .nav-logo img { height: 50px; max-width: 130px; }
}

/* =========================================================
   HERO LOAD ANIMATIONS
   Pure CSS keyframes — content ALWAYS visible, animation is
   an enhancement only. No JS dependency for visibility.
========================================================= */

@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(44px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideUpSm {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroImgIn {
  from { opacity: 0; transform: scale(0.90) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hero:not(.product-hero) .hero-text h1 {
  animation: heroSlideUp 0.85s cubic-bezier(0.23, 1, 0.32, 1) 0.05s both;
}

.hero:not(.product-hero) .hero-text > p {
  animation: heroSlideUpSm 0.85s cubic-bezier(0.23, 1, 0.32, 1) 0.22s both;
}

.hero:not(.product-hero) .hero-text > div {
  animation: heroSlideUpSm 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.38s both;
}

.hero:not(.product-hero) .hero-image img {
  animation: heroImgIn 0.95s cubic-bezier(0.23, 1, 0.32, 1) 0.18s both;
}

/* Nav links slide in on page load */
.nav-links {
  animation: navFadeIn 0.65s cubic-bezier(0.23, 1, 0.32, 1) 0.15s both;
}
.nav-actions {
  animation: navFadeIn 0.65s cubic-bezier(0.23, 1, 0.32, 1) 0.25s both;
}
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Nav links */
.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.87rem;
  letter-spacing: 0.6px;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

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

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.lang-switch {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-switch:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  font-size: 1.7rem;
  color: var(--accent-color);
  background: none;
  padding: 4px;
}

/* =========================================================
   HERO
========================================================= */
.hero {
  min-height: 100vh;
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--bg-color);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  box-shadow: 0 8px 20px rgba(212,175,55,0.35);
  transition: var(--transition);
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(212,175,55,0.45);
  background: linear-gradient(135deg, #e2c050, var(--accent-color));
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--accent-color);
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  transition: var(--transition);
  margin-inline-start: 1rem;
  cursor: pointer;
}

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

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  border: 4px solid rgba(212,175,55,0.25);
  animation: floatImg 5s ease-in-out infinite;
}

@keyframes floatImg {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* =========================================================
   SECTIONS & LAYOUTS
========================================================= */
.section {
  padding: 6rem 2rem;
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* 3-col grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* Cards */
.card {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
  border-bottom: 4px solid transparent;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.card-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

/* Stats Grid (Our Impact) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

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

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid h2 { font-size: 2.5rem !important; }
}

/* =========================================================
   PRODUCT GRID & CARDS
========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
  justify-content: center;
}

.product-item {
  background: var(--bg-color);
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212,175,55,0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.product-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,175,55,0.35);
}

.product-img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background-color: var(--bg-alt);
  border-bottom: 2px solid rgba(212,175,55,0.35);
  transition: transform 0.5s ease;
  padding: 1rem;
}

/* For machine & real photos use cover */
.product-item.cover-img .product-img {
  object-fit: cover;
  padding: 0;
}

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

.product-info {
  padding: 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.product-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.35;
}

.product-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.product-info .btn-outline {
  margin-inline-start: 0;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  align-self: center;
  color: var(--primary-color);
  border-color: var(--accent-color);
  margin-top: auto;
  background: transparent;
  cursor: pointer;
}

.product-info .btn-outline:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.product-modal.is-open {
  display: block;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 31, 0.7);
  backdrop-filter: blur(5px);
}

.product-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  margin: 4vh auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
}

.product-modal-media {
  background: linear-gradient(180deg, #f7f8fb 0%, #eceff5 100%);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.product-modal-media img {
  width: 100%;
  max-width: 320px;
  max-height: 320px;
  object-fit: contain;
}

.product-modal-content {
  padding: 2.4rem 2.4rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.product-modal-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(212,175,55,0.14);
  color: #9a7400;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-modal-content h3 {
  color: var(--primary-color);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.product-modal-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 46ch;
}

.product-modal-link {
  margin-top: 0.5rem;
  width: fit-content;
}

.product-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(11,26,48,0.08);
  color: var(--primary-color);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.product-modal-close:hover {
  background: rgba(11,26,48,0.14);
  transform: scale(1.05);
}

body.modal-open {
  overflow: hidden;
}

/* Section sub-headings (product categories) */
.category-heading {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--accent-color);
  display: inline-block;
}

/* =========================================================
   CONTACT
========================================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--bg-alt);
  padding: 4rem;
  border-radius: 20px;
}

.form-group { margin-bottom: 1.5rem; }

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.contact-item p,
.contact-item a {
  color: var(--text-dark);
  font-size: 1rem;
}

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

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

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,26,48,0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(3px);
}

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

.gallery-overlay i {
  color: var(--accent-color);
  font-size: 3rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay i {
  transform: translateY(0);
}

/* =========================================================
   LOCATION MAP
========================================================= */
.location-map-section {
  padding: 4rem 2rem;
  background:
    radial-gradient(circle at top right, rgba(212,175,55,0.16), transparent 28%),
    linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
}

.location-map-shell {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 2rem;
  align-items: stretch;
}

.location-map-copy {
  background: rgba(11,26,48,0.96);
  color: var(--text-light);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-map-kicker {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.location-map-copy h2 {
  color: var(--text-light);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.9rem;
}

.location-map-copy p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.location-map-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(212,175,55,0.28);
}

.location-map-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.location-map-frame-wrap {
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(11,26,48,0.08);
  background: #dfe5ee;
}

.location-map-frame {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 4rem 2rem 2rem;
  margin-top: auto;
  border-top: 4px solid var(--accent-color);
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-logo {
  max-width: 280px;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: brightness(1.12) contrast(1.08) drop-shadow(0 2px 8px rgba(212,175,55,0.12));
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-inline-start: 8px;
}

.footer-contact li {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.93rem;
  align-items: flex-start;
}

.footer-contact .map-link {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  width: 100%;
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.footer-contact .map-link:hover {
  color: var(--accent-color);
}

.footer-contact .map-link span {
  text-decoration: underline;
  text-decoration-color: rgba(212,175,55,0.55);
  text-underline-offset: 0.18em;
}

.footer-contact .map-link-indicator {
  font-size: 0.8rem;
  margin-top: 0.18rem;
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-contact .map-link:hover .map-link-indicator {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-contact i {
  color: var(--accent-color);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* =========================================================
   SCROLL ANIMATIONS
========================================================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease-out, transform 0.75s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s ease-out, transform 0.75s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s ease-out, transform 0.75s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-delay-100 { transition-delay: 100ms; }
.fade-delay-200 { transition-delay: 200ms; }
.fade-delay-300 { transition-delay: 300ms; }
.fade-delay-400 { transition-delay: 400ms; }
.fade-delay-500 { transition-delay: 500ms; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
  .location-map-shell {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.82rem; }
}

@media (max-width: 768px) {
  :root { --header-height: 80px; }

  .location-map-section {
    padding: 3rem 1rem;
  }

  .location-map-copy,
  .location-map-frame-wrap {
    border-radius: 18px;
  }

  .location-map-frame-wrap,
  .location-map-frame {
    min-height: 320px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--primary-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left 0.35s ease;
    z-index: 999;
  }

  body[dir="rtl"] .nav-links {
    left: auto;
    right: -100%;
    transition: right 0.35s ease;
  }

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

  .nav-links a { font-size: 1.1rem; }

  .menu-toggle { display: block; }

  .nav-actions { gap: 0.8rem; }

  .lang-switch {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
  }

  .nav-logo img {
    height: 60px;
    max-width: 160px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding-top: 2rem;
  }

  .hero-image { justify-content: center; }
  .hero-image img { max-width: 90%; animation: none; }

  .btn-outline { margin-inline-start: 0; margin-top: 1rem; }

  .section { padding: 4rem 1.2rem; }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem 1.2rem;
    gap: 2.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
  }

  .product-img { height: 200px; }

  .section-title { font-size: 1.9rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-img { height: 220px; }
  .product-info { padding: 1.2rem; }
  .product-info h3 { font-size: 1.1rem; }
  
  .hero-text h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.7rem; }
  
  .nav-logo img { height: 50px; max-width: 140px; }
  .lang-switch span { display: none; } /* Hide text, keep icon if needed, but here it's "العربية" */
}

/* =========================================================
   WHATSAPP FLOATING BUTTON
========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  animation: waPulse 2.5s infinite;
}

body[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 28px;
}

.whatsapp-float i {
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}

.whatsapp-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55);
  animation: none;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: waRing 2.5s infinite;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 8px 30px rgba(37,211,102,0.65); }
}

@keyframes waRing {
  0%   { transform: scale(1); opacity: 0.8; }
  80%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* =========================================================
   SOCIAL MEDIA ICONS — FOOTER
========================================================= */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.footer-social a:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* =========================================================
   OTHER PREMIUM PRODUCTS — ENHANCED SECTION
========================================================= */
.premium-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  margin-bottom: 3rem;
}

.premium-card {
  background: var(--bg-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11,26,48,0.08);
  border: 1px solid rgba(212,175,55,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

.premium-card:hover::before { transform: scaleX(1); }

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(11,26,48,0.16);
}

.premium-card-img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background-color: #f8f8f8;
  padding: 1.2rem 1rem;
  transition: transform 0.5s ease;
}

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

.premium-card-img-wrap {
  overflow: hidden;
  position: relative;
}

.premium-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-color);
  color: var(--primary-color);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

body[dir="rtl"] .premium-card-badge {
  right: auto;
  left: 12px;
}

.premium-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.premium-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
}

.premium-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.premium-card-body .enquire-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--accent-color);
  padding: 0.48rem 1.2rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: var(--transition);
  align-self: flex-start;
  text-decoration: none;
}

.premium-card-body .enquire-btn:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

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

@media (max-width: 600px) {
  .premium-products-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .premium-card-img { height: 160px; }
}

@media (max-width: 400px) {
  .premium-products-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   MACHINE CARDS — IMPROVED LAYOUT
========================================================= */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.machine-card {
  background: var(--bg-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(11,26,48,0.08);
  border: 1px solid rgba(11,26,48,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.machine-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(11,26,48,0.16);
}

.machine-card-img-wrap {
  overflow: hidden;
  position: relative;
  height: 240px;
}

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

.machine-card:hover .machine-card-img-wrap img {
  transform: scale(1.07);
}

.machine-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,26,48,0.55) 0%, transparent 60%);
  pointer-events: none;
}

.machine-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  border-top: 3px solid var(--accent-color);
}

.machine-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
}

.machine-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.machine-card-body .enquire-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--accent-color);
  padding: 0.5rem 1.3rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  align-self: flex-start;
  text-decoration: none;
}

.machine-card-body .enquire-btn:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

@media (max-width: 900px) {
  .machines-grid { grid-template-columns: repeat(2, 1fr); }
  .machine-card-img-wrap { height: 200px; }
}

@media (max-width: 560px) {
  .machines-grid { grid-template-columns: 1fr; }
  .machine-card-img-wrap { height: 220px; }

  .product-modal-dialog {
    width: calc(100% - 1rem);
    margin: 1.2rem auto;
    grid-template-columns: 1fr;
  }

  .product-modal-media {
    min-height: 260px;
    padding: 1.5rem 1.5rem 1rem;
  }

  .product-modal-content {
    padding: 1.5rem;
  }
}

/* =========================================================
   FEATURES STRIP — IMPROVED
========================================================= */
.features-strip {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 3.5rem 2rem;
  color: white;
}

.features-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 4rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.feature-pill i {
  font-size: 1.4rem;
  color: var(--accent-color);
}

/* =========================================================
   WATERMARK FOR PRODUCT IMAGES
========================================================= */
.product-item {
  position: relative;
}

.product-item::after,
.premium-card-img-wrap::after,
.machine-card-img-wrap::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  width: 90px;
  height: 50px;
  background-image: url('pics/nutra-logo.png.png');
  background-size: contain;
  background-position: top left;
  background-repeat: no-repeat;
  z-index: 10;
  opacity: 0.55;
  pointer-events: none;
  filter: drop-shadow(0px 2px 2px rgba(255, 255, 255, 0.4));
}

body[dir="rtl"] .product-item::after,
body[dir="rtl"] .premium-card-img-wrap::after,
body[dir="rtl"] .machine-card-img-wrap::after {
  left: auto;
  right: 15px;
  background-position: top right;
}

/* =========================================================
   ABOUT US PAGE - PREMIUM REBRAND
========================================================= */
.about-theme {
  --primary-color: #2E7D32;      /* Deep natural green */
  --secondary-color: #4CAF50;    /* Fresh green */
  --accent-color: #C8A96B;       /* Premium gold accent */
  --accent-hover: #b3945a;
  --bg-color: #F5F1E8;           /* Soft beige / warm cream */
  --bg-alt: #ffffff;             /* Pure white for inner blocks */
}

/* About Hero */
.about-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: var(--header-height);
  padding: 0 2rem;
  background: #111; /* Fallback */
}
.about-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 10s ease-out;
  transform: scale(1.05);
}
.about-hero:hover .about-hero-bg {
  transform: scale(1);
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,41,55,0.8) 0%, rgba(46,125,50,0.6) 100%);
}
.about-hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}
.about-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  animation: fadeUp 1s ease 0.3s both;
}
.about-subtitle {
  font-size: 1.3rem;
  color: #F5F1E8;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease 0.5s both;
}
.about-hero-cta {
  animation: fadeUp 1s ease 0.7s both;
}

/* Glow Premium Cards */
.glow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.glow-card {
  background: var(--bg-alt);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(46,125,50,0.1);
  z-index: 1;
}
.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.glow-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(46,125,50,0.12);
}
.glow-card:hover::before {
  opacity: 1;
}
.glow-icon {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease, transform 0.5s ease;
}
.glow-card:hover .glow-icon {
  color: var(--secondary-color);
  transform: scale(1.1);
}

/* Split Layout */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-split-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.about-split-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.5s ease;
}
.about-split-img:hover img {
  transform: scale(1.05);
}
@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Horizontal Timeline */
.timeline-container {
  position: relative;
  margin: 4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.timeline-line {
  position: absolute;
  top: 40px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: rgba(46,125,50,0.1);
  z-index: 1;
}
.timeline-line-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  transition: width 1.5s ease;
}
.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
  padding: 0 1rem;
}
.timeline-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--bg-alt);
  border: 4px solid var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transition: var(--transition-slow);
}
.timeline-step:hover .timeline-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-color);
  border-color: var(--primary-color);
}
.timeline-step h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.timeline-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .timeline-container { flex-direction: column; gap: 2rem; }
  .timeline-line { display: none; }
  .timeline-step { display: flex; align-items: center; text-align: left; gap: 1.5rem; }
  body[dir="rtl"] .timeline-step { text-align: right; }
  .timeline-icon { margin: 0; width: 60px; height: 60px; font-size: 1.5rem; flex-shrink: 0; }
}

/* Global Map Section */
.global-section {
  position: relative;
  background: var(--primary-color);
  color: #fff;
  padding: 6rem 2rem;
  overflow: hidden;
}
.global-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 30px 30px;
}
.global-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Animations Helper */
.fade-up-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
