/* ==========================================================================
   SPENCER ELECTRICAL COMPANY — Design System
   Palette drawn from brand mark: deep navy + circuit-green.
   Display: Space Grotesk / Body: Inter / Data-utility: IBM Plex Mono
   ========================================================================== */

:root {
  /* --- Brand palette (from logo) --- */
  --navy-900: #081527;
  --navy-800: #0E2340;
  --navy-700: #163257;
  --navy-600: #1F4370;
  --green-700: #3F7A24;
  --green-600: #4C8A2C;
  --green-500: #62A238;
  --green-400: #7CBB4A;
  --green-100: #E9F3E0;
  --amber-500: #E8A93B;   /* used sparingly — hazard/urgency accent only */
  --amber-900: #4a3510;

  /* --- Neutrals --- */
  --ink: #111820;
  --slate-700: #364150;
  --slate-500: #5B6672;
  --slate-400: #8892A0;
  --slate-200: #DCE1E6;
  --slate-100: #EEF1F4;
  --paper: #F5F7F9;
  --white: #FFFFFF;

  /* --- Type --- */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* --- Elevation --- */
  --shadow-sm: 0 1px 2px rgba(8,21,39,.06), 0 1px 1px rgba(8,21,39,.04);
  --shadow-md: 0 6px 16px -4px rgba(8,21,39,.12), 0 2px 6px rgba(8,21,39,.06);
  --shadow-lg: 0 20px 40px -12px rgba(8,21,39,.22), 0 8px 16px -8px rgba(8,21,39,.12);
  --shadow-green: 0 10px 24px -8px rgba(76,138,44,.5);
  --shadow-navy: 0 10px 24px -8px rgba(14,35,64,.45);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1240px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--navy-800); color: rgba(255,255,255,.82); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-600);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--green-500);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--green-400); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--slate-500); font-size: 17px; }
.section--dark .section-head p { color: rgba(255,255,255,.68); }

/* ---------- Buttons (premium, shadowed, tactile) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background .22s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, var(--green-500), var(--green-600));
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, var(--shadow-green);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 16px 30px -8px rgba(76,138,44,.6); }
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
  background: var(--white);
  color: var(--navy-800);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
}
.btn-secondary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }

.btn-outline-light {
  background: rgba(255,255,255,.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }

.btn-navy {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, var(--shadow-navy);
}
.btn-navy:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 16px 30px -8px rgba(14,35,64,.6); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* Solid (not translucent+blurred) background — backdrop-filter on this
     element would make it a "containing block" for the fixed-position
     mobile menu below, causing the menu to be trapped inside the header
     box instead of sliding over the full page. Keep this background solid. */
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(8,21,39,.08); }
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 54px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-size: 14.5px; font-weight: 600;
  color: var(--navy-700);
  border-radius: 100px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { background: var(--slate-100); }
.nav-links a.active { color: var(--green-600); }
.nav-links a.active::after {
  content: '';
  position: absolute; left: 16px; right: 16px; bottom: 5px;
  height: 2px; background: var(--green-500); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: none; padding: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links { position: fixed; z-index: 150; top: 74px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { padding: 14px 18px; font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-cta .btn-secondary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(76,138,44,.14), transparent 60%),
              var(--navy-900);
  color: rgba(255,255,255,.9);
  overflow: hidden;
  padding: 68px 0 0;
}
.hero .bg-photo { position: absolute; inset: 0; opacity: .14; }
.hero .bg-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  /* very subtle depth wash — kept minimal so the navy brand color reads as the dominant background */
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 15% 110%, rgba(124,187,74,.08), transparent 65%),
              linear-gradient(180deg, rgba(8,21,39,.25), var(--navy-900) 85%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-bottom: 64px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em;
  /* background/color/border-color are set inline from Admin → Homepage & About Text
     (falls back to these values if no inline style is present) */
  background: rgba(255,255,255,.08); border: 1px solid rgba(124,187,74,.4);
  color: var(--green-400);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(124,187,74,.6); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(124,187,74,.55);} 70% { box-shadow: 0 0 0 9px rgba(124,187,74,0);} 100% { box-shadow: 0 0 0 0 rgba(124,187,74,0);} }

.hero h1 { color: var(--white); font-size: clamp(34px, 4.6vw, 58px); font-weight: 600; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--green-400); }
.hero p.lead { font-size: 17.5px; color: rgba(255,255,255,.72); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; }
.hero-trust li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(255,255,255,.65); }
.hero-trust svg { width: 17px; height: 17px; color: var(--green-400); flex-shrink: 0; }

/* Hero visual: rounded photo card with a soft glow and corner-bracket
   accents (technical/schematic motif) instead of a hex clip */
.hero-visual { position: relative; padding: 16px; }
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 4.3;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-600), var(--navy-800));
  overflow: hidden;
  border: 1px solid rgba(124,187,74,.32);
  box-shadow: var(--shadow-lg), 0 0 60px -10px rgba(124,187,74,.18);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame .ph-placeholder { position: absolute; inset: 0; }
.hero-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,21,39,.55));
}
/* corner brackets — sit just outside the card on two opposite corners */
.hero-visual::before, .hero-visual::after {
  content: '';
  position: absolute; width: 34px; height: 34px;
  border-color: var(--green-400); border-style: solid; border-width: 0;
  opacity: .8; pointer-events: none;
}
.hero-visual::before {
  top: 0; left: 0;
  border-top-width: 2px; border-left-width: 2px;
  border-top-left-radius: 6px;
}
.hero-visual::after {
  bottom: 0; right: 0;
  border-bottom-width: 2px; border-right-width: 2px;
  border-bottom-right-radius: 6px;
}
.hero-ring {
  position: absolute; inset: 0; z-index: -1;
  border-radius: var(--radius-lg);
  background: radial-gradient(60% 60% at 30% 20%, rgba(124,187,74,.16), transparent 70%);
  animation: glow-pulse 4.5s ease-in-out infinite;
}
@keyframes glow-pulse { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
.hero-stat-chip {
  position: absolute; left: -6px; bottom: 20px;
  background: var(--white); color: var(--navy-800);
  padding: 16px 20px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  animation: float-y 4.5s ease-in-out infinite;
}
.hero-stat-chip .num { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--green-600); }
.hero-stat-chip .lbl { font-size: 12px; color: var(--slate-500); line-height: 1.3; max-width: 110px; }
@keyframes float-y { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 360px; margin: 0 auto; }
  .hero-stat-chip { left: 8px; }
}

/* Quick contact card, floats over hero bottom edge */
.quick-contact {
  position: relative; z-index: 3;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px 32px;
  margin-top: -46px;
  display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; gap: 16px; align-items: end;
}
.quick-contact .qc-title { grid-column: 1 / -1; margin-bottom: 4px;}
.quick-contact .qc-title h4 { margin: 0 0 2px; font-size: 17px; }
.quick-contact .qc-title span { font-size: 13px; color: var(--slate-500); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; color: var(--slate-500); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
}
.field select {
  /* Long option text (e.g. a full product name from "Enquire Now") must
     never force this field — or its parent grid row — wider than the
     viewport on mobile. */
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6672' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 36px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(76,138,44,.14); outline: none;
}
@media (max-width: 960px) {
  .quick-contact { grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .quick-contact .btn { grid-column: 1 / -1; }
}

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--navy-900); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  text-align: center; padding: 40px 20px;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item .value { font-family: var(--font-mono); font-size: clamp(28px,3.6vw,40px); font-weight: 700; color: var(--white); }
.stat-item .value .suffix { color: var(--green-400); }
.stat-item .label { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 6px; letter-spacing: .02em; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat-item:nth-child(2) { border-right: none; } .stat-item { border-bottom: 1px solid rgba(255,255,255,.08); } }

/* ---------- circuit divider (signature motif) ---------- */
.circuit-divider { width: 100%; height: 34px; overflow: hidden; }
.circuit-divider svg { width: 100%; height: 100%; display: block; }
.circuit-divider .trace { stroke: var(--slate-200); stroke-width: 1.5; fill: none; }
.circuit-divider .pulse { stroke: var(--green-500); stroke-width: 2; fill: none; stroke-dasharray: 6 220; animation: trace-run 5s linear infinite; }
@keyframes trace-run { to { stroke-dashoffset: -900; } }
.section--dark .circuit-divider .trace { stroke: rgba(255,255,255,.14); }

/* ---------- About split section ---------- */
.about-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media .main-photo {
  border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 5/4.6;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.about-media .main-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-media .inset-photo {
  position: absolute; right: -30px; bottom: -34px;
  width: 46%; aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  background: var(--green-600);
}
.about-media .inset-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .about-split { grid-template-columns: 1fr; gap: 70px; }
  .about-media { margin-bottom: 8px; }
}

.check-list { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 30px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy-800); font-size: 15px; }

/* ---------- Placeholder photo blocks (used until admin uploads real photos) ---------- */
.ph-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: rgba(255,255,255,.5);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  text-align: center; padding: 20px;
}
.ph-placeholder.light {
  color: var(--slate-400);
  background:
    repeating-linear-gradient(135deg, rgba(14,35,64,.04) 0 2px, transparent 2px 14px),
    var(--slate-100);
}
.ph-placeholder svg { width: 30px; height: 30px; opacity: .7; }
.ph-placeholder span { font-size: 12px; font-family: var(--font-mono); max-width: 180px; letter-spacing: .02em; }

/* ---------- Category cards (dark panel) ---------- */
.categories-section h2, .categories-section .eyebrow,
.industries-section h2, .industries-section .eyebrow {
  color: var(--white);
}
.categories-section .section-head p, .industries-section .section-head p {
  color: rgba(255,255,255,.65);
}
.categories-section .eyebrow, .industries-section .eyebrow { color: var(--green-400); }

.categories-section { position: relative; background: var(--navy-800); overflow: hidden; }
.categories-section .bg-photo { position: absolute; inset: 0; opacity: .16; }
.categories-section .bg-photo img { width: 100%; height: 100%; object-fit: cover; }
.categories-section .container { position: relative; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .28s ease, background .28s ease, box-shadow .28s ease;
}
.cat-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); box-shadow: var(--shadow-lg); }
.cat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--green-500), var(--green-700));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; box-shadow: var(--shadow-green);
}
.cat-icon svg { width: 26px; height: 26px; color: var(--white); }
.cat-card h3 { color: var(--white); font-size: 18px; margin-bottom: 8px; }
.cat-card p { color: rgba(255,255,255,.6); font-size: 14px; margin: 0; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-photo { aspect-ratio: 4/3; position: relative; background: var(--slate-100); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-ref {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em;
  background: rgba(8,21,39,.72); color: var(--green-400);
  padding: 5px 10px; border-radius: 100px; backdrop-filter: blur(4px);
}
.product-body { padding: 22px 22px 24px; }
.product-body .cat-tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-600); font-weight: 700; }
.product-body h3 { font-size: 17.5px; margin: 8px 0 8px; }
.product-body p.desc { color: var(--slate-500); font-size: 14px; margin-bottom: 14px; }
.spec-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.spec-list span { font-family: var(--font-mono); font-size: 11.5px; background: var(--paper); border: 1px solid var(--slate-200); color: var(--slate-600); padding: 4px 9px; border-radius: 6px; }
.product-body .enquire { display: flex; align-items: center; justify-content: space-between; }
.enquire-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--navy-800); }
.enquire-link svg { width: 15px; height: 15px; transition: transform .2s; }
.product-card:hover .enquire-link svg { transform: translateX(4px); }

@media (max-width: 960px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }

/* Filter bar (products page) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-chip {
  padding: 10px 20px; border-radius: 100px;
  border: 1.5px solid var(--slate-200);
  font-size: 13.5px; font-weight: 600; color: var(--slate-600);
  background: var(--white); transition: all .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.filter-chip .count { font-family: var(--font-mono); font-size: 11px; opacity: .6; }
.filter-chip:hover { border-color: var(--green-500); color: var(--green-600); }
.filter-chip.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); box-shadow: var(--shadow-navy); }
.filter-chip.active .count { color: var(--green-400); opacity: 1; }

/* ---------- Urgent CTA band — hazard-stripe accent (subject-grounded signature) ---------- */
.urgent-band {
  position: relative;
  background: var(--green-600);
  background: linear-gradient(120deg, var(--green-600), var(--green-700));
  padding: 4px 0;
}
.urgent-band::before, .urgent-band::after {
  content: ''; display: block; height: 8px;
  background: repeating-linear-gradient(45deg, var(--amber-500) 0 16px, var(--navy-900) 16px 32px);
}
.urgent-inner { padding: 44px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.urgent-inner h3 { color: var(--white); font-size: 25px; margin-bottom: 6px; }
.urgent-inner p { color: rgba(255,255,255,.85); margin: 0; }
@media (max-width: 760px) { .urgent-inner { text-align: center; justify-content: center; } }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.why-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.why-icon svg { width: 22px; height: 22px; }
.why-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--slate-500); margin: 0; }
@media (max-width: 1080px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Industries ---------- */
.industries-section { position: relative; background: var(--navy-900); overflow: hidden; }
.industries-section .bg-photo { position: absolute; inset: 0; opacity: .22; }
.industries-section .bg-photo img { width: 100%; height: 100%; object-fit: cover; }
.industries-section::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, var(--navy-900) 0%, rgba(8,21,39,.75) 40%, var(--navy-900) 100%); }
.industries-section .container { position: relative; z-index: 2; }
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.industry-card {
  padding: 28px; border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px);
  transition: transform .25s ease, border-color .25s;
}
.industry-card:hover { transform: translateY(-6px); border-color: var(--green-400); }
.industry-card .why-icon { background: rgba(124,187,74,.15); color: var(--green-400); }
.industry-card h4 { color: var(--white); font-size: 16px; }
.industry-card p { color: rgba(255,255,255,.62); font-size: 13.5px; margin: 0; }
@media (max-width: 960px) { .industry-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .industry-grid { grid-template-columns: 1fr; } }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; padding: 70px 0 30px; }
.quote-band .quote-icon { color: var(--green-500); width: 42px; height: 42px; margin: 0 auto 24px; }
.quote-band blockquote {
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px);
  color: var(--navy-800); max-width: 820px; margin: 0 auto 20px; font-weight: 500;
}
.quote-band cite { font-style: normal; font-family: var(--font-mono); font-size: 13px; color: var(--slate-500); letter-spacing: .03em; }

.brands-strip { padding: 30px 0 70px; overflow: hidden; }
.brands-track { display: flex; align-items: center; gap: 64px; animation: scroll-x 26s linear infinite; width: max-content; }
.brands-track img { height: 34px; }
.brands-track .brand-fallback { display: flex; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--slate-500); height: auto; }
@keyframes scroll-x { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.6); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 50px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--green-600); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h5 { color: var(--white); font-family: var(--font-display); font-size: 15px; margin-bottom: 20px; letter-spacing: .02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--green-400); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--green-400); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  position: relative;
  background: var(--navy-900);
  padding: 150px 0 70px;
  overflow: hidden;
  color: var(--white);
}
.page-header .bg-photo { position: absolute; inset: 0; opacity: .18; }
.page-header .bg-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-header::before {
  /* very subtle depth wash — kept minimal so the navy brand color stays dominant */
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(800px 420px at 20% 0%, rgba(124,187,74,.10), transparent 65%);
  pointer-events: none;
}
.page-header::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,21,39,.35), var(--navy-900) 92%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 18px; font-family: var(--font-mono); }
.breadcrumb a:hover { color: var(--green-400); }
.page-header h1 { color: var(--white); font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px; }
.page-header .subtitle { color: rgba(255,255,255,.6); font-size: 16px; direction: rtl; unicode-bidi: isolate; }
.page-header .subtitle .en { direction: ltr; }

/* ---------- About page specifics ---------- */
.mission-vision { display: flex; flex-direction: column; gap: 16px; position: absolute; right: -20px; bottom: 24px; width: 62%; }
.mv-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 20px 22px; }
.mv-card .tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--green-600); font-weight: 700; margin-bottom: 6px; display: block; }
.mv-card p { margin: 0; font-size: 13.5px; color: var(--slate-600); }
@media (max-width: 960px) { .mission-vision { position: static; width: 100%; margin-top: 20px; } }

.feature-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 32px; }
.feature-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14.5px; color: var(--navy-800); }
.feature-points .ico, .check-list .ico {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-100); color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
}
.feature-points .ico svg, .check-list .ico svg { width: 14px; height: 14px; }

.timeline { position: relative; margin-top: 30px; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--green-500), var(--slate-200)); }
.timeline-item { position: relative; padding-bottom: 46px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -40px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--green-500);
  box-shadow: 0 0 0 5px var(--green-100);
}
.timeline-year { font-family: var(--font-mono); color: var(--green-600); font-weight: 700; font-size: 14px; letter-spacing: .02em; margin-bottom: 6px; display: block; }
.timeline-item h4 { font-size: 18px; margin-bottom: 8px; }
.timeline-item p { color: var(--slate-500); font-size: 14.5px; max-width: 620px; margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; }
.contact-info-card { background: var(--navy-800); color: var(--white); border-radius: var(--radius-lg); padding: 40px 34px; box-shadow: var(--shadow-navy); }
.contact-info-card h3 { color: var(--white); }
.contact-info-card p { color: rgba(255,255,255,.65); font-size: 14.5px; }
.info-row { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.info-row:first-of-type { border-top: none; }
.info-row .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(124,187,74,.15); color: var(--green-400); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-row .ico svg { width: 19px; height: 19px; }
.info-row h5 { color: var(--white); font-size: 14px; margin: 0 0 3px; }
.info-row div p { margin: 0; font-size: 13.5px; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; margin-top: 24px; box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,.1); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

.contact-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 42px; box-shadow: var(--shadow-lg); border: 1px solid var(--slate-100); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; min-width: 0; }
.form-grid > .field { min-width: 0; }
.form-grid.full { grid-template-columns: 1fr; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }

.how-help-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 70px; }
.help-item { display: flex; gap: 16px; }
.help-item .why-icon { flex-shrink: 0; }
.help-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.help-item p { font-size: 13.5px; color: var(--slate-500); margin: 0; }
@media (max-width: 900px) { .how-help-strip { grid-template-columns: 1fr; } }

/* ---------- CTA closing band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-lg);
  padding: 64px 60px;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 20% 0%, rgba(124,187,74,.22), transparent 60%);
}
.cta-band h2 { color: var(--white); position: relative; }
.cta-band p { color: rgba(255,255,255,.65); position: relative; max-width: 520px; margin: 0 auto 30px; }
.cta-band .actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Alerts / form feedback ---------- */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--green-100); color: var(--green-700); border: 1px solid #cfe6bc; }
.alert-error { background: #FBEAEA; color: #9A2E2E; border: 1px solid #f2c8c8; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive section spacing ---------- */
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .cta-band { padding: 46px 26px; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .25s;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--green-600); }
.back-to-top svg { width: 20px; height: 20px; }
