/* ================================================
   C&A JOHNSON VENDING SERVICES — DESIGN SYSTEM
   Premium Tesla-inspired white-background aesthetic
   ================================================ */

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --color-black: #111111;
  --color-dark: #1a1a1a;
  --color-body: #393c41;
  --color-muted: #5c5e62;
  --color-light-gray: #f4f4f4;
  --color-border: #e0e0e0;
  --color-white: #ffffff;
  --color-accent: #171a20;
  --color-blue: #3e6ae1;
  --color-blue-hover: #2d55c4;
  --color-overlay: rgba(0, 0, 0, 0.45);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1380px;
  --container-padding: 0 40px;

  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--color-body);
  background: var(--color-white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-black);
  line-height: 1.15;
  font-weight: 600;
}

/* ---- UTILITY ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-subtext {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-body);
  max-width: 720px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: transparent;
  color: var(--color-black);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1.5px solid var(--color-black);
  border-radius: 4px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-black);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-black);
  transition: var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.btn-text:hover {
  color: var(--color-blue);
}

.btn-text svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn-text:hover svg {
  transform: translateX(4px);
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-body);
  letter-spacing: 0.3px;
  transition: var(--transition-fast);
}

.navbar__links a:hover {
  color: var(--color-black);
}

.navbar__cta {
  padding: 10px 24px !important;
  font-size: 13px !important;
  border-radius: 4px;
}

.navbar__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 40px;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
}

.navbar__mobile-menu.active {
  display: flex;
}

.navbar__mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-body);
}

/* ================================================
   SECTION 1 — HERO
   ================================================ */
.hero {
  width: 100%;
  min-height: 100vh;
  min-height: 720px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.hero__headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero__text {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero__ctas .btn-primary {
  background: var(--color-white);
  color: var(--color-black);
}

.hero__ctas .btn-primary:hover {
  background: var(--color-light-gray);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero__ctas .btn-secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}

.hero__ctas .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

/* ================================================
   SECTION 2 — STATS BAR
   ================================================ */
.stats-bar {
  padding: 80px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stats-bar__item {
  text-align: center;
  padding: 0 16px;
}

.stats-bar__value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.stats-bar__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-muted);
}

/* ================================================
   SECTION 3 — PRODUCTS
   ================================================ */
.products {
  padding: var(--section-padding);
  background: var(--color-white);
}

.products__header {
  text-align: center;
  margin-bottom: 72px;
}

.products__header .section-subtext {
  margin-left: auto;
  margin-right: auto;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.products__card {
  background: var(--color-light-gray);
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.products__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.products__card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.products__card-body {
  padding: 32px;
}

.products__card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 12px;
}

.products__card-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-body);
}

/* ================================================
   SECTION 4 — HOW IT WORKS
   ================================================ */
.how-it-works {
  padding: var(--section-padding);
  background: var(--color-light-gray);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: 72px;
}

.how-it-works__header .section-subtext {
  margin-left: auto;
  margin-right: auto;
}

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

.how-it-works__step {
  text-align: center;
  padding: 40px 24px;
  background: var(--color-white);
  transition: var(--transition-smooth);
}

.how-it-works__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.how-it-works__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 24px;
}

.how-it-works__step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 12px;
}

.how-it-works__step-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-body);
}

/* ================================================
   SECTION 5 & 8 — FULL-WIDTH LIFESTYLE MODULES
   ================================================ */
.lifestyle-module {
  width: 100%;
}

.lifestyle-module__image-wrapper {
  width: 100%;
  height: 912px;
  overflow: hidden;
  position: relative;
}

.lifestyle-module__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lifestyle-module__text {
  padding: 72px 0;
}

.lifestyle-module__text .container {
  max-width: 800px;
}

.lifestyle-module__headline {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.lifestyle-module__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-body);
  margin-bottom: 32px;
}

.lifestyle-module__cta .btn-primary {
  margin-top: 8px;
}

/* ================================================
   SECTION 6 — MACHINE OPTIONS
   ================================================ */
.machine-options {
  padding: var(--section-padding);
  background: var(--color-white);
}

.machine-options__header {
  text-align: center;
  margin-bottom: 72px;
}

.machine-options__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.machine-options__card {
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  background: var(--color-light-gray);
}

.machine-options__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.machine-options__card-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 6px 16px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

.machine-options__card-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.machine-options__card-body {
  padding: 40px;
}

.machine-options__card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 16px;
}

.machine-options__card-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-body);
  margin-bottom: 24px;
}

/* ================================================
   SECTION 7 — LOCATIONS
   ================================================ */
.locations {
  padding: var(--section-padding);
  background: var(--color-white);
}

.locations__header {
  text-align: center;
  margin-bottom: 72px;
}

.locations__grid {
  display: grid;
  grid-template-columns: repeat(4, 335px);
  gap: 20px;
  justify-content: center;
}

.locations__card {
  width: 335px;
  height: 600px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.locations__card-img-wrapper {
  width: 100%;
  height: 85%;
  overflow: hidden;
}

.locations__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.locations__card:hover .locations__card-img {
  transform: scale(1.03);
}

.locations__card-label {
  height: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--color-white);
}

.locations__card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-black);
  text-align: center;
}

/* ================================================
   SECTION 9 — BLOG / INSIGHTS
   ================================================ */
.blog {
  padding: var(--section-padding);
  background: var(--color-white);
}

.blog__header {
  text-align: center;
  margin-bottom: 72px;
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}

.blog__card {
  overflow: hidden;
  transition: var(--transition-smooth);
  background: var(--color-light-gray);
}

.blog__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.blog__card-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.blog__card-body {
  padding: 40px;
}

.blog__card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 14px;
  line-height: 1.3;
}

.blog__card-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-body);
}

.blog__footer {
  text-align: center;
}

/* ================================================
   SECTION 10 — FAQ
   ================================================ */
.faq {
  padding: var(--section-padding);
  background: var(--color-light-gray);
}

.faq__header {
  text-align: center;
  margin-bottom: 56px;
}

.faq__list {
  max-width: 860px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-black);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-primary);
  gap: 16px;
  transition: var(--transition-fast);
}

.faq__question:hover {
  color: var(--color-muted);
}

.faq__question-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq__item.active .faq__question-icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.faq__answer-inner {
  padding: 0 0 24px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-body);
}

.faq__item.active .faq__answer {
  max-height: 400px;
}

/* ================================================
   SECTION 11 — CONTACT
   ================================================ */
.contact {
  padding: var(--section-padding);
  background: var(--color-white);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info {
  padding-top: 8px;
}

.contact__headline {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.contact__detail {
  margin-bottom: 20px;
}

.contact__detail-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.contact__detail-value {
  font-size: 17px;
  color: var(--color-black);
  font-weight: 500;
}

.contact__detail-value a {
  transition: var(--transition-fast);
}

.contact__detail-value a:hover {
  color: var(--color-blue);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-light-gray);
  border: 1.5px solid transparent;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--color-black);
  transition: var(--transition-fast);
  outline: none;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--color-muted);
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--color-black);
  background: var(--color-white);
}

.contact__textarea {
  height: 140px;
  resize: vertical;
}

/* ================================================
   SECTION 12 — FOOTER
   ================================================ */
.footer {
  padding: 64px 0 40px;
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ================================================
   REVEAL ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================================================
   RESPONSIVE — TABLET
   ================================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 32px;
  }

  .navbar__links {
    display: none;
  }

  .navbar__mobile-toggle {
    display: flex;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .products__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .how-it-works__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .lifestyle-module__image-wrapper {
    height: 560px;
  }

  .machine-options__grid {
    grid-template-columns: 1fr;
  }

  .locations__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .locations__card {
    width: 100%;
    height: 500px;
  }

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

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ================================================
   RESPONSIVE — MOBILE
   ================================================ */
@media (max-width: 640px) {
  :root {
    --section-padding: 64px 0;
    --container-padding: 0 24px;
  }

  .navbar {
    padding: 0 24px;
  }

  .hero {
    min-height: 100vh;
  }

  .hero__headline {
    font-size: 32px;
  }

  .hero__text {
    font-size: 15px;
  }

  .hero__ctas {
    flex-direction: column;
    gap: 12px;
  }

  .hero__ctas .btn-primary,
  .hero__ctas .btn-secondary {
    width: 100%;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .how-it-works__grid {
    grid-template-columns: 1fr;
  }

  .lifestyle-module__image-wrapper {
    height: 360px;
  }

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

  .locations__card {
    width: 100%;
    height: 500px;
  }

  .contact__form-row {
    grid-template-columns: 1fr;
  }

  .machine-options__card-img {
    height: 300px;
  }

  .blog__card-img {
    height: 240px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
  }

  .navbar__mobile-menu {
    padding: 24px;
  }
}
