/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Design tokens ---------- */
:root {
  --brand-blue: #2A4FD0;
  --brand-blue-dark: #1F3CA8;
  --brand-blue-soft: #E8EEFB;
  --ink: #0E1525;
  --ink-muted: #4B5670;
  --surface: #FAFBFE;
  --surface-elev: #FFFFFF;
  --accent-soft: #CFE4F5;
  --shadow-sm: 0 1px 2px rgba(14, 21, 37, 0.06), 0 1px 1px rgba(14, 21, 37, 0.04);
  --shadow-md: 0 6px 16px rgba(14, 21, 37, 0.08), 0 2px 4px rgba(14, 21, 37, 0.04);
  --shadow-lg: 0 16px 40px rgba(14, 21, 37, 0.12), 0 4px 8px rgba(14, 21, 37, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --max-w: 1120px;
  --pad-x: clamp(20px, 4vw, 48px);
}

/* ---------- Base typography ---------- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.4em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-muted); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
section { padding: clamp(56px, 8vw, 96px) 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad-x);
  background: rgba(250, 251, 254, 0.85);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid rgba(14, 21, 37, 0.06);
}
.site-header__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.site-header__logo { width: 36px; height: 36px; border-radius: 50%; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-muted); font-weight: 500; padding: 6px 4px; border-radius: 6px; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--brand-blue); outline: none; }
.site-nav a:focus-visible { box-shadow: 0 0 0 3px rgba(42, 79, 208, 0.25); }

/* ---------- Footer ---------- */
.site-footer { padding: 24px var(--pad-x); border-top: 1px solid rgba(14, 21, 37, 0.06); color: var(--ink-muted); font-size: 0.9rem; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--brand-blue-soft), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, var(--accent-soft), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero__logo { width: clamp(96px, 18vw, 160px); height: auto; border-radius: 50%; box-shadow: var(--shadow-md); }
.hero__title { margin: 8px 0 0; }
.hero__tagline { max-width: 640px; font-size: clamp(1rem, 1vw + 0.6rem, 1.2rem); color: var(--ink-muted); margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent;
  transition: transform 120ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(42, 79, 208, 0.25); }
.btn--primary { background: var(--brand-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.btn--ghost:hover { background: var(--brand-blue); color: #fff; transform: translateY(-1px); }

/* ---------- Section heading ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-muted); }

/* ---------- Services ---------- */
.services__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--surface-elev);
  border: 1px solid rgba(14, 21, 37, 0.06);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-blue-soft); color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 6px; }
.service-card p { margin: 0; }

/* ---------- Why Us ---------- */
.why { background: linear-gradient(180deg, var(--surface), var(--brand-blue-soft) 80%); }
.why__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
.why-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface-elev); border-radius: var(--radius); padding: 20px;
  border: 1px solid rgba(14, 21, 37, 0.06); box-shadow: var(--shadow-sm);
}
.why-item__icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.why-item__icon svg { width: 22px; height: 22px; }
.why-item h3 { margin-bottom: 4px; }
.why-item p  { margin: 0; }

/* ---------- Contact ---------- */
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__cards {
  display: grid; gap: 16px; width: 100%; max-width: 720px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .contact__cards { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface-elev); border: 1px solid rgba(14, 21, 37, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-blue); }
.contact-card__label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.contact-card__value { font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.6rem); font-weight: 700; color: var(--brand-blue); }

.contact__meta {
  margin-top: 32px; display: grid; gap: 16px;
  grid-template-columns: 1fr; max-width: 720px; width: 100%;
}
@media (min-width: 640px) { .contact__meta { grid-template-columns: repeat(2, 1fr); } }
.contact__meta div { background: transparent; }
.contact__meta dt { font-weight: 700; margin-bottom: 2px; }
.contact__meta dd { margin: 0; color: var(--ink-muted); }

/* ---------- References ---------- */
.references__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .references__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .references__grid { grid-template-columns: repeat(3, 1fr); } }

.reference-card { margin: 0; }
.reference-card__btn {
  display: block; width: 100%; padding: 0; border: 0; background: transparent;
  border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.reference-card__btn:hover, .reference-card__btn:focus-visible {
  transform: translateY(-3px); box-shadow: var(--shadow-md); outline: none;
}
.reference-card__btn:focus-visible { box-shadow: 0 0 0 3px rgba(42, 79, 208, 0.35), var(--shadow-md); }
.reference-card__btn img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  background: var(--brand-blue-soft);
}
.reference-card__caption {
  display: block; padding: 12px 16px; text-align: left;
  background: var(--surface-elev); color: var(--ink); font-weight: 500;
  border-top: 1px solid rgba(14, 21, 37, 0.06);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14, 21, 37, 0.85);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox__figure {
  margin: 0; max-width: min(1200px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lightbox__img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.lightbox__caption { color: #fff; font-weight: 500; text-align: center; }
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 28px; line-height: 1;
}
.lightbox__close:hover, .lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.22); outline: none;
}
.lightbox__close:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 400ms ease, transform 400ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .why-item, .contact-card, .reference-card__btn { transition: none !important; }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
