/* Solution Stack — BNI spec colors + offer doc layout */

:root {
  --primary: #1d76bb;
  --primary-dark: #156099;
  --secondary: #b4bbbf;
  --accent: #1d3d6b;
  --bg: #ffffff;
  --bg-muted: #f0f4f8;
  --text: #1d3d6b;
  --text-muted: #4a5568;
  --border: #b4bbbf;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --container: min(100% - 2rem, 1080px);
  --narrow: min(100% - 2rem, 720px);
  --radius: 8px;
  --shadow: 0 8px 32px rgba(29, 61, 107, 0.08);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
  --header-offset: max(6.75rem, calc(env(safe-area-inset-top, 0px) + 5.75rem));
}

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

html {
  scroll-behavior: smooth;
}

#main,
#overview,
#services,
#contact,
#next-steps {
  scroll-margin-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  z-index: 100;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s;
  font-weight: 600;
}
.skip-link:focus {
  top: 0.75rem;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

.container.narrow {
  width: var(--narrow);
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

/* Spec: headings ~50–60px for primary hero */
.display-heading {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section-heading {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section-heading--on-dark {
  color: #fff;
}

.section-kicker {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 1.25rem;
  text-transform: none;
}

.section-kicker--on-dark {
  color: #a8c9e8;
}

.section-tight {
  padding-block: 0;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(29, 118, 187, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.875rem;
  flex-wrap: wrap;
}

.brand-link {
  display: flex;
  align-items: center;
  line-height: 0;
}
.brand-link:focus-visible {
  box-shadow: var(--focus);
  border-radius: 4px;
}

.brand-logo {
  width: min(200px, 42vw);
  height: auto;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
}
.nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.btn-header {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.hide-mobile {
  display: inline-block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
  .nav {
    width: 100%;
    order: 4;
    display: none;
    padding: 1rem 0 0;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }
  .nav.is-open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8125rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: #fff;
}
.btn-secondary {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}
.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 100% 0%, rgba(29, 118, 187, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(29, 61, 107, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--narrow);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.lead strong {
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding-block: clamp(3rem, 5vw, 4rem);
}

.section--muted {
  background: var(--bg-muted);
}

.section--accent {
  background: linear-gradient(145deg, var(--accent) 0%, #152d52 100%);
  color: #e8eef4;
}

.intro-para {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 65ch;
}

.intro-para:last-child {
  margin-bottom: 0;
}

.text-on-dark {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 65ch;
}

.text-on-dark:last-child {
  margin-bottom: 0;
}

.fine-print {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 56ch;
}

.problem-list {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  max-width: 65ch;
}
.problem-list li {
  margin-bottom: 0.85rem;
}
.problem-list li:last-child {
  margin-bottom: 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.stack-table,
.replace-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.stack-table th,
.stack-table td,
.replace-table th,
.replace-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.stack-table thead th,
.replace-table thead th {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stack-table tbody tr:last-child td,
.replace-table tbody tr:last-child td {
  border-bottom: none;
}

.stack-table tbody tr:nth-child(even),
.replace-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.stack-table td:first-child {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.value-total {
  font-size: 1.125rem;
  margin: 1.5rem 0 0;
  color: var(--accent);
}

/* Process */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.process-steps li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(29, 61, 107, 0.04);
}

.process-meta {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.process-steps h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.process-steps p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Fit */
.fit-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .fit-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.fit-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.fit-card--yes {
  background: rgba(29, 118, 187, 0.06);
  border-color: rgba(29, 118, 187, 0.25);
}

.fit-card--no {
  background: var(--bg);
}

.fit-card h3 {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  color: var(--accent);
}

.fit-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.fit-card li {
  margin-bottom: 0.65rem;
}

/* Pricing */
.pricing-card {
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: calc(var(--radius) * 2);
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}

.pricing-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--accent);
}

.pricing-amount {
  margin: 0;
  font-size: 1.25rem;
}

.pricing-setup {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-ongoing {
  margin: 0.5rem 0 1.25rem;
  font-size: 1.125rem;
}

.pricing-includes {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.pricing-includes li {
  margin-bottom: 0.5rem;
}

.pricing-note {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--accent);
  font-weight: 600;
}

/* Only we */
.only-list {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 65ch;
  color: var(--text-muted);
}

.only-list li {
  margin-bottom: 1rem;
}

.steps-list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.steps-list li {
  margin-bottom: 0.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

/* Visuals placeholder */
.visuals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.visuals-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-muted), #e2e8f0);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
}

/* Carousel */
.services-section .section-heading {
  margin-bottom: 0.5rem;
}

.carousel-wrap {
  position: relative;
}

.carousel {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.carousel-track {
  flex: 1;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0 1.25rem;
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}
.carousel-track::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.carousel-card {
  flex: 0 0 min(360px, 90vw);
  scroll-snap-align: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(29, 61, 107, 0.04);
}

.carousel-card .card-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.carousel-card .card-icon svg {
  width: 100%;
  height: 100%;
}

.carousel-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.carousel-card .tagline {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.carousel-card .offer {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.carousel-card .deliver-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.carousel-card .deliver {
  font-size: 0.9375rem;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}

.carousel-card .card-link {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.carousel-card .card-link a {
  font-weight: 600;
  font-size: 0.9375rem;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.carousel-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

.hidden {
  display: none !important;
}

/* Contact */
.contact-section {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 2.5rem;
  align-items: start;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.875rem;
}

.contact-form .required {
  color: #b91c1c;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 118, 187, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.thank-you-message {
  padding: 1.75rem;
  background: rgba(29, 118, 187, 0.1);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  color: var(--accent);
}

.thank-you-message p {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--accent);
  color: rgba(255, 255, 255, 0.92);
  padding-block: 3rem 2rem;
}

.site-footer a {
  color: #a8c9e8;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  width: min(200px, 70%);
  height: auto;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  margin: 0 0 0.35rem;
  line-height: 1.5;
  opacity: 0.95;
}

.footer-legal {
  font-size: 0.8125rem;
  margin: 0;
  opacity: 0.75;
}

.footer-links h3,
.footer-social h3 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  opacity: 0.65;
}

.footer-links ul,
.footer-social ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-social li {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
  opacity: 0.65;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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