:root {
  --accent: #c05a2b;
  --accent-dark: #a94b21;
  --ink: #1f2937;
  --muted: #4b5563;
  --border: #d1d5db;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Offset anchor targets so the sticky navbar doesn't overlap them */
section[id] {
  scroll-margin-top: 88px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #f8fafc;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 40px;
  background: var(--white);
  border-bottom: 1px solid #eef0f3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* On desktop the wrapper is transparent so nav + actions lay out as before */
.nav-menu {
  display: contents;
}

/* ---------- Mobile menu toggle (hamburger) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Logo ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand__name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.brand__name .a {
  color: var(--ink);
}

.brand__name .b {
  color: var(--accent);
}

/* ---------- Nav links ---------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Right actions ---------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn--phone {
  background: var(--white);
  color: var(--ink);
  border-color: #111827;
}

.btn--phone:hover {
  background: #111827;
  color: var(--white);
}

.btn--cta {
  background: var(--accent);
  color: var(--white);
}

.btn--cta:hover {
  background: var(--accent-dark);
}

.btn--outline {
  background: var(--white);
  color: var(--ink);
  border-color: #cbd5e1;
}

.btn--outline:hover {
  border-color: #111827;
}

.btn--lg {
  font-size: 16px;
  padding: 15px 26px;
}

.btn__icon {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  padding: 80px 40px 110px;
  background-image: url("img/fanbud-hero-1.jpg");
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(248, 250, 252, 0.97) 0%,
    rgba(248, 250, 252, 0.9) 34%,
    rgba(248, 250, 252, 0.45) 52%,
    rgba(248, 250, 252, 0) 70%
  );
}

.hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__content {
  max-width: 560px;
}

.hero__title {
  font-size: 60px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--ink);
}

.hero__title-accent {
  color: var(--accent);
}

.hero__rule {
  display: block;
  width: 90px;
  height: 5px;
  border-radius: 3px;
  background: var(--accent);
  margin: 26px 0;
}

.hero__desc {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__actions .btn {
  font-size: 16px;
  padding: 15px 26px;
}

/* ---------- Hero stats card ---------- */
.hero__stats {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 80px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  padding: 22px 10px;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 20px;
}

.stat + .stat {
  border-left: 1px solid #e5e7eb;
}

.stat__icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex-shrink: 0;
}

.stat__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.stat__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.stat__label {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Section helpers ---------- */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ink);
}

/* ---------- Services ---------- */
.services {
  padding: 80px 40px;
  background: var(--white);
}

.services__head {
  max-width: 1200px;
  margin: 0 auto 48px;
  text-align: center;
}

.services__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #eef0f3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card__body {
  position: relative;
  padding: 34px 20px 24px;
}

.service-card__icon {
  position: absolute;
  top: -26px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fbeee6;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(192, 90, 43, 0.18);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Projects carousel ---------- */
.projects {
  padding: 80px 40px;
  background: #f8fafc;
}

.projects__head {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.projects__head .section-eyebrow {
  margin-bottom: 8px;
}

.projects__nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #d1d5db;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.projects__track {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.projects__track::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  flex: 0 0 calc((100% - 72px) / 4);
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- About / Why choose us ---------- */
.about {
  padding: 80px 40px;
  background: var(--white);
}

.about__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 48px;
  align-items: start;
}

.about__intro .section-title {
  line-height: 1.15;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  margin-bottom: 18px;
}

.feature__icon svg {
  width: 30px;
  height: 30px;
}

.feature__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 80px 40px;
  background: var(--white);
}

.testimonials__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.testimonials__intro {
  max-width: 520px;
  margin-bottom: 40px;
}

.testimonials__intro .section-title {
  line-height: 1.15;
}

.testimonials__carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-btn--edge {
  flex-shrink: 0;
}

.testimonials__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 10px;
  scrollbar-width: none;
}

.testimonials__track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 26px 24px;
  scroll-snap-align: start;
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.testimonial-card__stars svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.testimonial-card__quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 22px;
  flex-grow: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fbeee6;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-card__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.testimonial-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.testimonial-card__loc {
  font-size: 13px;
  color: var(--muted);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.15s ease, width 0.15s ease;
}

.carousel-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------- Our Process ---------- */
.process {
  padding: 80px 40px;
  background: #f8fafc;
}

.process__head {
  max-width: 1200px;
  margin: 0 auto 48px;
}

.process__steps {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.step__badge {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #eef0f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.step__badge svg {
  width: 28px;
  height: 28px;
}

.step__num {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.process__arrow {
  flex-shrink: 0;
  color: #cbd5e1;
}

.process__arrow svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ---------- Contact ---------- */
.contact {
  padding: 80px 40px;
  background: var(--white);
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 18px 0 32px;
  max-width: 460px;
}

.contact__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fbeee6;
  color: var(--accent);
  flex-shrink: 0;
}

.contact__icon svg {
  width: 22px;
  height: 22px;
}

.contact__label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

a.contact__value:hover {
  color: var(--accent);
}

/* ---------- Contact form ---------- */
.contact__form {
  background: #f8fafc;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 90, 43, 0.15);
}

.btn--block {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.form-status {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 1.2em;
}

.form-status.is-success {
  color: #15803d;
}

.form-status.is-error {
  color: #b91c1c;
}

/* ---------- Footer ---------- */
.footer {
  background: #111827;
  color: #cbd5e1;
  padding: 64px 40px 28px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand .brand {
  margin-bottom: 18px;
}

.brand__name .a--light {
  color: var(--white);
}

.footer__tagline {
  font-size: 14.5px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 320px;
}

.footer__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col a,
.footer__col li {
  font-size: 14.5px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  max-width: 1200px;
  margin: 44px auto 0;
  padding-top: 24px;
  border-top: 1px solid #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: #94a3b8;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  color: #94a3b8;
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--accent);
}

/* ---------- Demo sections (placeholders) ---------- */
section:not([class]) {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: #94a3b8;
  border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 56px 20px 40px;
    background-position: center;
  }
  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.95) 0%,
      rgba(248, 250, 252, 0.75) 60%,
      rgba(248, 250, 252, 0.6) 100%
    );
  }
  .hero__title {
    font-size: 42px;
  }
  /* Let the stats card flow below the hero content instead of overlapping */
  .hero__stats {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    margin-top: 36px;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
    padding: 22px 4px;
  }
  .stat {
    padding: 6px 12px;
  }
  .stat:nth-child(odd) {
    border-left: none;
  }
  .stat:nth-child(even) {
    border-left: 1px solid #e5e7eb;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid #e5e7eb;
    padding-top: 18px;
  }
  .navbar {
    padding: 14px 20px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 20px 20px 26px;
    background: var(--white);
    border-top: 1px solid #eef0f3;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
  }
  .nav-menu.is-open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-links a {
    width: 100%;
    padding: 6px 0;
    font-size: 17px;
  }
  .nav-links a.active::after {
    display: none;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nav-actions .btn {
    justify-content: center;
  }
  .services {
    padding: 60px 20px;
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title {
    font-size: 30px;
  }
  .projects {
    padding: 60px 20px;
  }
  .project-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
  .about {
    padding: 60px 20px;
  }
  .about__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about__features {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .testimonials {
    padding: 60px 20px;
  }
  .testimonial-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
  .carousel-btn--edge {
    display: none;
  }
  .process {
    padding: 60px 20px;
  }
  .process__steps {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
  .step {
    flex: none;
  }
  .process__arrow {
    align-self: center;
    transform: rotate(90deg);
  }
  .contact {
    padding: 60px 20px;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer {
    padding: 52px 20px 24px;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    flex: 0 0 85%;
  }
  .about__features {
    grid-template-columns: 1fr;
  }
  .testimonial-card {
    flex: 0 0 88%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
