/* Mezsa Metal — design system. Premium, minimal, industrial. */

:root {
  --gold: #FCB017;
  --gold-dark: #DE9B0C;
  --gold-soft: #FDF3DE;
  --ink: #24262B;
  --ink-soft: #4A4E55;
  --body: #53565C;
  --bg: #FFFFFF;
  --bg-soft: #F6F6F7;
  --bg-dark: #1A1C20;
  --border: #E7E7E9;
  --border-dark: #33353B;
  --radius-sm: 3px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(24,26,30,.04), 0 1px 1px rgba(24,26,30,.03);
  --shadow: 0 6px 24px rgba(24,26,30,.07);
  --container: 1240px;
  --header-h: 92px;
  --header-h-shrink: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); display: inline-block; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 17px; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: transform .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: height .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { height: var(--header-h-shrink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex-shrink: 0; }
.brand img { height: 34px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .brand img { height: 28px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-block; padding: 10px 16px; font-weight: 600; font-size: 14.5px;
  color: var(--ink-soft); border-radius: var(--radius-sm); position: relative;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { border-color: var(--ink); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 150px; overflow: hidden; }
.lang-menu a { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 14px; }
.lang-menu a:hover { background: var(--bg-soft); }
[dir="rtl"] .lang-menu { right: auto; left: 0; }

.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
}

/* Logo scales down on smaller screens so it never crowds the lang switch / hamburger row.
   The header's own "Teklif Al" button is dropped below 480px — the mobile menu already
   repeats it full-width, so keeping both only fights the logo for space. */
@media (max-width: 768px) {
  :root { --header-h: 72px; --header-h-shrink: 58px; }
  .site-header .container { gap: 12px; }
  .brand img { height: 24px; }
  .site-header.is-scrolled .brand img { height: 20px; }
  .header-actions { gap: 8px; }
  .lang-switch summary { padding: 7px 9px; font-size: 12px; }
  .header-actions > a.btn { padding: 9px 14px; font-size: 12.5px; }
}

@media (max-width: 480px) {
  :root { --header-h: 64px; --header-h-shrink: 52px; }
  .brand img { height: 22px; }
  .site-header.is-scrolled .brand img { height: 19px; }
  .header-actions { gap: 6px; }
  .header-actions > a.btn { display: none; }
  .lang-switch summary { padding: 6px 8px; font-size: 11.5px; }
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 600; background: #fff;
  transform: translateY(-100%); transition: transform .35s ease;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav .container { padding-top: 24px; padding-bottom: 40px; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }
.mobile-nav-close { background: none; border: none; font-size: 26px; line-height: 1; color: var(--ink); }
.mobile-nav a { display: block; padding: 16px 0; font-size: 22px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; min-height: 92dvh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,21,24,.25) 0%, rgba(18,19,22,.55) 60%, rgba(14,15,17,.82) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 0 88px; max-width: 720px; }
.hero-content .eyebrow { color: var(--gold); }
.hero-content h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); }
.hero-content p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 560px; }
.hero-cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; bottom: 32px; right: 32px; display: flex; gap: 8px; }
[dir="rtl"] .hero-dots { right: auto; left: 32px; }
.hero-dots button { width: 28px; height: 3px; background: rgba(255,255,255,.4); border: none; border-radius: 2px; transition: background .2s; }
.hero-dots button.is-active { background: var(--gold); }
@media (max-width: 768px) {
  .hero { min-height: 82vh; min-height: 82dvh; }
  .hero-content { padding-bottom: 56px; }
}

.marquee-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track img { height: 30px; width: auto; filter: grayscale(1) opacity(.55); transition: filter .25s; }
.marquee-track img:hover { filter: grayscale(0) opacity(1); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; overflow-x: auto; } }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split-media-badge {
  position: absolute; bottom: -28px; left: -28px; background: var(--ink); color: #fff;
  padding: 24px 28px; border-radius: var(--radius); min-width: 160px;
}
[dir="rtl"] .split-media-badge { left: auto; right: -28px; }
.split-media-badge strong { display: block; font-size: 32px; color: var(--gold); font-weight: 800; }
.split-media-badge span { font-size: 13px; color: rgba(255,255,255,.75); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media-badge { position: static; margin-top: 20px; display: inline-block; }
}

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
.stat-item { border-top: 2px solid var(--gold); padding-top: 16px; }
.stat-item strong { display: block; font-size: 40px; font-weight: 800; color: var(--ink); }
.stat-item span { font-size: 14px; color: var(--body); }
@media (max-width: 768px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.pillar { padding: 24px; background: var(--bg-soft); border-radius: var(--radius); }
.pillar h4 { font-size: 16px; margin-bottom: 8px; }
.pillar p { font-size: 14.5px; margin: 0; }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); margin-bottom: 8px; }
.card-body h3 { font-size: 19px; margin-bottom: 10px; }
.card-body p { font-size: 14.5px; color: var(--body); flex: 1; }
.card-link { margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.card-link .arrow { transition: transform .2s; }
.card:hover .card-link .arrow { transform: translateX(4px); }
[dir="rtl"] .card:hover .card-link .arrow { transform: translateX(-4px); }

.service-card { text-align: left; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); transition: transform .3s ease, box-shadow .3s ease; background: #fff; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--gold-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--gold-dark); }
.service-icon svg { width: 26px; height: 26px; stroke: var(--gold-dark); }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-bar a {
  padding: 9px 20px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; font-weight: 700;
}
.filter-bar a.active, .filter-bar a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------- Product/Project detail ---------- */
.detail-hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px; }
.breadcrumb { font-size: 13px; color: var(--body); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 6px; }
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; border-radius: var(--radius); overflow: hidden; }
.detail-gallery-main img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.detail-gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.detail-gallery-side img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .detail-gallery { grid-template-columns: 1fr; } .detail-gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; } }

.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; margin-top: 48px; align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 12px 4px; font-size: 14.5px; }
.spec-table td:first-child { font-weight: 700; color: var(--ink); width: 42%; }
.side-panel { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.side-panel dl { margin: 0; }
.side-panel dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--body); margin-top: 16px; }
.side-panel dt:first-child { margin-top: 0; }
.side-panel dd { margin: 4px 0 0; font-weight: 700; color: var(--ink); }
.side-panel .btn { margin-top: 24px; }

/* ---------- Blog ---------- */
.post-meta { display: flex; gap: 16px; font-size: 13px; color: var(--body); margin-bottom: 16px; }
.post-body { font-size: 16.5px; line-height: 1.85; }
.post-body h2, .post-body h3 { margin-top: 1.6em; }
.post-body img { border-radius: var(--radius); margin: 24px 0; }
.post-cover img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 40px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-info-item .ico { width: 44px; height: 44px; border-radius: var(--radius); background: var(--gold-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold-dark); }
.contact-info-item h4 { margin: 0 0 4px; font-size: 15px; }
.contact-info-item p { margin: 0; font-size: 14.5px; }
.map-frame { border-radius: var(--radius); overflow: hidden; margin-top: 24px; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field-error { color: #C0392B; font-size: 12.5px; margin-top: 6px; }
.form-alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 14.5px; font-weight: 600; }
.form-alert.success { background: #EAF7EE; color: #1E7A38; }
.form-alert.error { background: #FCEBEA; color: #B23127; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 64px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 28px; }
@media (max-width: 700px) { .cta-band { padding: 40px 24px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.68); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--border-dark); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid img { height: 30px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-grid h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 20px; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- WhatsApp floating button ---------- */
.wa-float { position: fixed; z-index: 400; right: 24px; bottom: 24px; }
[dir="rtl"] .wa-float { right: auto; left: 24px; }
.wa-btn {
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4); border: none; position: relative; transition: transform .25s ease;
}
.wa-btn:hover { transform: scale(1.07); }
.wa-btn::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-btn::after { animation: none; } }
.wa-btn svg { width: 30px; height: 30px; fill: #fff; }
.wa-tooltip {
  position: absolute; bottom: 72px; right: 0; background: #fff; color: var(--ink); padding: 14px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow); font-size: 13.5px; width: 240px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: all .25s ease;
}
[dir="rtl"] .wa-tooltip { right: auto; left: 0; }
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateY(0); }
.wa-tooltip .status { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 4px; font-size: 12.5px; }
.wa-tooltip .dot { width: 8px; height: 8px; border-radius: 50%; background: #25D366; }
.wa-tooltip .dot.offline { background: #C0392B; }

/* ---------- Utility ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.pagination a:hover { border-color: var(--ink); }
.pagination .active { background: var(--ink); color: #fff; border-color: var(--ink); }

.legal-body { max-width: 820px; margin: 0 auto; font-size: 15.5px; }
.legal-body h2 { font-size: 22px; margin-top: 1.8em; }

/* RTL global */
[dir="rtl"] body { font-family: 'Manrope', 'Noto Kufi Arabic', sans-serif; }
[dir="rtl"] .eyebrow::before { order: 2; }
