:root {
  --bg:#07141E;
  --surface:#0D2434;
  --surface-strong:#122F46;
  --text:#E7EAE6;
  --muted:#9FB0AC;
  --accent:#E8A33D;
  --accent-soft:rgba(232,163,61,0.18);
  --border:rgba(231,234,230,0.12);
  --shadow:0 24px 70px rgba(0,0,0,0.28);
  font-synthesis: none;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(79,169,160,0.1), transparent 25%), var(--bg);
  min-height: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.page-wrap { max-width: 1260px; margin: 0 auto; padding: 0 24px; position: relative; }
.hero, .section { position: relative; z-index: 2; }
.inset-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 0 8px;
  border-bottom: 1px solid rgba(231,234,230,0.08);
  font-size: 12px;
  color: var(--muted);
}
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--accent); }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 18px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 92px; width: auto; flex-shrink: 0; }
.brand-title { font-family: 'Bebas Neue', cursive; font-size: 28px; letter-spacing: 0.06em; }
.brand-subtitle { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.nav-main a {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: color 0.2s ease;
}
.nav-main a:hover,
.nav-main a[aria-current="page"] { color: var(--accent); }

.menu-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  padding: 72px 0 40px;
  align-items: center;
}
.hero-copy { max-width: 610px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.hero-copy h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.98;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-copy p { max-width: 52ch; color: var(--muted); line-height: 1.9; margin-bottom: 32px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 11px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn { background: var(--accent); color: var(--bg); }
.btn:hover { transform: translateY(-1px); background: #f2b358; }
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }

.hero-panel {
  display: grid;
  gap: 20px;
  align-self: stretch;
}
.hero-image {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 100%;
}
.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0 0 60px;
}
.hero-card {
  background: linear-gradient(180deg, rgba(15,42,58,0.94), rgba(10,27,38,0.96));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.hero-card h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-card p { color: var(--muted); line-height: 1.75; margin-bottom: 24px; }
.hero-stat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.stat-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(231,234,230,0.08);
  border-radius: 16px;
  padding: 18px 20px;
}
.stat-item strong {
  display: block;
  font-size: 32px;
  color: var(--text);
  font-family: 'Bebas Neue', cursive;
  margin-bottom: 6px;
}
.stat-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', monospace;
}

.section { padding: 60px 0; }
.section-title { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.section-title h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(36px, 5vw, 52px);
  margin: 0;
  color: var(--text);
}
.section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(232,163,61,0.12);
  color: var(--accent);
  font-size: 14px;
}
.section p { color: var(--muted); max-width: 74ch; line-height: 1.85; margin-bottom: 32px; }

.grid-3, .grid-4, .grid-2 { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }

.card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-family: 'Bebas Neue', cursive; font-size: 24px; margin-bottom: 16px; }
.card p { color: var(--muted); line-height: 1.8; }
.card small { display: block; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.card ul.check-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.card ul.check-list li { color: var(--muted); line-height: 1.6; padding-left: 24px; position: relative; font-size: 14px; }
.card ul.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 600; }

.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.card-link::after { content: '→'; transition: transform 0.2s ease; }
.card:hover .card-link::after, .card-link:hover::after { transform: translateX(4px); }

.section-highlight { background: rgba(79,169,160,0.06); padding: 30px 32px; border-radius: 24px; border: 1px solid rgba(79,169,160,0.15); }
.section-highlight strong { color: var(--text); display: block; margin-bottom: 10px; }

.divider { height: 1px; background: rgba(231,234,230,0.08); margin: 56px 0; }

.news-card { display: grid; gap: 14px; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.news-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.news-card-content { padding: 22px; }
.news-card-content time { color: var(--muted); font-size: 12px; display: block; margin-bottom: 8px; }
.news-card-content h3 { font-size: 20px; margin-bottom: 12px; }
.news-card-content p { color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.news-card-content a { color: var(--accent); font-weight: 600; }

.gallery-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.gallery-controls button { border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text); padding: 12px 18px; border-radius: 999px; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.gallery-controls button.active,
.gallery-controls button:hover { background: rgba(232,163,61,0.18); border-color: rgba(232,163,61,0.35); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gallery-item { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.12)); cursor: pointer; min-height: 220px; aspect-ratio: 4 / 3; }
.gallery-item[hidden] { display: none !important; }
.gallery-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gallery-item::after { content: attr(data-category); position: absolute; top: 18px; left: 18px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); background: rgba(0,0,0,0.45); padding: 6px 10px; border-radius: 999px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(180deg, transparent, rgba(10,27,38,0.92)); color: white; }
.gallery-caption h4 { margin: 0 0 4px; font-size: 14px; }
.gallery-caption p { margin: 0; font-size: 12px; color: rgba(255,255,255,0.88); }

.doc-list { display: grid; gap: 18px; }
.doc-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 22px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.doc-label { display: flex; flex-direction: column; gap: 6px; }
.doc-label h4 { margin: 0; font-size: 18px; }
.doc-label small { color: var(--muted); }
.doc-card a { color: var(--accent); font-weight: 600; }

.contact-panel { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: 28px; }
.contact-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 24px; padding: 32px; }
.contact-card h3 { font-size: 26px; margin-bottom: 18px; }
.contact-card li { margin-bottom: 16px; list-style: none; color: var(--muted); }
.contact-card strong { display: block; color: var(--text); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }

.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-row > * { min-width: 0; }
input, textarea { width: 100%; border-radius: 18px; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: var(--text); padding: 16px 18px; font-size: 14px; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.55); }
textarea { min-height: 160px; resize: vertical; }
.form-note { margin-top: 14px; color: var(--muted); font-size: 13px; }

.map-wrap { border-radius: 24px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.whatsapp { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: rgba(79,169,160,0.18); color: var(--text); border: 1px solid rgba(79,169,160,0.22); margin-top: 18px; }
.whatsapp:hover { background: rgba(79,169,160,0.28); }

footer { padding: 32px 0 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.footer-links a { color: var(--muted); margin-left: 24px; }
.footer-links a:hover { color: var(--accent); }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  z-index: 999;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content { position: relative; max-width: 1100px; width: 100%; max-height: 90vh; }
.lightbox-content img { width: 100%; height: auto; border-radius: 22px; display: block; }
.lightbox-caption { margin-top: 16px; color: #d7dde2; }
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,0.52);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ---- Sub-page hero banner (About / Team / Divisions) ---- */
.page-hero { padding: 56px 0 20px; max-width: 780px; }
.hero .page-hero { padding: 0; max-width: none; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.page-hero h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  margin-bottom: 20px;
  color: var(--text);
}
.page-hero p { color: var(--muted); line-height: 1.9; max-width: 68ch; }

/* ---- Team page ---- */
.team-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.team-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.team-photo-wrap { aspect-ratio: 1/1; overflow: hidden; background: rgba(255,255,255,0.06); }
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-body { padding: 22px 24px 26px; }
.team-body h3 { font-family: 'Bebas Neue', cursive; font-size: 22px; margin: 0 0 4px; letter-spacing: 0.02em; }
.team-role { display: block; color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.team-body p { color: var(--muted); line-height: 1.7; font-size: 14px; margin: 0; }

/* ---- Timeline (About page) ---- */
.timeline { display: grid; gap: 28px; border-left: 1px solid var(--border); padding-left: 30px; margin-left: 8px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -35px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232,163,61,0.16); }
.timeline-item time { display: block; color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.timeline-item h4 { font-family: 'Bebas Neue', cursive; font-size: 22px; margin: 0 0 8px; }
.timeline-item p { color: var(--muted); line-height: 1.75; margin: 0; max-width: 60ch; }

/* ---- Process steps (Divisions page) ---- */
.process-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.process-step { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 22px; padding: 26px 24px; position: relative; }
.process-step .step-index { font-family: 'Bebas Neue', cursive; font-size: 34px; color: var(--accent); display: block; margin-bottom: 12px; }
.process-step h4 { font-size: 16px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.process-step p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }

/* ---- Office photo strip ---- */
.photo-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.photo-strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; border: 1px solid var(--border); }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3, .gallery-grid, .team-grid, .photo-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-panel { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .page-wrap { padding: 0 18px; }
  header { flex-direction: column; align-items: stretch; }
  .nav-main { justify-content: space-between; }
  .hero { padding-top: 44px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-stats-row { grid-template-columns: 1fr; }
  .grid-3, .gallery-grid, .team-grid, .photo-strip { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .timeline { padding-left: 24px; margin-left: 4px; }
  .process-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
