/* ==========================================================================
   Darb Galaxy — Design System
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #0b1b3a;
  --navy-800: #0f2350;
  --navy-700: #1a3170;
  --navy-50:  #eef2fb;

  --red-600: #e10a0a;
  --red-700: #b80808;
  --red-50:  #fef2f2;

  /* Neutrals */
  --ink:        #0f172a;
  --slate-700:  #334155;
  --slate-500:  #64748b;
  --slate-300:  #cbd5e1;
  --slate-200:  #e2e8f0;
  --slate-100:  #f1f5f9;
  --bg:         #f7f8fb;
  --white:      #ffffff;

  /* Type */
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Sizing */
  --container: 1200px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(11,27,58,0.06), 0 1px 3px rgba(11,27,58,0.04);
  --shadow:    0 6px 18px rgba(11,27,58,0.08), 0 2px 4px rgba(11,27,58,0.04);
  --shadow-lg: 0 24px 48px -12px rgba(11,27,58,0.18);

  --t: 220ms cubic-bezier(.2,.7,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--slate-700); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
/* On tablet+ screens, constrain content to ~82% (with an upper cap for ultra-wide). */
@media (min-width: 1024px) {
  .container {
    width: 82%;
    max-width: 1280px;
    padding: 0;
  }
}
section { padding: clamp(64px, 9vw, 110px) 0; }
.section-sm { padding: clamp(48px, 6vw, 72px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--red-600);
}
.lede { font-size: 1.125rem; color: var(--slate-700); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red-600);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(225,10,10,.6);
}
.btn-primary:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(225,10,10,.55); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-ghost { color: var(--navy-900); padding: 10px 18px; }
.btn-ghost:hover { color: var(--red-600); }
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); font-size: 1.05rem; line-height: 1; }
.brand-text small { display: block; font-size: .68rem; font-weight: 500; color: var(--slate-500); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: 10px 14px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--slate-700);
  border-radius: 8px;
  transition: color var(--t), background var(--t);
}
.nav-links a:hover { color: var(--navy-900); background: var(--slate-100); }
.nav-links a.active { color: var(--navy-900); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--red-600); border-radius: 2px;
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border-radius: 10px;
  color: var(--navy-900);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  body.nav-open .mobile-nav { transform: translateX(0); }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  color: var(--white);
  z-index: 60;
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
}
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav .brand-text, .mobile-nav .brand-text small { color: var(--white); }
.mobile-nav .nav-toggle { color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav ul { margin-top: 32px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 16px 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a:hover, .mobile-nav a.active { color: #ffb4b4; }
.mobile-nav .btn { margin-top: 28px; }

/* ---------- Hero (rotating slider) ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: var(--navy-900);
  overflow: hidden;
  isolation: isolate;
  padding: 0;          /* override the global section padding */
}
/* Slides stack on top of each other and crossfade */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1200ms ease, transform 7000ms ease-out;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
/* Dark + brand gradient overlay so text stays readable */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(11,27,58,.92) 0%, rgba(11,27,58,.75) 45%, rgba(11,27,58,.45) 100%),
    radial-gradient(700px 300px at 90% 15%, rgba(225,10,10,.28), transparent 60%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: clamp(48px, 5vw, 64px);
  padding-bottom: clamp(64px, 6vw, 80px);
  min-height: clamp(380px, 56vh, 500px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1, .hero p, .hero .eyebrow { color: var(--white); }
.hero h1 { max-width: 20ch; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .5em; }
.hero h1 .accent { color: #ff7a7a; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 56ch; margin-bottom: 0; }
.hero .eyebrow { color: #ff9a9a; margin-bottom: 10px; }
.hero .eyebrow::before { background: #ff9a9a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Slide-specific copy: only the active slide's text shows */
.hero-copy { position: relative; }
.hero-copy .slide-text {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-copy .slide-text.is-active {
  opacity: 1;
  transform: none;
  position: relative;
  pointer-events: auto;
}

/* Slider dots */
.hero-controls {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
}
.hero-dot {
  width: 28px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background var(--t), width var(--t);
}
.hero-dot.is-active { background: var(--red-600); width: 44px; }

/* Stats strip — separate band right under the hero */
.stats-strip {
  background: #06122a;
  color: var(--white);
  padding: 0;
}
.stats-strip .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
}
.stats-strip .stat {
  background: #06122a;
  padding: 22px 22px;
}
.stats-strip .num { font-family: var(--font-display); font-size: clamp(1.4rem,2.6vw,1.9rem); font-weight: 700; color: var(--white); }
.stats-strip .lbl { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 4px; }
@media (max-width: 720px) {
  .stats-strip .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { min-height: 380px; }
}

/* ---------- Page heading (inner pages) ---------- */
.page-head {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 90px);
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/industrial-1.jpg');
  background-size: cover; background-position: center;
  opacity: .18;
}
.page-head::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(700px 350px at 85% 30%, rgba(225,10,10,.18), transparent 60%);
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: var(--white); margin-bottom: 16px; }
.page-head p { color: rgba(255,255,255,.78); max-width: 60ch; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: var(--white); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- Cards / Service grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.service-card {
  position: relative;
  display: block;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red-600);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--white);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--navy-50);
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background var(--t), color var(--t);
}
.service-card:hover .icon { background: var(--red-50); color: var(--red-600); }
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.service-card p { font-size: .95rem; margin-bottom: 16px; }
.service-card .more {
  font-size: .85rem; font-weight: 600; color: var(--navy-900);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card:hover .more { color: var(--red-600); }

.section-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Feature blocks ---------- */
.feature-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; gap: 40px; } }
.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--slate-200);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .badge {
  position: absolute; left: 18px; bottom: 18px;
  background: var(--white); color: var(--navy-900);
  padding: 12px 16px; border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 600; font-size: .85rem;
}

.check-list { display: grid; gap: 12px; margin: 18px 0 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .98rem; color: var(--slate-700);
}
.check-list li::before {
  content: '';
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e10a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
  margin-top: 2px;
}

/* ---------- Stats / counters ---------- */
.stats-band {
  background: var(--navy-900);
  color: var(--white);
}
.stats-band h2 { color: var(--white); }
.stats-band .stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
@media (max-width: 720px) { .stats-band .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stats-band .num { font-family: var(--font-display); font-size: clamp(2.2rem,5vw,3.2rem); font-weight: 700; }
.stats-band .num small { font-size: .5em; color: var(--red-600); margin-left: 4px; }
.stats-band .lbl { color: rgba(255,255,255,.7); font-size: .95rem; margin-top: 4px; }

/* ---------- CTA banner ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--red-600), #a40b0b);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 0% 100%, rgba(255,255,255,.15), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); margin: 0; max-width: 24ch; }
.cta-band p  { color: rgba(255,255,255,.9); margin: 8px 0 0; max-width: 50ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: #06122a;
  color: rgba(255,255,255,.75);
  padding: 80px 0 32px;
  font-size: .92rem;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a:hover { color: var(--white); }
.site-footer ul li { margin-bottom: 10px; }
.site-footer .brand-text { color: var(--white); }
.site-footer .brand-text small { color: rgba(255,255,255,.55); }
.foot-about { color: rgba(255,255,255,.7); margin-top: 16px; max-width: 38ch; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t);
}
.socials a:hover { background: var(--red-600); color: var(--white); }
.socials svg { width: 18px; height: 18px; }

.foot-contact li { display: flex; gap: 12px; }
.foot-contact svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--red-600); }

.foot-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy-900); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 14px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 4px rgba(11,27,58,.08);
}
.form-status {
  padding: 14px 18px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #065f46;
  font-size: .9rem;
  display: none;
}
.form-status.show { display: block; }

/* ---------- Marquee logos ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 56px;
  width: max-content;
  animation: marquee 35s linear infinite;
  align-items: center;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--slate-500);
  letter-spacing: .04em;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.bg-soft { background: var(--bg); }
.text-center { text-align: center; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head .lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--slate-500); }

/* Service detail page */
.service-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .service-detail { grid-template-columns: 1fr; } }
.service-detail aside {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}
@media (max-width: 900px) {
  .service-detail aside { position: static; max-height: none; overflow: visible; }
}
.aside-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 28px;
}
.aside-card h4 { font-family: var(--font-display); font-size: 1rem; color: var(--navy-900); margin-bottom: 14px; }
.service-nav li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .92rem;
  color: var(--slate-700);
  transition: background var(--t), color var(--t);
}
.service-nav li a:hover { background: var(--slate-100); color: var(--navy-900); }
.service-nav li a.active { background: var(--navy-900); color: var(--white); }
.service-nav li a.active::after { content: '→'; }

.prose h2 { margin-top: 1.5em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; color: var(--navy-900); }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul { margin: 0 0 1.2em 0; }
.prose ul li { padding-left: 26px; position: relative; margin-bottom: 8px; color: var(--slate-700); }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 12px; height: 2px; background: var(--red-600);
}

/* Project / Career cards */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  transition: transform var(--t), box-shadow var(--t);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card .thumb { aspect-ratio: 16/10; background: var(--slate-200); position: relative; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.project-card:hover .thumb img { transform: scale(1.06); }
.project-card .body { padding: 22px 24px 26px; }
.project-card .tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red-600); margin-bottom: 10px; }
.project-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.project-card p  { font-size: .92rem; margin: 0; }

.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.job-card:hover { border-color: var(--navy-900); box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--slate-500); margin-top: 6px; }
.job-card h3 { margin: 0; font-size: 1.1rem; }
.job-card .pill { background: var(--navy-50); color: var(--navy-900); padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: .75rem; }

/* Office / contact cards */
.office-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 28px;
}
.office-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.office-card h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red-600); }
.office-card p { margin: 6px 0; font-size: .95rem; }
.office-card a { color: var(--navy-900); font-weight: 600; }
.office-card a:hover { color: var(--red-600); }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 4px 10px rgba(0, 0, 0, .15);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover {
  background: #1ebe5b;
  transform: scale(1.08);
  box-shadow: 0 14px 34px rgba(37, 211, 102, .55), 0 4px 10px rgba(0, 0, 0, .2);
}
.wa-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .55); }
  70%  { box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 600px) {
  .wa-float { width: 52px; height: 52px; left: 16px; bottom: 16px; }
  .wa-float svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}

/* ---------- WhatsApp tooltip + chat popup ---------- */
.wa-wrap {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.wa-wrap .wa-float { position: static; }

.wa-tooltip {
  background: #0B1B3A;
  color: #fff;
  padding: 8px 14px;
  border-radius: 22px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  position: relative;
  margin-left: 8px;
}
.wa-tooltip::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #0B1B3A;
  transform: rotate(45deg);
}
.wa-wrap.show-tip .wa-tooltip,
.wa-wrap:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.wa-wrap.is-open .wa-tooltip { opacity: 0 !important; }

.wa-panel {
  position: absolute;
  left: 0;
  bottom: 78px;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25), 0 4px 12px rgba(0,0,0,.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.96);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.wa-wrap.is-open .wa-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-head {
  background: #128C7E;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-head .wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-head .wa-avatar img { width: 26px; height: 26px; object-fit: contain; }
.wa-head h4 { margin: 0; font-size: .98rem; color: #fff; line-height: 1.2; }
.wa-head .wa-status { font-size: .75rem; opacity: .85; display: flex; align-items: center; gap: 5px; }
.wa-head .wa-status::before { content: ""; width: 7px; height: 7px; background: #4ade80; border-radius: 50%; display: inline-block; }
.wa-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  opacity: .85;
}
.wa-close:hover { opacity: 1; background: rgba(255,255,255,.12); }

.wa-body {
  background:
    linear-gradient(rgba(229, 221, 213, .55), rgba(229, 221, 213, .55)),
    repeating-linear-gradient(45deg, #ece5dd 0 6px, #e5dfd5 6px 12px);
  padding: 18px 16px 14px;
  min-height: 120px;
}
.wa-bubble {
  background: #fff;
  padding: 10px 12px;
  border-radius: 4px 12px 12px 12px;
  font-size: .88rem;
  color: #1f2937;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
  max-width: 90%;
  line-height: 1.45;
}
.wa-bubble small { display: block; text-align: right; font-size: .68rem; color: #9ca3af; margin-top: 4px; }

.wa-foot {
  padding: 12px;
  background: #f6f6f6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wa-foot textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: .9rem;
  resize: none;
  min-height: 60px;
  outline: none;
  transition: border-color .15s;
}
.wa-foot textarea:focus { border-color: #25d366; }
.wa-send {
  background: #25d366;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s;
}
.wa-send:hover { background: #1ebe5b; }
.wa-send svg { width: 16px; height: 16px; }

@media (max-width: 600px) {
  .wa-panel { width: calc(100vw - 32px); left: 0; }
  .wa-wrap { left: 16px; bottom: 16px; }
}
