/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --navy: #0F2A44;
  --navy-soft: #1E4A6E;
  --steel: #505A64;
  --steel-light: #97A0AA;
  --white: #FFFFFF;
  --panel: #F4F5F7;
  --bg: #FDFDFD;
  --hairline: #E5E7EB;
  --red: #8C1C1C;
  --red-bright: #B32424;

  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 40px rgba(15, 42, 68, 0.08);
  --shadow-card: 0 4px 24px rgba(15, 42, 68, 0.06);
  --transition: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1520;
    --panel: #101E2E;
    --white: #14243638;
    --hairline: #223448;
    --steel: #AEB8C2;
    --steel-light: #7C8794;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--steel);
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 16px;
}
@media (prefers-color-scheme: dark) {
  h1, h2, h3 { color: #EAF1F8; }
}
p { margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section--panel { background: var(--panel); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.lead { font-size: 1.1rem; max-width: 60ch; }
.heading--center { text-align: center; }
.heading--center .lead { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-soft); }
.btn--accent { background: var(--red); color: #fff; }
.btn--accent:hover { background: var(--red-bright); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--hairline); }
.btn--ghost:hover { border-color: var(--navy); }
@media (prefers-color-scheme: dark) {
  .btn--ghost { color: #EAF1F8; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 253, 253, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(11, 21, 32, 0.85); }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (prefers-color-scheme: dark) { .logo { color: #EAF1F8; } }
.logo__mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800;
}
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { font-weight: 600; font-size: 0.92rem; color: var(--steel); }
.nav a:hover { color: var(--navy); }
@media (prefers-color-scheme: dark) { .nav a:hover { color: #fff; } }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
@media (prefers-color-scheme: dark) { .nav-toggle span { background: #EAF1F8; } }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--hairline);
    flex-direction: column; padding: 20px 24px; gap: 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #0F2A44, #1E4A6E);
  color: #fff;
  padding: 110px 0 90px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.82rem; margin-bottom: 24px;
}
.hero__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #E7B7B7; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 18ch; margin-bottom: 20px; }
.hero .accent { color: #E7B7B7; }
.hero p.lead { color: rgba(255,255,255,0.82); max-width: 55ch; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* Trust strip */
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: -64px; position: relative; z-index: 2;
}
.trust-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.trust-card strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--navy); margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { .trust-card strong { color: #EAF1F8; } }
.trust-card span { font-size: 0.85rem; }
@media (max-width: 820px) { .trust-grid { grid-template-columns: repeat(2, 1fr); margin-top: 24px; } }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--panel); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.3rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; margin: 0; }

/* Industry strip */
.industry-strip { text-align: center; margin-top: 48px; }
.industry-strip__label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel-light); margin-bottom: 16px; }
.industry-strip__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--hairline);
  font-size: 0.85rem; font-weight: 600; color: var(--steel);
}

/* Team */
.team-lead {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card);
  max-width: 640px; margin-bottom: 40px;
}
.avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
}
.team-lead h3 { margin-bottom: 2px; }
.role-tag { color: var(--red); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; display: block; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.team-member {
  text-align: center; padding: 24px;
  background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.team-member .avatar { margin: 0 auto 14px; width: 56px; height: 56px; font-size: 1.05rem; }
.team-member h4 { font-family: var(--font-display); color: var(--navy); font-size: 0.95rem; margin: 0 0 4px; }
@media (prefers-color-scheme: dark) { .team-member h4 { color: #EAF1F8; } }
.team-member span { font-size: 0.82rem; color: var(--steel-light); }

/* Accordion (services) */
.accordion-item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg);
}
.accordion-item summary {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; font-weight: 600;
  list-style: none; color: var(--navy);
}
@media (prefers-color-scheme: dark) { .accordion-item summary { color: #EAF1F8; } }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item__num {
  width: 34px; height: 34px; border-radius: 8px; background: var(--panel);
  color: var(--navy); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.accordion-item__chevron { margin-left: auto; transition: transform var(--transition); }
.accordion-item[open] .accordion-item__chevron { transform: rotate(180deg); }
.accordion-item__body { padding: 0 24px 24px 74px; font-size: 0.95rem; }

/* Portfolio gallery */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow-card);
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px; font-size: 0.85rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(15,42,68,0.85), transparent);
}

/* Contact */
.contact-card {
  background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-soft);
}
.contact-card h3 { margin-bottom: 20px; }
.contact-row { margin-bottom: 20px; }
.contact-row strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--steel-light); margin-bottom: 4px; }
.contact-row a { color: var(--navy); font-weight: 600; }
@media (prefers-color-scheme: dark) { .contact-row a { color: #EAF1F8; } }

/* CTA */
.cta {
  background: linear-gradient(160deg, #0F2A44, #1E4A6E);
  color: #fff; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.8); max-width: 50ch; margin: 0 auto 32px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0; text-align: center; font-size: 0.85rem; color: var(--steel-light);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
