:root {
  --navy: #07184a;
  --navy-2: #0d2d67;
  --green: #29a814;
  --green-dark: #157a18;
  --red: #c52835;
  --ink: #172033;
  --muted: #5e6878;
  --paper: #ffffff;
  --soft: #f3f7fb;
  --line: #d8e1ee;
  --shadow: 0 18px 44px rgba(7, 24, 74, 0.16);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--paper);
  color: var(--navy);
  padding: 0.75rem 1rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(190px, 330px) 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 78px;
  padding: 0.85rem 4.5vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 225, 238, 0.85);
  backdrop-filter: blur(14px);
}

.brand img {
  width: min(310px, 100%);
  height: auto;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.menu-label {
  color: var(--navy);
  font-weight: 850;
  text-transform: uppercase;
}

.site-nav a,
.link-row a {
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--green-dark);
}

.site-nav a:hover,
.link-row a:hover {
  color: var(--green-dark);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}

.header-cta,
.button-primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(41, 168, 20, 0.24);
}

.header-cta:hover,
.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(7, 24, 74, 0.34);
}

.button-secondary:hover {
  background: rgba(7, 24, 74, 0.62);
}

.button-light {
  color: var(--navy);
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(5, 18, 55, 0.92) 0%, rgba(5, 18, 55, 0.7) 38%, rgba(5, 18, 55, 0.22) 72%),
    url("assets/hero-retail-checkout.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 7rem 0 5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #92ff74;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: 4.8rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 1.8rem;
  font-size: 1.42rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(850px, 100%);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-proof div {
  padding: 1rem 1.1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof dt {
  margin-bottom: 0.22rem;
  font-weight: 900;
}

.hero-proof dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.announcement {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 4.5vw;
  color: #ffffff;
  background: var(--red);
  text-align: center;
}

.announcement p {
  margin: 0;
  font-weight: 900;
}

.announcement a {
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.section {
  width: min(1180px, 91vw);
  margin: 0 auto;
  padding: 5.4rem 0;
}

.split-section,
.story-section,
.inquiry-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 3.3rem;
}

.story-section {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.9fr);
}

.section-copy h2,
.section-heading h2,
.qualify-band h2,
.form-intro h2 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 2.65rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy p,
.section-heading p,
.form-intro p,
.qualify-band p,
.program-card p,
.process-list p,
.fine-print {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.link-row a {
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--green);
  color: var(--navy);
  font-weight: 900;
}

.internal-row a::after {
  content: " ->";
}

.image-panel {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 500px;
  padding: 7rem 4.5vw 4rem;
  color: #ffffff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 18, 55, 0.9) 0%, rgba(5, 18, 55, 0.76) 48%, rgba(5, 18, 55, 0.26) 100%),
    var(--page-hero-image);
  background-size: cover;
  background-position: center;
}

.guide-hero {
  --page-hero-image: url("assets/online-consultation.jpg");
}

.solutions-hero {
  --page-hero-image: url("assets/main-street-retail.jpg");
}

.page-hero > div {
  position: relative;
  width: min(860px, 100%);
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero p:not(.eyebrow) {
  max-width: 740px;
  font-size: 1.2rem;
  line-height: 1.55;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 3rem;
  align-items: start;
}

.article-body {
  display: grid;
  gap: 1rem;
}

.article-body h2,
.aside-panel h2,
.solution-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1.15;
}

.article-body p,
.article-body li,
.aside-panel p,
.solution-card p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.check-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.65rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--green);
}

.article-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 1rem;
}

.article-aside img,
.aside-panel {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-aside img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.aside-panel {
  padding: 1.3rem;
  border: 1px solid var(--line);
  background: #ffffff;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.solution-card {
  min-height: 205px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(7, 24, 74, 0.08);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-panel.wide img {
  aspect-ratio: 3 / 2;
}

.savings-section,
.process-section {
  width: 100%;
  margin: 0;
  padding: 5.4rem 4.5vw;
  background: var(--soft);
}

.section-heading {
  width: min(930px, 100%);
  margin: 0 auto 2.4rem;
  text-align: center;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(320px, 1fr);
  gap: 1.5rem;
  width: min(1060px, 100%);
  margin: 0 auto;
  align-items: stretch;
}

.calculator,
.estimate-results {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.calculator {
  display: grid;
  gap: 0.82rem;
}

.calculator label,
.inquiry-form label {
  color: var(--navy);
  font-weight: 850;
}

.money-input,
.rate-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.money-input span,
.rate-input span {
  padding: 0 0.9rem;
  color: var(--muted);
  font-weight: 900;
}

.money-input input,
.rate-input input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 0;
  outline: 0;
}

.rate-input {
  grid-template-columns: 1fr auto;
}

input[type="range"] {
  accent-color: var(--green);
}

.range-output {
  color: var(--muted);
  font-weight: 800;
}

.estimate-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.result-card {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.result-card span {
  color: var(--muted);
  font-weight: 800;
}

.result-card strong {
  color: var(--navy);
  font-size: 2.2rem;
  line-height: 1;
}

.result-card.featured {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.result-card.featured span,
.result-card.featured strong {
  color: #ffffff;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.program-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(7, 24, 74, 0.08);
}

.program-number {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--red);
  font-weight: 950;
}

.program-card h3 {
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.15;
}

.qualify-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.78fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 3.2rem 4.5vw;
  color: #ffffff;
  background: var(--navy);
}

.qualify-band h2,
.qualify-band p {
  color: #ffffff;
}

.qualify-band .eyebrow {
  color: #92ff74;
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.industry-list li,
.assurance-list span {
  padding: 0.62rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: #ffffff;
  font-weight: 850;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1080px, 100%);
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.process-list li {
  min-height: 210px;
  padding: 1.35rem;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: #ffffff;
}

.process-list span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  color: #ffffff;
  background: var(--navy);
  border-radius: 50%;
  font-weight: 900;
}

.process-list strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 1.18rem;
}

.inquiry-section {
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 110px;
}

.assurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.inquiry-form {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.inquiry-form label {
  display: grid;
  gap: 0.45rem;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
}

.honey-field {
  display: none;
}

.inquiry-form textarea {
  min-height: 132px;
  resize: vertical;
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem !important;
  margin: 1rem 0;
  color: var(--muted) !important;
  font-weight: 750 !important;
}

.checkbox-line input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--green);
}

.form-submit {
  width: 100%;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.85rem 0 0;
  color: var(--green-dark);
  font-weight: 850;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) 1fr;
  gap: 2rem;
  padding: 3rem 4.5vw;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.site-footer img {
  width: min(320px, 100%);
  margin-bottom: 1rem;
}

.site-footer p {
  margin: 0;
}

.footer-callout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 1rem !important;
  color: var(--navy);
  font-weight: 900;
}

.footer-callout a {
  color: var(--green-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.footer-callout span {
  color: var(--red);
}

.fine-print {
  align-self: end;
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .split-section,
  .story-section,
  .inquiry-section,
  .calculator-grid,
  .qualify-band,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .story-section .image-panel {
    order: 2;
  }

  .estimate-results,
  .program-grid,
  .process-list,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .form-intro,
  .article-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.72rem 1rem;
  }

  .brand img {
    width: min(225px, calc(100vw - 92px));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0.45rem;
    overflow: visible;
    font-size: 1rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .menu-label {
    display: none;
  }

  .site-nav a {
    padding: 0.9rem 0.85rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .header-cta {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
    padding: 0.72rem 0.82rem;
    font-size: 0.86rem;
  }

  .site-header.nav-open .header-cta {
    display: inline-flex;
  }

  .hero {
    min-height: 560px;
  }

  .page-hero {
    min-height: 460px;
    padding: 4.6rem 1rem 3.2rem;
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(5, 18, 55, 0.9) 0%, rgba(5, 18, 55, 0.72) 55%, rgba(5, 18, 55, 0.36) 100%),
      url("assets/hero-retail-checkout.jpg");
    background-position: 58% center;
  }

  .hero-content {
    padding: 4.2rem 0 3rem;
  }

  h1 {
    font-size: 3.25rem;
  }

  .hero-subtitle {
    font-size: 1.14rem;
  }

  .hero-proof {
    display: none;
  }

  .announcement {
    flex-direction: column;
  }

  .section,
  .savings-section,
  .process-section {
    padding-top: 3.7rem;
    padding-bottom: 3.7rem;
  }

  .section-copy h2,
  .section-heading h2,
  .qualify-band h2,
  .form-intro h2 {
    font-size: 2.05rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-actions .button {
    width: 100%;
  }

  h1 {
    font-size: 2.75rem;
  }

  .result-card strong {
    font-size: 1.85rem;
  }
}
