/* Variables */
:root {
  --navy: #0d2137;
  --navy-light: #1a3a57;
  --text: #2c3a4a;
  --muted: #637080;
  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --border: #e4e7eb;
  --max-width: 960px;
}

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

body {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--navy);
}

/* Header */
body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo {
  height: 48px;
  width: auto;
}

.company-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
}

nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav a:not(.nav-cta):hover::after,
nav a:not(.nav-cta)[aria-current='page']::after {
  transform: scaleX(1);
}

nav a:hover,
nav a[aria-current='page'] {
  color: var(--navy);
}

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem !important;
}

.nav-cta:hover {
  background: var(--navy-light);
}

/* Section layout */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 380px;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 380 200'%3E%3Crect x='0' y='130' width='32' height='70' fill='white'/%3E%3Crect x='42' y='95' width='32' height='105' fill='white'/%3E%3Crect x='84' y='110' width='32' height='90' fill='white'/%3E%3Crect x='126' y='55' width='32' height='145' fill='white'/%3E%3Crect x='168' y='75' width='32' height='125' fill='white'/%3E%3Crect x='210' y='25' width='32' height='175' fill='white'/%3E%3Crect x='252' y='45' width='32' height='155' fill='white'/%3E%3Crect x='294' y='15' width='32' height='185' fill='white'/%3E%3Crect x='336' y='60' width='32' height='140' fill='white'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  opacity: 0.07;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 620px;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin-bottom: 2rem;
}

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

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.btn-primary {
  background: #fff;
  color: var(--navy);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

/* Differentiators */
.differentiators {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.diff-item {
  border-left: 3px solid var(--navy);
  padding-left: 1rem;
}

.diff-item dt {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.diff-item dd {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 280px;
  height: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 380 200'%3E%3Crect x='0' y='130' width='32' height='70' fill='white'/%3E%3Crect x='42' y='95' width='32' height='105' fill='white'/%3E%3Crect x='84' y='110' width='32' height='90' fill='white'/%3E%3Crect x='126' y='55' width='32' height='145' fill='white'/%3E%3Crect x='168' y='75' width='32' height='125' fill='white'/%3E%3Crect x='210' y='25' width='32' height='175' fill='white'/%3E%3Crect x='252' y='45' width='32' height='155' fill='white'/%3E%3Crect x='294' y='15' width='32' height='185' fill='white'/%3E%3Crect x='336' y='60' width='32' height='140' fill='white'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  opacity: 0.07;
  pointer-events: none;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  font-size: 1.05rem;
}

/* Services */
main > section {
  padding: 4rem 0;
}

main > section + section {
  border-top: 1px solid var(--border);
}

.services h2,
.projects-teaser h2,
.contact h2,
.team h2,
.projects h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.service h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.service ul {
  list-style: none;
}

.service ul li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 0.95rem;
}

.service ul li::before {
  content: '›';
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Projects teaser */
.projects-teaser p {
  color: var(--muted);
}

/* Contact */
.contact p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 500;
}

/* About */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.team-member {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.team-member h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.team-member .role {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.team-member p:last-child {
  color: var(--text);
  font-size: 0.95rem;
}

/* Projects page */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
}

.project-header {
  margin-bottom: 1.25rem;
}

.project-header div {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.project-header h2 {
  font-size: 1.15rem;
  color: var(--navy);
}

.project-tag,
.project-sector {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.project-tag {
  background: var(--navy);
  color: #fff;
}

.project-sector {
  background: var(--bg-subtle);
  color: var(--muted);
  border: 1px solid var(--border);
}

.project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  row-gap: 1.25rem;
}

.project-details > div:last-child {
  grid-column: 1 / -1;
}

.project-details dt {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.project-details dd {
  font-size: 0.95rem;
  color: var(--text);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  background: var(--bg-subtle);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--muted);
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition:
    transform 0.2s,
    opacity 0.2s;
}

/* Animate to X when open */
.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);
}

/* Responsive */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  body > header {
    position: relative;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  }

  #main-nav.is-open {
    display: flex;
  }

  #main-nav .nav-cta {
    align-self: flex-start;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero::after {
    display: none;
  }

  .page-hero {
    padding: 2.5rem 0;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .page-hero::after {
    display: none;
  }

  .section-inner,
  .hero-inner {
    padding: 0 1.25rem;
  }

  main > section {
    padding: 2.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
  }
}
