:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --navy: #1e3a5f;
  --navy-dark: #0f2744;
  --navy-light: #2d4a6f;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --civic-green: #059669;
  --civic-green-soft: rgba(5, 150, 105, 0.08);
  --text: #1e293b;
  --text-light: #475569;
  --muted: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;
}

.logo-text-main {
  font-weight: 700;
  font-size: 18px;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
}

.logo-text-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-radius: 8px;
  padding: 14px 28px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-ghost {
  border-radius: 8px;
  padding: 13px 24px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.hero-card h3 {
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hero-card-main {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-card-main span {
  color: var(--accent);
}

.hero-card p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero-card-list {
  list-style: none;
  color: var(--text-light);
  font-size: 14px;
}

.hero-card-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
}

.hero-card-list li:last-child {
  border-bottom: none;
}

.hero-card-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--civic-green);
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}

.section-alt {
  background: var(--bg-alt);
  margin: 0 -24px;
  padding: 80px 24px;
}

.section h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section p.section-intro {
  font-size: 17px;
  color: var(--text-light);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.services-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--accent);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 16px;
}

.pill-green {
  color: var(--civic-green);
  background: var(--civic-green-soft);
}

.card ul {
  list-style: none;
  font-size: 14px;
  color: var(--text-light);
}

.card ul li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.card ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

/* Icon Cards */
.icon-card {
  text-align: center;
  padding: 40px 24px;
}

.icon-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.icon-card-green .icon {
  background: var(--civic-green-soft);
}

/* Value Props */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-item {
  text-align: center;
  padding: 24px 16px;
}

.value-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 20px;
}

.value-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.value-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Bullet Lists */
.bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 48px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}

.bullet-item .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--civic-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--civic-green);
  font-size: 14px;
  font-weight: 700;
}

.bullet-item p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

/* Case Studies */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-study-card {
  background: var(--card);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--border);
}

.case-study-stat {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.case-study-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.case-study-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Clients Section */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.client-item {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  text-align: center;
  border: 1px solid var(--border-light);
}

/* Audit Stages */
.stages-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stage-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  background: var(--card);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border);
}

.stage-number {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.stage-line {
  flex: 1;
  width: 2px;
  background: var(--border);
  margin-top: 16px;
}

.stage-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.stage-content .stage-subtitle {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.stage-content ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stage-content ul li {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.stage-content ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--civic-green);
  margin-top: 7px;
  flex-shrink: 0;
}

/* Page Header */
.page-header {
  padding: 60px 0 40px;
  background: var(--bg-alt);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-header h1 span {
  color: var(--accent);
}

.page-header p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-light);
}

.contact-item h3 {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-item p,
.contact-item a {
  font-size: 16px;
  color: var(--text);
}

.contact-item a {
  color: var(--accent);
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--card);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.contact-form h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* Flash messages */
.flash-message {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 15px;
}

.flash-success {
  background: var(--civic-green-soft);
  color: var(--civic-green);
  border: 1px solid var(--civic-green);
}

.flash-error {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  border: 1px solid #dc2626;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-image {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  border: 1px solid var(--border);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

/* CTA Section */
.cta-section {
  background: var(--navy);
  border-radius: 16px;
  padding: 64px;
  text-align: center;
  margin: 80px 0;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background: #ffffff;
  color: var(--navy-dark);
}

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

/* Footer */
footer {
  padding: 40px 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav {
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px;
  }

  .hero-card {
    order: -1;
  }

  .services-grid,
  .services-grid-3 {
    grid-template-columns: 1fr;
  }

  .bullet-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stage-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stage-number {
    flex-direction: row;
    gap: 16px;
  }

  .stage-line {
    display: none;
  }

  .stage-content ul {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 48px 24px;
  }

  .clients-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
