:root {
  --bg: #f5f7fa;
  --navy: #002d62;
  --charcoal: #333333;
  --panel: #ffffff;
  --text: #222222;
  --muted: #666666;
  --border: #dde2ea;
  --accent: #e4572e;
  --accent-soft: rgba(228, 87, 46, 0.08);
  --ok: rgba(34, 197, 94, 0.12);
  --err: rgba(239, 68, 68, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, .brand {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

code { color: var(--charcoal); }

.container {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--navy);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.brand-text {
  display: inline-block;
  line-height: 1.2;
  vertical-align: middle;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle-open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav { 
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
}

.nav-open {
  max-height: 500px;
  padding: 0.5rem 0;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  display: block;
  border-bottom: 1px solid var(--border);
}

.nav-link:last-child {
  border-bottom: none;
}

.nav-link.active, .nav-link:hover {
  color: var(--navy);
  background: rgba(0, 45, 98, 0.06);
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
  
  .nav {
    position: static;
    flex-direction: row;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: none;
    background: transparent;
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.7rem;
    border-bottom: none;
    border-radius: 8px;
    white-space: nowrap;
  }
  
  .brand {
    font-size: 1.1rem;
  }

  .brand-logo {
    height: 38px;
  }
  
  .header-inner {
    padding: 0.85rem 0;
  }
}

main { padding: 2rem 0 3rem; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(0, 45, 98, 0.04) 100%);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40px -60px auto auto;
  width: 220px;
  height: 220px;
  background: rgba(228, 87, 46, 0.10);
  border-radius: 999px;
  filter: blur(0px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
  .hero-media { justify-self: end; }
}

h1 { margin: 0 0 0.5rem; font-size: 2rem; }
h2 { margin: 0 0 0.75rem; font-size: 1.25rem; }

.page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.page-title h1 {
  margin: 0;
}

.title-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  padding: 8px;
}

.lead { margin: 0.25rem 0 1.25rem; color: var(--muted); }
.muted { color: var(--muted); }

.hero-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.service-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.75rem;
}

@media (min-width: 720px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}

.service-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.service-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  padding: 8px;
}

.service-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

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

.service-link {
  color: var(--navy);
  text-decoration: none;
}

.service-link:hover {
  text-decoration: underline;
}

.cta-row { display: flex; gap: 0.75rem; align-items: center; }

.btn {
  appearance: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover {
  border-color: #c7431e;
  background: #c7431e;
}

.card {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.flash-stack { margin-bottom: 1rem; display: grid; gap: 0.5rem; }
.flash {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}
.flash.success { background: var(--ok); border-color: rgba(34, 197, 94, 0.35); }
.flash.error { background: var(--err); border-color: rgba(239, 68, 68, 0.35); }

.form { display: grid; gap: 0.9rem; margin-top: 1rem; }
.field { display: grid; gap: 0.35rem; }
label { font-weight: 600; color: var(--charcoal); }
input, textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }

.actions { display: flex; justify-content: flex-start; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  background: #ffffff;
}


