:root {
  --brand: #1e70c7;
  --brand-dark: #145497;
  --brand-darker: #0e3d6f;
  --ink: #0d1b2a;
  --ink-soft: #324a5f;
  --muted: #6b7c8c;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-dark: #0d1b2a;
  --accent: #f5a623;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06), 0 2px 6px rgba(13, 27, 42, .04);
  --shadow-md: 0 6px 18px rgba(13, 27, 42, .10), 0 2px 6px rgba(13, 27, 42, .06);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand img { height: 40px; width: auto; }
@media (min-width: 720px) { .brand img { height: 48px; } }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.25rem; align-items: center;
}
.primary-nav a {
  color: var(--ink); font-weight: 600; font-size: .98rem;
  padding: .25rem 0; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.primary-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); text-decoration: none; }

.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: .55rem 1rem; border-radius: 999px; font-weight: 700;
  font-size: .92rem;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--brand-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1rem;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .primary-nav.open { max-height: 480px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: .9rem 0; border: 0; }
  .nav-cta { margin-top: .75rem; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  color: #fff;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 9vw, 6rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(135deg, rgba(13,27,42,.78), rgba(20,84,151,.70)),
    url("../img/project-05.jpg") center/cover no-repeat;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p, .hero li { color: rgba(255,255,255,.92); }
.hero .eyebrow { color: var(--accent); }
.hero-sub { font-size: 1.1rem; max-width: 56ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.hero-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  font-weight: 600;
}
.hero-points li::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); margin-right: .55rem;
  vertical-align: middle;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; font-weight: 700; color: var(--brand);
  margin: 0 0 .75rem;
}

.btn {
  display: inline-block; padding: .85rem 1.4rem;
  border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform .12s, background .15s, border-color .15s, color .15s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #1f1300 !important; }
.btn-primary:hover { background: #ffb840; }
.btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-light { background: var(--bg); }
.section-light + .section-light { border-top: 1px solid var(--line); }
.section-dark { background: var(--bg-soft); }
.section-accent {
  background: linear-gradient(135deg, var(--brand-darker), var(--brand));
  color: #fff;
}
.section-accent h2, .section-accent p, .section-accent .label { color: #fff; }
.section-accent .eyebrow { color: var(--accent); }
.section-accent a { color: #fff; }
.section-accent a:hover { color: var(--accent); }

.section-head { max-width: 60ch; margin: 0 auto 2.5rem; text-align: center; }
.section-head .lede { font-size: 1.05rem; }

.two-col {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .two-col { grid-template-columns: 1.05fr .95fr; align-items: start; }
}

/* About */
.stats {
  display: grid; gap: 1rem; margin-top: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
.stats > div {
  background: var(--bg-soft); padding: 1rem;
  border-radius: var(--radius-sm); text-align: center;
}
.stats strong {
  display: block; font-size: 1.6rem; color: var(--brand-dark);
}
.stats span { font-size: .85rem; color: var(--muted); }

.about-pillars { display: grid; gap: 1rem; }
.about-pillars article {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.about-pillars h3 { color: var(--brand-dark); }

/* Services */
.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brand);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { color: var(--brand-dark); }
.card p { margin: 0; color: var(--ink-soft); }

/* Testimonials */
.testimonials {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: #fff; margin: 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem;
}
.quote blockquote {
  margin: 0; font-size: 1rem; color: var(--ink);
  position: relative; padding-left: 1.25rem;
  border-left: 3px solid var(--brand);
}
.quote figcaption {
  display: flex; flex-direction: column;
  font-size: .9rem; color: var(--muted);
}
.quote figcaption strong { color: var(--ink); font-size: .98rem; }

/* Projects gallery */
.gallery {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure {
  margin: 0; overflow: hidden; border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3; background: var(--line);
  box-shadow: var(--shadow-sm);
}
.gallery-item {
  display: block; width: 100%; height: 100%; padding: 0;
  margin: 0; border: 0; background: transparent;
  cursor: zoom-in; position: relative; overflow: hidden;
}
.gallery-item:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(13,27,42,.55), rgba(13,27,42,0) 45%);
  opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
.gallery-item::before {
  content: "";
  position: absolute; right: .65rem; bottom: .65rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  background-image:
    linear-gradient(to right, var(--ink) 0 100%),
    linear-gradient(to right, var(--ink) 0 100%);
  background-size: 14px 2px, 2px 14px;
  background-position: center, center;
  background-repeat: no-repeat;
  opacity: 0; transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:hover::before,
.gallery-item:focus-visible::before { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7, 14, 24, .92);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; transition: opacity .18s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
body.lightbox-open { overflow: hidden; }

.lightbox-stage {
  margin: 0; max-width: min(1200px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: .75rem;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  width: auto; height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  background: #000;
}
.lightbox-caption {
  color: #e8eef5; font-size: .95rem; text-align: center;
  max-width: 70ch;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  width: 48px; height: 48px;
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s, border-color .15s;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
}
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.lightbox-close { top: 1rem; right: 1rem; font-size: 1.8rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }

@media (max-width: 640px) {
  .lightbox-close { top: .5rem; right: .5rem; }
  .lightbox-prev  { left: .5rem; }
  .lightbox-next  { right: .5rem; }
  .lightbox-nav, .lightbox-close { width: 42px; height: 42px; }
}

/* Contact */
.contact-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
  background: rgba(255,255,255,.08);
  padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.18);
}
.contact-list li { display: flex; flex-direction: column; gap: .15rem; }
.contact-list .label {
  text-transform: uppercase; letter-spacing: .1em;
  font-size: .75rem; color: var(--accent); font-weight: 700;
}
.contact-list a, .contact-list span:not(.label) {
  font-size: 1.1rem; font-weight: 600; color: #fff;
}

/* Footer */
.site-footer {
  background: var(--ink); color: #c8d3df;
  padding: 3rem 0 1.5rem;
}
.site-footer h3 {
  color: #fff; font-size: 1rem; margin-bottom: .9rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.site-footer a { color: #c8d3df; }
.site-footer a:hover { color: #fff; }
.footer-row {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-row { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img {
  height: 56px; width: auto; background: #fff;
  padding: .4rem .75rem; border-radius: var(--radius-sm);
  margin-bottom: .9rem;
}
.footer-brand p { color: #97a6b6; margin: 0; max-width: 38ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer .plain a { font-weight: 600; }
.footer-base {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem; color: #8a98a8;
}
.footer-base p { margin: 0; color: inherit; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
