:root {
  --ink: #10161f;
  --ink-soft: #3a4656;
  --muted: #6a7688;
  --line: rgba(16, 22, 31, 0.1);
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --bg: #eef3f8;
  --brand: #0b7a62;
  --brand-2: #095a49;
  --signal: #e08a1e;
  --steel: #243447;
  --whatsapp: #25d366;
  --shadow: 0 20px 60px rgba(16, 22, 31, 0.1);
  --radius: 22px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7fafc 0%, var(--bg) 40%, #e8eef5 100%);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(16, 22, 31, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 22, 31, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  z-index: 0;
}

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

/* Global readable text on interactive cards/links */
a.project-card,
a.update-card,
a.client-card,
a.gallery-tile {
  color: var(--ink);
}

a.project-card h3,
a.update-card h3,
a.client-card strong {
  color: #102033;
}

.band,
.band h2,
.band p {
  color: #ffffff !important;
}

.hero,
.hero h1,
.hero .eyebrow {
  color: #ffffff !important;
}

.hero p {
  color: rgba(255, 255, 255, 0.92) !important;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(247, 250, 252, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  min-width: 52px;
  height: 44px;
  padding: 0 0.65rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b7a62;
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(11, 122, 98, 0.25);
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--steel);
  line-height: 1.1;
}

.brand span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
}

.nav-links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.25s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
  color: var(--brand-2);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

/* Buttons — use a.btn* so footer/contact link colors cannot override */
.btn,
a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
a.btn:hover,
button.btn:hover { transform: translateY(-2px); }

.btn-primary,
a.btn-primary,
button.btn-primary {
  background: linear-gradient(135deg, #0d8a6d, #075a48);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(11, 122, 98, 0.28);
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
  background: linear-gradient(135deg, #0a735b, #054536);
  color: #ffffff !important;
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background: #ffffff;
  border: 1.5px solid #243447;
  color: #102033 !important;
  box-shadow: 0 8px 20px rgba(16, 22, 31, 0.06);
}

.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
  background: #102033;
  color: #ffffff !important;
  border-color: #102033;
}

.btn-accent,
a.btn-accent,
button.btn-accent {
  background: linear-gradient(135deg, #e89a35, #c56f0f);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(197, 111, 15, 0.28);
}

.btn-accent:hover,
a.btn-accent:hover,
button.btn-accent:hover {
  color: #ffffff !important;
  filter: brightness(0.95);
}

.btn-ghost,
a.btn-ghost,
button.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #ffffff !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-ghost:hover,
a.btn-ghost:hover,
button.btn-ghost:hover {
  background: #ffffff;
  color: #102033 !important;
  border-color: #ffffff;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(8, 18, 28, 0.9) 8%, rgba(8, 28, 24, 0.78) 55%, rgba(8, 18, 28, 0.88) 100%),
    url("https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(238, 243, 248, 1));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 5.5rem;
  width: min(780px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  animation: riseIn 0.8s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 1.1rem;
  animation: riseIn 0.9s ease both;
}

.hero p {
  margin: 0 0 1.7rem;
  font-size: 1.12rem;
  max-width: 36rem;
  color: rgba(255,255,255,0.88);
  animation: riseIn 1s ease 0.08s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: riseIn 1.1s ease 0.14s both;
}

/* Sections */
.section { padding: 4.8rem 0; position: relative; z-index: 1; }
.section-tight { padding: 2.5rem 0; }
.page-hero { padding: 3.8rem 0 1.2rem; position: relative; z-index: 1; }
.page-hero h1,
.section-head h2,
.panel h1,
.panel h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0;
}

.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); color: var(--steel); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head p, .lede {
  color: var(--muted);
  margin: 0.55rem 0 0;
  max-width: 42rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -3rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
  box-shadow: var(--shadow);
  animation: riseIn 0.8s ease both;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--brand-2);
  letter-spacing: -0.03em;
}

.stat span { color: var(--muted); font-size: 0.9rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; align-items: start; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.band {
  background: linear-gradient(135deg, #102033, #0d4b3d 55%, #17425f);
  color: white;
  border-radius: calc(var(--radius) + 6px);
  padding: 2.2rem;
  overflow: hidden;
  position: relative;
}

.band::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 138, 30, 0.35), transparent 70%);
}

.project-card, .update-card, .client-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover, .update-card:hover, .client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(16, 22, 31, 0.14);
}

.project-card .thumb, .update-card .thumb {
  aspect-ratio: 16 / 10;
  background: #d7dee8 center/cover no-repeat;
  position: relative;
}

.project-card .body, .update-card .body { padding: 1.15rem 1.2rem 1.35rem; }
.project-card h3, .update-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.project-card p, .update-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.7rem; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(11, 122, 98, 0.1);
  color: var(--brand-2);
}
.badge.upcoming { background: rgba(224, 138, 30, 0.14); color: #9a5a0d; }
.badge.ongoing { background: rgba(11, 122, 98, 0.12); color: var(--brand-2); }
.badge.completed { background: rgba(16, 22, 31, 0.08); color: var(--ink); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filters > * { flex: 1 1 160px; }
.filters input, .filters select,
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 700; }

.alert { padding: 0.9rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.alert-success { background: rgba(11, 122, 98, 0.1); color: var(--brand-2); }
.alert-error { background: rgba(180, 40, 40, 0.1); color: #8a1f1f; }

.gallery-masonry {
  columns: 3 240px;
  column-gap: 1rem;
}
.gallery-tile {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #d5dde8;
  background: #ffffff;
  display: block;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: #102033 !important;
}
.gallery-media {
  position: relative;
  background: #101820;
  overflow: hidden;
}
.gallery-media img,
.gallery-media video {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-tile:hover .gallery-media img,
.gallery-tile:hover .gallery-media video {
  transform: scale(1.04);
}
.gallery-fallback {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #243447;
}
.gallery-caption {
  padding: 0.85rem 1rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e6ebf2;
}
.gallery-caption strong {
  display: block;
  color: #102033 !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}
.gallery-caption span {
  display: block;
  margin-top: 0.25rem;
  color: #5b6b7c !important;
  font-size: 0.82rem;
}
.gallery-tile .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  background: rgba(8, 14, 22, 0.28);
}
.gallery-tile .play span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.62);
  border: 2px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  font-size: 1.1rem;
}

.client-card {
  padding: 1.2rem;
  text-align: center;
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 0.7rem;
}
.client-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
}
.client-card strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.client-card span { color: var(--muted); font-size: 0.85rem; }

.clients-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.clients-track .chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
  box-shadow: var(--shadow);
}
.clients-track img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.service-list { display: grid; gap: 1rem; }
.service-item {
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--brand);
  background: rgba(255,255,255,0.85);
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--line);
  border-left-width: 4px;
}
.service-item h3 { margin: 0 0 0.35rem; font-family: var(--font-display); }
.service-item p { margin: 0; color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
}
.contact-info a:not(.btn) { color: var(--brand-2); font-weight: 600; }
.contact-info p { margin: 0.35rem 0 1rem; color: var(--muted); }
.map-frame {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #d7dee8;
  min-height: 420px;
}
.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.gallery-item {
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-item img, .gallery-item video, .gallery-item iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 0;
}
.gallery-item .caption {
  padding: 0.75rem 0.95rem;
  background: #ffffff;
  color: #3a4656 !important;
  font-size: 0.9rem;
  font-weight: 600;
}

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45);
  animation: pulseWa 2.4s ease infinite;
}
.wa-float svg { width: 30px; height: 30px; fill: #ffffff; }

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(16, 32, 51, 0.04));
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer strong {
  color: var(--steel);
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.site-footer p, .site-footer a:not(.btn) { color: var(--muted); }
.site-footer a:not(.btn):hover { color: var(--brand-2); }
.footer-links { display: grid; gap: 0.45rem; }

.pagination { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pagination a, .pagination span {
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  font-size: 0.9rem;
  color: #102033;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 22, 0.88);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 1rem;
}
.lightbox.open { display: grid; }
.lightbox-inner {
  width: min(960px, 100%);
  background: #0f1720;
  border-radius: 18px;
  overflow: hidden;
}
.lightbox-inner img, .lightbox-inner video, .lightbox-inner iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: contain;
  background: #000;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Admin */
.admin-body { background: #e8eef4; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side {
  background: linear-gradient(180deg, #102033, #0d2f28);
  color: #e8f2ec;
  padding: 1.5rem 1rem;
}
.admin-side a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: rgba(232, 242, 236, 0.78);
  margin-bottom: 0.25rem;
}
.admin-side a:hover, .admin-side a.active {
  background: rgba(255,255,255,0.08);
  color: white;
}
.admin-main { padding: 1.5rem; }
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.94rem;
}
.table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-card { width: min(420px, 100%); }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; }

@media (max-width: 980px) {
  .grid-3, .grid-4, .stats, .split, .gallery, .form-grid, .contact-grid, .footer-grid, .admin-shell {
    grid-template-columns: 1fr;
  }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-h) + 0.4rem);
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hero { min-height: 78vh; }
  .gallery-masonry { columns: 2 160px; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; margin-top: -1.5rem; }
  .gallery-masonry { columns: 1; }
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pulseWa {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
