/* ==========================================================================
   Sinc — shared component library (WordPress child theme).
   Loaded after tokens.css. Header/footer selectors are scoped to
   .site-header / .site-footer so they do not collide with WP markup.
   Rules: no gradient backgrounds · magenta headings · ink-900 body text.
   ========================================================================== */
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); color: var(--text-primary);
  background: var(--surface); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5 { margin: 0; letter-spacing: var(--tracking-display); }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { display: block; }

.wrap { max-width: var(--container-max); margin: 0 auto;
  padding-left: var(--container-pad); padding-right: var(--container-pad); }
.wrap-narrow { max-width: 820px; margin: 0 auto;
  padding-left: var(--container-pad); padding-right: var(--container-pad); }

.eyebrow { font-size: var(--text-sm); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-brand); }
.eyebrow.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: var(--surface-brand-soft); border-radius: var(--radius-full); }
.eyebrow.on-dark { color: var(--magenta-300); }

/* ---- Buttons ---- */
.btn { font-family: inherit; font-weight: var(--weight-medium); cursor: pointer; border: none;
  border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--dur-fast) var(--ease-standard), transform var(--dur-fast), box-shadow var(--dur-normal); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-brand); }
.btn-secondary { background: var(--surface); color: var(--text-primary); box-shadow: inset 0 0 0 1.5px var(--border-strong); border-radius: var(--radius-sm); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--ink-900); }
.btn-ghost-dark { background: rgba(255,255,255,.1); color: #fff; border-radius: var(--radius-sm); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.18); }
.btn-sm { font-size: var(--text-sm); padding: 10px 20px; }
.btn-lg { font-size: var(--text-md); padding: 15px 28px; border-radius: var(--radius-sm); }

/* ---- Nav ---- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px 0; }
.site-header .bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: var(--glass-bg); -webkit-backdrop-filter: var(--blur-glass); backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-full);
  padding: 12px 14px 12px 24px; box-shadow: var(--shadow-sm); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.site-header .bar > .btn { flex: none; }
.nav-menu-toggle { display: none; flex: none; width: 42px; height: 42px; border: none; background: transparent;
  cursor: pointer; border-radius: var(--radius-sm); align-items: center; justify-content: center; }
.nav-menu-toggle:hover { background: var(--surface-sunken); }
.nav-menu-toggle span { display: block; width: 18px; height: 1.6px; background: var(--text-primary); position: relative; }
.nav-menu-toggle span::before, .nav-menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.6px; background: var(--text-primary); }
.nav-menu-toggle span::before { top: -6px; } .nav-menu-toggle span::after { top: 6px; }
.brand img { height: 30px; width: auto; }
.brand span { font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 30px; flex: none; }
.nav-links a { font-size: var(--text-sm); font-weight: var(--weight-medium); transition: color var(--dur-fast); }
.nav-links a:hover { color: var(--text-brand); }
.nav-links a.active { color: var(--text-brand); }

/* ---- Section shells ---- */
section.block { padding: var(--section-gap) 0; }
.muted { background: var(--surface-muted); }
.section-head { text-align: center; max-width: 42ch; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, var(--text-3xl)); font-weight: var(--weight-semibold);
  line-height: var(--leading-snug); color: var(--magenta-600); margin-top: 14px; }
.section-head p { font-size: var(--text-md); color: var(--text-secondary); margin-top: 14px; line-height: var(--leading-relaxed); }

/* ---- Page header band (interior pages) ---- */
.page-head { padding: clamp(3rem,7vw,6rem) 0 clamp(2rem,4vw,3.5rem); text-align: center; }
.page-head h1 { font-size: clamp(2.5rem,6vw,var(--text-4xl)); font-weight: var(--weight-semibold);
  color: var(--magenta-600); line-height: var(--leading-tight); margin: 20px auto 0; max-width: 18ch; }
.page-head p { font-size: var(--text-lg); color: var(--text-secondary); max-width: 52ch; margin: 20px auto 0;
  line-height: var(--leading-snug); letter-spacing: var(--tracking-tight); }

/* ---- Feature cards ---- */
.cards3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.cards2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal) var(--ease-emphasis), box-shadow var(--dur-normal) var(--ease-emphasis); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .ic { width: 50px; height: 50px; border-radius: var(--radius-md); background: var(--surface-brand-soft);
  color: var(--magenta-600); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.feature .ic svg { width: 25px; height: 25px; }
.feature h3 { font-size: var(--text-xl); font-weight: var(--weight-semibold); color: var(--magenta-600); letter-spacing: var(--tracking-tight); }
.feature p { font-size: var(--text-base); color: var(--text-secondary); line-height: var(--leading-relaxed); margin-top: 10px; }
.feature ul { list-style: none; padding: 0; margin: 18px 0 0; }
.feature li { font-size: var(--text-sm); color: var(--text-primary); padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--border-subtle); }
.feature li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 5px; height: 9px;
  border: solid var(--magenta-600); border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }

/* ---- CTA band ---- */
.cta-band { background: var(--ink-900); border-radius: var(--radius-2xl); padding: clamp(2.5rem,6vw,4.5rem);
  text-align: center; }
.cta-band h2 { font-size: clamp(2rem,4vw,var(--text-3xl)); font-weight: var(--weight-semibold); color: #fff; line-height: var(--leading-tight); }
.cta-band p { color: rgba(255,255,255,.7); font-size: var(--text-md); margin: 16px auto 0; max-width: 46ch; line-height: var(--leading-relaxed); }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.cta-band .cta-logo { height: 30px; width: auto; margin: 0 auto 26px; opacity: .92; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border-subtle); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.foot-grid h5 { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); margin: 0 0 16px; letter-spacing: 0; }
.foot-grid a { display: block; font-size: var(--text-sm); color: var(--text-secondary); padding: 6px 0; }
.foot-grid a:hover { color: var(--text-brand); }
.foot-brand .row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand img { height: 32px; width: auto; } .foot-brand b { font-size: var(--text-md); font-weight: var(--weight-semibold); }
.foot-brand p { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); max-width: 34ch; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-subtle); padding-top: 26px; font-size: var(--text-sm); color: var(--text-tertiary); }

/* .nav-panel wraps the nav and the CTA. On desktop it dissolves (display:contents)
   so both stay direct flex children of .bar; below 1024px it becomes the
   collapsible panel, putting the button inside the menu rather than the bar. */
.nav-panel { display: contents; }
.nav-cta { flex: none; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-menu-toggle { display: flex; }
  .nav-panel { display: none; flex-direction: column; gap: 4px;
    position: absolute; top: calc(100% + 12px); left: 0; right: 0; background: var(--surface);
    border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 10px; }
  .nav-toggle-input:checked ~ .nav-panel { display: flex; }
  .nav-panel .nav-links { display: flex; flex-direction: column; gap: 2px; }
  .nav-panel .has-menu { position: static; }
  .nav-panel .has-menu > a::after { display: none; }
  .nav-panel .menu { display: none; }
  .nav-panel .nav-links > a,
  .nav-panel .has-menu > a { display: block; padding: 11px 12px; border-radius: var(--radius-xs); font-size: var(--text-base); }
  .nav-panel .nav-links > a:hover,
  .nav-panel .has-menu > a:hover { background: var(--surface-brand-soft); color: var(--magenta-700); }
  .nav-cta { width: 100%; justify-content: center; font-size: var(--text-md);
    padding: 13px 20px; margin-top: 6px; }
}
@media (max-width: 860px) {
  .cards3, .cards2, .foot-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Multi-page additions — dropdown nav, sitemap footer, section patterns
   ========================================================================== */

/* ---- Dropdown nav ---- */
.nav-links .has-menu { position: relative; }
.nav-links .has-menu > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 6px;
  border: solid currentColor; border-width: 0 1.3px 1.3px 0; transform: translateY(-2px) rotate(45deg); opacity: .5; }
/* Scoped to .nav-links on purpose. "menu" is the class wp_nav_menu() puts on
   every <ul> it renders, so an unscoped rule here hides the links inside every
   Navigation Menu widget in the footer. The dropdown only opens inside
   .nav-links anyway, and WordPress submenus are styled as .nav-links .sub-menu
   in wp.css. */
.nav-links .menu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 230px; background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transition: opacity var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard), visibility var(--dur-fast); }
.nav-links .has-menu:hover .menu, .nav-links .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-links .menu a { display: block; padding: 9px 12px; border-radius: var(--radius-xs); font-size: var(--text-sm);
  font-weight: var(--weight-medium); color: var(--text-primary); white-space: nowrap; }
.nav-links .menu a:hover { background: var(--surface-brand-soft); color: var(--magenta-700); }
.nav-links .menu .sep { height: 1px; background: var(--border-subtle); margin: 6px 8px; }

/* ---- Sitemap footer ---- */
.foot-map { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; margin-bottom: 44px; }
.foot-map h5 { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); margin: 0 0 14px; letter-spacing: 0; }
.foot-map a { display: block; font-size: var(--text-sm); color: var(--text-secondary); padding: 5px 0; }
.foot-map a:hover { color: var(--text-brand); }
.foot-map.five { grid-template-columns: 1.6fr repeat(5, 1fr); gap: 28px; }
.foot-tag { font-weight: var(--weight-medium); color: var(--text-secondary); }

/* ---- Split section (text + visual) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split h2 { font-size: clamp(1.9rem,4vw,var(--text-2xl)); font-weight: var(--weight-semibold);
  color: var(--magenta-600); margin-top: 14px; line-height: var(--leading-snug); }
.split p.lead { font-size: var(--text-md); color: var(--text-secondary); line-height: var(--leading-relaxed); margin-top: 16px; }
.split-media { background: var(--surface-muted); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  min-height: 320px; display: flex; align-items: center; justify-content: center; padding: 34px; box-shadow: var(--shadow-md); }
.split-media.dark { background: var(--ink-900); border-color: transparent; }

/* ---- Numbered / stepped list ---- */
.steps { display: grid; gap: 2px; margin-top: 26px; }
.steps > div { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--border-subtle); }
.steps b { font-size: var(--text-base); color: var(--text-primary); font-weight: var(--weight-semibold); display: block; }
.steps p { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 4px; line-height: var(--leading-relaxed); }
.steps .n { flex: none; width: 28px; height: 28px; border-radius: var(--radius-xs); background: var(--magenta-500);
  color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps .n.soft { background: var(--surface-brand-soft); color: var(--magenta-600); }

/* ---- Prose (legal, docs, long copy) ---- */
.prose h2 { font-size: var(--text-xl); color: var(--magenta-600); font-weight: var(--weight-semibold); margin-top: 44px; letter-spacing: var(--tracking-tight); }
.prose h3 { font-size: var(--text-md); color: var(--text-primary); font-weight: var(--weight-semibold); margin-top: 26px; letter-spacing: 0; }
.prose p { font-size: var(--text-base); color: var(--text-secondary); line-height: var(--leading-relaxed); margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 20px; }
.prose li { font-size: var(--text-base); color: var(--text-secondary); line-height: var(--leading-relaxed); padding: 4px 0; }
.prose > *:first-child { margin-top: 0; }

/* ---- Anchor sub-nav (in-page section jump) ---- */
.subnav { border-bottom: 1px solid var(--border-subtle); background: var(--surface); }
.subnav .inner { display: flex; gap: 28px; overflow-x: auto; padding: 14px 0; }
.subnav a { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-secondary); white-space: nowrap; }
.subnav a:hover, .subnav a.active { color: var(--text-brand); }

/* ---- Stat row ---- */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; text-align: center; }
.stat-row .n { font-size: var(--text-3xl); font-weight: var(--weight-semibold); color: var(--magenta-600); letter-spacing: -0.03em; }
.stat-row .l { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 6px; }

/* ---- FAQ / accordion ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border-subtle); padding: 20px 0; }
.faq summary { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--text-primary);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--magenta-500); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); margin-top: 12px; }

/* ---- Forms ---- */
.form-card { background: var(--surface); border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  padding: 34px; box-shadow: var(--shadow-md); }
.form-card fieldset { border: none; padding: 0; margin: 0 0 30px; }
.form-card legend { font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--text-brand); padding: 0 0 16px; }
/* Scoped to .form-card. Bare `label` / `input` selectors leak into any UI sharing
   the page — they turned Elementor's dark panel labels invisible. Every form in
   this design system sits inside .form-card, so nothing is lost. */
.form-card label { display: block; font-size: var(--text-sm); font-weight: var(--weight-medium); margin-bottom: 7px; color: var(--text-primary); }
.f { margin-bottom: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; box-sizing: border-box; font-family: inherit; font-size: var(--text-base);
  color: var(--text-primary); background: var(--surface); border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.form-card input::placeholder, .form-card textarea::placeholder { color: var(--text-tertiary); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--border-brand); box-shadow: 0 0 0 4px var(--focus-ring); }
.form-card textarea { resize: none; min-height: 110px; }
.checks { display: grid; gap: 10px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--text-secondary); margin: 0; }
.checks input { width: 17px; height: 17px; accent-color: var(--primary); }

/* ---- Simple tile grid ---- */
.tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.tile { padding: 28px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); }
.tile .ic { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--surface-brand-soft);
  color: var(--magenta-600); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { font-size: var(--text-md); color: var(--magenta-600); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); }
.tile p { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 8px; line-height: var(--leading-relaxed); }

/* ---- Case card ---- */
.case { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-sm); display: block;
  transition: transform var(--dur-normal) var(--ease-emphasis), box-shadow var(--dur-normal) var(--ease-emphasis); }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case .thumb { height: 210px; display: flex; align-items: center; justify-content: center; padding: 28px; }
.case .thumb.a { background: var(--magenta-50); } .case .thumb.b { background: var(--ink-900); } .case .thumb.c { background: var(--surface-sunken); }
.case .body { padding: 26px; }
.case .tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.case .tags span { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--magenta-600); background: var(--surface-brand-soft); padding: 4px 10px; border-radius: var(--radius-full); }
.case h3 { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--magenta-600); letter-spacing: var(--tracking-tight); }
.case p { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); margin-top: 8px; }
.case .metric { margin-top: 18px; display: flex; gap: 26px; }
.case .metric b { font-size: var(--text-lg); color: var(--text-primary); font-weight: var(--weight-semibold); display: block; }
.case .metric small { font-size: 12px; color: var(--text-tertiary); }

/* ---- Mock browser / dashboard shells (reusable in thumbs) ---- */
.glass { width: 100%; max-width: 300px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.glass .bt { display: flex; gap: 5px; padding: 9px 11px; border-bottom: 1px solid var(--border-subtle); }
.glass .bt i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.glass .bb { padding: 16px; display: grid; gap: 8px; }
.glass .hl { height: 20px; width: 55%; background: var(--magenta-300); border-radius: 5px; }
.glass .ln { height: 8px; background: var(--surface-sunken); border-radius: 3px; }
.dashm { color: #fff; width: 100%; max-width: 300px; display: grid; gap: 10px; }
.dashm .row { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.07);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; }
.dashm .row b { color: #fff; font-weight: 600; } .dashm .row small { color: var(--magenta-300); }

@media (max-width: 1024px) {
  .foot-map.five { grid-template-columns: 1.4fr repeat(3, 1fr); row-gap: 34px; }
}
@media (max-width: 860px) {
  .split, .tiles, .two { grid-template-columns: 1fr; }
  .foot-map, .foot-map.five { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 560px) {
  .foot-map, .foot-map.five { grid-template-columns: 1fr; }
}
