:root {
  --primary: #2D4A6B;
  --primary-dark: #1E3550;
  --accent: #C0845A;
  --accent-dark: #a86e46;
  --bg: #F7F5F2;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --border: #E5E0D9;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

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

nav ul {
  display: flex;
  gap: 40px;
}

nav a {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

nav a:hover { color: var(--primary); }
nav a:hover::after,
nav a.active::after { width: 100%; }
nav a.active { color: var(--primary); font-weight: 600; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  border-radius: var(--radius);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(29,53,87,0.82) 0%, rgba(29,53,87,0.35) 65%, transparent 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 580px;
  padding: 0 28px 0 10%;
  color: #fff;
}

.hero-content .section-label { color: rgba(192,132,90,0.9); }

.hero-content h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.13;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.88;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  line-height: 1;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  color: #fff;
}

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

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

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

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

.btn-white:hover {
  background: var(--bg);
  color: var(--primary);
}

/* ---- Sections ---- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

.section-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 52px;
  line-height: 1.7;
}

/* ---- Grids ---- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.asym-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
}

.asym-grid.reverse {
  grid-template-columns: 7fr 5fr;
}

/* ---- Panels ---- */
.panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.panel-icon {
  width: 52px;
  height: 52px;
  background: rgba(45,74,107,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.5rem;
}

.panel p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---- Images ---- */
.img-cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.img-cover-sm {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.img-cover-lg {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ---- Backgrounds ---- */
.bg-white { background: var(--surface); }
.bg-light { background: var(--bg); }

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

.bg-dark h2 { color: #fff; }
.bg-dark h3 { color: #fff; }
.bg-dark .section-label { color: rgba(192,132,90,0.9); }
.bg-dark p, .bg-dark .section-lead { color: rgba(255,255,255,0.78); }

/* ---- Page Header ---- */
.page-header {
  background: var(--primary);
  padding: 68px 0 60px;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.875rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.page-header p {
  color: rgba(255,255,255,0.72);
  font-size: 1.0625rem;
  max-width: 520px;
  line-height: 1.65;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.55);
}

.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.breadcrumb .sep { opacity: 0.35; }

/* ---- Stats ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-item {
  padding: 36px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 2.625rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Service List ---- */
.service-list { display: flex; flex-direction: column; gap: 14px; }

.service-item {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
  align-items: flex-start;
}

.service-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.service-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.35;
  min-width: 40px;
  line-height: 1;
  padding-top: 4px;
}

.service-item h3 { margin-bottom: 6px; }
.service-item p { color: var(--text-muted); font-size: 0.9375rem; }

/* ---- Value Panels ---- */
.value-panel {
  padding: 28px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.value-panel h3 { margin-bottom: 8px; }
.value-panel p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.65; }

/* ---- Contact ---- */
.contact-box {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(45,74,107,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
  color: var(--primary);
}

.contact-item-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contact-item-text p {
  color: var(--text);
  font-size: 0.9875rem;
  line-height: 1.55;
}

.contact-item-text a { color: var(--text); }
.contact-item-text a:hover { color: var(--primary); }

/* ---- Form ---- */
.form-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,74,107,0.1);
  background: var(--surface);
}

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

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

/* ---- CTA Section ---- */
.cta-section {
  background: var(--primary);
  padding: 88px 0;
  text-align: center;
}

.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.78); margin-bottom: 36px; font-size: 1.075rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- How It Works ---- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.step {
  text-align: center;
  padding: 36px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.375rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 { text-align: center; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.9375rem; text-align: center; }

/* ---- Image Grid ---- */
.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---- Prose (legal pages) ---- */
.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 0;
}

.prose h2 {
  font-size: 1.375rem;
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--primary);
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  margin-bottom: 18px;
  color: var(--text-muted);
  line-height: 1.78;
  font-size: 0.9875rem;
}

.prose ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 18px;
}

.prose ul li {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9875rem;
  line-height: 1.65;
}

/* ---- Footer ---- */
footer {
  background: #111827;
  color: rgba(255,255,255,0.65);
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 52px;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  display: inline-block;
}

.footer-logo span { color: var(--accent); }

.footer-about {
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 320px;
}

.footer-contact-line {
  margin-top: 20px;
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: rgba(255,255,255,0.95); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.9); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0 !important; }

.tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(45,74,107,0.08);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 56px 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
}

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

  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 20px;
    box-shadow: var(--shadow-md);
  }

  nav.open { display: block; }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 28px;
  }

  nav a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  nav a::after { display: none; }

  .hero { height: 480px; }
  .hero-content { padding: 0 28px; max-width: 100%; }
  .hero-content h1 { font-size: 2rem; }

  .grid-2,
  .grid-3,
  .asym-grid,
  .asym-grid.reverse,
  .steps { grid-template-columns: 1fr; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-about { max-width: 100%; }

  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .footer-bottom-links { gap: 18px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  .section { padding: 60px 0; }
  .cta-section { padding: 60px 0; }

  .img-pair { grid-template-columns: 1fr; }

  .form-panel { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero { height: 420px; }
  .hero-content p { display: none; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
}
