:root {
  --brand: #22473d;
  --brand-dark: #1a3830;
  --brand-light: #e8efec;
  --brand-muted: #f4f7f5;
  --text: #3a393b;
  --text-muted: #6b7280;
  --border: #d8e0dc;
  --surface: #f7f9f8;
  --radius: 0.75rem;
  --shadow: 0 8px 30px rgba(34, 71, 61, 0.08);
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
}

body,
body.site-shell {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: Montserrat, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

.site-header,
body > header {
  flex: 0 0 auto;
  z-index: 100;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-main,
body > main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.site-main > section:last-child,
body > main > section:last-child {
  padding-bottom: 1.5rem;
}

.site-footer,
body > footer {
  flex: 0 0 auto;
  z-index: 100;
  background: var(--brand-dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  color: #fff;
  line-height: 1.1;
}

.brand:hover {
  color: #fff;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a.active,
.site-nav a:hover {
  color: #fff;
}

.site-nav-login {
  margin-left: 0.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-weight: 600;
}

.site-nav-login:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.hero {
  padding: 3rem 0 4rem;
  background:
    radial-gradient(circle at top right, rgba(34, 71, 61, 0.12), transparent 42%),
    linear-gradient(180deg, var(--brand-muted) 0%, #fff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--brand-dark);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--brand);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.section {
  padding: 4rem 0;
}

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

.section-title {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.section-title h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--brand-dark);
}

.section-title p {
  margin: 0;
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--brand);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  opacity: 0.92;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-box {
  background: var(--brand-muted);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font: inherit;
}

.form-control:focus {
  outline: 2px solid rgba(34, 71, 61, 0.25);
  border-color: var(--brand);
}

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

.alert {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: #e8f5ef;
  color: #1f5c42;
  border: 1px solid #b9dcc8;
}

.alert-danger {
  background: #fdeeee;
  color: #8b2e2e;
  border: 1px solid #f0caca;
}

.alert-warning {
  background: #fff8e8;
  color: #7a5a12;
  border: 1px solid #f0dfa8;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.7rem 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.footer-brand strong {
  font-size: 0.95rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

.site-footer a { color: #d7e6df; }
.site-footer a:hover { color: #fff; }

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  white-space: nowrap;
}

.text-muted { color: var(--text-muted); }

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 210;
    flex-direction: column;
    align-items: stretch;
    background: var(--brand-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    padding: 0.75rem 1rem 1rem;
    display: none;
  }

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

  .site-header-inner { position: relative; }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.65rem 0;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .hero { padding-top: 2rem; }
}
