:root {
  --primary: #004e7a;
  --primary-dark: #003a5c;
  --ink: #183244;
  --steel: #4f6472;
  --slate: #6f7f8b;
  --mist: #f5f5f5;
  --line: #dadde0;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(24, 50, 68, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--mist), var(--white) 18%, var(--white));
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 88px 0; }
.muted { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 800;
  font-size: 0.78rem;
  margin: 0 0 1rem;
}
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head h2, .hero h1 { line-height: 1.08; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.8rem); }
.section-head h2 { font-size: clamp(2rem, 3.5vw, 3.3rem); }
.section-head p, .hero-copy { color: var(--steel); font-size: 1.06rem; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.9rem; font-weight: 800; }
.brand img { width: 72px; height: 72px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 0.35rem; }
.site-nav a {
  padding: 0.85rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.16em;
}
.site-nav a:hover, .site-nav a:focus-visible { background: var(--ink); color: var(--white); }
.nav-toggle { display: none; }

.hero { padding: 72px 0 60px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(24,50,68,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(24,50,68,0.045) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 2rem; align-items: center; }
.hero-actions, .stats, .pill-grid, .card-grid, .blog-grid, .gallery, .footer-wrap { display: flex; gap: 1rem; }
.hero-actions { margin: 2rem 0; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0.95rem 1.4rem; border-radius: 18px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; border: 1px solid transparent; transition: 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: var(--white); }
.button-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.stats { flex-wrap: wrap; }
.stats article, .panel, .service-card, .blog-card, .project-card, .hero-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats article { flex: 1 1 180px; padding: 1.15rem; }
.stats strong { display: block; font-size: 1.75rem; color: var(--primary); }
.stats span { color: var(--steel); font-size: 0.95rem; }
.hero-card { padding: 1.5rem; background: linear-gradient(180deg, var(--white), #eef3f6); }
.hero-card h2 { margin: 0 0 0.4rem; font-size: 0.9rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.2em; }
.feature-title { font-size: 1.8rem; font-weight: 900; margin: 0 0 1rem; }
.hero-card ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.hero-card li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; margin-bottom: 0.75rem; background: var(--white); border-radius: 18px; }
.feature-badge { display: inline-block; background: var(--primary); color: var(--white); padding: 0.8rem 1rem; border-radius: 18px; font-weight: 700; }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; }
.panel, .dark-panel { padding: 2rem; }
.panel p { color: var(--steel); }
.dark-panel { background: var(--ink); color: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.dark-panel p { color: rgba(255,255,255,0.85); }
.pill-grid { flex-wrap: wrap; margin-top: 1.5rem; }
.pill-grid span {
  background: var(--mist); color: var(--steel); padding: 0.8rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
}
.value-item + .value-item { margin-top: 1rem; }
.card-grid { flex-wrap: wrap; }
.service-card, .blog-card { flex: 1 1 230px; padding: 1.5rem; }
.service-card h3, .blog-card h3, .project-copy h3 { margin-top: 0; }
.project-list { display: grid; gap: 1.5rem; }
.project-card {
  padding: 1.3rem; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1.2rem; align-items: center;
}
.project-card.reverse { grid-template-columns: 1.2fr 0.8fr; }
.project-card.reverse .project-copy { order: 2; }
.project-card.reverse .gallery { order: 1; }
.project-type {
  display: inline-block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 800; color: var(--primary); margin-bottom: 0.75rem;
}
.project-copy ul { padding-left: 1.2rem; color: var(--steel); }
.gallery.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery a { overflow: hidden; border-radius: 18px; min-height: 280px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery a:hover img { transform: scale(1.04); }
.blog-card span { color: var(--primary); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em; }
.contact-panel h2 { margin-top: 0; }
.contact-list a { color: var(--white); text-decoration: underline; }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.45rem; font-weight: 700; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 0.95rem 1rem;
  font: inherit; color: var(--ink); background: var(--white);
}
.form-note { color: var(--slate); font-size: 0.92rem; margin: 0; }
.site-footer { border-top: 1px solid var(--line); background: var(--mist); }
.footer-wrap { justify-content: space-between; align-items: center; padding: 2rem 0; flex-wrap: wrap; }
.footer-wrap p { margin: 0.35rem 0 0; color: var(--steel); }

@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid, .project-card, .project-card.reverse { grid-template-columns: 1fr; }
  .project-card.reverse .project-copy, .project-card.reverse .gallery { order: initial; }
  .gallery.two-up { grid-template-columns: 1fr; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line);
    background: var(--white); color: var(--ink); border-radius: 14px; min-height: 44px; padding: 0 0.9rem; font-weight: 700;
  }
  .site-nav {
    position: absolute; top: 100%; right: 1rem; flex-direction: column; align-items: stretch;
    background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
    padding: 0.5rem; display: none; min-width: 220px;
  }
  .site-nav.open { display: flex; }
}
