:root {
  --bg: #eef3f9;
  --surface: #ffffff;
  --text: #0c1524;
  --muted: #5a6778;
  --accent: #0e4d92;
  --accent-dark: #0a3a6e;
  --accent-soft: #e6f0fa;
  --accent-glow: rgba(14, 77, 146, 0.15);
  --border: #dde4ed;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px rgba(14, 77, 146, 0.1);
  --shadow-sm: 0 6px 20px rgba(12, 21, 36, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.ico { flex-shrink: 0; }

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

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

.logo {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo:hover { text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
}

.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.nav-cta:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

main { flex: 1; }
main.legal-main { padding: 3rem 0 4rem; }

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: var(--shadow-sm);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Hero ── */

.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -20%, var(--accent-glow), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(14, 77, 146, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, black 30%, transparent 90%);
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  max-width: calc(100% - 1rem);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  line-height: 1.3;
}

.hero-eyebrow-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-eyebrow-text {
  text-align: left;
}

.hero-inner h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.15rem;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.12rem;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta { justify-content: center; }

/* ── Expertise band ── */

.expertise-band {
  padding: 3.5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.expertise-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.expertise-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.expertise-head p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

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

.expertise-tile {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.expertise-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.expertise-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.expertise-tile h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.expertise-tile p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Sections ── */

.section { padding: 4.5rem 0; }

.section-alt {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head.center {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.headline-split {
  line-height: 1.25;
}

/* ── Service row (compact 3-col) ── */

.service-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.service-row-card {
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-row-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.service-row-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ── Preview highlight ── */

.preview-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.preview-visual {
  display: grid;
  gap: 0.75rem;
}

.preview-card {
  padding: 1.15rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.preview-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.preview-card strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.preview-card span {
  font-size: 0.84rem;
  color: var(--muted);
}

.preview-copy h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.preview-copy p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* ── Services mosaic ── */

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

.service-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
  box-shadow: var(--shadow-sm);
}

.service-card:nth-child(1) { grid-column: span 2; }

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent) 8%, white));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.service-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.service-card span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── About ── */

.about-panel {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-photo-wrap {
  position: relative;
  align-self: center;
  width: 160px;
  flex-shrink: 0;
  padding-top: 0.75rem;
}

.about-photo-wrap::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  left: 0;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 38%, rgba(14, 77, 146, 0.18) 0%, rgba(14, 77, 146, 0.06) 42%, transparent 72%);
  z-index: 0;
  pointer-events: none;
}

.about-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius);
  border: 3px solid var(--surface);
  box-shadow: 0 8px 22px rgba(14, 77, 146, 0.14);
}

.about-avatar-fallback {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 3rem;
}

.about-copy h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.about-copy > p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.about-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.cred-badge {
  padding: 0.4rem 0.75rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
}

/* ── CTA ── */

.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, #1a6bb8 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 45%);
  pointer-events: none;
}

.cta-band .container { position: relative; }

.cta-band h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
}

.cta-band p {
  opacity: 0.93;
  max-width: 480px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.cta-band .btn-primary:hover { background: #f8fafc; }

.cta-band .btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}

.cta-band .btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: #fff;
}

.cta-band .cta-row { justify-content: center; }

/* ── Legal ── */

.legal-page h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.legal-page .updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
.legal-page p, .legal-page li { color: var(--text); margin-bottom: 0.75rem; }
.legal-page ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }

/* ── Footer ── */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; }
  .preview-panel { grid-template-columns: 1fr; }
  .services-mosaic { grid-template-columns: 1fr; }
  .service-card:nth-child(1) { grid-column: span 1; }
  .about-panel { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 160px; margin: 0 auto; padding-top: 0; }
}

@media (max-width: 600px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero-section { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .expertise-grid { grid-template-columns: 1fr; }
  .hero-eyebrow {
    flex-wrap: wrap;
    row-gap: 0.2rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.72rem;
  }
  .hero-eyebrow-text { text-align: center; }
}
