@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap");

/*===========================================
 GLOBAL
=========================================== */
:root {
  --red: #D32F2F;
  --grey: #F2F2F2;
  --text: #222;
  --header-offset: 164px;
}

* { box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  scroll-padding-top: var(--header-offset);
}

body{
  margin:0;
  overflow-x:hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:#fff;
}

a{ text-decoration:none; }
.brand-accent{
  color:var(--red);
}

/* ===========================================
   STICKY HEADER
=========================================== */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(10px);
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}

/* ============================= */
/* DESKTOP HEADER FIX */
/* ============================= */

.header-top{
  width:100%;
  padding:10px 40px;
}

.header-inner{
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:center;
}


/* LOGO LEFT */
.logo img{
  height: 97px;
  width:auto;
  object-fit:contain;
}




/* ===========================================
 HERO
=========================================== */
.hero-slider{
  height:80vh;
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
  text-align:center;
  color:#fff;
  overflow:hidden;
}
.hero-content{
  max-width:900px;
  padding:0 20px;
  z-index:10;
}
.hero-content h1{
  font-size:28px;
  line-height:1.3;
}
.hero-content p{ font-size:15px; }

.slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center 50%;
  opacity:0;
  transition:opacity .8s ease;
}
.slide{
  will-change: opacity;
  backface-visibility: hidden;
}


.slide.active{ opacity:1; }

.cta{
  background:var(--red);
  color:#fff;
  padding:12px 26px;
  border-radius:5px;
  font-weight:700;
  display:inline-block;
  margin-top:14px;
}

/* ===========================================
 SECTIONS
=========================================== */
section{ padding:60px 20px; }
section.light{ background:var(--grey); }

.content{
  max-width:1200px;
  margin:auto;
  display:flex;
  gap:40px;
  align-items:center;
}
.content.reverse{ flex-direction:row-reverse; }

.image img{
  width:100%;
  max-width:520px;
  border-radius:10px;
}
/* ===============================
   HYDRAULIC ELEVATOR IMAGE FIX
================================ */

.elevator-summary .image img{
  max-width: 360px;     /* bigger than current */
  width: 100%;
  object-fit: contain;
}

/* Desktop boost */
@media(min-width: 769px){
  .elevator-summary .content{
    align-items: flex-start;
  }

  .elevator-summary .image img{
    max-width: 420px;   /* strong visual presence */
  }
}


/* ===========================================
 PAGE HEADER
=========================================== */
.page-header{
  text-align:center;
  padding:70px 20px 50px;
}
.page-header h1{
  font-size:36px;
  color:var(--red);
}
.page-header p{
  font-size:17px;
  max-width:800px;
  margin:auto;
  color:#555;
}
/* ===========================================
 PAGE HEADER – BACKGROUND IMAGE (PAGE 2 & 3)
=========================================== */

.page-header{
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

/* Dark overlay for readability */
.page-header::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
  z-index:0;
}

/* Keep text above overlay */
.page-header h1,
.page-header p{
  position:relative;
  z-index:1;
  color:#fff;
}
/* Page 2 – Elevator Types */
body.elevators-page .page-header{
  background-image: url("../images/hero/elevator-bg.jpg");
}
/* Page 3 – Services */
body.services-page .page-header{
  background-image: url("../images/hero/services-bg.jpg");
}


/* ===========================================
 SELECTOR LAYOUT
=========================================== */
.selector-layout{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:260px 1fr;
  gap:40px;
  align-items:flex-start;
}

.selector-menu{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.selector-btn{
  background:#fff;
  border:1px solid #ddd;
  padding:14px 18px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  border-radius:6px;
  transition:.25s;
}
.selector-btn:hover{
  border-color:var(--red);
  color:var(--red);
}
.selector-btn.active{
  background:var(--red);
  color:#fff;
}

.selector-content{ position:relative; }
.selector-panel{
  display:none;
  animation:fadeIn .35s ease;
}
.selector-panel.active{ display:block; }

.selector-panel img{
  width:100%;
  max-width:520px;
  border-radius:10px;
}

.selector-panel h3{
  font-size:22px;
  color:var(--red);
}

/* ===========================================
 CABIN GRID
=========================================== */
.cabin-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:26px;
}
.cabin-box{
  background:#fff;
  padding:16px;
  border-radius:10px;
  text-align:center;
  border:2px solid transparent;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  transition:.3s;
}
.cabin-box:hover{
  border-color:#d32f2f;
  box-shadow:0 15px 35px rgba(211,47,47,.25);
  transform:translateY(-4px);
}
.cabin-box img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:14px;
}
.cabin-box p{
  margin-top:12px;
  font-size:16px;
  font-weight:600;
  color: var(--red);   /* brand red */
}


/* ===========================================
 DOOR SECTION — BIG DISPLAY
=========================================== */
#doors .selector-panel img{
  width:95%;
  max-width:800px;
  height:auto;
  aspect-ratio:4/5;
  object-fit:cover;
  border-radius:12px;
}

/* ===========================================
 INQUIRY FORM
=========================================== */
.inquiry-form{
  max-width:900px;
  margin:auto;
  background:#fff;
  padding:28px;
  border-radius:12px;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  gap:16px;
}
.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea{
  padding:12px 14px;
  border-radius:8px;
  border:1px solid #ddd;
  font-size:15px;
  outline:none;
  transition:.3s;
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus{
  border-color:#d32f2f;
  box-shadow:0 0 10px rgba(211,47,47,.25);
}
.inquiry-form button{
  align-self:center;
}

/* ===== REAL FULLSCREEN POPUP ===== */
/* ===== MODERN PREMIUM FULLSCREEN POPUP ===== */

.popup-overlay{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

/* Elegant centered box */
.popup-box{
  width: 90%;
  max-width: 900px;
  background:#111;
  border-radius:14px;
  padding:16px 22px 26px;
  box-shadow:0 20px 50px rgba(0,0,0,.6);
  position:relative;
  animation: popupShow .35s ease;
}
/* Hide popup arrows on mobile */
@media(max-width: 768px){
  .popup-arrow{
    display: none !important;
  }
}

/* Premium Image */
.popup-box img{
  width:100%;
  height: 85vh;          /* 👈 80–90% of screen height */
  max-height: 90vh;      /* safety limit */
  object-fit: cover;
  border-radius:14px;
  border:3px solid rgba(255,255,255,.12);
}


/* Close Button */
.popup-close{
  position:absolute;
  top:14px;
  right:18px;
  width:32px;
  height:32px;
  cursor:pointer;
}
.popup-close::before,
.popup-close::after{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width:28px;
  height:2px;
  background:#fff;
  border-radius:10px;
}
.popup-close::before{ transform:rotate(45deg); }
.popup-close::after{ transform:rotate(-45deg); }

/* Arrows */
.popup-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  background:rgba(0,0,0,.65);
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:32px;
  color:#fff;
  cursor:pointer;
  user-select:none;
  transition:.25s;
}

.popup-arrow:hover{
  background:#d32f2f;
}

.popup-arrow.left{ left:-24px; }
.popup-arrow.right{ right:-24px; }

/* Text styling */
.popup-box h3{
  margin:12px 0 6px;
  text-align:center;
  font-size:22px;
  color:#ff3b3b;
}

.popup-box p{
  margin:0;
  text-align:center;
  color:#ddd;
  font-size:15px;
}

/* ================= MOBILE POPUP – BETTER FULL HEIGHT ================= */
@media(max-width:768px){

  .popup-box{
    width:100%;
    padding:10px;
    height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
  }

  /* Bigger image – fills screen nicely */
  .popup-box img{
    width:100%;
    height: calc(100vh - 140px);   /* image height + space for text + padding */
    object-fit:cover;
    border-radius:12px;
  }

  /* hide arrows */
  .popup-arrow{
    display:none !important;
  }
}



/* Smooth entry animation */
@keyframes popupShow{
  from{ transform:scale(.92); opacity:.2; }
  to{ transform:scale(1); opacity:1; }
}

/* ===========================================
 FOOTER – PREMIUM
=========================================== */
.site-footer{
  background:#ffffff;     /* white background */
  color:#000000;          /* black text */
  margin-top:40px;
}

.footer-signature{
  background: linear-gradient(90deg, #b71c1c, #d32f2f, #b71c1c);
  color: #ffffff;
  text-align: center;
  padding: 18px 20px;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(211,47,47,.5);
}

.footer-inner{
  max-width:1200px;
  margin:auto;
  padding:60px 24px;
  display:grid;
  grid-template-columns:1.4fr 1fr 1.2fr;
  gap:50px;
}
.footer-brand img{
  max-height:60px;
  filter: drop-shadow(0 0 10px rgba(211,47,47,.35));
}

.footer-bottom{
  background:#f2f2f2;
  color:#000;
  text-align:center;
  padding:16px;
}
.site-footer::before{
  content:"";
  display:block;
  height:3px;
  background:linear-gradient(to right, transparent, #d32f2f, transparent);
}
.footer-links h4::after,
.footer-contact h4::after{
  content:"";
  width:36px;
  height:2px;
  display:block;
  margin-top:6px;
  background:linear-gradient(to right,#d32f2f,transparent);
  box-shadow:0 0 8px rgba(211,47,47,.6);
}
.footer-inner > div{ position:relative; }
.footer-inner > div:not(:last-child)::after{
  content:"";
  position:absolute;
  top:10%;
  right:-25px;
  width:1px;
  height:80%;
  background:linear-gradient(to bottom,transparent,rgba(255,255,255,.15),transparent);
}

/* ===========================================
 ANIMATIONS
=========================================== */
@keyframes fadeIn{
  from{opacity:0; transform:translateY(6px);}
  to{opacity:1; transform:translateY(0);}
}
@keyframes popupShow{
  from{ transform:scale(.92); opacity:.2;}
  to{ transform:scale(1); opacity:1;}
}

/* ===========================================
 RESPONSIVE
=========================================== */
@media(max-width:768px){

  .main-nav{ display:none; }

  .mobile-menu-btn{ display:block; }

  .content{ flex-direction:column; }

  .selector-layout{ grid-template-columns:1fr; }

  .footer-inner{
    grid-template-columns:1fr;
    gap:28px;
    text-align:center;
  }

  .footer-brand,
  .footer-links,
  .footer-contact{
    padding-bottom:20px;
    border-bottom:1px solid rgba(255,255,255,0.08);
  }
  .footer-contact{ border-bottom:none; }

  .footer-signature{
    font-size:14px;
    padding:14px 16px;
    box-shadow:0 -3px 12px rgba(211,47,47,.35);
  }

  .cabin-grid{ grid-template-columns:repeat(2,1fr); }
  .cabin-box img{ height:180px; }

  #doors .selector-panel img{
    width:100%;
    aspect-ratio:3/4;
  }

  .form-row{ grid-template-columns:1fr; }

  .popup-arrow{ display:none; }
  .popup-box{ width:100%; padding:12px; }
  .popup-box img{ height:380px; }
}
/* ============================= */
/* MOBILE HEADER – CENTER LOGO & BIGGER */
/* ============================= */
@media (max-width: 768px){
  :root{
    --header-offset: 148px;
  }

  .header-inner{
    justify-content:center;
  }

  .logo{
    text-align:center;
    width:100%;
  }

  .logo img{
    height:100px;    /* adjust size if needed */
    width:auto;
    margin:0 auto;
    display:block;
  }
}
/* ============================= */
/* DESKTOP NAVIGATION FIX */
/* ============================= */

.main-nav{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:40px;
  padding:12px 0;
  background:#fff;
  border-top:1px solid rgba(0,0,0,.06);
}

.main-nav a{
  font-size:16px;
  font-weight:600;
  color:#222 !important;      /* stop purple links */
  text-decoration:none;
  transition:.3s;
}

.main-nav a:hover{
  color:#D32F2F;
}

/* Remove purple visited behavior */
.main-nav a:visited{
  color:#222;
}
.nav-dropdown{
  position:relative;
}

.dropdown-menu{
  display:none;
  position:absolute;
  background:#fff;
  min-width:200px;
  padding:10px 0;
  box-shadow:0 8px 20px rgba(0,0,0,.12);
  border-radius:6px;
  z-index:999;
}

.dropdown-menu a{
  display:block;
  padding:10px 14px;
  color:#222;
}

.dropdown-menu a:hover{
  background:#f5f5f5;
  color:#D32F2F;
}

@media(min-width:769px){
  .nav-dropdown:hover .dropdown-menu{
    display:block;
  }
}
/* ===========================================
 HIDE MOBILE MENU IN DESKTOP
=========================================== */
@media (min-width: 769px){
  .mobile-menu{
    display: none !important;
  }
}
/* ============================= */
/* MOBILE NAVIGATION – FINAL FIX */
/* ============================= */
@media (max-width: 768px){

  /* Hide desktop nav on mobile */
  .main-nav{
    display:none !important;
  }

  /* Hamburger button */
  .mobile-menu-btn{
    display:block;
    font-size:30px;
    background:none;
    border:none;
    margin:10px 20px;
    cursor:pointer;
  }

  /* Mobile menu box */
  .mobile-menu{
    display:none;
    flex-direction:column;
    gap:12px;
    width:100%;
    padding:14px 0;
    text-align:center;
    background:#ffffff;
    border-top:1px solid rgba(0,0,0,.08);
    box-shadow:0 12px 24px rgba(0,0,0,.08);
  }

  /* Show when opened */
  .mobile-menu.open{
    display:flex !important;
  }

  /* Normal links */
  .mobile-menu a{
    font-size:16px;
    font-weight:600;
    color:#222 !important;
    text-decoration:none;
    padding:6px 0;
  }

  /* Remove ugly purple visited */
  .mobile-menu a:visited{
    color:#222 !important;
  }

  .mobile-menu a:hover{
    color:#D32F2F !important;
  }

  /* ============================= */
  /* MAC MODELS DROPDOWN BUTTON */
  /* ============================= */
  .mobile-sub-toggle{
    background:none;
    border:1px solid #ddd;
    padding:8px 14px;
    border-radius:6px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
  }

  .mobile-sub-toggle:hover{
    color:#D32F2F;
    border-color:#D32F2F;
  }

  /* Sub menu */
  .mobile-sub{
    display:none;
    flex-direction:column;
    gap:8px;
    padding-top:4px;
  }

  /* Show when open */
  .mobile-sub.open{
    display:flex;
  }

  .mobile-sub a{
    font-size:15px;
    color:#444 !important;
  }
}
/* ============================= */
/* CONTROL PANELS – CATALOG STYLE */
/* ============================= */
.control-premium{
  max-width:1200px;
  margin:auto;
  display:flex;
  flex-direction:column;
  gap:40px;
}

/* Each Row Card */
.control-row{
  display:flex;
  gap:30px;
  background:#fff;
  padding:24px;
  border-radius:14px;
  box-shadow:0 15px 40px rgba(0,0,0,.12);
  align-items:center;
  transition:.3s;
}

/* Hover feel */
.control-row:hover{
  transform: translateY(-6px);
  box-shadow:0 25px 60px rgba(211,47,47,.25);
}

/* Alternate Layout Support */
.control-row.reverse{
  flex-direction:row-reverse;
}

/* Panel Image */
.control-image img{
  width:340px;
  height:300px;
  object-fit:contain;
  border-radius:10px;
}

/* Text Area */
.control-text h3{
  color:#d32f2f;
  margin-bottom:10px;
}

.control-text ul{
  padding-left:18px;
}

.control-text ul li{
  margin-bottom:6px;
  font-size:15px;
}

/* ============================= */
/* MOBILE RESPONSIVE */
/* ============================= */
@media(max-width:768px){

  .control-row,
  .control-row.reverse{
    flex-direction:column;
    text-align:center;
  }

  .control-image img{
    width:90%;
    height:220px;
  }

  .control-text ul{
    text-align:left;
  }
}
/* ============================= */
/* CONTROL PANEL – ALTERNATE SLIDE ANIMATION */
/* ============================= */

/* Hidden state */
.control-row{
  opacity:0;
  transform: translateX(-60px);
  transition: all .9s cubic-bezier(.19,1,.22,1);
}

/* Right side rows default from right */
.control-row.reverse{
  transform: translateX(60px);
}

/* Visible */
.control-row.show{
  opacity:1;
  transform: translateX(0);
}

/* Stagger effect */
.control-row:nth-child(1){ transition-delay: .05s; }
.control-row:nth-child(2){ transition-delay: .15s; }
.control-row:nth-child(3){ transition-delay: .25s; }
.control-row:nth-child(4){ transition-delay: .35s; }

/* ================= MOBILE POPUP – IMAGE 85% SCREEN HEIGHT ================= */
@media(max-width:768px){

  /* Make popup full screen */
  .popup-box{
    width:100%;
    height:100vh;
    padding:10px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;
  }

  /* IMAGE TAKES 85% OF SCREEN HEIGHT */
  .popup-box img{
    width:100%;
    height:85vh;
    object-fit:cover;
    border-radius:12px;
  }

  /* caption remains below image */
  .popup-box h3,
  .popup-box p{
    margin-top:6px;
    text-align:center;
  }

  /* Hide arrows on mobile */
  .popup-arrow{
    display:none !important;
  }
}
/* ================= FOOTER QUICK LINKS FIX ================= */
.footer-links a{
  display:block;
  margin:10px 0;
  font-size:15px;
  color:#333;
  font-weight:500;
  position:relative;
  padding-left:14px;
  transition:.3s;
}

.footer-links a::before{
  content:"›";
  position:absolute;
  left:0;
  color:#d32f2f;
  font-weight:700;
}

.footer-links a:hover{
  color:#d32f2f;
  transform:translateX(4px);
}
.footer-contact p,
.footer-contact a{
  line-height:1.7;
  font-size:15px;
}

.footer-contact a{
  color:#222;
  font-weight:600;
}

.footer-contact a:hover{
  color:#d32f2f;
}

/* ============================= */
/* PAGE 1 – SECTION 2 (OUR VISION) */
/* ============================= */

.section-vision{
  background: #f2f2f2;
  border: 1px solid rgba(0,0,0,0.15);     /* black outline */
  box-shadow: 0 8px 25px rgba(0,0,0,0.25); /* soft shadow */
  margin: 40px auto;
  border-radius: 14px;
}

/* Our Vision heading */
.section-vision h2{
  color: #d32f2f;      /* brand red */
  font-size: 32px;
  margin-bottom: 14px;
}

/* Our Vision paragraph text */
.section-vision p{
  color: #666;         /* soft gray */
  font-size: 17px;
  line-height: 1.7;
}


/* ============================= */
/* MOBILE – VISION SECTION ORDER FIX */
/* ============================= */

@media (max-width: 768px){

  

  /* Move image to top */
  .section-vision .image{
    order: 1;
    margin-bottom: 20px;
  }

  /* Move text below */
  .section-vision .text{
    order: 2;
    text-align: center;
  }

  .section-vision h2{
    text-align: center;
  }

}


/* ==================================================
   PAGE 1 – SECTION 2 (OUR VISION) – FINAL POLISH
================================================== */

/* Section container */
.section-vision{
  background:#f2f2f2;
  border:1px solid rgba(0,0,0,0.18);
  border-radius:16px;

  /* GLOW EFFECT (premium, soft) */
  box-shadow:
    0 0 0 rgba(0,0,0,0),
    0 0 40px rgba(0,0,0,0.35);

  margin:60px auto;
  padding:70px 30px;

  /* Animation default state */
  opacity:0;
  transform:translateY(50px);
  transition:all 1s cubic-bezier(.19,1,.22,1);
}
.section-vision .image{
  flex:1;
  display:flex;
  justify-content:center;
}

.section-vision .image img{
  width:100%;
  max-width:480px;
  border-radius:18px;
}

/* When visible */
.section-vision.show{
  opacity:1;
  transform:translateY(0);
}


/* Heading */
.section-vision h2{
  color:#d32f2f;
  font-size:34px;
  margin-bottom:18px;
}

/* Paragraph text */
.section-vision p{
  color:#666;
  font-size:17px;
  line-height:1.9;
  margin:0;
}


/* =====================================
   OUR VISION – TEXT ALIGN FIX
===================================== */

.section-vision .content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:60px;
}

.section-vision .text{
  max-width:600px;
  text-align:left;
}

.section-vision h2{
  text-align:left;
}

.section-vision p{
  text-align:left;
}

/* =====================================
   PAGE 1 – ELEVATOR TYPES SECTION
===================================== */

.elevator-types{
  padding:80px 20px;
  background:#fff;
}

.elevator-types .section-header{
  text-align:center;
  margin-bottom:50px;
}

.elevator-types h2{
  color:#d32f2f;
  font-size:34px;
  margin-bottom:10px;
}

.elevator-types .section-header p{
  color:#666;
  font-size:17px;
}

/* GRID */
.elevator-grid{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:30px;
  align-items:stretch;
}


/* CARD */
.elevator-card{
  background:#fff;
  padding:25px 20px;
  border-radius:14px;
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  height:100%;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  transition: all .35s cubic-bezier(.19,1,.22,1);
  border:1px solid #eee;
}


.elevator-card img{
  height:160px;
  object-fit:contain;
  margin-bottom:18px;
}

.elevator-card h3{
  min-height:50px;
}

.elevator-card p{
  flex-grow:1;
}
.elevator-card:hover{
  transform:translateY(-12px);
  box-shadow:0 25px 60px rgba(211,47,47,.25);
  border-color:#d32f2f;
}

.elevator-card:hover h3{
  color:#b71c1c;
}
.elevator-card img{
  transition: transform .4s ease;
}

.elevator-card:hover img{
  transform:scale(1.05);
}

.elevator-card span{
  display:block;
  font-size:13px;
  font-weight:700;
  color:#111;
  margin-bottom:10px;
}

.elevator-card p{
  font-size:15px;
  color:#777;
  line-height:1.6;
  margin-bottom:10px;
}

.elevator-card a{
  color:#d32f2f;
  font-weight:600;
  font-size:14px;
}

.elevator-card a:hover{
  text-decoration:underline;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

  .elevator-grid{
    grid-template-columns:1fr;
    gap:60px;
  }

  .elevator-card img{
    max-height:260px;
  }

}
/* ======================================
   MOTOR SPECIFICATION LAYOUT
====================================== */

.spec-layout{
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap:40px;
  align-items:center;
}

/* LEFT COLUMN */
.spec-left img{
  width:100%;
  max-width:420px;
  display:block;
  margin-bottom:30px;
}

.spec-diagram{
  max-width:300px;
  opacity:.9;
}

/* RIGHT COLUMN TEXT */
.spec-description{
  font-size:15px;
  line-height:1.7;
  color:#555;
  margin-bottom:24px;
}

/* SPEC TABLE */
.spec-table{
  width:100%;
  border-collapse:collapse;
  font-size:14.5px;
}

.spec-table th{
  width:35%;
  text-align:left;
  background:#f2f2f2;
  color:#333;
  padding:12px 14px;
  font-weight:600;
  border:1px solid #ddd;
}

.spec-table td{
  padding:12px 14px;
  border:1px solid #ddd;
  color:#444;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

  .spec-layout{
    grid-template-columns:1fr;
    align-items:center;
  }

  /* Center image on mobile */
  .spec-left{
    display:flex;
    justify-content:center;
    margin-bottom:30px;   /* space before text */
  }

  .spec-left img{
    max-width:85%;
    height:auto;
  }
}

@media(max-width:768px){

  /* Ensure full-width spec block */
  .motor-details{
    padding-left: 16px;
    padding-right: 16px;
  }

  .spec-layout{
    grid-template-columns:1fr;
    width:100%;
  }

  /* Fix text alignment & width */
  .spec-right{
    width:100%;
    max-width:100%;
    padding:0;
  }

  .spec-description{
    width:100%;
    max-width:100%;
    margin-left:auto;
    margin-right:auto;
    text-align:left;
    line-height:1.7;
  }

  /* Table should not overflow */
  .spec-table{
    width:100%;
    table-layout:fixed;
    word-wrap:break-word;
  }

  .spec-table th,
  .spec-table td{
    word-break:break-word;
  }
}
/* ================================
   SPEC IMAGE ALIGNMENT FIX (DESKTOP)
================================ */

/* Center image within left column */
.spec-left{
  display: flex;
  flex-direction: column;
  align-items: center;   /* 👈 key fix */
}
.motor-details{
  margin-bottom: 80px;
  padding-bottom: 60px;
  position: relative;
}

.motor-details::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.25),
    transparent
  );
}
/* ===============================
   ANCHOR SCROLL OFFSET FIX
================================ */

.motor-details,
.elevator-summary{
  scroll-margin-top: var(--header-offset);
}
/* =============================
   CONTROL PANEL – REMOVE DOTS
============================= */

.control-text ul{
  list-style: none;      /* removes dots */
  padding-left: 0;       /* removes left indentation */
  margin-left: 0;
}

.control-text ul li{
  padding-left: 0;
}
.control-text ul li::before{
  content: "➤";
  color: var(--red);
  margin-right: 8px;
}
/* ===============================
   HYDRAULIC TEXT FORMATTING
================================ */

.elevator-summary .text p{
  font-size:16px;
  line-height:1.8;
  color:#555;
  margin-bottom:16px;
  max-width:720px;
}

.elevator-summary h4{
  margin:20px 0 10px;
  color: var(--red);
  font-size:18px;
}

.hyd-list{
  list-style:none;
  padding-left:0;
  margin-bottom:22px;
}

.hyd-list li{
  margin-bottom:12px;
  padding-left:18px;
  position:relative;
  font-size:15.5px;
  line-height:1.7;
  color:#444;
}

.hyd-list li::before{
  content:"▸";
  position:absolute;
  left:0;
  color:var(--red);
  font-weight:bold;
}
/* =====================================
   FUTURISTIC LOCATIONS SECTION
===================================== */

.locations-future{
  padding:90px 20px;
  background:
    radial-gradient(circle at top, #1a1a1a, #000);
  color:#fff;
}

.locations-future .section-header{
  text-align:center;
  margin-bottom:60px;
}

.locations-future h2{
  color:#fff;
  font-size:36px;
}

.locations-future p{
  color:#aaa;
  font-size:17px;
}

/* GRID */
.location-grid{
  max-width:1100px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:40px;
}

/* CARD */
.location-card-future{
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  border-radius:18px;
  padding:36px;
  position:relative;
  box-shadow:
    0 0 0 rgba(0,0,0,0),
    0 0 60px rgba(211,47,47,0.15);
  transition:.5s;
  border:1px solid rgba(255,255,255,0.15);
}

/* Glow Border */
.location-card-future::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:18px;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(211,47,47,.7),
    transparent
  );
  opacity:0;
  transition:.5s;
  z-index:-1;
}

/* Hover Effect */
.location-card-future:hover{
  transform: translateY(-10px);
  box-shadow:0 30px 80px rgba(211,47,47,.35);
}

.location-card-future:hover::before{
  opacity:1;
}

/* TEXT */
.location-card-future h3{
  color:#ff4d4d;
  font-size:22px;
  margin-bottom:14px;
}

.location-card-future p{
  color:#ddd;
  line-height:1.7;
  font-size:16px;
}

/* BUTTON */
.map-btn{
  display:inline-block;
  margin-top:20px;
  padding:10px 22px;
  border-radius:30px;
  border:1px solid rgba(255,255,255,0.3);
  color:#fff;
  font-weight:600;
  transition:.3s;
}

.map-btn:hover{
  background:#d32f2f;
  border-color:#d32f2f;
  color:#fff;
}

/* =====================================
   LOCATIONS – SIMPLE STACKED MOBILE
===================================== */

@media(max-width:768px){

  /* Section spacing */
  .locations-future{
    padding:40px 16px;
    background:#000; /* keep dark background */
  }

  /* Stack cards */
  .location-grid{
    display:flex;
    flex-direction:column;
    gap:20px;
  }

  /* Simplify card */
  .location-card-future{
    padding:20px;
    border-radius:14px;
    background: rgba(255,255,255,0.08);
    box-shadow:0 10px 24px rgba(0,0,0,0.4);
    transform:none;        /* remove floating effect */
  }

  
}

/* =====================================
   PAGE 3 – SERVICES INFOGRAPHIC
===================================== */

.services-visual{
  padding:100px 20px;
  background:#fff;
}

.services-image-wrap{
  max-width:1400px;
  margin:auto;
  display:flex;
  justify-content:center;
}

.services-image-wrap img{
  width:100%;
  max-width:1100px;     /* BIG on desktop */
  height:auto;
}

/* Mobile optimization */
@media(max-width:768px){
  .services-visual{
    padding:60px 16px;
  }

  .services-image-wrap img{
    max-width:100%;
  }
}
/* =====================================
   PAGE 3 – FUTURISTIC ABOUT SECTION
===================================== */

.about-future{
  padding:110px 20px;
  background:
    linear-gradient(180deg,#111,#000);
  color:#fff;
}

.about-grid{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:60px;
  align-items:center;
}

/* TEXT */
.about-text h2{
  font-size:38px;
  color:#ff4d4d;
  margin-bottom:20px;
}

.about-lead{
  font-size:20px;
  line-height:1.7;
  color:#eee;
  margin-bottom:22px;
}

.about-text p{
  font-size:16.5px;
  line-height:1.8;
  color:#bbb;
  margin-bottom:16px;
}

/* IMAGE */
.about-image img{
  width:100%;
  border-radius:18px;
  box-shadow:0 30px 70px rgba(0,0,0,.6);
}

/* MOBILE */
@media(max-width:768px){
  .about-grid{
    grid-template-columns:1fr;
    gap:40px;
    text-align:center;
  }

  .about-text h2{
    font-size:30px;
  }

  .about-lead{
    font-size:18px;
  }
}
/* =====================================
   SERVICES IMAGE – SCROLL ANIMATION
===================================== */

.services-animate{
  opacity:0;
  transform: translateY(40px) scale(0.96);
  transition: all 1s cubic-bezier(.19,1,.22,1);
}

.services-animate.show{
  opacity:1;
  transform: translateY(0) scale(1);
}
/* =====================================
   GLOWING DIVIDER – SERVICES → ABOUT
===================================== */

.glow-divider{
  width:100%;
  height:2px;
  margin:10px 0;

  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.9),
    rgba(211,47,47,0.8),
    rgba(255,255,255,0.9),
    transparent
  );

  box-shadow:
    0 0 18px rgba(255,255,255,0.6),
    0 0 30px rgba(211,47,47,0.45);
}

/* Mobile spacing */
@media(max-width:768px){
  .glow-divider{
    margin:0.5px 0;
  }
}
@media(max-width:768px){
  .page-header + .motor-details{
    margin-top: 60px;
  }
}
/* ================= FOOTER WHITE THEME FIX ================= */

.site-footer a{
  color:#000000;          /* remove blue */
  text-decoration:none;
}

.site-footer a:visited{
  color:#000000;
}

.site-footer a:hover{
  color:#D32F2F;          /* brand red on hover */
}

/* Paragraph text */
.site-footer p,
.site-footer h4,
.site-footer div{
  color:#000000;
}
/* ============================= */
/* PREMIUM SHOWROOM POPUP UPGRADE */
/* ============================= */

.popup-overlay{
  background: radial-gradient(circle at center, rgba(20,20,20,.95), rgba(0,0,0,.98));
  backdrop-filter: blur(10px);
}

/* Floating glass frame */
.popup-box{
  background: linear-gradient(180deg, #111, #000);
  border-radius: 18px;
  box-shadow:
    0 0 80px rgba(211,47,47,.25),
    0 30px 80px rgba(0,0,0,.9);
}

/* Cinematic image */
.popup-box img{
  border-radius: 16px;
  box-shadow:
    0 0 30px rgba(255,215,120,.25),
    0 25px 80px rgba(0,0,0,.9);
  transition: transform .6s ease, box-shadow .6s ease;
}

/* Subtle zoom */
.popup-box img:hover{
  transform: scale(1.03);
}

/* Premium arrows */
.popup-arrow{
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
}

.popup-arrow:hover{
  background: rgba(211,47,47,.85);
  box-shadow: 0 0 25px rgba(211,47,47,.8);
}

/* Luxury caption */
.popup-box h3{
  font-size: 24px;
  letter-spacing: .5px;
  text-shadow: 0 0 20px rgba(211,47,47,.6);
}

.popup-box p{
  font-size: 16px;
  color: #bbb;
}
/* ============================= */
/* PREMIUM LIST STYLE (RED ARROWS) */
/* ============================= */

.content ul{
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.content ul li{
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

/* Red arrow */
.content ul li::before{
  content: "➤";
  position: absolute;
  left: 0;
  top: 0;
  color: #d32f2f;
  font-size: 18px;
  font-weight: bold;
}
@media(max-width:768px){

  body.services-page .content{
    align-items:stretch;      /* allow full-width children */
  }

  body.services-page .content .image{
    width:100%;
    max-width:100%;
    flex:0 0 100%;
    display:block;
    margin:20px 0;
  }

  body.services-page .content .image img{
    width:100%;
    max-width:100%;
    height:auto;
    display:block;
    margin:0 auto;
  }

}
/* FORCE normal column order on mobile */
@media(max-width:768px){
  .content.reverse{
    flex-direction: column !important;
  }
}
/* Hide hamburger menu on desktop */
.mobile-menu-btn{
  display:none;
}

/* Show hamburger only on mobile */
@media(max-width:768px){
  .mobile-menu-btn{
    display:block;
  }
}
/* ================================
   HERO – DESKTOP FONT BOOST (FIXED)
================================ */
@media(min-width:1024px){

  .hero-content h1{
    font-size: 64px;
    line-height: 1.15;
    letter-spacing: 0.6px;
  }

  .hero-content p{
    font-size: 20px;
    max-width: 720px;
    margin: 0 auto;
  }

  .hero-content .cta{
    font-size: 18px;
    padding: 16px 36px;
  }

}

/* ================================
   HERO TEXT READABILITY OVERLAY
================================ */

.hero-slider::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.05)
  );
  z-index:1;
}

/* Put text above overlay */
.hero-content{
  position:relative;
  z-index:2;
}

/* Improve text contrast */
.hero-content h1,
.hero-content p{
  text-shadow: 0 3px 15px rgba(0,0,0,0.7);
}
img{
  image-rendering: auto;
  transform: translateZ(0);
}
/* =====================================
   IMAGE SHARPNESS FIX (CABINS + DOORS)
===================================== */
.popup-box img,
.cabin-box img,
#doors .selector-panel img{
  image-rendering: auto;
  transform: none !important;
  backface-visibility: hidden;
}

.popup-box,
.cabin-box,
#doors .selector-panel{
  transform: translateZ(0);
}

/* Use natural pixel size */
.popup-box img{
  max-width: 100%;
  width: auto;
  height: auto;
}
/* =====================================
   POPUP IMAGE – DESKTOP FIT FIX
===================================== */
@media(min-width: 769px){

  .popup-box img{
    width:100%;
    height: 80vh;
    max-height: 85vh;
    object-fit: contain;   /* 👈 show full product */
    background:#000;      /* clean letterboxing */
  }

}
/* =====================================
   WHY CHOOSE US – PREMIUM REDESIGN
===================================== */

.why-section{
  padding:90px 20px;
  background:#f9f9f9;
}

.why-container{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:60px;
  align-items:center;
}

.why-text h2{
  font-size:34px;
  color:#d32f2f;
  margin-bottom:12px;
}

.why-intro{
  font-size:18px;
  color:#666;
  margin-bottom:40px;
}

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

.why-card{
  background:#fff;
  padding:25px;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  transition:.35s ease;
  border:1px solid #eee;
}

.why-card:hover{
  transform:translateY(-8px);
  box-shadow:0 25px 50px rgba(211,47,47,.25);
  border-color:#d32f2f;
}

.why-card h3{
  color:#d32f2f;
  margin-bottom:10px;
  font-size:18px;
}

.why-card p{
  color:#555;
  font-size:15px;
  line-height:1.6;
}

.why-image img{
  width:100%;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
}

/* Mobile */
@media(max-width:768px){

  .why-container{
    grid-template-columns:1fr;
    text-align:center;
  }

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

}
/* =====================================
   MAINTENANCE SECTION – PAGE 3
===================================== */

.maintenance-section{
  padding:100px 20px;
  background:#f9f9f9;
}

.maintenance-container{
  max-width:1200px;
  margin:auto;
}

.maintenance-intro h2{
  font-size:36px;
  color:#d32f2f;
  margin-bottom:20px;
}

.maintenance-intro p{
  font-size:17px;
  line-height:1.8;
  color:#555;
  margin-bottom:18px;
  max-width:900px;
}

.maintenance-table{
  margin-top:60px;
}

.maintenance-table h3{
  font-size:22px;
  margin-bottom:25px;
  color:#111;
}

/* TABLE DESIGN */
.maintenance-table table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,.08);
}

.maintenance-table th{
  background:#d32f2f;
  color:#fff;
  padding:18px;
  text-align:center;
  font-size:15px;
}

.maintenance-table td{
  padding:16px;
  border-bottom:1px solid #eee;
  text-align:center;
  font-size:14.5px;
}

.maintenance-table td:first-child{
  text-align:left;
  font-weight:600;
  background:#fafafa;
}

/* Hover row */
.maintenance-table tr:hover{
  background:#fff5f5;
}

/* Mobile */
@media(max-width:768px){

  .maintenance-table table{
    font-size:13px;
  }

  .maintenance-table th,
  .maintenance-table td{
    padding:10px;
  }

}
/* =====================================
   CONTACT PAGE
===================================== */

/* ===============================
   PREMIUM CONTENT BLOCK
================================ */

.premium-block{
  padding:110px 20px;
  background:#f8f9fb;
}

.container.narrow{
  max-width:900px;
  margin:auto;
}

.premium-block h1{
  font-size:38px;
  color:#111;
  line-height:1.3;
  margin-bottom:15px;
}

.premium-block h1 span{
  color:#d32f2f;
}

.divider-line{
  width:70px;
  height:4px;
  background:#d32f2f;
  margin:25px 0 30px 0;
}

.lead-text{
  font-size:19px;
  font-weight:500;
  color:#333;
  margin-bottom:18px;
}

.premium-block p{
  font-size:17px;
  line-height:1.85;
  color:#555;
  margin-bottom:16px;
}

.sub-heading{
  margin-top:45px;
  font-size:24px;
  color:#111;
}


.contact-form-section{
  padding:80px 20px;
  background:#f2f2f2;
}
/* ===============================
   PRIVACY SECTION UPGRADE
================================ */

.privacy-section{
  padding:100px 20px;
  background:#ffffff;
}

.section-title{
  font-size:32px;
  color:#d32f2f;
}

.policy-card{
  background:#f9fafc;
  padding:25px 30px;
  border-radius:12px;
  margin-bottom:25px;
  border:1px solid #eee;
  transition:.3s ease;
}

.policy-card:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 40px rgba(0,0,0,.08);
}

.policy-card h3{
  margin-bottom:12px;
  color:#111;
  font-size:18px;
}

.policy-card p{
  color:#555;
  line-height:1.8;
  font-size:15.5px;
}
/* =====================================
   PREMIUM CONTACT SECTION
===================================== */

.premium-contact{
  padding:110px 20px;
  background:linear-gradient(180deg,#f8f9fb,#eef1f6);
}

.contact-wrapper{
  max-width:1100px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:60px;
  align-items:center;
}

.contact-left h2{
  font-size:34px;
  margin-bottom:15px;
  color:#111;
}

.contact-left p{
  color:#555;
  line-height:1.8;
  margin-bottom:25px;
}

.contact-info-box{
  background:#fff;
  padding:20px;
  border-radius:12px;
  border-left:4px solid #d32f2f;
  box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.contact-info-box p{
  margin-bottom:12px;
  font-size:15px;
}

/* FORM CARD */

.contact-right{
  background:#fff;
  padding:40px;
  border-radius:18px;
  box-shadow:0 25px 60px rgba(0,0,0,.1);
}

.inquiry-form input,
.inquiry-form textarea{
  background:#f9fafc;
  border:1px solid #ddd;
  padding:14px;
  border-radius:10px;
  font-size:14px;
  transition:.3s ease;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus{
  border-color:#d32f2f;
  outline:none;
  box-shadow:0 0 0 3px rgba(211,47,47,.1);
}

.inquiry-form button{
  margin-top:15px;
  width:180px;
}

/* MOBILE */
@media(max-width:768px){

  .contact-wrapper{
    grid-template-columns:1fr;
  }

  .contact-left{
    text-align:center;
  }

}

/* =====================================
   HEADER + CARD POLISH
===================================== */
:root{
  --header-offset: 162px;
}

body{
  font-family:"Manrope","Segoe UI",sans-serif;
}

h1,
h2,
h3,
h4,
.main-nav > a,
.main-nav > .nav-dropdown > a,
.mobile-menu a,
.mobile-sub-toggle{
  font-family:"Sora","Manrope","Segoe UI",sans-serif;
}

.site-header{
  background:linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(248,248,250,.96) 100%);
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  border-bottom:1px solid rgba(17,24,39,.08);
}

.header-top{
  padding:10px 24px 8px;
}

.header-inner{
  max-width:1280px;
  min-height:0;
}

.logo{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}

.logo a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}

.logo img{
  display:block;
  width:min(100%, 238px);
  height:auto;
  max-width:238px;
  object-fit:contain;
  filter:drop-shadow(0 8px 18px rgba(15,23,42,.08));
}

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

.main-nav{
  gap:16px;
  padding:8px 20px 12px;
  border-top:1px solid rgba(17,24,39,.05);
  flex-wrap:wrap;
  align-items:center;
}

.main-nav > a,
.main-nav > .nav-dropdown > a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 20px;
  border-radius:999px;
  background:transparent;
  color:#1f2937 !important;
  font-size:16px;
  font-weight:700;
  letter-spacing:.02em;
  gap:.28rem;
  white-space:nowrap;
  transition:color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.nav-link-label,
.nav-caret{
  display:inline-block;
}

.nav-caret{
  font-size:.9em;
  transform:translateY(-1px);
}

.main-nav > a:hover,
.main-nav > .nav-dropdown > a:hover,
.main-nav > a:focus-visible,
.main-nav > .nav-dropdown > a:focus-visible{
  color:var(--red) !important;
  background:rgba(211,47,47,.08);
  box-shadow:inset 0 0 0 1px rgba(211,47,47,.14);
  outline:none;
  transform:translateY(-1px);
}

.dropdown-menu{
  top:calc(100% + 10px);
  min-width:230px;
  padding:10px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:16px;
  box-shadow:0 18px 40px rgba(15,23,42,.12);
}

.dropdown-menu a{
  border-radius:12px;
  padding:12px 14px;
  font-size:15px;
  font-weight:600;
}

.dropdown-menu a:hover{
  background:rgba(211,47,47,.08);
}

.mobile-menu-btn{
  margin:0 18px 12px auto;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.12);
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
  font-size:26px;
  line-height:1;
}

.mobile-menu{
  margin:0 14px 14px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:20px;
  padding:18px 16px;
}

.mobile-menu a{
  padding:10px 12px;
  border-radius:12px;
  font-size:17px;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible{
  background:rgba(211,47,47,.08);
  outline:none;
}

.mobile-sub-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.28rem;
  padding:12px 16px;
  border-radius:12px;
  font-size:17px;
  font-weight:700;
  white-space:nowrap;
}

.mobile-sub{
  padding-top:10px;
}

.mobile-sub a{
  padding:8px 12px;
  font-family:"Manrope","Segoe UI",sans-serif;
  font-size:15px;
}

.motor-details .spec-right h2,
.elevator-summary .text h2{
  margin:0 0 24px;
  color:#161616;
  font-size:clamp(32px, 2.5vw, 42px);
  line-height:1.05;
  letter-spacing:-.02em;
}

#imagePopup.popup-overlay{
  padding:20px;
  background:
    radial-gradient(circle at center, rgba(181,24,24,.18), transparent 38%),
    rgba(7,11,18,.82);
  backdrop-filter:blur(14px);
}

#imagePopup .popup-box{
  position:relative;
  overflow:hidden;
}

#imagePopup .popup-close{
  z-index:3;
}

#imagePopup .popup-arrow{
  appearance:none;
  border:none;
  padding:0;
  transition:background-color .25s ease, box-shadow .25s ease, transform .25s ease, color .25s ease;
}

@media(min-width:992px){
  #imagePopup.popup-overlay{
    padding:40px 32px;
  }

  #imagePopup .popup-box{
    --popup-info-width: 300px;
    --popup-gap: 28px;
    --popup-pad: 28px;
    width:min(1120px, 92vw);
    max-width:none;
    min-height:min(76vh, 820px);
    padding:var(--popup-pad);
    display:grid;
    grid-template-columns:minmax(0, 1fr) var(--popup-info-width);
    grid-template-rows:auto 1fr;
    grid-template-areas:
      "image title"
      "image desc";
    gap:24px var(--popup-gap);
    align-items:start;
    background:linear-gradient(180deg, #ffffff 0%, #f5f4f1 100%);
    border:1px solid rgba(17,24,39,.12);
    border-radius:28px;
    box-shadow:0 36px 90px rgba(0,0,0,.32);
  }

  #imagePopup #popupImg{
    grid-area:image;
    width:100%;
    height:min(72vh, 760px);
    max-height:none;
    object-fit:contain;
    background:linear-gradient(135deg, #0b1119 0%, #101827 45%, #1f2937 100%);
    border:1px solid rgba(17,24,39,.08);
    border-radius:22px;
    padding:18px;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.04),
      0 18px 45px rgba(15,23,42,.18);
  }

  #imagePopup #popupTitle{
    grid-area:title;
    margin:72px 0 10px;
    text-align:left;
    font-size:34px;
    line-height:1.08;
    color:#9f1d1d;
  }

  #imagePopup #popupDesc{
    grid-area:desc;
    margin:0;
    align-self:start;
    text-align:left;
    color:#4b5563;
    font-size:17px;
    line-height:1.75;
    max-width:24ch;
  }

  #imagePopup .popup-close{
    top:24px;
    right:24px;
  }

  #imagePopup .popup-close::before,
  #imagePopup .popup-close::after{
    background:#111827;
  }

  #imagePopup .popup-arrow{
    width:56px;
    height:56px;
    background:rgba(255,255,255,.88);
    color:#111827;
    border:1px solid rgba(17,24,39,.12);
    box-shadow:0 16px 32px rgba(15,23,42,.18);
  }

  #imagePopup .popup-arrow:hover{
    background:var(--red);
    color:#fff;
    transform:translateY(-50%) scale(1.05);
  }

  #imagePopup .popup-arrow.left{
    left:calc(var(--popup-pad) - 10px);
  }

  #imagePopup .popup-arrow.right{
    right:calc(var(--popup-info-width) + var(--popup-gap) + var(--popup-pad) - 10px);
  }
}

.elevator-card{
  background:linear-gradient(180deg, #fff 0%, #faf8f8 100%);
}

.elevator-card h3{
  min-height:auto;
  margin:0 0 10px;
  font-size:28px;
  line-height:1.08;
}

.elevator-card h3 .brand-accent{
  display:inline;
  margin:0 .22em 0 0;
  color:var(--red);
  font-size:inherit;
  font-weight:inherit;
}

.elevator-card-category{
  display:block;
  margin-bottom:12px;
  color:#111;
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
}

@media(max-width:768px){
  :root{
    --header-offset: 130px;
  }

  .header-top{
    padding:6px 16px 4px;
  }

  .header-inner{
    min-height:0;
  }

  .logo img{
    width:min(100%, 190px);
    max-width:190px;
  }

  .mobile-menu-btn{
    margin:0 16px 10px auto;
  }

  .mobile-menu{
    margin:0 12px 12px;
  }

  .motor-details .spec-right h2,
  .elevator-summary .text h2{
    margin-bottom:18px;
    font-size:clamp(26px, 8vw, 32px);
  }

  .elevator-card h3{
    font-size:24px;
  }
}

/* =====================================
   MOBILE VIEW FIXES
===================================== */
html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  overflow-x:clip;
}

body.popup-open{
  overflow:hidden;
}

img,
table{
  max-width:100%;
}

.footer-contact p,
.footer-contact a,
.contact-info-box p,
.policy-card p{
  overflow-wrap:anywhere;
}

@media(max-width:768px){
  :root{
    --header-offset: 118px;
  }

  .site-header{
    overflow:visible;
  }

  .header-top{
    padding:8px 72px 8px 16px;
  }

  .logo img{
    width:min(100%, 176px);
    max-width:176px;
  }

  .mobile-menu-btn{
    position:absolute;
    top:18px;
    right:16px;
    margin:0;
    z-index:1002;
  }

  .mobile-menu{
    width:auto;
    max-width:calc(100vw - 24px);
    max-width:calc(100dvw - 24px);
  }

  .mobile-sub-toggle{
    width:100%;
  }

  .selector-layout,
  .selector-content,
  .selector-panel,
  .spec-layout,
  .spec-right,
  .content,
  .control-row,
  .control-row.reverse,
  .why-container,
  .contact-wrapper,
  .footer-inner{
    min-width:0;
  }

  .maintenance-table{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .maintenance-table table{
    min-width:640px;
  }

  #imagePopup.popup-overlay{
    padding:12px;
    overflow:hidden;
  }

  #imagePopup .popup-box{
    width:100%;
    max-width:calc(100vw - 24px);
    max-width:calc(100dvw - 24px);
    max-height:calc(100dvh - 24px);
    padding:14px 14px 18px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    overflow:hidden;
  }

  #imagePopup #popupImg{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    max-height:calc(100dvh - 180px);
    object-fit:contain;
    margin:0;
    padding:0;
    background:#000;
    box-shadow:none;
    touch-action:pan-y;
  }

  #imagePopup #popupTitle,
  #imagePopup #popupDesc{
    width:100%;
    margin-left:0;
    margin-right:0;
    text-align:center;
    overflow-wrap:anywhere;
  }

  #imagePopup #popupTitle{
    margin-top:12px;
    font-size:clamp(24px, 7vw, 30px);
    line-height:1.1;
  }

  #imagePopup #popupDesc{
    margin-top:6px;
    font-size:15px;
    line-height:1.6;
  }

  #imagePopup .popup-close{
    top:12px;
    right:12px;
  }

  #imagePopup .popup-arrow{
    display:flex !important;
    width:44px;
    height:44px;
    top:auto;
    bottom:96px;
    transform:none;
    background:rgba(17,24,39,.82);
    color:#fff;
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 10px 24px rgba(0,0,0,.28);
    z-index:2;
  }

  #imagePopup .popup-arrow.left{
    left:18px;
  }

  #imagePopup .popup-arrow.right{
    right:18px;
  }

  #imagePopup .popup-arrow:hover{
    transform:none;
  }
}
