/* ==========================================================================
   Kinz Metal Products Co. — kinzgroup.net
   Base stylesheet — bilingual (AR/EN), mobile-first, RTL/LTR aware.
   ========================================================================== */

:root{
  --red: #D71C1B;
  --red-dark: #B01513;
  --navy: #041C9A;
  --navy-dark: #02114F;
  --amber: #F2A900;
  --ink: #1A1F2B;
  --ink-soft: #4A5164;
  --bg: #F5F6F8;
  --paper: #FFFFFF;
  --paper-soft: #F5F6F8;
  --paper-dim: #EBEDF3;
  --line: #E2E5EE;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .07);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, .09);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, .14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 96px; }
body{
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-en);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.lang-ar{ font-family: var(--font-ar); }

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{ line-height: 1.25; margin: 0 0 .5em; font-weight: 800; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
button{ font: inherit; }

.skip-link{
  position: absolute; inset-inline-start: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ inset-inline-start: 0; }

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

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  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: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--red-dark); box-shadow: var(--shadow-md); }
.btn-navy{ background: var(--navy); color: #fff; }
.btn-navy:hover{ background: var(--navy-dark); }
.btn-outline{ background: transparent; border-color: currentColor; color: var(--navy); }
.btn-outline:hover{ background: var(--navy); color: #fff; }
.btn-outline-white{ background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-white:hover{ background: #fff; color: var(--navy); }
.btn-lg{ padding: 16px 34px; font-size: 1.05rem; }
.btn-block{ width: 100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 500;
  /* No backdrop-filter here: it would create a containing block for the
     fixed-position mobile .main-nav below, collapsing it to the header's
     own height instead of covering the viewport. */
  background: rgb(4,15,48);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 24px rgba(2,8,30,.18);
}
.header-inner{ display: flex; align-items: center; gap: 24px; height: 84px; }
.brand{ flex-shrink: 0; }
.brand-logo{ height: 48px; width: auto; }
.main-nav{ flex: 1; }
.main-nav ul{ display: flex; gap: 6px; align-items: center; }
.main-nav a{
  display: inline-block; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; color: rgba(255,255,255,.82); font-size: .96rem; transition: background .15s, color .15s;
}
.main-nav a:hover{ background: rgba(255,255,255,.10); color: #fff; }
.main-nav a.active{ background: var(--red); color: #fff; }

.header-actions{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switch{
  font-weight: 700; font-size: .9rem; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.28); color: #fff;
}
.lang-switch:hover{ border-color: #fff; background: rgba(255,255,255,.12); }
.btn-nav-quote{ padding: 11px 22px; font-size: .9rem; }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06);
}
.nav-toggle span{ display: block; width: 20px; height: 2px; background: #fff; margin-inline: auto; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 55%, #010B45 100%);
  color: #fff;
  padding: 76px 0 96px;
}
.hero::before{
  content: ""; position: absolute; inset-inline-end: -120px; top: -160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(216,26,28,.55), rgba(216,26,28,0) 70%);
}
.hero::after{
  content: ""; position: absolute; inset-inline-start: -80px; bottom: -160px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 60% 60%, rgba(242,169,0,.30), rgba(242,169,0,0) 70%);
}
.hero-inner{ position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); padding: 7px 16px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; margin-bottom: 18px; color: #FFE7A0;
}
.hero h1{ font-size: clamp(2rem, 4vw, 3.1rem); color: #fff; margin-bottom: .4em; }
.hero p.lead{ color: rgba(255,255,255,.86); font-size: 1.12rem; max-width: 54ch; margin-bottom: 1.8em; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media{
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.15);
  aspect-ratio: 4/3.1;
}

/* Abstract brand visual — used instead of photography until real product photos are added */
.hero-visual{
  position: relative; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 20% 15%, rgba(215,28,27,.55), rgba(215,28,27,0) 45%),
    radial-gradient(circle at 85% 80%, rgba(242,169,0,.28), rgba(242,169,0,0) 45%),
    linear-gradient(155deg, #071A6E 0%, #041237 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-visual::before{
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.hero-visual .brand-ring{
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.22);
}
.hero-visual .brand-ring.inner{ width: 54%; border-style: solid; border-color: rgba(255,255,255,.12); }
.hero-visual .brand-mark{ position: relative; z-index: 2; width: 44%; max-width: 220px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }
.floating-chip{
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: 10px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.18);
  font-size: .82rem; font-weight: 700; color: #fff; white-space: nowrap;
}
.floating-chip .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.floating-chip.chip-1{ top: 9%; inset-inline-start: 6%; }
.floating-chip.chip-2{ bottom: 10%; inset-inline-end: 6%; }
@media (max-width: 560px){ .floating-chip{ font-size: .74rem; padding: 8px 12px; } }
.hero-stats{
  position: relative; z-index: 2; margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.14); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
}
.hero-stat{ background: rgba(255,255,255,.06); padding: 22px 16px; text-align: center; }
.hero-stat strong{ display: block; font-size: 1.8rem; color: #fff; font-weight: 800; }
.hero-stat span{ font-size: .85rem; color: rgba(255,255,255,.78); }

/* ---------- Sections ---------- */
.section{ padding: 88px 0; }
.section-tight{ padding: 56px 0; }
.section-alt{ background: var(--paper); }
.section-navy{ background: var(--navy); color: #fff; }
.section-navy p{ color: rgba(255,255,255,.82); }
.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; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px;
}
.section h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-navy .eyebrow{ color: #FFC24D; }

/* ---------- Grids & cards ---------- */
.grid{ display: grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.icon-badge{
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; margin-bottom: 18px;
  font-weight: 800; font-size: 1.05rem; flex-shrink: 0;
}

/* Product family cards */
.family-card{ display: flex; flex-direction: column; height: 100%; }
.family-card h3{ font-size: 1.12rem; margin-bottom: 6px; }
.family-card p{ font-size: .94rem; flex: 1; }
.family-card .family-link{ font-weight: 700; color: var(--navy); font-size: .92rem; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }
.family-card:target{ outline: 3px solid var(--amber); outline-offset: 4px; }

/* Stat / trust badges */
.badge-row{ display: flex; flex-wrap: wrap; gap: 14px; }
.trust-badge{
  display: flex; align-items: center; gap: 10px; background: var(--paper-soft);
  border: 1px solid var(--line); padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--navy);
}
.trust-badge svg{ width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }

/* Feature list */
.check-list li{
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--ink-soft); font-size: .98rem;
}
.check-list li svg{ width: 22px; height: 22px; color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* Two-col media/text */
.split{ display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Quick-facts panel — replaces a photo in split sections until real product photography is added */
.facts-panel{
  position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; overflow: hidden; padding: 8px;
}
.facts-panel::before{
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.facts-grid{ position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; }
.facts-item{ padding: 30px 26px; border-inline-end: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.facts-item:nth-child(2n){ border-inline-end: none; }
.facts-item:nth-child(3), .facts-item:nth-child(4){ border-bottom: none; }
.facts-item strong{ display: block; font-size: 1.9rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.facts-item span{ font-size: .86rem; color: rgba(255,255,255,.72); }

/* Branch cards */
.branch-card{ position: relative; padding-inline-start: 24px; }
.branch-card::before{ content:""; position:absolute; inset-inline-start:0; top:6px; bottom:6px; width:4px; border-radius:4px; background: var(--red); }
.branch-card h4{ margin-bottom: 4px; font-size: 1.05rem; }
.branch-card .role{ color: var(--red); font-weight: 700; font-size: .85rem; margin-bottom: 8px; display:block; }

/* CTA band */
.cta-band{
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 52px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2{ color: #fff; margin-bottom: .3em; }
.cta-band p{ color: rgba(255,255,255,.9); max-width: 60ch; margin-inline: auto 1.6em; }
.cta-band .hero-actions{ justify-content: center; }
.cta-band .btn-primary{ background:#fff; color: var(--red); }
.cta-band .btn-primary:hover{ background:#FFF3F3; }

/* ---------- Forms ---------- */
.form-card{ background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field{ display:flex; flex-direction: column; gap: 7px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-weight: 700; font-size: .92rem; }
.form-field .req{ color: var(--red); }
.form-field input, .form-field select, .form-field textarea{
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: .96rem;
  background: var(--paper-soft); color: var(--ink); transition: border-color .15s, background .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline: none; border-color: var(--navy); background: #fff;
}
.form-field textarea{ resize: vertical; min-height: 110px; }
.form-note{ font-size: .85rem; color: var(--ink-soft); }
.form-actions{ display:flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.form-alert{ padding: 14px 18px; border-radius: 10px; font-weight: 700; margin-bottom: 22px; }
.form-alert.success{ background:#E7F6EC; color:#146C34; border:1px solid #BEE8CB; }
.form-alert.error{ background:#FDECEC; color:#B4130F; border:1px solid #F6C6C6; }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info-card{ background: var(--navy); color:#fff; border-radius: var(--radius-lg); padding: 34px; }
.contact-info-card h3{ color:#fff; }
.contact-info-card p{ color: rgba(255,255,255,.78); }
.contact-info-row{ display:flex; gap:14px; align-items:flex-start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-info-row:first-of-type{ border-top: none; }
.contact-info-row svg{ width: 22px; height: 22px; color: #FFC24D; flex-shrink: 0; margin-top: 3px; }
.contact-info-row a, .contact-info-row span{ color:#fff; font-weight: 600; }
.map-frame{ border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); margin-top: 14px; }
.map-frame iframe{ width: 100%; height: 340px; border: 0; display:block; }
.map-frame-sm iframe{ height: 190px; }
.branch-card .family-link{ margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer{ background: #0B1030; color: rgba(255,255,255,.78); padding-top: 64px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-logo{ height: 40px; margin-bottom: 16px; }
.footer-col h3{ color:#fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col p{ color: rgba(255,255,255,.62); font-size: .92rem; }
.footer-col ul li{ margin-bottom: 10px; }
.footer-col a{ color: rgba(255,255,255,.72); font-size: .92rem; transition: color .15s; }
.footer-col a:hover{ color: #fff; }
.footer-contact li{ color: rgba(255,255,255,.72); font-size: .92rem; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display:flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer-bottom p{ margin: 0; color: rgba(255,255,255,.5); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float{
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  animation: wa-pulse 2.6s ease-in-out infinite;
  transition: transform .15s ease;
}
.whatsapp-float:hover{ transform: scale(1.08); }
.whatsapp-float svg{ width: 32px; height: 32px; }
@keyframes wa-pulse{
  0%, 100% { box-shadow: 0 10px 26px rgba(37,211,102,.45); }
  50% { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 10px rgba(37,211,102,.14); }
}
@media (prefers-reduced-motion: reduce){ .whatsapp-float{ animation: none; } }

/* ---------- Misc ---------- */
.page-hero{
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 56px 0; text-align: start;
}
.breadcrumb{ font-size: .86rem; color: var(--ink-soft); margin-bottom: 12px; }
.breadcrumb a{ color: var(--navy); font-weight: 700; }
.page-hero h1{ font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .3em; }
.page-hero p{ max-width: 62ch; font-size: 1.05rem; }

.divider-note{ display:flex; align-items:center; gap: 14px; margin: 8px 0 30px; }
.divider-note .pill{ background: var(--navy); color:#fff; font-weight:800; font-size:.78rem; padding: 6px 14px; border-radius: 999px; }
.divider-note .line{ flex:1; height:1px; background: var(--line); }

.timeline{ border-inline-start: 3px solid var(--line); padding-inline-start: 28px; display:flex; flex-direction: column; gap: 30px; }
.timeline-item{ position: relative; }
.timeline-item::before{ content:""; position:absolute; inset-inline-start:-34px; top:4px; width:14px; height:14px; border-radius:50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red); }
.timeline-item h4{ margin-bottom: 4px; }

.two-col-list{ display:grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; }
  .hero-stats{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; }
  .split .split-media{ order: -1; }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .two-col-list{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .facts-item{ padding: 20px 16px; }
  .facts-item strong{ font-size: 1.5rem; }
  .header-inner{ height: 72px; }
  .brand-logo{ height: 40px; }
  .main-nav{
    position: fixed; inset-inline: 0; top: 72px; bottom: 0;
    background: #030F30; padding: 20px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .main-nav.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul{ flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a{ padding: 14px 16px; font-size: 1.05rem; }
  .lang-switch{ order: -1; }
  .btn-nav-quote{ display: none; }
  .nav-toggle{ display: flex; }
  .hero{ padding: 48px 0 64px; }
  .hero-actions .btn{ flex: 1; }
  .hero-stats{ grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
  .section{ padding: 56px 0; }
  .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom{ flex-direction: column; text-align: center; }
  .cta-band{ padding: 36px 22px; }
  .form-card{ padding: 22px; }
  .whatsapp-float{ width: 54px; height: 54px; bottom: 16px; right: 16px; }
  .whatsapp-float svg{ width: 28px; height: 28px; }
}
