:root {
  --dark: #2b2729;
  --darker: #1f1c1e;
  --cream: #f7f3ed;
  --cream-dark: #efe9e0;
  --purple: #6b4c6e;
  --purple-light: #8a6b8d;
  --purple-soft: #c9a9c8;
  --gold: #c5a26f;
  --gold-light: #d4b88a;
  --text-dark: #2b2729;
  --text-muted: #5a5557;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

/* CURTAIN INTRO */
#curtain-intro {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 99999; pointer-events: none;
}
.curtain {
  position: absolute; top: 0; width: 50%; height: 100%;
  background: linear-gradient(to bottom, #3a2a3c, #2b1f2d, #1f1520);
  transition: transform 1.8s cubic-bezier(0.77, 0, 0.175, 1); z-index: 2;
}
.curtain-left {
  left: 0; background: linear-gradient(to right, #2b1f2d, #3a2a3c);
  box-shadow: inset -20px 0 40px rgba(0,0,0,0.4);
}
.curtain-right {
  right: 0; background: linear-gradient(to left, #2b1f2d, #3a2a3c);
  box-shadow: inset 20px 0 40px rgba(0,0,0,0.4);
}
.curtain::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(to right, transparent 0px, transparent 18px, rgba(0,0,0,0.08) 18px, rgba(0,0,0,0.08) 20px);
}
.curtain-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; z-index: 3; color: #fff;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.curtain-logo h1 {
  font-family: 'Playfair Display', serif; font-size: 2.8rem; letter-spacing: 6px;
  margin: 0 0 10px 0; color: #e8d5a3;
}
.curtain-logo p { font-size: 1rem; letter-spacing: 3px; opacity: 0.8; margin: 0; }
#curtain-intro.open .curtain-left { transform: translateX(-100%); }
#curtain-intro.open .curtain-right { transform: translateX(100%); }
#curtain-intro.open .curtain-logo { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
#curtain-intro.hide { opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s; }

@media (max-width: 768px) {
  .curtain-logo h1 { font-size: 1.8rem; letter-spacing: 3px; }
  .curtain-logo p { font-size: 0.85rem; letter-spacing: 2px; }
}

.floating-curtains {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.float-curtain {
  position: absolute; width: 2px; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--purple-soft), transparent);
  opacity: 0.15; animation: floatCurtain 12s infinite ease-in-out;
}
.float-curtain.c1 { left: 10%; animation-delay: 0s; }
.float-curtain.c2 { left: 30%; animation-delay: 2s; }
.float-curtain.c3 { left: 70%; animation-delay: 4s; }
.float-curtain.c4 { left: 90%; animation-delay: 6s; }
@keyframes floatCurtain {
  0%, 100% { transform: translateY(-20px); opacity: 0.1; }
  50% { transform: translateY(20px); opacity: 0.25; }
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(43, 39, 41, 0.95); backdrop-filter: blur(12px);
  padding: 12px 25px; display: flex; justify-content: space-between; align-items: center;
  transition: transform 0.3s ease;
}
.nav.hidden { transform: translateY(-100%); }
.nav-logo {
  display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  font-family: 'Playfair Display', serif; font-size: 1.05rem; letter-spacing: 1px; z-index: 1001;
}
.logo-mark { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.3rem; font-weight: 600; }
.nav-links {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end;
}
.nav-links a {
  color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.65rem; padding: 5px 8px;
  border-radius: 4px; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.4px;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: all 0.3s ease; border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1100px) {
  .hamburger { display: flex !important; z-index: 1002; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #1f1c1e;
    flex-direction: column; justify-content: flex-start; align-items: center; gap: 6px;
    margin: 0; padding: 90px 15px 50px; transition: right 0.35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.6); z-index: 1001; display: flex !important; overflow-y: auto;
  }
  .nav-links.active { right: 0 !important; }
  .nav-links li { list-style: none; width: 100%; text-align: center; }
  .nav-links a { display: block; font-size: 0.9rem; padding: 10px 15px; color: rgba(255,255,255,0.85) !important; width: 100%; }
}

/* PAGE BASE */
.page { min-height: 100vh; width: 100%; position: relative; display: flex; overflow: hidden; }
.page-inner { width: 100%; min-height: 100vh; display: flex; }

/* HOVER TILT */
.hover-tilt {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d; will-change: transform;
}
.hover-tilt:hover {
  transform: perspective(1000px) rotateX(4deg) rotateY(-4deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* PAGE 1 COVER */
.page-1 { background: var(--dark); }
.page-1 .left {
  width: 42%; background: var(--dark); display: flex; flex-direction: column;
  justify-content: center; padding: 60px 50px; color: var(--white);
}



.page-1 .logo-area { margin-bottom: 40px; }

.page-1 .logo-area img,
.page-1 .logo-area video { 
  height: 190px; 
  width: auto; 
  display: block;
  object-fit: contain;
}

.fallback-logo { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.5rem; 
  color: var(--purple-soft); 
  line-height: 1.3; 
}

.page-1 h1 {
  font-family: 'Playfair Display', serif; 
  font-size: 2.8rem; 
  font-weight: 600;
  line-height: 1.15; 
  letter-spacing: 1px; 
  margin-bottom: 20px;
}



.page-1 .tagline { font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,0.85); line-height: 1.5; margin-bottom: 30px; }
.page-1 .divider { width: 60px; height: 2px; background: var(--gold); margin-bottom: 25px; }
.page-1 .company-label { font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 50px; }
.page-1 .contact-bottom { margin-top: auto; font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.page-1 .right {
  width: 58%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-1 .right img {
  width: 90%;
  height: auto;
  max-height: 95vh;
  object-fit: cover;
  object-position: center;
}

/* PAGE 2 ABOUT */
.page-2 { background: var(--cream); }
.page-2 .left { width: 48%; padding: 80px 50px 60px; display: flex; flex-direction: column; justify-content: center; }
.page-2 .logo-top { position: absolute; top: 30px; right: 40px; }
.page-2 h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--purple); margin-bottom: 8px; }
.page-2 .subtitle { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 12px; }
.page-2 .gold-line { width: 50px; height: 2px; background: var(--gold); margin-bottom: 28px; }
.page-2 .body-text { font-size: 0.95rem; line-height: 1.7; color: var(--text-dark); margin-bottom: 20px; }
.page-2 .focus-title { font-size: 1rem; font-weight: 600; color: var(--purple); margin-bottom: 12px; margin-top: 10px; }
.page-2 .focus-items { font-size: 0.9rem; line-height: 1.8; color: var(--text-muted); }
.page-2 .right { width: 52%; padding: 40px 30px 40px 0; display: flex; align-items: center; }
.page-2 .right img { width: 100%; height: auto; max-height: 85vh; object-fit: cover; border-radius: 4px; }
.page-2 .footer-contact { position: absolute; bottom: 20px; right: 40px; font-size: 0.7rem; color: var(--text-muted); }

/* PAGE 3 VISION */
.page-3 { background: var(--cream); flex-direction: column; padding: 80px 60px 50px; }
.page-3 .header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 50px; width: 100%; }
.page-3 h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--purple); }
.page-3 .subtitle { font-size: 0.95rem; color: var(--text-muted); margin-top: 6px; }
.page-3 .gold-line { width: 50px; height: 2px; background: var(--gold); margin-top: 12px; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: 100%; }
.vision-card {
  background: var(--white); padding: 40px 35px; border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06); border-top: 3px solid var(--gold);
}
.vision-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--purple); margin-bottom: 18px; }
.vision-card p { font-size: 0.95rem; line-height: 1.75; color: var(--text-dark); }
.page-3 .footer-contact { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-top: 40px; }

/* PAGE 4 VALUES */
.page-4 { background: var(--cream); flex-direction: column; padding: 80px 60px 50px; }
.page-4 .header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 50px; width: 100%; }
.page-4 h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--purple); }
.page-4 .subtitle { font-size: 0.95rem; color: var(--text-muted); margin-top: 6px; }
.page-4 .gold-line { width: 50px; height: 2px; background: var(--gold); margin-top: 12px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; width: 100%; }
.value-item {
  background: var(--white); padding: 35px 25px; text-align: center; border-radius: 6px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-item:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(0,0,0,0.1); }
.value-icon { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--gold); margin-bottom: 12px; font-weight: 600; }
.value-item h3 { font-size: 1.1rem; color: var(--purple); font-weight: 600; }
.page-4 .footer-contact { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-top: 40px; }

/* PAGE 5 COLLECTION */
.page-5 { background: var(--cream); flex-direction: column; padding: 80px 60px 50px; }
.page-5 .header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; width: 100%; }
.page-5 h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--purple); }
.page-5 .subtitle { font-size: 0.95rem; color: var(--text-muted); margin-top: 6px; }
.page-5 .gold-line { width: 50px; height: 2px; background: var(--gold); margin-top: 12px; }
.collection-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 40px; width: 100%; }
.collection-grid .item { padding: 22px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
.collection-grid .item h3 { font-size: 1.05rem; font-weight: 600; color: var(--purple); margin-bottom: 8px; }
.collection-grid .item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.page-5 .footer-contact { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-top: 40px; }

/* PRODUCT PAGES */
.page-product { background: var(--dark); }
.page-product.alt { background: var(--cream); }
.page-product .left {
  width: 42%; padding: 70px 50px; display: flex; flex-direction: column; justify-content: center; color: var(--white);
}
.page-product.alt .left { color: var(--text-dark); width: 55%; padding: 50px 20px 40px 40px; }
.page-product .left img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}
.page-product h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 600; line-height: 1.25; margin-bottom: 25px; }
.page-product.alt h2 { color: var(--purple); }
.page-product .desc { font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.88); margin-bottom: 30px; }
.page-product.alt .desc { color: var(--text-dark); }
.page-product .section-title { font-size: 1.05rem; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.page-product.alt .section-title { color: var(--purple); }
.page-product ul { list-style: none; margin-bottom: 20px; }
.page-product ul li {
  font-size: 0.95rem; padding: 6px 0; color: rgba(255,255,255,0.9); position: relative; padding-left: 18px;
}
.page-product.alt ul li { color: var(--text-dark); }
.page-product ul li::before { content: "•"; position: absolute; left: 0; color: var(--gold); }
.page-product .right {
  width: 55%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-product.alt .right {
  width: 45%;
  padding: 70px 50px 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-product .right img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  object-position: center;
}
.page-product .footer-contact { margin-top: 30px; font-size: 0.7rem; color: rgba(255,255,255,0.5); }
.page-product.alt .footer-contact { color: var(--text-muted); }

/* SMART */
.page-smart { background: var(--cream); flex-direction: column; padding: 80px 60px 50px; }
.page-smart .header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; width: 100%; }
.page-smart h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--purple); }
.page-smart .subtitle { font-size: 0.95rem; color: var(--text-muted); margin-top: 6px; }
.page-smart .gold-line { width: 50px; height: 2px; background: var(--gold); margin-top: 12px; }
.smart-content { display: flex; gap: 50px; width: 100%; }
.smart-left { flex: 1.2; }
.smart-left h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--purple); margin: 25px 0 12px; }
.smart-left .body-text { font-size: 0.95rem; line-height: 1.7; color: var(--text-dark); margin-bottom: 12px; }
.smart-list { list-style: none; margin-top: 10px; }
.smart-list li {
  font-size: 0.92rem; line-height: 1.65; color: var(--text-dark); padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.smart-list li strong { color: var(--purple); }
.smart-right { flex: 0.9; display: flex; flex-direction: column; gap: 20px; }
.smart-right img { width: 100%; border-radius: 6px; object-fit: cover; }
.partner-box {
  background: var(--white); padding: 20px; border-radius: 6px; text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.partner-box p { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.partner-fallback { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--purple); padding: 15px; }
.page-smart .footer-contact { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-top: 40px; }

/* CLIENTS */
.page-clients { background: var(--cream); flex-direction: column; padding: 80px 60px 50px; }
.page-clients .header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 50px; width: 100%; }
.page-clients h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--purple); }
.page-clients .subtitle { font-size: 0.95rem; color: var(--text-muted); margin-top: 6px; }
.page-clients .gold-line { width: 50px; height: 2px; background: var(--gold); margin-top: 12px; }
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 95%; }
.client-item {
  background: var(--white); padding: 40px 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; box-shadow: 0 6px 25px rgba(0,0,0,0.05); min-height: 140px; transition: transform 0.3s ease;
}
.client-item:hover { transform: translateY(-5px); }
.client-item img { max-height: 180px; max-width: 280px; object-fit: contain; }
.client-fallback { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--purple); text-align: center; letter-spacing: 1px; }
.page-clients .footer-contact { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-top: 40px; }

/* CONTACT */
.page-contact { background: var(--dark); }
.page-contact .left {
  width: 45%; background: var(--dark); padding: 70px 50px; display: flex;
  flex-direction: column; justify-content: center; color: var(--white);
}
.page-contact h2 {
  font-family: 'Playfair Display', serif; font-size: 2.3rem; font-weight: 600;
  line-height: 1.2; margin-bottom: 15px;
}
.page-contact .for-enquiries { font-size: 0.95rem; color: rgba(255,255,255,0.75); margin-bottom: 35px; }
.page-contact .contact-item { margin-bottom: 22px; font-size: 0.95rem; line-height: 1.6; }
.page-contact .contact-item span {
  display: block; font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 5px;
}
.page-contact .brand {
  margin-top: 40px; font-size: 0.85rem; letter-spacing: 3px; color: var(--gold-light);
  font-family: 'Playfair Display', serif;
}
.page-contact .tagline-small { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 6px; }
.page-contact .right { width: 55%; padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; }
.map-container { width: 100%; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* PAGE INDICATOR */
.page-indicator {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(43,39,41,0.85); color: white; padding: 6px 16px;
  border-radius: 20px; font-size: 0.75rem; z-index: 999; letter-spacing: 1px;
}

/* ========== Product pages Mobile Fix ========== */
@media (max-width: 900px) {

  .page-product .page-inner {
    flex-direction: column !important;
  }

  .page-product .left,
  .page-product .right {
    width: 100% !important;
  }

  .page-product .left {
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .page-product .left img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0;
  }

  .page-product .right {
    padding: 30px 25px 40px !important;
    height: auto !important;
    min-height: unset !important;
  }
}

/* ========== PAGE MACHINES ========== */
.page-machines {
  background: var(--cream);
  flex-direction: column;
  padding: 80px 60px 50px;
}
.page-machines .header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  width: 100%;
}
.page-machines h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--purple);
}
.page-machines .subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.page-machines .gold-line {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin-top: 12px;
}
.machines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}
.machine-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.machine-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.machine-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f5f5f5;
  display: block;
  cursor: pointer;
}
.machine-card p {
  min-height: 1.2em;
}
.machine-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--purple);
  padding: 20px 20px 10px;
}
.machine-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dark);
  padding: 0 20px 15px;
}
.machine-card ul {
  list-style: none;
  padding: 0 20px 25px;
}
.machine-card ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0 4px 16px;
  position: relative;
}
.machine-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.machines-note {
  margin-top: 40px;
  text-align: center;
  padding: 25px;
  background: var(--white);
  border-radius: 6px;
  border-left: 4px solid var(--gold);
}
.machines-note p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.6;
}
.page-machines .footer-contact {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 30px;
}

@media (max-width: 900px) {
  .machines-grid {
    grid-template-columns: 1fr;
  }
  .page-machines {
    padding: 70px 30px 40px;
  }
}

/* Mobile fix only */
@media (max-width: 900px) {

  /* Page 1 cover — stack vertically */
  .page-1 { flex-direction: column; }
  .page-1 .left,
  .page-1 .right { width: 100% !important; }
  .page-1 .left { padding: 100px 25px 40px; text-align: center; align-items: center; }

  /* Page 2 about — stack */
  .page-2 { flex-direction: column; }
  .page-2 .left,
  .page-2 .right { width: 100% !important; }

  /* Product pages — stack */
  .page-product { flex-direction: column; }
  .page-product .left,
  .page-product .right,
  .page-product.alt .left,
  .page-product.alt .right { width: 100% !important; }

  /* Contact page — stack */
  .page-contact { flex-direction: column; }
  .page-contact .left,
  .page-contact .right { width: 100% !important; }

  /* Grids — single column */
  .vision-grid,
  .values-grid,
  .collection-grid,
  .machines-grid,
  .clients-grid,
  .smart-content { grid-template-columns: 1fr; display: grid; }

  /* Headings — center */
  .page-3 .header-row,
  .page-4 .header-row,
  .page-5 .header-row,
  .page-smart .header-row,
  .page-machines .header-row,
  .page-clients .header-row { flex-direction: column; text-align: center; }

  /* Reduce font sizes on mobile only */
  .page-1 h1,
  .page-2 h2,
  .page-3 h2,
  .page-4 h2,
  .page-5 h2,
  .page-smart h2,
  .page-machines h2,
  .page-clients h2,
  .page-product h2,
  .page-contact h2 { font-size: 1.6rem; }

  /* Reduce padding on mobile */
  .page-3,
  .page-4,
  .page-5,
  .page-smart,
  .page-machines,
  .page-clients { padding: 60px 20px 40px; }

  /* Images — fit width */
  .page-1 .right img,
  .page-2 .right img,
  .page-product .right img { width: 100%; height: auto; max-height: 60vh; }
}
/* ========== LANGUAGE SWITCHER ========== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1001;
}
.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 3px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Inter', 'Noto Naskh Arabic', sans-serif;
  letter-spacing: 0.5px;
}
.lang-btn:hover {
  color: #fff;
}
.lang-btn.active {
  background: var(--gold);
  color: var(--dark);
}

/* RTL adjustments when Arabic is active */
html[dir="rtl"] body {
  font-family: 'Noto Naskh Arabic', 'Inter', sans-serif;
}
html[dir="rtl"] .page-1 .left,
html[dir="rtl"] .page-2 .left,
html[dir="rtl"] .page-product .left,
html[dir="rtl"] .page-contact .left {
  text-align: right;
}
html[dir="rtl"] .page-2 .gold-line,
html[dir="rtl"] .page-3 .gold-line,
html[dir="rtl"] .page-4 .gold-line,
html[dir="rtl"] .page-5 .gold-line,
html[dir="rtl"] .page-smart .gold-line,
html[dir="rtl"] .page-machines .gold-line,
html[dir="rtl"] .page-clients .gold-line {
  margin-right: 0;
  margin-left: auto;
}
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}
html[dir="rtl"] .header-row {
  flex-direction: row-reverse;
}
html[dir="rtl"] .page-product ul li,
html[dir="rtl"] .page-product.alt ul li {
  padding-left: 0;
  padding-right: 18px;
}
html[dir="rtl"] .page-product ul li::before,
html[dir="rtl"] .page-product.alt ul li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .vision-card,
html[dir="rtl"] .value-item,
html[dir="rtl"] .collection-grid .item {
  text-align: right;
}
html[dir="rtl"] .smart-list li {
  text-align: right;
}
html[dir="rtl"] .machines-note {
  border-left: none;
  border-right: 4px solid var(--gold);
  text-align: right;
}
html[dir="rtl"] .contact-item {
  text-align: right;
}
html[dir="rtl"] .page-contact .left {
  text-align: right;
}
html[dir="rtl"] .page-1 h1,
html[dir="rtl"] .page-1 .tagline,
html[dir="rtl"] .page-1 .company-label {
  text-align: right;
}


























@media (max-width: 1100px) {
  .nav-right {
    margin-left: auto;
  }
  html[dir="rtl"] .nav-right {
    margin-left: 0;
    margin-right: auto;
  }
}

/* ========== LIGHTBOX / FULLSCREEN ZOOM (Machines only) ========== */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-img-wrap {
  max-width: 95vw;
  max-height: 85vh;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  transition: transform 0.2s ease;
  transform-origin: center center;
  cursor: grab;
}
.lightbox-img-wrap img:active {
  cursor: grabbing;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}
.lightbox-controls button {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-controls button:hover {
  background: rgba(255,255,255,0.3);
}
















/* ========== CONTACT FOOTER (Map + Image) ========== */
.contact-footer {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--darker);
}

/* Left: Google Map */
.footer-map-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.footer-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Right: Image */
.footer-map-image-wrap {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: var(--darker);
}

.footer-map-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.footer-map-image:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

/* Remove the empty .right column on desktop */
.page-contact .right {
  display: none;
}

/* When right column is hidden, left takes full width... but only if needed */
@media (min-width: 901px) {
  .page-contact .left {
    width: 100% !important;
    text-align: center;
    align-items: center;
    padding: 70px 50px;
  }
  .page-contact .brand {
    text-align: center;
  }
  .page-contact .tagline-small {
    text-align: center;
  }
}

/* Mobile: stack map and image vertically */
@media (max-width: 900px) {
  .contact-footer {
    grid-template-columns: 1fr;
  }
  .footer-map-container {
    height: 280px;
  }
  .footer-map-image-wrap {
    height: auto;
    padding: 20px 15px;
  }
  .footer-map-image {
    max-height: 300px;
  }
}