/* ===========================
   GLOBAL RESET & BASE
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: #f5f5f5;
  scroll-behavior: smooth;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  position: relative;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 24px 32px 0;
  overflow: hidden;
}
.hero-logo {
  width: 100%;
  max-width: 350px;   /* adjust this number to make it bigger/smaller */
  margin: 0 auto;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}
/* Top bar layout – GRID so nav is visually centered */
.top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* IG link */
.ig-link {
  grid-column: 1;
  justify-self: start;
  padding: 8px 14px;
  border-radius: 6px;
  background: none;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Nav bar */
.nav-bar {
  grid-column: 2;
  display: inline-flex;
  gap: 24px;
  padding: 10px 20px;
  border-radius: 8px;
  background: none;
  justify-self: center;
}

.nav-bar a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000;
}

.nav-bar a:hover {
  opacity: 0.7;
}

/* Center content with logo */

.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box {
  padding: 20px;
  max-width: 480px;
  max-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
}

/* Fade at bottom */
.hero-fade {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    #000000
  );
  z-index: 1;
}

/* Scroll button */
.scroll-more {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.scroll-more .arrow {
  font-size: 1.1rem;
  line-height: 1;
}

.scroll-more:hover {
  opacity: 0.8;
}

/* ===========================
   GENERAL SECTIONS
   =========================== */

.next-section,
.section-dark {
  background: #000000;
  color: #f5f5f5;
  padding: 80px 24px 120px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ABOUT / INTRO */

.next-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.next-section p {
  max-width: 640px;
  line-height: 1.6;
  font-size: 0.98rem;
}

/* Section headers */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 2rem;
}

.section-header p {
  margin-top: 8px;
  max-width: 640px;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #d4d4d4;
}

.section-cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #ffffff40;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f5f5f5;
}

.section-cta:hover {
  border-color: #ffffff80;
}

/* Section footer note */

.section-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: #a3a3a3;
}

/* ===========================
   CAROUSEL (JS-POWERED)
   =========================== */

.carousel {
  margin-top: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
  cursor: grab;
  touch-action: pan-x; /* 👈 allow horizontal swiping */
}

/* visible scrollbar */
.carousel::-webkit-scrollbar {
  height: 10px;
}
.carousel::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 10px;
}
.carousel::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}
.carousel::-webkit-scrollbar-thumb:hover {
  background: #777;
}

.carousel {
  scrollbar-width: thin;
  scrollbar-color: #555 #1a1a1a;
}

/* Track */
.carousel-track {
  display: flex;
  gap: 24px;
  padding-right: 24px;
}

/* THESE CLASSES ARE USED BY JS */
.sponsored-track {}
.vendor-track {}

/* ===========================
   CARDS
   =========================== */

.card {
  flex: 0 0 260px;
  background: #101010;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-image {
  position: relative;
  width: 100%;
  padding-top: 65%;       /* fixed aspect ratio frame */
  overflow: hidden;       /* crop to frame */
}

/* crop + vertical pan via object-position */
.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* fill and crop */
  /* 50% is center; we add pixel offset on Y */
  object-position: 50% calc(50% + var(--img-offset, 0px));
  transition: transform 0.4s ease;
}

/* Hover only zooms, does NOT override positioning */
.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 12px 14px 14px;
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 600;
}

.card-body p {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #b3b3b3;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .hero {
    padding: 16px 16px 0;
  }

  .nav-bar {
    gap: 12px;
    padding: 8px 14px;
  }

  .nav-bar a {
    font-size: 0.75rem;
  }

  .logo-box {
    padding: 16px;
    max-width: 320px;
    max-height: 240px;
  }

  .scroll-more {
    bottom: 24px;
  }

  .card {
    flex: 0 0 220px;
  }
}

@media (max-width: 520px) {
  /* Stack IG + nav on small screens */
  .top-bar {
    grid-template-columns: 1fr;
    row-gap: 8px;
    justify-items: flex-start;
  }

  .nav-bar {
    grid-column: 1;
    justify-self: flex-start;
    flex-wrap: wrap;
  }

  .ig-link {
    grid-column: 1;
    justify-self: flex-start;
  }
}
