:root {
  --bg: #f4f5f7;
  --bg-soft: #eceef2;
  --surface: #ffffff;
  --surface-alt: #f9fafb;
  --surface-muted: #e8ebf0;
  --border: #dde1e7;
  --border-strong: #c9ced6;
  --accent: #4a6274;
  --accent-dark: #334155;
  --accent-light: #64748b;
  --brand: #b85c38;
  --text: #1e293b;
  --text-muted: #475569;
  --text-soft: #64748b;
  --shadow: 0 8px 24px rgba(30, 41, 59, 0.07);
  --radius: 6px;
  --container: 1320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text-muted);
  background: var(--bg);
  line-height: 1.55;
  font-size: 0.95rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 1.5rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.45rem 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  border-radius: 4px;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.header-contact a {
  color: var(--text-soft);
}

.header-contact a:hover {
  color: var(--brand);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.main-nav a:hover {
  color: var(--brand);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s ease;
  z-index: 1100;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.84rem;
}

.dropdown li a:hover {
  background: var(--bg-soft);
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: clamp(280px, 42vh, 420px);
  display: flex;
  align-items: center;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(244, 245, 247, 0.97) 42%, rgba(232, 235, 240, 0.82) 100%),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1800&q=80")
      center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(244, 245, 247, 0.55) 50%, transparent 100%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
}

.section-with-number {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
}

.section-number {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  background: var(--accent-dark);
  color: var(--surface);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  position: sticky;
  top: 4.6rem;
  flex-shrink: 0;
  z-index: 2;
}

.hero .section-with-number {
  position: relative;
  z-index: 1;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.hero-lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-dark);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.hero-panel-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.hero-stats li {
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.hero-stats span {
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.3;
}

.hero-panel-location {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid transparent;
  transition: 0.2s ease;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.72rem;
}

.btn-primary {
  background: var(--accent-dark);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
}

.btn-outline:hover {
  background: var(--bg-soft);
}

.section {
  padding: 2.75rem 0;
}

.section-compact {
  padding: 2rem 0;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

.section-title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.25;
  color: var(--text);
  margin: 0;
  font-weight: 700;
}

.section-head-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.section-intro-inline {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.info-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.info-block h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
  color: var(--text);
  margin: 0;
  font-weight: 700;
}

.info-block p {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.info-block p:last-child {
  margin-bottom: 0;
}

.welcome {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services {
  background: var(--bg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.service-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.85rem;
  transition: 0.2s ease;
  min-height: 100%;
  scroll-margin-top: 5.25rem;
}

.service-card:hover,
.service-card:target {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.service-card:target {
  border-top-color: var(--accent-dark);
  background: var(--surface-alt);
}

.service-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.service-body {
  min-width: 0;
}

.service-card h3 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.clients {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: center;
}

.clients-copy .section-title {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.client-strip span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.about {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.careers-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem 1.5rem;
  align-items: center;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-dark);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.careers-box h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.careers-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.contact {
  background: var(--bg);
}

.contact-copy h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-list li {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.contact-list strong {
  display: block;
  color: var(--text);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.contact-list a {
  color: var(--brand);
  font-weight: 600;
}

.site-footer {
  background: var(--accent-dark);
  color: #cbd5e1;
  padding-top: 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.7fr 0.8fr;
  gap: 1.5rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.84rem;
  max-width: 24ch;
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 0.65rem;
  border-radius: 4px;
}

.site-footer h4 {
  margin: 0 0 0.65rem;
  color: var(--surface);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}

.footer-columns li {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.site-footer li {
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
}

.site-footer a:hover {
  color: var(--surface);
}

.footer-bottom a {
  color: #e2e8f0;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.25rem;
  padding: 0.75rem 0 1rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-contact {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-layout,
  .info-band,
  .section-head-row,
  .clients-row,
  .careers-box {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-list-inline {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-columns {
    columns: 1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    justify-content: flex-start;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-top: 2px solid var(--accent);
    padding-left: 0.5rem;
    background: var(--bg-soft);
  }

  .service-grid,
  .client-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    padding: 1.5rem 0;
  }

  .section-with-number {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }

  .section-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.68rem;
    position: static;
  }

  .brand-logo,
  .footer-logo {
    height: 46px;
  }

  .section,
  .section-compact {
    padding: 1.5rem 0;
  }
}
