/* SoftwareNest V4 presentation layer. Keeps the existing page structure and behavior. */
:root {
  --sn-v4-border: #d8e1ed;
  --sn-v4-shadow: 0 18px 48px rgba(11, 23, 48, .09);
  --sn-v4-shadow-hover: 0 24px 56px rgba(11, 23, 48, .14);
}

html { scroll-padding-top: 5.5rem; }
body { font-size: 16px; line-height: 1.65; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #3687ff;
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; opacity: .68; }

/* Approved homepage composition, photos, colors and animation remain intact. */
.sn-utility { font-size: 12px; }
.sn-nav { flex-wrap: nowrap; gap: clamp(9px, .9vw, 14px); font-size: 14px; white-space: nowrap; }
.sn-nav-cta { font-size: 14px; padding: 12px 15px; }
.sn-portals { display: none; font-size: 13px; }
.sn-hero-copy > p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.75; }
.sn-eyebrow { font-size: 11px; }
.sn-hero-caption, .sn-hero-index { font-size: 12px; }
.sn-hero-index span:last-child { font-size: 11px; }
.sn-button { min-height: 52px; padding-inline: 22px; font-size: 15px; }
.sn-cap-row b { font-size: 15px; }
.sn-cap-row small { font-size: 13px; }
.sn-cap-row > div > span { font-size: 11px; }
.sn-section-top > p { font-size: 16px; }
.sn-service { padding-block: 23px; }
.sn-service b { font-size: 17px; }
.sn-service small { font-size: 14px; }
.sn-service-no { font-size: 12px; }
.sn-inline-cta { font-size: 15px; }
.sn-work-copy > p, .sn-learning-copy > p { font-size: 16px; }
.sn-work-copy li { font-size: 15px; }
.sn-work-note { font-size: 13px; }
.sn-text-link { font-size: 14px; }
.sn-region-image > span, .sn-work-image > span { font-size: 11px; }
.sn-regions article small { font-size: 11px; }
.sn-regions article h3 { font-size: 22px; }
.sn-regions article p { font-size: 15px; line-height: 1.7; }
.sn-course-topics span { font-size: 13px; }
.sn-learning-caption span, .sn-learning-disclaimer { font-size: 11px; }
.sn-learning-caption b { font-size: clamp(22px, 2vw, 28px); }
.sn-success-row > p { font-size: 16px; }
.sn-success-status { font-size: 12px; }
.sn-contact-heading > p { font-size: 15px; }
.sn-contact-details > a { font-size: 16px; }
.sn-fields label { font-size: 14px; }
.sn-fields input, .sn-fields select, .sn-fields textarea { min-height: 46px; font-size: 16px; }
.sn-form .sn-button, .sn-form button { min-height: 52px; font-size: 15px; }
.sn-legal, .sn-privacy-note, .sn-small-note { font-size: 13px; }
.sn-footer-main > p { font-size: 13px; }
.sn-footer-links { gap: 14px; font-size: 13px; }
.sn-footer-bottom { font-size: 12px; }

/* Shared generated pages */
.sn-route-main { padding-block: clamp(52px, 6vw, 86px); }
.sn-route-main h1 { font-size: clamp(36px, 4vw, 50px); line-height: 1.12; }
.sn-route-intro { max-width: 780px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.75; }
.sn-route-eyebrow { font-size: 12px; }
.sn-route-actions { gap: 14px; margin-top: 32px; }
.sn-route-actions .sn-button { min-height: 52px; }
.route-service-row { grid-template-columns: 36px minmax(0, 1fr) 170px 24px; gap: 18px; padding-block: 24px; }
.route-service-row > span { font-size: 12px; }
.route-service-row b { font-size: 17px; }
.route-service-row p { font-size: 15px; line-height: 1.65; }
.route-service-row small { font-size: 11px; }
.route-feature-grid { gap: 14px; background: transparent; border: 0; }
.route-feature-grid article { min-height: 210px; padding: 28px; border: 1px solid var(--sn-v4-border); border-radius: 16px; box-shadow: 0 8px 28px rgba(11, 23, 48, .045); }
.route-feature-grid article > span, .route-solution-grid a > span,
.route-course-no, .route-collaboration article span, .route-empty > span,
.route-demo > div > span { font-size: 11px; }
.route-feature-grid h2 { font-size: 23px; }
.route-feature-grid p, .route-solution-grid p, .route-collaboration p,
.route-empty p, .route-faq p { font-size: 15px; line-height: 1.7; }
.route-solution-grid > a { padding: 28px; border-radius: 16px; box-shadow: 0 8px 28px rgba(11, 23, 48, .045); }
.route-solution-grid h2, .route-collaboration h2 { font-size: 25px; }
.route-solution-grid b, .route-empty a { font-size: 14px; }
.route-collaboration { gap: 36px; }
.route-empty { padding: 36px; border-radius: 16px; box-shadow: var(--sn-v4-shadow); }
.route-empty h2 { font-size: 30px; }
.route-search label, .route-fields label { font-size: 14px; }
.route-search input { min-height: 48px; font-size: 16px; border-radius: 8px; }
.route-filters button { min-height: 42px; padding: 8px 14px; border-radius: 7px; font-size: 14px; }
.route-course-list { gap: 18px; }
.route-course-list article { min-height: 250px; padding: 26px; border: 1px solid var(--sn-v4-border); border-top: 3px solid #1769e0; border-radius: 14px; box-shadow: 0 8px 28px rgba(11, 23, 48, .05); }
.route-course-list h2 { font-size: 23px; }
.route-course-list p, .route-course-list a { font-size: 15px; line-height: 1.7; }
.route-demo { gap: 32px; padding: clamp(24px, 4vw, 42px); border-radius: 18px; }
.route-demo h2 { font-size: 30px; }
.route-demo p { font-size: 15px; }
.route-form { padding: 28px; border: 1px solid var(--sn-v4-border); border-radius: 14px; box-shadow: 0 8px 28px rgba(11, 23, 48, .05); }
.route-fields { gap: 20px 22px; }
.route-fields input, .route-fields select, .route-fields textarea { min-height: 48px; padding: 10px 4px; font-size: 16px; }
.route-fields textarea { min-height: 120px; }
.route-button { min-height: 52px; padding-inline: 22px; border-radius: 8px; font-size: 15px; }
.route-callout { max-width: 900px; padding: 20px 24px; border-radius: 0 12px 12px 0; font-size: 15px; }
.route-faq summary { padding: 5px 0; font-size: 17px; }

/* Practice Server: retain the four existing options and destinations. */
.practice-status { margin-bottom: 24px; }
.practice-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.practice-options article {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 270px; padding: 28px; border: 1px solid var(--sn-v4-border);
  border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(11, 23, 48, .06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.practice-options article:hover { transform: translateY(-3px); border-color: #9ebce9; box-shadow: var(--sn-v4-shadow-hover); }
.practice-options article::before {
  content: "01"; display: grid; place-items: center; width: 42px; height: 42px;
  margin-bottom: 22px; border-radius: 12px; background: #eaf1fc; color: #1769e0;
  font-size: 14px; font-weight: 800; letter-spacing: .04em;
}
.practice-options article:nth-child(2)::before { content: "02"; }
.practice-options article:nth-child(3)::before { content: "03"; }
.practice-options article:nth-child(4)::before { content: "04"; }
.practice-options article > span { color: #1769e0; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.practice-options article h2 { margin: 9px 0; color: #142238; font-size: 24px; line-height: 1.25; }
.practice-options article p { flex: 1; margin: 0 0 24px; color: #5f6e82; font-size: 16px; line-height: 1.7; }
.practice-options article > a, .practice-options article > button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; margin-top: auto; padding: 0 20px; border: 1px solid #1769e0;
  border-radius: 8px; background: #1769e0; color: #fff; font-size: 15px; font-weight: 750;
}
.practice-options article:first-child > a, .practice-options article:nth-child(4) > a {
  border-color: #c8d5e8; background: #fff; color: #16365f;
}
.practice-options article > a:hover { filter: brightness(.94); }
.practice-options article > button:disabled { border-color: #c9d1dc; background: #edf0f4; color: #677385; }

/* Protected admin pages */
.admin-shell { padding: 32px 0 72px; }
.admin-header { margin-bottom: 26px; }
.admin-side, .admin-main { border-color: var(--sn-v4-border); border-radius: 16px; box-shadow: 0 8px 30px rgba(11, 23, 48, .05); }
.admin-title, .admin-main h1 { font-size: 20px; }
.admin-side a { min-height: 42px; padding: 10px 12px; font-size: 14px; }
.admin-main { padding: 26px; }
.admin-main h1 { font-size: 26px; }
.admin-main .subtle, .admin-main .admin-muted { font-size: 14px; line-height: 1.6; }
.admin-record-form { gap: 16px; padding: 22px; border-radius: 14px; }
.admin-record-form h2 { font-size: 19px; }
.admin-record-form > label, .lead-toolbar .field { font-size: 14px; }
.admin-record-form input, .admin-record-form select, .admin-record-form textarea,
.admin-module-table input, .admin-module-table select, .admin-module-table textarea,
.lead-toolbar input, .lead-toolbar select { min-height: 44px; padding: 9px 11px; font-size: 15px; }
.lead-table { font-size: 13px; }
.lead-table th { font-size: 12px; }
.admin-main .btn, .admin-record-form .btn { min-height: 44px; padding: 10px 15px; font-size: 14px; }
.admin-note { font-size: 14px; line-height: 1.6; }
.admin-login { max-width: 460px; padding: 32px; border-radius: 16px; box-shadow: var(--sn-v4-shadow); }
.admin-login h1 { font-size: 28px; }

/* Older static legal and training pages share the same accessible type scale. */
.topbar { font-size: 12px; }
.navlinks { gap: 20px; font-size: 14px; }
.nav-cta { padding: 13px 17px; }
.section-head p, .service-card p, .dark-band p, .training-block p,
.quote-card p, .page-hero p, .contact-aside p { font-size: 16px; }
.service-card h3 { font-size: 21px; }
.service-card { padding: 28px; border-radius: 16px; }
.field label, .field input, .field select, .field textarea { font-size: 16px; }
.field label { font-size: 14px; }
.btn { min-height: 50px; padding: 12px 20px; font-size: 15px; }
.footer p, .footer-links { font-size: 14px; }

@media (max-width: 900px) {
  .sn-nav { font-size: 13px; gap: 9px; }
  .sn-nav-cta { font-size: 13px; }
  .sn-cap-row b { font-size: 14px; }
  .route-service-row { grid-template-columns: 32px minmax(0, 1fr) 145px 22px; gap: 12px; }
  .route-service-row p { font-size: 14px; }
}

@media (max-width: 1080px) {
  .sn-nav-row { position: relative; }
  .sn-menu { display: flex; min-width: 48px; min-height: 48px; justify-content: center; flex-direction: column; gap: 6px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
  .sn-menu span { width: 23px; height: 2px; background: var(--sn-navy); transition: transform .2s; }
  .sn-menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .sn-menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .sn-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 22px 22px; background: #fff; border-bottom: 1px solid var(--sn-line); box-shadow: 0 16px 22px rgba(12,28,52,.1); flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
  .sn-nav.is-open { display: flex; }
  .sn-nav > a:not(.sn-nav-cta) { display: flex; min-height: 48px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf0f4; }
  .sn-nav > a:not(.sn-nav-cta)::after { display: none; }
  .sn-portals { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--sn-line); border-bottom: 1px solid var(--sn-line); font-size: 14px; }
  .sn-nav-cta { min-height: 48px; margin-top: 14px; text-align: center; }
  .sn-footer-links { flex-wrap: wrap; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .sn-utility { font-size: 11px; }
  .sn-nav { gap: 0; font-size: 16px; }
  .sn-nav > a:not(.sn-nav-cta) { min-height: 48px; display: flex; align-items: center; }
  .sn-nav-cta { min-height: 48px; font-size: 15px; }
  .sn-portals { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--sn-line); border-bottom: 1px solid var(--sn-line); font-size: 14px; }
  .sn-hero-copy > p, .sn-section-top > p, .sn-work-copy > p,
  .sn-learning-copy > p, .sn-contact-heading > p, .sn-success-row > p { font-size: 16px; }
  .sn-button { min-height: 50px; font-size: 15px; }
  .sn-cap-row { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .sn-cap-row > div { padding-inline: 12px; }
  .sn-cap-row > div:first-child { padding-left: 0; }
  .sn-cap-row b { font-size: 14px; }
  .sn-cap-row small { font-size: 12px; }
  .sn-service { grid-template-columns: 28px minmax(0,1fr) 20px; gap: 10px; }
  .sn-service b { font-size: 16px; }
  .sn-service small { font-size: 14px; }
  .sn-work-image { height: clamp(240px, 70vw, 380px); }
  .sn-learning-visual { height: clamp(250px, 70vw, 380px); }
  .sn-fields { grid-template-columns: 1fr; }
  .sn-fields label { font-size: 14px; }
  .sn-footer-links { flex-wrap: wrap; font-size: 13px; }
  .sn-footer-bottom { font-size: 12px; }
  .sn-route-main { padding-block: 44px 54px; }
  .sn-route-main h1 { font-size: clamp(34px, 9vw, 42px); }
  .sn-route-intro { font-size: 16px; }
  .sn-route-actions { display: grid; grid-template-columns: 1fr; }
  .sn-route-actions .sn-button { width: 100%; }
  .route-service-row { grid-template-columns: 26px minmax(0, 1fr) 20px; gap: 10px; padding-block: 18px; }
  .route-service-row b { font-size: 16px; }
  .route-service-row p { font-size: 14px; }
  .route-service-row small { grid-column: 2; grid-row: 2; font-size: 11px; }
  .route-service-row i { grid-column: 3; grid-row: 1 / 3; }
  .route-feature-grid, .route-solution-grid, .route-collaboration,
  .practice-options { grid-template-columns: 1fr; }
  .route-feature-grid article { min-height: 0; padding: 22px; }
  .route-feature-grid h2, .route-course-list h2 { font-size: 21px; }
  .route-feature-grid p, .route-solution-grid p, .route-collaboration p,
  .route-empty p, .route-course-list p { font-size: 15px; }
  .route-course-list { grid-template-columns: 1fr; }
  .route-course-list article { min-height: 0; padding: 22px; }
  .route-demo { padding: 22px 16px; }
  .route-demo h2 { font-size: 25px; }
  .route-demo .route-fields { grid-template-columns: 1fr; }
  .route-fields { grid-template-columns: 1fr; }
  .route-wide { grid-column: auto; }
  .practice-options article { min-height: 0; padding: 24px; }
  .practice-options article > a, .practice-options article > button { width: 100%; }
  .admin-shell { padding: 18px 0 48px; }
  .admin-main { padding: 18px; }
  .admin-record-form { grid-template-columns: 1fr; padding: 17px; }
  .admin-record-form h2, .admin-record-form .admin-note, .admin-form-wide { grid-column: auto; }
  .admin-login { margin: 28px auto; padding: 24px; }
  .navlinks { gap: 12px; }
  .service-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
