:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #14243b;
  --muted: #4f6380;
  --accent: #244ed8;
  --accent-dark: #1a3cae;
  --accent-soft: #e8eefc;
  --border: rgba(20, 36, 59, 0.1);
  --radius: 8px;
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 700; }
h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 650; }
p { margin: 0 0 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 16px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.site-nav ul { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; border-radius: 6px; transition: color .2s ease, background .2s ease; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.site-nav .nav-cta a { background: var(--accent); color: #fff; padding: 0 18px; border-radius: 6px; box-shadow: none; }
.site-nav .nav-cta a:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; }
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }

/* Home hero: full-width statement, wide photo below */
.home-hero { padding: 64px 0 0; background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.home-hero h1 { max-width: 900px; }
.home-hero .lead { margin-bottom: 28px; }
.hero-photo { margin-top: 48px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.hero-photo img { width: 100%; height: auto; }

/* Horizontal service navigation */
.service-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.service-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.service-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 36, 59, .08); }
.service-tile img { width: 100%; height: auto; }
.service-tile-body { padding: 16px; }
.service-tile h3 { font-size: 16px; margin-bottom: 8px; }
.service-tile p { font-size: 14px; color: var(--muted); margin: 0; }

/* Problem / solution narrative */
.story { display: grid; grid-template-columns: 55fr 45fr; gap: 48px; align-items: center; padding: 32px 0; }
.story + .story { border-top: 1px solid var(--border); }
.story.reverse .story-text { order: 2; }
.story-media { border-radius: var(--radius); overflow: hidden; }
.story-media img { width: 100%; height: auto; }
.story-label { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.story h3 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 8px; }
.story p { color: var(--muted); }

/* Contact band */
.contact-band { background: var(--accent-soft); padding: 64px 0; text-align: center; }
.contact-band p { color: var(--muted); max-width: 640px; margin: 0 auto 24px; }
.contact-band .btn-row { justify-content: center; }

/* Inner page hero */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 46px); max-width: 860px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Services overview */
.catalog { display: grid; gap: 28px; }
.catalog-item { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.catalog-item img { border-radius: 6px; width: 100%; height: auto; }
.catalog-item h2 { font-size: 24px; margin-bottom: 10px; }
.catalog-item p { color: var(--muted); }
.catalog-item .benefit { color: var(--text); border-left: 3px solid var(--accent); padding-left: 12px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.chip-list li { font-size: 13px; background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; padding: 4px 12px; }

/* Generic two-column content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.panel h3 { font-size: 18px; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 16px; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--muted); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wide-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.wide-photo img { width: 100%; height: auto; }
.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.fact-list li:last-child { border-bottom: 0; }
.fact-list strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.fact-list a, .fact-list span { font-size: 18px; color: var(--text); }
.fact-list a { color: var(--accent); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 48px; color: var(--muted); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.steps strong { color: var(--text); display: block; }

/* Service detail */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.detail-figure { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.detail-figure img { width: 100%; height: auto; }
.detail-block { margin-bottom: 36px; }
.detail-block p { color: var(--muted); }
.benefit-callout { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; font-size: 18px; }
.detail-aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.detail-aside ul { list-style: none; margin: 0; padding: 0; }
.detail-aside li a { display: block; padding: 8px 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.detail-aside li a:hover { color: var(--accent); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; color: var(--muted); }
.footer-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* Responsive */
@media (max-width: 1024px) {
  .service-rail { grid-template-columns: repeat(5, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .service-tile { scroll-snap-align: start; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .catalog-item { grid-template-columns: 260px 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { width: 100%; padding: 0 4px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .site-nav .nav-cta a { justify-content: center; margin-top: 8px; }
  .section { padding: 48px 0; }
  .home-hero { padding-top: 40px; }
  .hero-photo { margin-top: 32px; }
  .lead { font-size: 16px; }
  .service-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 14px; }
  .service-tile-body { padding: 12px; }
  .service-tile h3 { font-size: 14px; }
  .service-tile p { font-size: 13px; }
  .story, .split, .catalog-item, .grid-3, .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .story.reverse .story-text { order: 0; }
  .story-media { order: -1; }
  .catalog-item { padding: 16px; }
}
@media (max-width: 420px) {
  .service-rail { grid-template-columns: 1fr 1fr; }
  .service-tile p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
