@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,500;9..40,600;9..40,700;9..40,800&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #16202b;
  --ink-soft: #465563;
  --blue: #1b5fa8;
  --blue-deep: #124a87;
  --teal: #2aa9a0;
  --bg: #f7f9fa;
  --surface: #ffffff;
  --border: #e1e7eb;
  --border-strong: #c7d1d8;
  --danger: #b3312c;
  --max-w: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

h1 {
  font-family: 'DM Sans', sans-serif;
  font-optical-sizing: auto;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h2, h3 {
  font-family: 'DM Sans', sans-serif;
  font-optical-sizing: auto;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h2 { font-size: 1.85rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--blue-deep); }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 50;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img { height: 58px; width: auto; display: block; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--blue-deep);
  border-bottom-color: var(--teal);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-toggle span,
.mobile-nav-toggle::before,
.mobile-nav-toggle::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  content: "";
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero.with-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/hero-bg.jpg') center 55% / cover no-repeat;
  opacity: 0.9;
  z-index: 1;
}

.hero.with-bg::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(247,249,250,0.92) 0%, rgba(247,249,250,0.68) 48%, rgba(247,249,250,0.2) 100%);
  z-index: 2;
}

.hero.with-bg > .wrap {
  position: relative;
  z-index: 3;
}

.hero .kicker {
  color: var(--teal);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero h1 { max-width: 16ch; }

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 4px;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 95, 168, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--blue-deep);
  border: 1.5px solid var(--blue-deep);
}

.btn-secondary:hover {
  background: var(--blue-deep);
  color: #fff;
  transform: translateY(-2px);
}

.btn-quiet {
  color: var(--blue-deep);
  padding: 12px 0;
  position: relative;
}

.btn-quiet::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.2s ease;
}

.btn-quiet:hover::after { width: 100%; }

/* Sections */
section { padding: 56px 0; }

section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 62ch; margin-bottom: 36px; }

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.why-icon svg { width: 100%; height: auto; max-width: 220px; }

.why-icon img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 8px;
  display: block;
}

/* Process */
.process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}

.process-step { position: relative; padding-top: 8px; }

.process-num {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal);
  border: 1px solid var(--teal);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.process-step:hover .process-num {
  background: var(--teal);
  color: #fff;
}

/* Services list (document-style, not cards) */
.service-list {
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 24px;
  margin: 0 -24px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: border-left-color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.service-row:hover {
  border-left-color: var(--teal);
  background: var(--surface);
  padding-left: 32px;
}

.service-row h3 { margin: 0; transition: color 0.2s ease; }

.service-row:hover h3 { color: var(--blue-deep); }

.service-row p { margin: 0; color: var(--ink-soft); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(22, 32, 43, 0.08);
  border-color: var(--border-strong);
}

.team-card .badge svg { width: 44px; height: 44px; transition: transform 0.25s ease; }

.team-card:hover .badge svg { transform: scale(1.08); }

.team-card h3 { margin: 14px 0 4px; font-size: 1.05rem; }

.team-card .role { color: var(--blue-deep); font-weight: 500; font-size: 0.9rem; margin-bottom: 12px; }

.team-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Forms */
form.audit-form {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.field .hint { color: var(--ink-soft); font-size: 0.85rem; margin-top: 4px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--surface);
  color: var(--ink);
}

.field textarea { min-height: 90px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--danger); }

.field.invalid .field-error { display: block; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.consent input { width: auto; margin-top: 4px; }

.form-success {
  display: none;
  background: #eaf6f4;
  border: 1px solid var(--teal);
  border-radius: 6px;
  padding: 20px;
  color: var(--ink);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-detail dt {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 18px;
}

.contact-detail dt:first-child { margin-top: 0; }

.contact-detail dd { margin: 2px 0 0; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a { color: var(--ink-soft); }

/* Privacy page */
.policy h2 { margin-top: 2em; font-size: 1.3rem; }
.policy ul { padding-left: 1.2em; }

/* News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 32px 24px;
  margin: 0 -24px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: border-left-color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.news-item:first-child { border-top: 1px solid var(--border); }

.news-item:hover {
  border-left-color: var(--teal);
  background: var(--surface);
  padding-left: 32px;
}

.news-date {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-top: 4px;
}

.news-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-deep);
  background: #e9f0f8;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.news-item h3 {
  margin: 0 0 8px;
  transition: color 0.2s ease;
}

.news-item:hover h3 { color: var(--blue-deep); }

.news-item p { margin: 0; color: var(--ink-soft); }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(22, 32, 43, 0.08);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  nav.main-nav a { display: block; padding: 12px 0; }
  .mobile-nav-toggle { display: block; }
  .hero h1 { font-size: 2.1rem; }
}
