/* ============================================
   Al-Jidar Al-Shahiq — Dark steel theme
   ============================================ */

:root {
  /* Deep navy + darker steel blues */
  --bg-deep: #04060a;
  --bg-surface: #0a0f16;
  --primary: #0f1a28;
  --accent: #1a3048;
  --accent-deep: #142436;
  --accent-press: #0f1b2a;
  --brand-blue: #2a4158;
  /* Silver / cool gray scale */
  --steel: #b8c2d0;
  --steel-muted: #8e9bab;
  --steel-bright: #dde4ec;
  --silver-line: rgba(200, 210, 222, 0.14);
  --silver-glow: rgba(195, 206, 220, 0.09);
  --silver-strong: rgba(210, 218, 228, 0.22);
  --text: #eef1f4;
  --text-muted: #949eac;
  --border: var(--silver-line);
  --glass: rgba(12, 14, 20, 0.82);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-ar: "Cairo", sans-serif;
  --font-en: "Inter", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --transition: 0.28s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
}

html[lang="en"] body {
  font-family: var(--font-en);
}

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(200, 210, 225, 0.06), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(30, 48, 72, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(25, 40, 58, 0.4), transparent 45%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Layout ---------- */
.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--steel-bright);
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.65rem 0 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.logo.logo-with-img {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  isolation: isolate;
}

/* شعار النافبار: صورة فقط — دمج أسود الخلفية مع الخلفية الداكنة */
.logo.logo-only.logo-with-img {
  gap: 0;
  padding: 0.2rem 0;
  isolation: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.logo-img {
  height: clamp(38px, 7vw, 50px);
  width: auto;
  max-width: 150px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent !important;
  box-shadow: none;
}

/* PNG بخلفية سوداء: يدمج اللون الأسود مع الخلفية فيختفي الإطار */
.logo.logo-only .logo-img {
  height: clamp(46px, 9vw, 64px);
  max-width: min(260px, 62vw);
  mix-blend-mode: lighten;
  filter: brightness(1.07) contrast(1.04);
}

.logo span,
.logo-text .logo-line {
  font-weight: 800;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text) 0%, var(--steel) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo .logo-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.hero-preline {
  display: block;
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hero-steel-word {
  display: block;
  margin-top: 0.2em;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  color: var(--steel-bright);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(200, 210, 225, 0.12);
}

.footer-logo-img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 0.85rem;
  background: transparent !important;
  box-shadow: none;
  mix-blend-mode: lighten;
}

.footer-line {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.footer-line a {
  color: var(--steel);
  font-weight: 600;
}

.footer-line a:hover {
  color: var(--steel-bright);
}

.about-prose p {
  margin-bottom: 1.1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.about-prose p.lead-about {
  color: var(--text);
  font-size: 1.08rem;
}

.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb a {
  color: var(--steel);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--steel-bright);
}

.product-detail-header {
  padding-bottom: 1.5rem;
}

.product-detail-header h1 {
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: var(--steel-bright);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }
}

.product-gallery figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Catalog sections (steel / machinery with named photos) ---------- */
.catalog-product-block {
  margin-bottom: 3.5rem;
  scroll-margin-top: 5.5rem;
}

.catalog-product-block:last-of-type {
  margin-bottom: 1rem;
}

.catalog-product-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 0.35rem;
  color: var(--steel-bright);
  font-weight: 800;
}

.catalog-product-code {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Cascadia Mono", monospace;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

.catalog-product-lead {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 720px;
  line-height: 1.7;
  font-size: 0.98rem;
}

.named-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.named-photo-grid figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
}

.named-photo-grid .shot {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.named-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.named-photo-grid figcaption {
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Cascadia Mono", monospace;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  word-break: break-all;
}

.detail-prose p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.category-intro {
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color var(--transition), background var(--transition);
}

@media (max-width: 1100px) {
  .nav-links a {
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
  }
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--silver-glow);
}

/* —— Products dropdown (Steel / Machines) —— */
.nav-dropdown {
  position: relative;
  list-style: none;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-active > .nav-dropdown-toggle {
  color: var(--text);
  background: var(--silver-glow);
}

.nav-dropdown-chevron {
  font-size: 0.65rem;
  opacity: 0.85;
  transition: transform var(--transition);
}

.nav-dropdown.is-open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  margin: 0.15rem 0.35rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-dropdown-menu a.nav-dropdown-sublink {
  font-size: 0.84rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  padding-inline-start: 1.35rem;
  color: var(--text-muted);
}

.nav-dropdown-menu a.nav-dropdown-sublink:hover,
.nav-dropdown-menu a.nav-dropdown-sublink.active {
  color: var(--steel-bright);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--steel-bright);
  background: var(--silver-glow);
}

@media (min-width: 901px) {
  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    inset-inline-start: 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition), visibility 0.2s;
    z-index: 1001;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .nav-dropdown-toggle {
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
  }
}

@media (max-width: 900px) {
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .nav-dropdown-toggle {
    font-size: 1.05rem;
    padding: 0.75rem 1.25rem;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    max-width: 280px;
    margin-top: 0.35rem;
    text-align: center;
    box-shadow: none;
    background: rgba(12, 16, 24, 0.6);
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  color: var(--steel);
  background: rgba(90, 105, 125, 0.18);
  transition: var(--transition);
}

.lang-toggle:hover {
  border-color: var(--silver-strong);
  color: var(--steel-bright);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.menu-toggle i {
  font-size: 1.25rem;
}

/* Mobile drawer backdrop (toggled via .is-active from main.js) */
.nav-drawer-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .nav-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(4, 6, 12, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .nav-drawer-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar .logo {
    position: relative;
    z-index: 1100;
  }

  .navbar .nav-actions {
    position: relative;
    z-index: 1100;
  }

  /* Narrow side drawer — full height, no internal scroll */
  .nav-links {
    position: fixed;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: min(228px, 76vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0.12rem;
    padding: max(0.5rem, env(safe-area-inset-top, 0px)) 0.55rem max(0.5rem, env(safe-area-inset-bottom, 0px));
    background: rgba(10, 14, 22, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-inline-end: 1px solid var(--border);
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1001;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Closed: must not lose to html[dir="rtl"] — use :not(.is-open) so .is-open can win */
  .nav-links:not(.is-open) {
    transform: translate3d(-100%, 0, 0);
    pointer-events: none;
  }

  html[dir="rtl"] .nav-links:not(.is-open) {
    transform: translate3d(100%, 0, 0);
  }

  .nav-links.is-open {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.35);
  }

  html[dir="rtl"] .nav-links.is-open {
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.35);
  }

  .nav-links > li {
    flex-shrink: 0;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links > li > a {
    width: 100%;
    text-align: center;
    font-size: 0.88rem;
    padding: 0.42rem 0.5rem;
  }

  .nav-links a {
    font-size: 0.88rem;
    padding: 0.42rem 0.5rem;
  }

  .nav-dropdown-toggle {
    font-size: 0.88rem;
    padding: 0.42rem 0.5rem;
    width: 100%;
    justify-content: center;
  }

  .nav-dropdown-menu {
    max-width: none;
    width: 100%;
    margin-top: 0.1rem;
    padding: 0.2rem 0;
  }

  .nav-dropdown-menu a {
    font-size: 0.78rem;
    padding: 0.38rem 0.45rem;
    margin: 0.06rem 0.25rem;
  }

  .site-header {
    z-index: 1002;
  }
}

/* Lock scroll when mobile drawer is open (class toggled from main.js) */
@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #f2f4f7;
  border: 1px solid var(--silver-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--steel);
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--silver-strong);
  color: var(--steel-bright);
  background: var(--silver-glow);
}

.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(160, 175, 195, 0.12);
  color: var(--text);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.btn-small:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 78vh, 640px);
  display: flex;
  align-items: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  margin-top: -0.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(4, 6, 12, 0.94) 0%, rgba(18, 32, 48, 0.65) 45%, rgba(4, 6, 12, 0.92) 100%),
    url("https://images.unsplash.com/photo-1504917595217-df1c575b5b1e?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(180, 195, 215, 0.07), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

/* Hero with background video */
.hero--video .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-deep);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay--video {
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.45) 0%, rgba(4, 6, 12, 0.72) 50%, rgba(4, 6, 12, 0.82) 100%),
    radial-gradient(ellipse 90% 70% at 50% 35%, rgba(30, 48, 72, 0.25), transparent 60%);
  z-index: 1;
}

.hero .container,
.hero .hero-container {
  position: relative;
  z-index: 2;
  padding-block: 4rem 5rem;
}

.hero--video .hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: min(1180px, 92vw);
  margin-inline: auto;
  text-align: center;
}

.hero-content {
  max-width: 640px;
}

.hero--video .hero-content {
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--video .hero-cta {
  justify-content: center;
}

@media (max-width: 640px) {
  .hero--video {
    min-height: clamp(380px, 85vh, 560px);
  }

  .hero--video .hero-container {
    padding-block: 3rem 3.5rem;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--steel);
  border: 1px solid var(--border);
  background: rgba(22, 28, 38, 0.65);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.35rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(3rem, 10vw, 5rem) 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  margin-top: -0.5rem;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1018 0%, #152535 48%, #04060a 100%);
  opacity: 1;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 0.65rem;
  color: var(--steel-bright);
}

.page-hero p {
  color: var(--text-muted);
  max-width: 560px;
}

.page-hero--photo {
  padding-block: clamp(4rem, 14vw, 6.5rem);
}

.page-hero-bg--cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-bg--about-photo {
  background-image: linear-gradient(
      135deg,
      rgba(6, 12, 20, 0.88) 0%,
      rgba(15, 28, 42, 0.82) 45%,
      rgba(3, 5, 10, 0.92) 100%
    ),
    url("../images/hero-welding-sparks.png");
}

.page-hero-bg--contact-photo {
  background-image: linear-gradient(
      135deg,
      rgba(6, 12, 20, 0.88) 0%,
      rgba(15, 28, 42, 0.82) 45%,
      rgba(3, 5, 10, 0.92) 100%
    ),
    url("../images/hero-steel-worker.png");
}

/* ---------- Glass cards / grids ---------- */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--silver-strong);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visual .float-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #6a7a8e, #4a5565);
  color: var(--steel-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow);
  border: 2px solid rgba(220, 228, 236, 0.35);
}

html[dir="rtl"] .about-visual .float-icon {
  left: 1.25rem;
  bottom: 1.25rem;
  right: auto;
}

html[dir="ltr"] .about-visual .float-icon {
  right: 1.25rem;
  bottom: 1.25rem;
  left: auto;
}

/* ---------- Product cards ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

a.product-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.product-card:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.product-card:hover {
  border-color: rgba(195, 206, 220, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.product-card .thumb {
  height: 180px;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .thumb img {
  transform: scale(1.06);
}

.product-card .body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--steel-bright);
}

.product-card .product-card-code {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Cascadia Mono", monospace;
  color: var(--text-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.product-card .btn-small {
  align-self: flex-start;
}

/* ---------- Why us ---------- */
.grid-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.why-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(14, 18, 26, 0.95), rgba(55, 68, 88, 0.2));
  border: 1px solid var(--border);
  transition: var(--transition);
}

.why-card:hover {
  border-color: rgba(200, 210, 222, 0.35);
}

.why-card .icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(160, 175, 195, 0.12);
  color: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--steel-bright);
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Filter tabs ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-tabs button {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: rgba(18, 24, 34, 0.65);
  transition: var(--transition);
}

.filter-tabs button:hover,
.filter-tabs button.is-active {
  color: var(--text);
  border-color: var(--border);
  background: rgba(160, 175, 195, 0.12);
}

.product-card.is-hidden {
  display: none;
}

/* ---------- About page extras ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.value-pill {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  text-align: center;
}

.value-pill i {
  font-size: 1.5rem;
  color: var(--steel-bright);
  margin-bottom: 0.65rem;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  background: rgba(20, 26, 36, 0.55);
}

.partners-row span {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--silver-glow);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .info-cards {
    grid-template-columns: 1fr;
  }
}

.info-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--glass);
  text-align: center;
}

.info-card i {
  font-size: 1.5rem;
  color: var(--steel);
  margin-bottom: 0.75rem;
}

.info-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.info-card span,
.info-card a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(12, 16, 24, 0.75);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: #f87171;
  font-size: 0.8rem;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 420px;
  background: var(--bg-surface);
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.55) contrast(1.02) brightness(0.95);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(20, 26, 34, 0.65));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--steel);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  padding: 0.35rem 0;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer-madeby {
  margin: 0;
  font-size: 0.8rem;
  color: var(--steel-muted);
}

.footer-madeby a {
  display: inline;
  color: var(--steel);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-madeby a:hover {
  color: var(--steel-bright);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--steel-bright);
  border: 1px solid var(--silver-strong);
  font-weight: 700;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  box-shadow: var(--shadow);
}

html[dir="rtl"] .toast {
  left: auto;
  right: 50%;
  transform: translateX(50%) translateY(120px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

html[dir="rtl"] .toast.is-visible {
  transform: translateX(50%) translateY(0);
}

/* ---------- Pagination dots (decorative) ---------- */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 2rem;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
}

.carousel-dots span:nth-child(2) {
  opacity: 1;
  background: var(--steel-bright);
  transform: scale(1.15);
}
