/* ==========================================================================
   MASTER DOORS — base styles
   ========================================================================== */

:root {
  --navy: #12161f;
  --navy-2: #1b2130;
  --navy-soft: #2a3245;
  --red: #c8102e;
  --red-dark: #970d24;
  --white: #ffffff;
  --bg-alt: #f4f5f7;
  --bg-alt-2: #eef0f3;
  --text: #1c1f26;
  --text-muted: #5b6270;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(18, 22, 31, 0.08);
  --shadow-sm: 0 4px 14px rgba(18, 22, 31, 0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-weight: 800; line-height: 1.3; }
p { margin: 0 0 1em; color: var(--text-muted); }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding: 84px 0; }
@media (max-width: 780px) { section { padding: 56px 0; } }

.section-bg { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 14px;
  margin-bottom: 10px;
}

.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p { font-size: 17px; margin-bottom: 0; }

/* Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 10px 24px rgba(200,16,46,.28); }
.btn-primary:hover { background: var(--red-dark); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }

.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }

.btn-block { width: 100%; justify-content: center; }

/* Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand-logo { height: 44px; width: auto; flex: none; }
.brand-text {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--navy);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--bg-alt); }
.main-nav a.active { background: var(--navy); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
}
.lang-switch:hover { border-color: var(--navy); }

.header-cta { padding: 11px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 18px; margin-inline: auto; background: var(--navy); border-radius: 2px; }

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    inset-inline: 0;
    top: 76px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(27,33,48,.55), rgba(18,22,31,.93) 60%, var(--navy) 100%),
    url('../images/products/catalog-cover.jpg');
  background-size: cover;
  background-position: top center;
  background-blend-mode: normal;
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 34px);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,16,46,.16);
  border: 1px solid rgba(200,16,46,.4);
  color: #ff8595;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 22px;
}

.hero h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,.78); font-size: 18px; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero-stat { padding: 16px 6px; }
.hero-stat b { display: block; font-size: 30px; color: var(--white); }
.hero-stat span { color: rgba(255,255,255,.65); font-size: 14px; font-weight: 600; }

/* Icon tile
   ========================================================================== */
.icon-tile {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: rgba(200,16,46,.1);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-tile svg { width: 28px; height: 28px; }

/* Grids & cards
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 15px; }

.card-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.card-dark p { color: rgba(255,255,255,.7); }
.card-dark .icon-tile { background: rgba(255,255,255,.1); color: #ff6b7d; }

/* Sectors / tags
   ========================================================================== */
.tag-list { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

/* Stats strip
   ========================================================================== */
.stats-strip {
  background: var(--navy);
  color: var(--white);
}
.stats-strip .grid { text-align: center; }
.stats-strip b { display: block; font-size: 36px; color: var(--white); }
.stats-strip span { color: rgba(255,255,255,.65); font-weight: 600; font-size: 14px; }

/* Merits / checklist
   ========================================================================== */
.check-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
}
.check-list li:last-child { border-bottom: none; }
.check-list .dot {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(200,16,46,.12);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

/* Process timeline
   ========================================================================== */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 960px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .timeline { grid-template-columns: 1fr; } }
.timeline-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}
.timeline-step .num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.timeline-step h4 { font-size: 16px; margin-bottom: 8px; }
.timeline-step p { font-size: 14px; margin-bottom: 0; }

/* Product blocks
   ========================================================================== */
.product-block {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.product-block:last-child { border-bottom: none; }
@media (max-width: 860px) { .product-block { grid-template-columns: 1fr; } }

.product-media {
  background: linear-gradient(155deg, var(--navy), var(--navy-soft));
  border-radius: var(--radius);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  overflow: hidden;
}
.product-media svg { width: 96px; height: 96px; opacity: .92; }
.product-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}
.product-media img.op-top { object-position: top; }
.product-media img.op-bottom { object-position: bottom; }
.product-media img.op-center { object-position: center; }

.spec-list { display: grid; gap: 10px; margin-top: 18px; }
.spec-list div { display: flex; gap: 10px; font-size: 14.5px; }
.spec-list b { color: var(--text); flex: none; min-width: 40%; }
.spec-list span { color: var(--text-muted); }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(200,16,46,.1);
  color: var(--red-dark);
}

/* Projects
   ========================================================================== */
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.project-card .cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
  background: rgba(200,16,46,.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.project-card h3 { font-size: 17px; margin-bottom: 0; }

/* Certifications
   ========================================================================== */
.cert-card { padding: 30px; }
.cert-card .holder {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.cert-card .holder b { color: var(--text); }

/* CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--red), var(--red-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; font-size: 28px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 0; }
.cta-band .btn-primary { background: var(--white); color: var(--red-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--bg-alt); }

/* Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.contact-card .icon-tile { margin-bottom: 0; width: 46px; height: 46px; border-radius: 10px; }
.contact-card .icon-tile svg { width: 22px; height: 22px; }
.contact-card h4 { margin-bottom: 4px; font-size: 15px; }
.contact-card a, .contact-card span { color: var(--text-muted); font-size: 15px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-alt);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--red); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 24px; }

/* WhatsApp FAB
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.4);
  z-index: 90;
  transition: transform .15s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: 60px 36px;
}
@media (max-width: 780px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-logo { height: 110px; width: auto; margin-bottom: 16px; color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 14.5px; }
.footer-col a:hover { color: var(--white); }
.footer-contact li a { direction: ltr; display: inline-block; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 20px;
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
}

/* Page hero (inner pages)
   ========================================================================== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero .eyebrow { color: #ff8595; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.7); max-width: 640px; margin-inline: auto; margin-bottom: 0; }

/* Utilities
   ========================================================================== */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
