:root {
  --header-height-desktop: 110px;
  --header-height-mobile: 160px;
  --header-height: var(--header-height-desktop);
  --bg-color: #f8f7f6;
  --primary-color: #28a745;
  --primary-color-dark: #218838;
  --text-color: #333;
}

@media (max-width: 680px) {
  :root { --header-height: var(--header-height-mobile); }
}

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: var(--header-height);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  line-height: 1.25;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER */
.site-header {
  background: var(--bg-color);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 956px) {
  .site-nav {
    display: none;
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  position: relative;
  padding: 1rem 0;
}

.logo img {
  max-height: 75px;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

/* HEADER CTA */
.header-cta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 25px;
  display: flex;
  gap: 0.5rem;
}

.header-cta .btn {
  padding: 1rem 1.5rem;
  font-weight: 600;
  border-radius: 31px;
  text-decoration: none;
}

.header-cta .ghost-btn {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transition: background 0.2s, color 0.2s;
}

.header-cta .ghost-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.header-cta .primary-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
}

.ghost-btn .btn-text-short {
  display: none;
}

@media (max-width: 370px) {
  .ghost-btn .btn-text-full {
    display: none;
  }
  .ghost-btn .btn-text-short {
    display: inline;
  }
}

@media (max-width: 680px) {
  .site-header .container {
    flex-direction: column;
    align-items: center;
  }
  .header-cta {
    position: static;
    transform: none;
    margin-top: 0;
    justify-content: center;
  }
}

@media (max-width: 475px) {
  .header-cta .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* HERO */
.hero {
  background-color: #fafbf5;
  padding: 2.0rem 3rem;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.best-choice-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  margin-bottom: 1rem;
}

.best-choice {
  flex: 0 0 auto;
  width: auto;
  height: auto;
}

@media (max-width: 680px) {
  .best-choice-container img:nth-child(2) {
    display: none;
  }
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 0;
}

.hero-text p.hero-subline {
  font-size: 1.50rem;
  color: #555;
  margin: 0;
}

.hero-img {
  margin: 33px 0 10px 0;
}

@media (max-width: 680px) {
  .hero-text p.hero-subline {
    font-size: 1.25rem;
    padding: 25px;
    margin: -40px auto 0px auto;
    text-align: left;

  }
  .hero-text h1 {
    font-size: 2.5rem;
    text-align: left;
    padding: 25px;
    margin-top: -25px;
  }
  .hero-img {
    margin: 0px 0 10px 0;
    max-width: 380px;
  }
}

/* SERVICES */
.services-section {
  background: #fafbf5;
  height: 120px;
  position: relative;
}

.service-btn-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 180px;
}

.hero-btn-wrapper {
  position: relative;
  display: inline-block;
}

.hero-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 1.25rem 1.5rem;
  border-radius: 31px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
}

.service-subtext {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 25px;
  font-size: 0.875rem;
  color: #555;
  white-space: nowrap;
}

.hero-arrow {
  position: absolute;
  margin: -61px -309px 0 0;
  width: 120px;
}

/* BENEFITS GRID */
.benefits-grid {
  background: #673ab7;
  padding: 4.5rem 1rem 2rem;
}

.benefits-grid .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 475px) {
  .benefits-grid .container {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid .container {
    grid-template-columns: repeat(3,1fr);
  }
}

.benefits-header,
.client-carousel {
  grid-column: 1 / -1;
  text-align: center;
}

.benefits-header h2 {
  margin: 0;
  font-size: 2.5rem;
  color: #fff;
}

.benefits-header .benefits-subline {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.client-carousel {
  margin-bottom: 1rem;
}

.client-carousel marquee img {
  margin-right: 2rem;
  max-width: 200px;
  max-height: 100px;
}

/* BENEFIT CARDS */
.benefit-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.benefit-icon {
  width: 70%;
  margin: -10px auto -10px;
}

.benefit-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.benefit-card p {
  margin: 0 0 0.75rem;
  color: #555;
}

.benefit-link {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.benefit-link:hover {
  text-decoration: underline;
}

/* OUR SECRET SAUCE */
.how-we-work {
  padding: 5rem 1rem;
  background-color: #fff201;
}

.how-we-work h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .how-we-work .steps {
    flex-direction: row;
    justify-content: space-around;
  }
}

.step h4 {
  margin: 0 0 0.5rem;
}

.step p {
  margin: 0;
  color: #555;
}

/* CTA BAND */
.cta-band {
  background: #27a343;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}

.cta-band h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
}

/* FOOTER */
.site-footer {
  background: #333;
  color: #fff;
  padding: 2rem 1rem;
}

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

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(3,1fr);
  }
}

.site-footer h4 {
  margin-top: 0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-footer p {
  text-align: center;
  margin: 0;
}

/* arrow container (dark edges) */
.arrow-1 {
  position: relative;
  width: 100%;
  height: 60px;
  background-color: #673ab7;
  overflow: hidden;
  margin-top: -40px;
  box-shadow:
    0 -1px 0 #673ab7 inset,
    0  1px 0 #fafbf5 inset;
}

.arrow-1::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fafbf5;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.arrow-2 {
  position: relative;
  width: 100%;
  height: 60px;
  background-color: #fff201;
  overflow: hidden;
  margin-top: -2px;
  box-shadow:
    0 -1px 0 #fff201 inset,
    0  1px 0 #673ab7 inset;
}

.arrow-2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #673ab7;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.arrow-3 {
  position: relative;
  width: 100%;
  height: 60px;
  background-color: #27a343;
  overflow: hidden;
  margin-top: -2px;
  box-shadow:
    0 -1px 0 #27a343 inset,
    0  1px 0 #fff201 inset;
}

.arrow-3::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff201;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* CLIENT CAROUSEL SETUP */
.client-carousel {
  overflow: hidden;
  position: relative;
}

.client-carousel .marquee {
  width: 100%;
}

.client-carousel .marquee__inner {
  display: flex;
  /* we’ll control transform in JS */
  will-change: transform;
}

.client-carousel .marquee__inner img {
  width: 200px;
  height: auto;
  object-fit: contain;
  margin-right: 1.5rem;
}
/* HOW WE WORK SECTION */
.how-we-work {
  background-color: #fff201;
  padding: 60px 20px;
  text-align: center;
}

.how-we-work h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.stats-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-block {
    background-color: #fef32b;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 17px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.stat-block h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.stat-block p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Responsive */
@media (min-width: 768px) {
  .stats-section {
    flex-direction: row;
    justify-content: space-between;
  }

  .stat-block {
    flex: 1;
    margin: 0 10px;
  }
}
