/* Hero background: add assets/images/hero-bg.jpg (see assets/images/README.txt). */
:root {
  --white: #ffffff;
  --grey-50: #f7f7f8;
  --grey-100: #ececee;
  --grey-200: #d8d8dc;
  --grey-400: #8b8b93;
  --grey-600: #5c5c64;
  --grey-800: #2e2e33;
  --grey-900: #1a1a1e;
  --border: var(--grey-200);
  --text: var(--grey-800);
  --muted: var(--grey-600);
  --max-width: 1120px;
  --narrow: 720px;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(26, 26, 30, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
p.section-intro.text-center {
    margin: 0 auto 20px;
}
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo {
  font-weight: 600;
  color: var(--grey-900);
  text-decoration: none;
  font-size: 1rem;
}

.logo:hover,
.logo:focus-visible {
  text-decoration: underline;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--grey-900);
  text-decoration: underline;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--grey-800);
  background-image: url("images/bm1.webp");
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 26, 30, 0.88) 0%,
    rgba(26, 26, 30, 0.75) 45%,
    rgba(26, 26, 30, 0.55) 100%
  );
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__content {
  padding-top: 0.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--grey-200);
  margin: 0 0 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  font-weight: 600;
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--grey-100);
  font-size: 1.0625rem;
}

.hero__bullets {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--grey-100);
}

.hero__bullets li {
  margin-bottom: 0.5rem;
}

.hero__form-wrap {
  justify-self: end;
  width: 100%;
  max-width: 420px;
}

.lead-form {
  background: var(--white);
  color: var(--text);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--grey-100);
}

.form-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--grey-900);
}

.form-note {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--grey-800);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--grey-600);
  outline-offset: 2px;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  color: #8a2a2a;
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn--primary {
  width: 100%;
  background: var(--grey-900);
  color: var(--white);
}

.btn--primary:hover:not(:disabled) {
  background: var(--grey-800);
}

.btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn--primary:focus-visible {
  outline: 2px solid var(--grey-400);
  outline-offset: 3px;
}

.btn--secondary {
  background: var(--grey-100);
  color: var(--grey-900);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--grey-200);
}

.btn--header {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: var(--grey-900);
  color: var(--white);
  border-radius: 20px;
}

.btn--header:hover {
  background: var(--grey-800);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--grey-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
  color: var(--grey-900);
}

.section-intro {
  max-width: 62ch;
}

.text-center {
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--grey-900);
}

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

.steps {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 65ch;
}

.steps li {
  margin-bottom: 0.85rem;
}

.steps strong {
  color: var(--grey-900);
}

.checklist {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 62ch;
}

.checklist li {
  margin-bottom: 0.75rem;
}

.checklist strong {
  color: var(--grey-900);
}

.faq dt {
  font-weight: 600;
  color: var(--grey-900);
  margin-top: 1.25rem;
}

.faq dt:first-child {
  margin-top: 0;
}

.faq dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.cta-repeat {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: var(--grey-900);
  color: var(--grey-100);
  padding: 2rem 0;
  margin-top: 0;
}

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

.footer-brand {
  margin: 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--grey-200);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
  color: var(--white);
}

.footer-note {
  width: 100%;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--grey-400);
}

/* Legal pages */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  color: var(--grey-900);
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  color: var(--grey-900);
}

.legal-page p,
.legal-page ul {
  margin: 0 0 1rem;
  max-width: 65ch;
  color: var(--text);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.back-home {
  margin-top: 2.5rem;
}

.back-home a {
  color: var(--grey-800);
  font-weight: 500;
}

/* Portfolio Slider */
.portfolio-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.portfolio-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.portfolio-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.portfolio-item {
  flex: 0 0 calc(25% - 1.125rem); /* 4 items on desktop */
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.slider-btn {
  background: var(--white);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  z-index: 10;
  flex-shrink: 0;
  font-weight: bold;
  color: var(--grey-800);
}

.slider-btn:hover {
  background: var(--grey-100);
  color: var(--grey-900);
  transform: scale(1.1);
}

.slider-btn:active {
  transform: scale(0.95);
}

/* Distribution Section Dark Theme */
.section--dark {
  background: var(--grey-900);
  color: var(--grey-100);
}

.section--dark h2 {
  color: var(--white);
}

.section--dark p {
  color: var(--grey-200);
}

/* Process Section Roadmap */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-card {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow);
  border-color: var(--grey-400);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--grey-100);
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.3s ease;
  font-family: serif; /* Classic look */
}

.step-card:hover .step-num {
  color: var(--grey-200);
}

.step-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--grey-900);
}

.step-content p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

.process-grid,
.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.process-image,
.quality-image {
  position: sticky;
  top: 120px; /* Offset for the sticky header */
  align-self: start;
}

.process-image img,
.quality-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Footer Enhancements */
.footer-logo {
  max-width: 150px;
  margin-bottom: 1rem;
}

.footer-content {
  max-width: 60ch;
  margin: 0 auto 1.5rem;
  color: var(--grey-400);
  font-size: 0.9375rem;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: var(--narrow);
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--grey-900);
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--grey-400);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* CTA Section */
.section--cta {
  background: var(--grey-50);
  color: var(--grey-800);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section--cta h2 {
  color: var(--grey-900);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  margin-bottom: 1rem;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cta-btns .btn {
  min-width: 180px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  width: min(95%, 500px);
  max-height: 90vh;
  border-radius: 16px;
  position: relative;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  padding: 2rem;
}

.modal-overlay.is-active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--grey-400);
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  z-index: 10;
}

.modal-close:hover {
  color: var(--grey-900);
}
/* CTA Form */
.cta-form {
  margin-top: 2.5rem;
  max-width: 900px;
  margin-inline: auto;
}

.cta-form-inner {
  display: flex;
  gap: 1rem;
  background: var(--white);
  padding: 0.75rem;
  border-radius: 50px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.cta-form-inner input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  min-width: 0;
}

.cta-form-inner input:focus {
  outline: none;
}

.cta-form-inner input:not(:last-child) {
  border-right: 1px solid var(--border);
}

.cta-form-inner .btn {
  border-radius: 30px;
  padding: 0.75rem 2rem;
  white-space: nowrap;
  width: auto;
}

@media (max-width: 768px) {
  .cta-form-inner {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 1.5rem;
  }

  .cta-form-inner input:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .cta-form-inner .btn {
    width: 100%;
  }
}

/* Navigation Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 100;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grey-900);
  position: relative;
  transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--grey-900);
  transition: transform 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.nav-toggle.is-active .hamburger { background: transparent; }
.nav-toggle.is-active .hamburger::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

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

  .hero__form-wrap {
    justify-self: stretch;
    max-width: none;
  }

  .cards, .portfolio-track, .process-grid, .quality-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-item {
    flex: 0 0 calc(50% - 0.75rem); /* 2 items on tablet */
  }

  .process-image, .quality-image {
    position: static;
    order: -1; /* Image on top in mobile */
  }

  .quality-content {
    text-align: center;
  }

  .checklist {
    text-align: left;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 90;
    flex-wrap: nowrap;
    gap: 2rem;
  }

  .nav.is-active {
    right: 0;
  }

  .nav a {
    font-size: 1.1rem;
    font-weight: 500;
  }

  .btn--header {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding: 2rem 0 3rem;
  }

  .lead {
    max-width: none;
  }

  .hero__bullets {
    max-width: none;
  }

  .portfolio-item {
    flex: 0 0 100%; /* 1 item on mobile */
  }

  .cta-btns {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-btns .btn {
    width: 100%;
  }
}
