*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #333A3E;
  --secondary: #2E5090;
  --accent: #F39C12;
  --accent-hover: #e08c0c;
  --bg: #f5f6f7;
  --bg-alt: #eceef0;
  --white: #fff;
  --text: #333A3E;
  --text-muted: #5c6368;
  --border: rgba(51, 58, 62, 0.12);
  --font-head: 'Assistant', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(51, 58, 62, 0.08);
}

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus {
  left: 1rem;
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.logo span { color: var(--secondary); }

.nav-inline {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-inline a {
  color: var(--text-muted);
  text-decoration: none;
}
.nav-inline a:hover { color: var(--secondary); }

.nav-inline a.is-active {
  color: var(--secondary);
  font-weight: 600;
}

.nav-skip-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-skip-toggle:focus-visible + .menu-btn {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  color: var(--primary);
  flex-shrink: 0;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}

.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 881px) {
  .header-inner { flex-wrap: nowrap; }
  .header-bar {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-start;
  }
  .nav-inline { margin-left: auto; }
}

@media (max-width: 880px) {
  .menu-btn { display: flex; }
  .header-bar { flex: 1 1 100%; width: 100%; }
  .nav-inline {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    flex: 1 1 100%;
    padding: 1rem 0 0.25rem;
    border-top: 1px solid var(--border);
    margin-top: 0;
  }
  .nav-inline a {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .nav-inline a.btn {
    margin-top: 0.35rem;
    text-align: center;
    border-bottom: none;
  }
  .nav-skip-toggle:checked ~ .nav-inline { display: flex; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--white);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}
.btn-secondary:hover {
  background: #254a7a;
  text-decoration: none;
  color: var(--white);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--primary);
  color: var(--white);
}
.section--dark h2,
.section--dark .eyebrow { color: var(--white); }
.section--dark .lead { color: rgba(255,255,255,0.85); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out both;
}

.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--primary);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(51, 58, 62, 0.92) 0%, rgba(46, 80, 144, 0.75) 55%, rgba(51, 58, 62, 0.5) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(2.5rem, 8vw, 4rem);
  padding-bottom: clamp(2.5rem, 8vw, 4rem);
}

.hero h1 {
  color: var(--white);
  max-width: 16ch;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.service-card h3 {
  color: var(--secondary);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.75rem;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-card dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 1rem;
}
.contact-card dt:first-of-type { margin-top: 0; }
.contact-card dd {
  font-size: 1rem;
  margin: 0.25rem 0 0;
}

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0;
  font-size: 0.88rem;
}

.site-footer a { color: var(--accent); }
.site-footer a:hover { color: #ffc45c; }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.page-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.92;
  max-width: 40rem;
}

.prose {
  max-width: 42rem;
}
.prose p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.prose p:last-child { margin-bottom: 0; }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.value {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.value h3 { font-size: 1rem; color: var(--primary); }
