/* ============================================================
   NAZAR ELEVATOR — Main Stylesheet
   Colors: Navy #1A2E5A | White #FFFFFF | Accent #2E75B6
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --navy:        #1A2E5A;
  --navy-dark:   #122040;
  --navy-light:  #243870;
  --white:       #FFFFFF;
  --accent:      #2E75B6;
  --accent-dark: #235D96;
  --bg-light:    #F2F4F7;
  --dark:        #1C1C1C;
  --mid-gray:    #444444;
  --light-gray:  #888888;
  --border:      #D0D5DD;
  --green:       #217346;
  --whatsapp:    #25D366;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow:      0 4px 16px rgba(26,46,90,0.10);
  --shadow-lg:   0 8px 32px rgba(26,46,90,0.16);
  --transition:  0.25s ease;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --font-ar:     'Cairo', var(--font);
  --header-h:    72px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
#main-content { padding-top: var(--header-h); }
body.rtl { font-family: var(--font-ar); direction: rtl; text-align: right; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { color: var(--navy); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { color: var(--mid-gray); margin-bottom: .75rem; }
.text-white { color: var(--white) !important; }
.text-light { color: rgba(255,255,255,.8) !important; }
.text-center { text-align: center; }
.text-navy { color: var(--navy); }

/* ── Container ──────────────────────────────────────────────── */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-inner { margin-top: 2rem; }
.bg-light { background: var(--bg-light); }
.bg-navy  { background: var(--navy); }
.bg-light-section { background: var(--bg-light); padding: 2rem; border-radius: var(--radius-lg); }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.section-label-light { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .5rem; }
.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--light-gray); font-size: 1.05rem; margin-bottom: 2rem; }
.section-body { color: var(--mid-gray); font-size: 1rem; line-height: 1.75; margin-bottom: 1.25rem; }
.section-header { margin-bottom: 3rem; }
.mt-24 { margin-top: 1.5rem; }
.mt-32 { margin-top: 2rem; }
.mt-40 { margin-top: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; transition: all var(--transition);
  white-space: nowrap; cursor: pointer; text-decoration: none;
  border: 2px solid transparent;
}
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-primary  { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-ghost-white { background: rgba(255,255,255,.15); color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost-white:hover { background: rgba(255,255,255,.25); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: #1ebe5d; border-color: #1ebe5d; color: var(--white); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge-item { display: inline-block; background: var(--bg-light); border: 1px solid var(--border); border-radius: 100px; padding: .3rem .85rem; font-size: .8rem; font-weight: 600; color: var(--navy); margin: .25rem; }
.why-badges { margin-top: 1.25rem; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy); box-shadow: 0 2px 20px rgba(0,0,0,.3);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { background: var(--navy-dark); box-shadow: 0 2px 20px rgba(0,0,0,.4); }
.navbar { height: var(--header-h); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.nav-logo { display: flex; align-items: center; }
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--white); letter-spacing: .02em; }
.logo-text-footer { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.logo-accent { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-link { display: flex; align-items: center; gap: .25rem; padding: .5rem .75rem; color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 500; border-radius: var(--radius); transition: all var(--transition); }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.1); }
.caret { font-size: .65rem; }
.nav-right { display: flex; align-items: center; gap: .75rem; }
.nav-cta { }

/* Dropdowns — JS tabanlı (hover CSS kaldırıldı, touch uyumlu) */
.has-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 200; padding: .5rem 0; }
.rtl .dropdown-menu { left: auto; right: 0; }
.dropdown-menu li a { display: block; padding: .55rem 1.25rem; color: var(--mid-gray); font-size: .88rem; transition: all var(--transition); }
.dropdown-menu li a:hover { background: var(--bg-light); color: var(--navy); }
.has-dropdown.open > .dropdown-menu { display: block; }
.has-dropdown.open > .dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; min-width: 440px; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-current { color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600; padding: .4rem .7rem; border-radius: var(--radius); transition: all var(--transition); display: flex; align-items: center; gap: .25rem; }
.lang-current:hover { background: rgba(255,255,255,.1); color: var(--white); }
.lang-dropdown { display: none; position: absolute; top: 100%; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 140px; padding: .4rem 0; z-index: 200; }
.rtl .lang-dropdown { right: auto; left: 0; }
.lang-dropdown li a { display: block; padding: .5rem 1rem; font-size: .85rem; color: var(--mid-gray); }
.lang-dropdown li a:hover { background: var(--bg-light); color: var(--navy); }
.lang-switcher.open .lang-dropdown { display: block; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--navy) url('/assets/images/hero-bg.jpg') center/cover no-repeat;
  margin-top: calc(-1 * var(--header-h));
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,46,90,.92) 0%, rgba(26,46,90,.65) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 5rem 0; }
.hero-badge { display: inline-block; background: var(--accent); color: var(--white); padding: .4rem 1rem; border-radius: 100px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--white); margin-bottom: 1rem; line-height: 1.1; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,.85); max-width: 600px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); }
.hero-scroll-hint span { display: block; width: 2px; height: 40px; background: rgba(255,255,255,.4); margin: 0 auto; animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 0%,100%{opacity:.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.3)} }

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero { padding: 50px 0 60px; }
.page-hero-sm { padding: 36px 0 50px; }
.page-hero-elevator { background: var(--navy) center/cover no-repeat; position: relative; padding: 50px 0 60px; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(26,46,90,.8); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-title { font-size: clamp(1.6rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.page-hero-subtitle { font-size: 1.1rem; max-width: 600px; }

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar { background: var(--navy); padding: 2rem 0; }
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.stat-item { flex: 1 1 120px; text-align: center; padding: 1rem 1.5rem; border-right: 1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right: none; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { display: block; font-size: .78rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .05em; margin-top: .35rem; }

/* ── Two-col grid ───────────────────────────────────────────── */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* ── Features grid ──────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 1.5rem; transition: all var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--navy); }
.feature-card p { font-size: .9rem; color: var(--mid-gray); margin: 0; }

/* ── Elevator grid ──────────────────────────────────────────── */
.elevators-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.elevator-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.elevator-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent); }
.elevator-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-light); }
.elevator-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.elevator-card:hover .elevator-card-img img { transform: scale(1.05); }
.elevator-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; background: linear-gradient(135deg,var(--navy),var(--accent)); }
.elevator-card-overlay { position: absolute; inset: 0; background: rgba(26,46,90,.65); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); }
.elevator-card:hover .elevator-card-overlay { opacity: 1; }
.learn-more-badge { color: var(--white); font-weight: 700; font-size: .9rem; letter-spacing: .05em; background: var(--accent); padding: .5rem 1rem; border-radius: 100px; }
.elevator-card-body { padding: 1.25rem; flex: 1; }
.elevator-card-title { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; color: var(--navy); }
.elevator-card-desc { font-size: .83rem; color: var(--light-gray); margin: 0; line-height: 1.5; }

/* ── Components grid ────────────────────────────────────────── */
.components-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.component-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; transition: all var(--transition); text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; }
.component-card:hover { box-shadow: var(--shadow); border-color: var(--accent); transform: translateY(-3px); }
.component-icon { font-size: 2rem; margin-bottom: .75rem; color: var(--navy); }
.component-name { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.component-desc { font-size: .78rem; color: var(--light-gray); margin-bottom: .75rem; line-height: 1.4; }
.component-link { font-size: .8rem; font-weight: 600; color: var(--accent); }
.components-grid-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.component-card-lg { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; transition: all var(--transition); }
.component-card-lg:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); }
.component-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-light); }
.component-card-img img { width: 100%; height: 100%; object-fit: cover; }
.component-placeholder { display: flex; align-items: center; justify-content: center; height: 180px; font-size: 3rem; background: linear-gradient(135deg,var(--navy),var(--accent)); }
.component-card-body { padding: 1.5rem; }
.component-card-title { font-size: 1.1rem; color: var(--navy); margin-bottom: .5rem; }

/* ── Export section ─────────────────────────────────────────── */
.export-regions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.region-badge { display: inline-block; background: rgba(46,117,182,.1); border: 1px solid var(--accent); color: var(--accent); padding: .3rem .85rem; border-radius: 100px; font-size: .8rem; font-weight: 600; }
.map-img { width: 100%; border-radius: var(--radius-lg); }

/* ── Production ─────────────────────────────────────────────── */
.production-list { list-style: none; margin: 1rem 0; }
.production-list li { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; color: rgba(255,255,255,.85); font-size: .95rem; }
.check-icon { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── Certs ──────────────────────────────────────────────────── */
.certs-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.cert-badge { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 2rem; text-align: center; min-width: 120px; }
.cert-badge strong { display: block; font-size: 1.1rem; color: var(--navy); }
.cert-badge span { display: block; font-size: .75rem; color: var(--light-gray); margin-top: .25rem; }
.certs-list-grid, .certs-static-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cert-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.cert-thumb { height: 160px; overflow: hidden; background: var(--bg-light); }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cert-thumb-placeholder { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--accent); background: linear-gradient(135deg,var(--bg-light),var(--white)); }
.cert-body { padding: 1.25rem; }
.cert-body h3 { font-size: 1rem; margin-bottom: .5rem; }

/* ── Gallery ────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid-full { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.gallery-item { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(26,46,90,.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); font-size: 1.75rem; color: var(--white); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn { padding: .45rem 1.1rem; border-radius: 100px; border: 2px solid var(--border); color: var(--mid-gray); font-size: .88rem; font-weight: 600; transition: all var(--transition); text-decoration: none; }
.filter-btn.active, .filter-btn:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--white); font-size: 2.5rem; line-height: 1; padding: .25rem .5rem; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: var(--white); font-size: 3rem; padding: .5rem 1rem; }
.lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 1.1rem 1.25rem; background: var(--white); color: var(--navy); font-weight: 600; font-size: .97rem; text-align: left; gap: 1rem; transition: background var(--transition); }
.rtl .faq-question { text-align: right; }
.faq-question.active, .faq-question:hover { background: var(--bg-light); }
.faq-icon { flex-shrink: 0; font-size: 1.1rem; color: var(--accent); }
.faq-answer { padding: 1rem 1.25rem 1.25rem; background: var(--bg-light); }
.faq-answer p { margin: 0; color: var(--mid-gray); }

/* ── About Highlights ──────────────────────────────────────── */
.about-highlights { display: flex; gap: 1.5rem; margin: 1.5rem 0; }
.highlight-item { display: flex; align-items: center; gap: .75rem; }
.highlight-icon { font-size: 1.5rem; }
.highlight-item div { display: flex; flex-direction: column; }
.highlight-item strong { font-size: .9rem; color: var(--navy); }
.highlight-item span { font-size: .78rem; color: var(--light-gray); }
.about-image img { border-radius: var(--radius-lg); }
.rounded-img { border-radius: var(--radius-lg); }

/* ── CTA Band ───────────────────────────────────────────────── */
.cta-band { padding: 5rem 0; }
.cta-title { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.cta-body { font-size: 1.05rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.elevator-cta-band { border-radius: var(--radius-lg); padding: 3rem 2rem; margin-top: 2rem; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info-card { background: var(--bg-light); border-radius: var(--radius-lg); padding: 2rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.ci-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .15rem; }
.contact-info-item div, .contact-info-item > * { display: flex; flex-direction: column; }
.contact-info-item strong { font-size: .85rem; color: var(--navy); font-weight: 700; margin-bottom: .2rem; }
.contact-info-item a, .contact-info-item span, .contact-info-item p { color: var(--mid-gray); font-size: .92rem; margin: 0; }
.contact-info-item a:hover { color: var(--accent); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; }

/* ── Forms ──────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.form-control { width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: .92rem; color: var(--dark); background: var(--white); transition: border-color var(--transition); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,117,182,.12); }
.form-control.is-invalid { border-color: #dc3545; }
.form-select { -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23888'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.rtl .form-select { background-position: left .9rem center; padding-right: .9rem; padding-left: 2.5rem; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-control-file { font-size: .88rem; color: var(--mid-gray); }
.field-error { font-size: .78rem; color: #dc3545; display: none; }
.was-validated .form-control:invalid ~ .field-error { display: block; }
.form-msg { padding: .85rem 1rem; border-radius: var(--radius); font-size: .9rem; font-weight: 500; margin-top: .5rem; }
.form-msg-success { background: #d4edda; color: var(--green); border: 1px solid #c3e6cb; }
.form-msg-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Elevator page layout ───────────────────────────────────── */
.elevator-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.elevator-intro { background: var(--bg-light); border-left: 4px solid var(--accent); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1.5rem; }
.rtl .elevator-intro { border-left: none; border-right: 4px solid var(--accent); border-radius: var(--radius) 0 0 var(--radius); }
.intro-text { font-size: 1.08rem; color: var(--mid-gray); line-height: 1.75; margin: 0; }
.elevator-content.prose h2 { margin: 1.75rem 0 .75rem; }
.elevator-content.prose h3 { margin: 1.25rem 0 .5rem; }
.elevator-content.prose p  { margin-bottom: 1rem; }
.check-list li { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .6rem; font-size: .95rem; color: var(--mid-gray); }
.advantages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.advantage-item { display: flex; align-items: center; gap: .6rem; background: var(--bg-light); padding: .65rem 1rem; border-radius: var(--radius); font-size: .88rem; color: var(--mid-gray); }
.adv-icon { color: var(--accent); font-size: .6rem; flex-shrink: 0; }
.elevator-why { border-radius: var(--radius-lg); padding: 2rem; }

/* Sidebar */
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-card-title { font-size: 1.05rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--accent); }
.related-list li { border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list li a { display: block; padding: .6rem 0; font-size: .88rem; color: var(--mid-gray); transition: color var(--transition); }
.related-list li a:hover { color: var(--accent); }

/* Component layout */
.component-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; }
.component-sidebar h3 { font-size: 1rem; margin-bottom: .75rem; color: var(--navy); }
.sidebar-cat-list li { border-bottom: 1px solid var(--border); }
.sidebar-cat-list li a { display: block; padding: .6rem .5rem; font-size: .88rem; color: var(--mid-gray); }
.sidebar-cat-list li.active a, .sidebar-cat-list li a:hover { color: var(--accent); font-weight: 600; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.product-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-light); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 1.25rem; }
.product-name { font-size: 1rem; margin-bottom: .35rem; }
.product-desc { font-size: .85rem; color: var(--light-gray); margin-bottom: .75rem; }
.empty-state { text-align: center; padding: 3rem; color: var(--light-gray); }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .25rem; padding: 1rem 1.5rem; background: var(--bg-light); font-size: .83rem; list-style: none; max-width: 1320px; margin: 0 auto; }
.breadcrumb-item { color: var(--light-gray); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin-right: .5rem; color: var(--border); }
.rtl .breadcrumb-item + .breadcrumb-item::before { content: '\\'; }
.breadcrumb-item a { color: var(--mid-gray); }
.breadcrumb-item.active { color: var(--navy); font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.7); }
.footer-main { padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1.5fr; gap: 3rem; }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.5); margin: .35rem 0 .75rem; font-style: italic; }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 1rem; }
.footer-contact-info { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact-link { font-size: .85rem; color: rgba(255,255,255,.65); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.footer-contact-link:hover { color: var(--white); }
.footer-heading { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-links li a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links li a:hover { color: var(--white); }
.footer-lang-list { display: flex; flex-direction: column; gap: .35rem; }
.footer-lang-link { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-lang-link:hover, .footer-lang-link.active { color: var(--white); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-sep { opacity: .3; }

/* ── WhatsApp FAB ───────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 900;
  background: var(--whatsapp); color: var(--white);
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: all var(--transition);
}
.rtl .whatsapp-fab { right: auto; left: 1.75rem; }
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.65); }

/* ── Back to top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 5.5rem; right: 1.75rem; z-index: 900;
  background: var(--navy); color: var(--white);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; opacity: 0; visibility: hidden; transition: all var(--transition);
  box-shadow: var(--shadow);
}
.rtl .back-to-top { right: auto; left: 1.75rem; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); }

/* ═══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .elevators-grid { grid-template-columns: repeat(3, 1fr); }
  .components-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 1024px) {
  .two-col-grid { grid-template-columns: 1fr; gap: 2rem; }
  .elevator-layout { grid-template-columns: 1fr; }
  .elevator-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 2rem; }
  .component-layout { grid-template-columns: 200px 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .certs-list-grid, .certs-static-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 56px 0; }
  .nav-menu { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--navy); flex-direction: column; padding: 1.5rem; overflow-y: auto; z-index: 999; gap: 0; }
  .nav-menu.open { display: flex; }
  .nav-link { color: var(--white); padding: .9rem 1rem; border-radius: var(--radius); border-bottom: 1px solid rgba(255,255,255,.08); }
  .has-dropdown .dropdown-menu { display: none; position: static; box-shadow: none; border: none; background: rgba(255,255,255,.05); border-radius: var(--radius); padding: .25rem; margin: .25rem 0 .5rem; }
  .has-dropdown.open .dropdown-menu { display: block; }
  .dropdown-grid { grid-template-columns: 1fr; min-width: auto; }
  .dropdown-menu li a { color: rgba(255,255,255,.75); padding: .5rem .75rem; font-size: .88rem; }
  .lang-dropdown { right: 0; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .elevators-grid { grid-template-columns: 1fr 1fr; }
  .components-grid { grid-template-columns: repeat(2, 1fr); }
  .components-grid-full { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { }
  .stat-item { flex: 1 1 90px; padding: .75rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .form-row { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .certs-list-grid, .certs-static-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid-full { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-highlights { flex-direction: column; gap: 1rem; }
  .elevator-sidebar { grid-template-columns: 1fr; }
  .component-layout { grid-template-columns: 1fr; }
  .component-sidebar { display: none; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .two-col-grid > *:last-child { order: -1; }
}

@media (max-width: 480px) {
  .elevators-grid { grid-template-columns: 1fr; }
  .components-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid, .gallery-grid-full { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .hero { min-height: 90vh; }
  .btn-lg { padding: .75rem 1.5rem; font-size: .95rem; }
}

/* RTL adjustments */
.rtl .breadcrumb-item + .breadcrumb-item::before { margin-left: .5rem; margin-right: 0; }
.rtl .elevator-intro { border-left: none; border-right: 4px solid var(--accent); }
.rtl .caret { display: inline-block; transform: rotate(180deg); }
.rtl .dropdown-menu { left: auto; right: 0; }
.rtl .advantages-grid { direction: rtl; }
