﻿/* ============================================================
   الرصيفة للصناعات الحديدية — Al-Rusaifah Iron Industries
   Mobile-first · RTL · Industrial premium theme
   ============================================================ */

:root {
  /* derived from the company logo: rgb(78, 129, 194) */
  --ink: #0a1422;
  --ink-2: #101d31;
  --ink-3: #1a2b45;
  --steel: #8da2bd;
  --line: rgba(255, 255, 255, 0.1);
  --paper: #f3f6fa;
  --white: #ffffff;
  --accent: #4e81c2;
  --accent-2: #82abdd;
  --accent-deep: #33639f;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(3, 8, 16, 0.45);
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(100% - 2.5rem, 1180px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "IBM Plex Sans Arabic", "Alexandria", "Noto Kufi Arabic", "Segoe UI", system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

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

ul { list-style: none; }

.container {
  width: var(--container);
  margin-inline: auto;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.section-tag::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--steel);
  font-size: 1.02rem;
  max-width: 640px;
}

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #5d8fcd 0%, var(--accent) 45%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(78, 129, 194, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(101%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(78, 129, 194, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover::after { transform: translateX(-101%); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

/* readability scrim while header is transparent over the hero */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: -40%;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 11, 21, 0.55), transparent);
  opacity: 1;
  transition: opacity 0.4s;
  pointer-events: none;
}

.site-header.scrolled::before,
.site-header.menu-open::before { opacity: 0; }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(3, 8, 16, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.18);
  transition: transform 0.4s var(--ease);
}

.brand:hover img { transform: scale(1.05); }

.brand-name {
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.3;
  white-space: nowrap;
}

.brand-name small {
  display: block;
  font-weight: 600;
  font-size: 0.74rem;
  color: var(--accent-2);
  letter-spacing: 0.05em;
}

/* Desktop nav */
.main-nav { display: none; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.main-nav a {
  position: relative;
  font-weight: 700;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.4rem 0;
  transition: color 0.3s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}

.main-nav a:hover,
.main-nav a.active { color: #fff; }

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.header-cta { display: none; }

/* Burger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s, width 0.35s var(--ease);
}

.nav-toggle span:nth-child(2) { width: 70%; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 99;
  background: rgba(14, 17, 22, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2rem 1.4rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu nav ul {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, padding-inline-start 0.3s var(--ease);
}

.mobile-menu nav a::after {
  content: "←";
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-menu nav a.active,
.mobile-menu nav a:hover {
  color: #fff;
  padding-inline-start: 0.7rem;
}

.mobile-menu nav a.active::after,
.mobile-menu nav a:hover::after { opacity: 1; }

.mobile-menu .menu-contact {
  margin-top: auto;
  display: grid;
  gap: 0.8rem;
}

.mobile-menu .menu-contact a.btn { width: 100%; }

body.no-scroll { overflow: hidden; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(3.5rem, 9vh, 6rem);
  isolation: isolate;
  background-color: var(--ink-2); /* placeholder while image loads */
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  animation: heroZoom 16s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 80% 10%, transparent 40%, rgba(5, 11, 21, 0.55) 100%),
    linear-gradient(to top, rgba(5, 11, 21, 0.97) 0%, rgba(5, 11, 21, 0.62) 45%, rgba(5, 11, 21, 0.38) 100%),
    linear-gradient(100deg, rgba(5, 11, 21, 0.55) 0%, transparent 60%);
}

.hero-content {
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(78, 129, 194, 0.3);
}

.hero h1 {
  font-size: clamp(2.3rem, 8.5vw, 4.6rem);
  line-height: 1.22;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-2), #d9e9fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.02rem, 2.6vw, 1.22rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-meta {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hero-meta div strong {
  display: block;
  font-size: clamp(1.15rem, 3.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
}

.hero-meta div span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}


/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  min-height: 46svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2.5rem) 0 2.6rem;
  isolation: isolate;
  background-color: var(--ink-2);
}

.page-hero img.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(6, 13, 24, 0.95), rgba(6, 13, 24, 0.45));
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.breadcrumb a:hover { color: var(--accent-2); }

.page-hero h1 {
  font-size: clamp(1.9rem, 6vw, 3rem);
}

.page-hero p {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
}

/* ---------- Marquee strip ---------- */

.strip {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.strip-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 26s linear infinite;
  font-weight: 700;
  font-size: 0.95rem;
}

.strip-track span { display: inline-flex; align-items: center; gap: 3rem; }

.strip-track i {
  font-style: normal;
  opacity: 0.65;
}

@keyframes marquee {
  to { transform: translateX(50%); }
}

/* ---------- Intro statement ---------- */

.intro {
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.intro .section-tag {
  justify-content: center;
}

.intro .section-tag::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.intro p {
  font-size: clamp(1.15rem, 3.2vw, 1.7rem);
  font-weight: 700;
  line-height: 2;
  max-width: 860px;
  margin-inline: auto;
  color: rgba(244, 245, 247, 0.92);
}

.intro p mark {
  background: none;
  color: var(--accent-2);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(78, 129, 194, 0.1), transparent 60%),
    var(--ink-2);
}

.stat {
  padding: 2rem 1.2rem;
  text-align: center;
  border-inline-start: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.stat:nth-child(odd) { border-inline-start: none; }
.stat:nth-child(-n + 2) { border-top: none; }

.stat strong {
  display: block;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(120deg, #fff 30%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 1.4rem;
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 129, 194, 0.5);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-3);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover .card-media img { transform: scale(1.07); }

.card-body { padding: 1.4rem 1.4rem 1.6rem; }

.card-body h3 {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--steel);
  font-size: 0.95rem;
}

/* Feature (icon) cards */
.feature {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.5s var(--ease);
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(78, 129, 194, 0.5);
  box-shadow: var(--shadow);
}

.feature:hover::before { width: 100%; }

.feature .num {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(130, 171, 221, 0.75);
  font-variant-numeric: tabular-nums;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.feature p {
  color: var(--steel);
  font-size: 0.93rem;
}

/* Photo-based feature cards (no icons) */
.photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--ink-3);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 11, 21, 0.95) 8%, rgba(5, 11, 21, 0.45) 55%, rgba(5, 11, 21, 0.1) 100%);
}

.photo-card-body {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 1.4rem 1.4rem 1.5rem;
}

.photo-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.photo-card-body p {
  color: rgba(235, 241, 248, 0.82);
  font-size: 0.92rem;
  line-height: 1.7;
}

.photo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 129, 194, 0.5);
  box-shadow: var(--shadow);
}

.photo-card:hover img { transform: scale(1.07); }

/* ---------- Split section (about teaser) ---------- */

.split {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  background: var(--ink-3);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media .badge {
  position: absolute;
  bottom: 1rem;
  inset-inline-start: 1rem;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  font-size: 0.85rem;
}

.split-media .badge strong {
  display: block;
  color: var(--accent-2);
  font-size: 1.25rem;
}

.split-text p {
  color: var(--steel);
  margin-bottom: 1rem;
}

.check-list {
  margin: 1.4rem 0 2rem;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- PVC canopies showcase ---------- */

.pvc-grid {
  display: grid;
  gap: 2.2rem;
  margin-top: 2.5rem;
  align-items: center;
}

.pvc-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.pvc-media .gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.pvc-media .gallery-item { aspect-ratio: 4 / 3; }

.pvc-text > p {
  color: var(--steel);
  font-size: 1.02rem;
  margin-bottom: 1.4rem;
}

.pvc-text .check-list {
  margin: 0 0 2rem;
}

@media (min-width: 960px) {
  .pvc-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .pvc-text .check-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  background: var(--ink-3);
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 11, 21, 0.8), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.gallery-item::after {
  content: "+";
  position: absolute;
  top: 0.7rem;
  inset-inline-end: 0.7rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
  border-radius: 50%;
  background: rgba(78, 129, 194, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  z-index: 2;
  padding: 0.8rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover::after { opacity: 1; transform: scale(1); }
.gallery-item:hover figcaption { transform: none; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 11, 21, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(92vw, 1000px);
  max-height: 82svh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  animation: lbIn 0.35s var(--ease);
}

@keyframes lbIn {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.lb-btn:hover { background: rgba(78, 129, 194, 0.9); }
.lb-btn:active { transform: scale(0.93); }

.lb-close { top: 1rem; inset-inline-end: 1rem; }
.lb-prev { inset-inline-start: 0.7rem; }
.lb-next { inset-inline-end: 0.7rem; }

.lb-counter {
  position: absolute;
  bottom: 1.2rem;
  inset-inline-start: 50%;
  transform: translateX(50%);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  isolation: isolate;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.4rem, 5vw, 3.5rem);
  text-align: center;
  background: var(--ink-2);
}

.cta-band img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(6, 13, 24, 0.94), rgba(38, 78, 132, 0.84));
}

.cta-band h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  margin-bottom: 0.8rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin: 0 auto 1.8rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 1.2rem;
}

.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.6rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.5s var(--ease);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 129, 194, 0.5);
  box-shadow: var(--shadow);
}

.contact-card:hover::before { width: 100%; }

.contact-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a.value {
  color: var(--steel);
  font-size: 0.97rem;
  word-break: break-word;
}

.contact-card a.value:hover { color: var(--accent-2); }

.contact-card .num {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  direction: ltr;
  display: inline-block;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #07101d;
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
  padding-bottom: 2.5rem;
}

.footer-brand img {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 28px rgba(3, 8, 16, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.footer-brand p {
  color: var(--steel);
  font-size: 0.93rem;
  max-width: 320px;
}

.site-footer h4 {
  font-size: 1rem;
  margin-bottom: 1.1rem;
  color: #fff;
}

.footer-links li { margin-bottom: 0.65rem; }

.footer-links a {
  color: var(--steel);
  font-size: 0.95rem;
  transition: color 0.3s, padding-inline-start 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--accent-2);
  padding-inline-start: 0.4rem;
}

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--steel);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.footer-contact b { color: #fff; font-weight: 700; }
.footer-contact .ltr { direction: ltr; unicode-bidi: embed; }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}

.footer-social:hover {
  border-color: var(--accent);
  background: rgba(78, 129, 194, 0.14);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
  text-align: center;
  color: var(--steel);
  font-size: 0.85rem;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track { animation: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* lazy images fade in once decoded (classes applied by JS) */
img.fade-img {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

img.fade-img.loaded { opacity: 1; }

/* ---------- Floating call button (mobile) ---------- */

.call-fab {
  position: fixed;
  bottom: 1.2rem;
  inset-inline-end: 1.2rem;
  z-index: 90;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #5d8fcd, var(--accent-deep));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 32px rgba(78, 129, 194, 0.5);
  transition: transform 0.3s var(--ease);
}

.call-fab:active { transform: scale(0.94); }

/* ============================================================
   Tablet ≥ 640px
   ============================================================ */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .hero-actions .btn { min-width: 180px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-top: none; }
  .stat:nth-child(odd) { border-inline-start: 1px solid var(--line); }
  .stat:first-child { border-inline-start: none; }
}

/* ============================================================
   Desktop ≥ 960px
   ============================================================ */
@media (min-width: 960px) {
  :root { --header-h: 96px; }

  .brand img { width: 64px; height: 64px; }
  .brand { gap: 0.9rem; }
  .brand-name { font-size: 1.2rem; }

  .nav-toggle, .mobile-menu { display: none; }
  .main-nav { display: block; }
  .header-cta { display: inline-flex; padding: 0.65rem 1.5rem; font-size: 0.92rem; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }

  .split { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .split.reverse > .split-media { order: 2; }

  .hero { align-items: center; padding-bottom: 0; }
  .hero-content { padding-top: var(--header-h); }
  .call-fab { display: none; }

  .gallery-item:nth-child(6n + 1) {
    grid-column: span 2;
    grid-row: span 2;
  }
}
