:root {
  color-scheme: light;
  --bg: #00557F;
  --primary: #00557F;
  --primary-dark: #004466;
  --accent: #70C33B;
  --text: #0f172a;
  --muted: #475569;
  --light: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 10px 25px rgba(0, 85, 127, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  font-size: 1rem;
}

main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 30;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.1rem; }
.brand-sub { color: var(--muted); font-size: 0.9rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: color .25s, background .25s, box-shadow .25s, transform .25s;
}

.nav-link:hover,
.nav-link.active {
  background: #70C33B;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 2px 12px rgba(112, 195, 59, 0.15);
}

.hamburger {
  display: none;
  align-items: center;
  background: #fff;
  border: 2px solid #70C33B;
  border-radius: 999px;
  cursor: pointer;
  padding: 8px 18px 8px 14px;
  font: inherit;
}

.hamburger-icon {
  width: 24px;
  height: 2px;
  background: #70C33B;
  display: block;
  position: relative;
  margin-right: 8px;
  border-radius: 2px;
}
.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #70C33B;
}
.hamburger-icon::before { top: -7px; }
.hamburger-icon::after { top: 7px; }
.hamburger-label {
  font-size: 1.02rem;
  color: #70C33B;
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero,
.page-hero {
  background: linear-gradient(120deg, #e2e8f0, #ffffff 60%);
  padding: 64px 0;
}

.page-hero h1 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--text);
  font-weight: 800;
}

.page-hero .lead {
  margin-bottom: 0;
}

.catalog-count {
  margin-top: 18px;
  color: var(--muted);
}

.catalog-count strong {
  color: var(--primary);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 800;
}

.lead {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-card {
  box-shadow: var(--shadow);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-card img {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  object-fit: contain;
}

.hero-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 2px 12px rgba(112, 195, 59, 0.12);
}

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

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

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}

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

.btn.secondary {
  background: #70C33B;
  color: #fff;
}

.btn.secondary:hover {
  background: #5bbd1b;
  color: #fff;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.95rem;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--light);
}

.section h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 800;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 52ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card .step-no {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.firm-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.firm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 85, 127, 0.12);
}

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

.firm-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.firm-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.firm-logo span {
  font-weight: 800;
  color: var(--primary);
}

.firm-card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text);
}

.firm-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.firm-blurb {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.firm-card .btn {
  align-self: flex-start;
  margin-top: 6px;
}

.empty-catalog {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-catalog h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.empty-catalog p {
  color: var(--muted);
  margin-bottom: 18px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.panel,
.aside-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin-top: 0;
}

.panel p,
.aside-box p {
  color: var(--muted);
}

.panel ul {
  margin: 14px 0 22px;
  padding-left: 1.2em;
  color: var(--muted);
}

.panel li { margin: 6px 0; }

.panel code {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}

.aside-box {
  background: var(--light);
}

.aside-box h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.15rem;
}

.aside-note {
  margin-top: 16px;
  font-size: 0.9rem;
}

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

.audience-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audience-card.accent {
  background: linear-gradient(160deg, #f8fafc 0%, #eef6fb 100%);
  border-color: #cfe0ea;
}

.audience-card h3 {
  font-size: 1.15rem;
  color: var(--text);
}

.audience-card > p {
  color: var(--muted);
}

.audience-card ul {
  margin: 4px 0 8px;
  padding-left: 1.15em;
  color: var(--muted);
  flex: 1;
}

.audience-card li {
  margin: 6px 0;
}

.audience-card .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.benefit {
  padding: 8px 0;
  border-top: 2px solid var(--accent);
}

.benefit strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.02rem;
}

.benefit p {
  color: var(--muted);
  margin: 0;
}

.section-cta {
  margin-top: 28px;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--muted);
  max-width: 48ch;
  margin: 0;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  background: var(--bg);
  color: #ffffff;
  padding: 40px 0 0;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding-bottom: 24px;
}

.site-footer strong { color: #fff; }
.site-footer p {
  margin: 6px 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a {
  color: #b7f08f;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 0 22px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.legal {
  padding: 48px 0 56px;
  max-width: 44rem;
}

.legal h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text);
}

.legal h2 {
  font-size: 1.15rem;
  margin: 22px 0 8px;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 8px;
}

.legal a {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: auto;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    width: min(240px, 92vw);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 0 16px;
    padding: 12px 0;
    display: none;
    z-index: 40;
    border: 1px solid var(--border);
  }

  .nav.nav-open { display: flex; }

  .nav-link {
    width: 100%;
    text-align: right;
    padding: 12px 20px;
    border-radius: 0;
  }

  .hero,
  .page-hero { padding: 40px 0; }
  .hero-actions,
  .cta-band-actions { flex-direction: column; align-items: flex-start; }
  .section { padding: 48px 0; }
}

@media (max-width: 720px) {
  .header-inner {
    gap: 12px;
  }
}
