/* xCtra shared navigation and cross-page sections.
   Plain CSS (no Tailwind build needed), used on every page. No JavaScript:
   dropdowns open on hover and keyboard focus; phones get a <details> menu. */

.xn {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid #e5e7eb;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #374151; margin: 0; padding: 0;
}
.xn-bar {
  max-width: 80rem; margin: 0 auto; padding: 0 1rem; height: 4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 640px) { .xn-bar { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .xn-bar { padding: 0 2rem; } }
.xn-logo { display: flex; align-items: center; }
.xn-logo img { height: 2.5rem; width: auto; display: block; }

.xn-menu { display: none; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .xn-menu { display: flex; } }

.xn-group { position: relative; }
.xn-top {
  display: flex; align-items: center; gap: 0.25rem;
  font: inherit; font-size: 1rem; color: #374151; background: none; border: 0;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem; cursor: pointer;
}
.xn-top svg { width: 1rem; height: 1rem; transition: transform 0.15s; }
.xn-group:hover .xn-top, .xn-group:focus-within .xn-top { color: #2563eb; background: #eff6ff; }
.xn-group:hover .xn-top svg, .xn-group:focus-within .xn-top svg { transform: rotate(180deg); }
.xn-top[aria-current="true"] { color: #2563eb; }

.xn-drop {
  position: absolute; top: 100%; right: 0; padding-top: 0.5rem;
  min-width: 20rem; visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.xn-group:hover .xn-drop, .xn-group:focus-within .xn-drop { visibility: visible; opacity: 1; transform: none; }
.xn-panel {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 0.875rem; padding: 0.5rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.xn-link {
  display: block; padding: 0.625rem 0.75rem; border-radius: 0.625rem; text-decoration: none; color: #111827;
}
.xn-link:hover, .xn-link:focus-visible { background: #eff6ff; outline: none; }
.xn-link strong { display: block; font-weight: 600; font-size: 0.95rem; }
.xn-link span { display: block; font-size: 0.85rem; color: #6b7280; margin-top: 0.1rem; line-height: 1.35; }
.xn-link[aria-current="page"] strong { color: #2563eb; }

/* Phones: one menu button with both groups. */
.xn-mobile { position: static; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
@media (min-width: 768px) { .xn-mobile { display: none; } }
.xn-mobile > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.75rem; border: 1px solid #e5e7eb; border-radius: 0.625rem; font-weight: 600; font-size: 0.95rem;
}
.xn-mobile > summary::-webkit-details-marker { display: none; }
.xn-mobile > summary svg { width: 1.1rem; height: 1.1rem; }
.xn-sheet {
  position: absolute; left: 0; right: 0; top: 4rem; background: #fff; border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1rem 1rem; box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  max-height: calc(100vh - 4rem); overflow-y: auto;
}
.xn-sheet h2 {
  font-family: inherit; font-weight: 600; text-wrap: wrap;
  margin: 0.75rem 0.75rem 0.25rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280;
}

/* Home: "What we do" cards. */
.xs-hero-tight { padding-top: 4rem !important; }
.xs-services { padding: 4rem 1rem; background: #fff; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.xs-services-inner { max-width: 80rem; margin: 0 auto; }
.xs-services h2 { font-size: 2.25rem; font-weight: 700; color: #111827; text-align: center; margin: 0 0 0.75rem; }
.xs-services > div > p { font-size: 1.25rem; color: #4b5563; text-align: center; margin: 0 0 2.5rem; }
.xs-cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .xs-cards { grid-template-columns: 1fr 1fr; } }
.xs-card {
  display: block; text-decoration: none; color: inherit; padding: 2rem; border-radius: 1rem;
  border: 1px solid #dbeafe; background: linear-gradient(135deg, #eff6ff, #fff);
  transition: box-shadow 0.15s, transform 0.15s;
}
.xs-card:hover, .xs-card:focus-visible { box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15); transform: translateY(-2px); outline: none; }
.xs-card h3 { font-size: 1.5rem; font-weight: 700; color: #111827; margin: 0 0 0.5rem; }
.xs-card p { color: #4b5563; margin: 0 0 1rem; line-height: 1.6; }
.xs-card ul { margin: 0 0 1.25rem; padding-left: 1.2rem; color: #374151; line-height: 1.8; }
.xs-more { color: #2563eb; font-weight: 600; }

/* Header: plain "Contact" link beside the two menus. */
a.xn-top { text-decoration: none; }
.xn-cta { color: #fff !important; background: #2563eb; font-weight: 600; margin-left: 0.25rem; }
.xn-cta:hover, .xn-cta:focus-visible { background: #1d4ed8 !important; color: #fff !important; outline: none; }

/* Company footer (home, solutions, 404), generated by tools/sync_chrome.py. */
.xf {
  background: #111827; color: #9ca3af; padding: 3rem 1rem 2rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.9rem;
}
.xf-cols { max-width: 80rem; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .xf-cols { grid-template-columns: repeat(3, 1fr); } }
.xf h2 { color: #fff; font-size: 0.95rem; font-weight: 600; margin: 0 0 0.75rem; }
.xf ul { list-style: none; margin: 0; padding: 0; }
.xf li { margin: 0.45rem 0; }
.xf a { color: #d1d5db; text-decoration: none; }
.xf a:hover, .xf a:focus-visible { color: #fff; text-decoration: underline; }
.xf-legal { max-width: 80rem; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid #1f2937; text-align: center; }
.xf-legal p { margin: 0.3rem 0; }

/* Home sections (migration, services, why, partners, contact). Plain CSS, independent of the compiled Tailwind file. */
.xh-section { padding: 4.5rem 1rem; background: #fff; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #374151; }
.xh-tint { background: linear-gradient(135deg, #f8fafc, #eff6ff); }
.xh-inner { max-width: 72rem; margin: 0 auto; }
.xh-center { text-align: center; }
.xh-section h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; color: #111827; text-align: center; margin: 0 0 0.75rem; line-height: 1.2; }
.xh-lede { font-size: 1.125rem; color: #4b5563; text-align: center; max-width: 48rem; margin: 0 auto 2.5rem; line-height: 1.65; }
.xh-lede a, .xh-card a:not(.xh-more):not(.xh-btn), .xh-small a { color: #2563eb; }
.xh-pill { display: table; margin: 0 auto 1rem; padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.xh-pill-amber { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.xh-grid2, .xh-grid3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .xh-grid2 { grid-template-columns: 1fr 1fr; } .xh-grid3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .xh-grid3 { grid-template-columns: repeat(3, 1fr); } }
.xh-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.75rem; box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05); }
.xh-card h3 { font-size: 1.2rem; font-weight: 700; color: #111827; margin: 0 0 0.5rem; }
.xh-card p { margin: 0 0 0.75rem; line-height: 1.65; }
.xh-card-accent { border-color: #bfdbfe; }
.xh-card-dashed { border: 2px dashed #93c5fd; box-shadow: none; }
.xh-eyebrow { color: #2563eb; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.5rem !important; }
.xh-chips { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.xh-chips li { background: #f1f5f9; color: #334155; border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.85rem; }
.xh-chips li.xh-chip-to { background: #dbeafe; color: #1e40af; }
.xh-chips-amber li { background: #fef3c7; color: #92400e; font-weight: 600; }
.xh-more { display: inline-block; margin-top: 1rem; color: #2563eb; font-weight: 600; text-decoration: none; }
.xh-more:hover { text-decoration: underline; }
.xh-cta { background: linear-gradient(135deg, #2563eb, #1e40af); color: #dbeafe; }
.xh-cta h2 { color: #fff; }
.xh-cta .xh-lede { color: #dbeafe; }
.xh-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 1.5rem; }
.xh-btn { display: inline-block; padding: 0.85rem 1.5rem; border-radius: 0.75rem; font-weight: 600; text-decoration: none; }
.xh-btn-light { background: #fff; color: #1e40af; }
.xh-btn-light:hover { background: #eff6ff; }
.xh-btn-outline { border: 2px solid #bfdbfe; color: #fff; }
.xh-btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.xh-small { font-size: 0.9rem; margin: 0; }
.xh-cta .xh-small a { color: #fff; }
.xh-btn-primary { background: #2563eb; color: #fff; }
.xh-btn-primary:hover { background: #1d4ed8; }
.xh-btn-ghost { border: 2px solid #e5e7eb; color: #111827; }
.xh-btn-ghost:hover { background: #f9fafb; }
.xh-card.xh-center p { color: #4b5563; }

/* Jump links (/#migration, /#contact...) land below the 4rem sticky header instead of under it. */
[id] { scroll-margin-top: 4.5rem; }
