:root {
  --accent: #2f6bff;
  --accent-hover: #2458d4;
  --text: #1a1d26;
  --text-muted: #5c6370;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --border: #e4e7ee;
  --radius: 20px;
  --radius-sm: 16px;
  --shadow: 0 4px 24px rgba(26, 29, 38, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-content: 720px;
  --max-wide: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

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

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 650;
}

.container {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--max-content));
  margin-inline: auto;
}

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

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  max-width: var(--max-wide);
  margin-inline: auto;
}

.nav-left,
.nav-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

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

.nav-left a:hover,
.nav-right a:hover {
  color: var(--accent);
}

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

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .nav-left,
  .nav-right {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1rem;
  }

  .site-header.is-open .nav-left,
  .site-header.is-open .nav-right {
    display: flex;
  }

  .nav-left {
    justify-content: flex-start;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .logo {
    justify-self: center;
    grid-column: 2;
  }

  .menu-toggle {
    grid-column: 3;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

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

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

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

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

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero split */
.hero-split {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-split__grid {
  display: grid;
  grid-template-columns: 45% 1fr;
  min-height: min(85vh, 640px);
  max-width: var(--max-wide);
  margin-inline: auto;
}

.hero-split__content {
  padding: 3rem 2rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-split__content h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin: 0 0 1rem;
}

.hero-split__content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 1.75rem;
  max-width: 34ch;
}

.hero-split__media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

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

@media (max-width: 768px) {
  .hero-split__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-split__content {
    padding: 2rem 1rem;
    order: 1;
  }

  .hero-split__media {
    order: 0;
    aspect-ratio: 16 / 10;
    min-height: 280px;
  }
}

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

.section__head {
  margin-bottom: 2rem;
}

.section__head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
}

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

/* Aspect media */
.media-cover {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--border);
}

.media-cover--4-3 {
  aspect-ratio: 4 / 3;
}

.media-cover--video {
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

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

/* Services scroll */
.services-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .services-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .services-scroll .card-service {
    flex: 0 0 min(85vw, 320px);
    scroll-snap-align: start;
  }
}

.card-service {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-service__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-service h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

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

/* Blog layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.post-grid {
  display: grid;
  gap: 1.5rem;
}

.post-grid--home {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  .post-grid--home {
    grid-template-columns: 1fr;
  }
}

.card-post {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.card-post:hover {
  box-shadow: var(--shadow);
}

.card-post__body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.card-post .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.card-post h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card-post h3 a {
  color: var(--text);
  text-decoration: none;
}

.card-post h3 a:hover {
  color: var(--accent);
}

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

.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: sticky;
  top: 5rem;
}

.sidebar h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  font-weight: 500;
}

.sidebar .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar .tag-list a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--bg);
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
}

.sidebar .tag-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Team preview */
.team-row {
  display: grid;
  gap: 1rem;
}

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

.initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.team-card .role {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
}

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

/* FAQ mini */
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  margin-bottom: 0.65rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Stats strip */
.stats-strip {
  background: var(--text);
  color: #fff;
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

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

.stat-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.stat-item span {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* CTA banner */
.cta-banner {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 0 1rem;
  max-width: calc(var(--max-wide) - 2rem);
  margin-inline: auto;
}

.cta-banner h2 {
  margin: 0 0 0.75rem;
  color: #fff;
}

.cta-banner p {
  margin: 0 auto 1.5rem;
  max-width: 48ch;
  opacity: 0.95;
}

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

.cta-banner .btn--primary:hover {
  background: var(--bg);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

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

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

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Inner pages */
.page-hero {
  padding: 2.5rem 0 0;
}

.page-hero .media-cover--video {
  margin-bottom: 2rem;
}

.article-body h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.article-body p {
  margin: 0 0 1.15rem;
}

.prose {
  font-size: 1.02rem;
}

/* Team table */
.team-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.team-table th,
.team-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.team-table th {
  background: var(--bg);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.team-table tr:last-child td {
  border-bottom: none;
}

.team-table .name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.initials--sm {
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 1.25rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.stars {
  color: #e6a800;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.review-card blockquote {
  margin: 0 0 0.75rem;
  font-style: normal;
}

.review-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
}

.review-card .company {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.5rem;
}

.step-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: rgba(47, 107, 255, 0.1);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact map placeholder */
.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  min-height: 240px;
}

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

.contact-hours {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.legal-doc {
  padding-bottom: 3rem;
}

.legal-doc .doc-id {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.category-list {
  display: grid;
  gap: 1rem;
}

.category-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.category-card:hover {
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.category-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--accent);
}

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