:root {
  --navy: #0f1b4c;
  --blue: #2c4496;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --text: #1e293b;
  --text-muted: #475569;
  --border: #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--blue);
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  background: #e0e7ff;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 780px;
}

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

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

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

.btn-secondary {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--navy);
}

/* Sections */
section {
  padding: 3.5rem 0;
}

section h2 {
  font-size: 1.65rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 680px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--bg);
}

.card.featured {
  border-color: var(--blue);
  background: #f8faff;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

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

/* About / Office */
.about-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-text {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

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

.office-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

/* Legal & Contact */
.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.legal-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  font-size: 0.95rem;
}

.legal-box p {
  margin-bottom: 0.75rem;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

.legal-box strong {
  color: var(--navy);
}

.legal-box a {
  color: var(--blue);
}

footer {
  margin-top: auto;
  background: var(--navy);
  color: #cbd5e1;
  padding: 1.5rem 0;
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 520px) {
  nav ul {
    gap: 0.85rem;
  }
  nav a {
    font-size: 0.875rem;
  }
}
