/* ==========================================================================
   Big Apple Marketplace - Landing page
   Bold-Minimal hybrid. Light theme. Sharp corners. High contrast.
   ========================================================================== */

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e4e4e7;
  --red: #d02025;
  --red-dark: #b31b20;

  --wrap: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.ink-red { color: var(--red); }
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  padding: 0.9rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { --btn-bg: var(--red); --btn-fg: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-invert { background: #fff; color: var(--ink); border-color: #fff; }
.btn-invert:hover { background: transparent; color: #fff; }

.btn-sm { padding: 0.65rem 1.05rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 0;
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 1.25rem; }

/* HTML logo lockup */
.brand-lockup { display: flex; align-items: center; gap: 0.85rem; }
.brand-icon { height: 62px; width: auto; }
.brand-words { display: flex; flex-direction: column; gap: 0.16em; line-height: 1; margin-top: 15px; }
.brand-title {
  font-weight: 800;
  font-size: 25px;
  letter-spacing: .5px;
  font-family: poppins, var(--font-display), sans-serif;
  white-space: nowrap;
}
.bw-ink { color: var(--ink); }
.bw-red { color: var(--red); }
.brand-market {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ink);
  padding-left: 1px;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a { position: relative; color: var(--ink); padding: 0.25rem 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.2s var(--ease);
}
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem clamp(1.25rem, 5vw, 2.5rem) 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.mobile-nav a { padding: 0.85rem 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { border-bottom: none; margin-top: 0.5rem; justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 900;
  margin: 0.9rem 0 1.1rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.8rem 0 2rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-trust strong { color: var(--ink); font-weight: 700; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 26px 55px -18px rgba(26, 26, 26, 0.38);
}
.hero-badge {
  position: absolute;
  left: -14px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.12);
}
.badge-red {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--red);
  padding: 0.3rem 0.5rem;
}

/* ---------- Section shell ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-head p { color: var(--muted); margin-top: 0.75rem; font-size: 1.05rem; }

/* ---------- Tickets ---------- */
.tickets { background: var(--surface); border-block: 1px solid var(--line); }
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.ticket-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ticket-card:hover {
  transform: translateY(-4px);
  border-color: #d4d4d8;
  box-shadow: 0 22px 50px rgba(26, 26, 26, 0.1);
}
.ticket-media { position: relative; overflow: hidden; }
.ticket-media img { aspect-ratio: 10 / 7; object-fit: cover; width: 100%; transition: transform 0.4s var(--ease); }
.ticket-card:hover .ticket-media img { transform: scale(1.04); }
.tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  color: #fff;
}
.tag-deal { background: var(--red); }
.tag-hot { background: var(--ink); }

.ticket-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.35rem 1.4rem 1.5rem; flex: 1; }
.ticket-kind { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ticket-body h3 { font-size: 1.22rem; }
.ticket-desc { color: var(--muted); font-size: 0.95rem; flex: 1; }
.ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.75rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.price { display: flex; align-items: baseline; gap: 0.4rem; }
.price-from { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.price-now { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.price-was { font-size: 0.9rem; color: var(--muted); text-decoration: line-through; }


/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}
.cat {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.cat:hover { background: var(--bg); }
.cat-index { font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; color: var(--red); }
.cat h3 { font-size: 1.4rem; margin: 0.5rem 0 0.6rem; }
.cat p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Why / steps ---------- */
.why { background: var(--surface); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.why-intro h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0.9rem 0 1rem; }
.steps { list-style: none; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: none; padding-bottom: 0; }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: #fff; background: var(--ink);
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.steps p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg); }
.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.tm-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tm-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(26, 26, 26, 0.08); }
.tm-stars { color: var(--red); letter-spacing: 0.18em; font-size: 1.05rem; }
.tm-card blockquote {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}
.tm-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.tm-avatar {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
}
.tm-who { display: flex; flex-direction: column; line-height: 1.25; }
.tm-who strong { font-weight: 700; font-size: 0.98rem; }
.tm-who span { color: var(--muted); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); border-block: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-list { display: grid; }
.faq-list details { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-weight: 700;
  color: var(--red);
  font-size: 1.4rem;
  transition: transform 0.2s var(--ease);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { color: var(--muted); margin-top: 0.7rem; font-size: 0.97rem; max-width: 62ch; }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; overflow: hidden; background: var(--red); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; text-align: center; }
.cta-skyline {
  position: absolute;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1600px;
  height: auto;
  pointer-events: none;
  opacity: 0.16;
  filter: brightness(0) invert(1);
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%);
  mask-image: linear-gradient(to top, #000 55%, transparent 100%);
}
.cta-inner { position: relative; z-index: 1; max-width: 62ch; margin-inline: auto; }
.cta-kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.cta-inner h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0.7rem 0 0; font-weight: 900; }
.cta-sub { margin: 1rem auto 1.9rem; font-size: 1.12rem; color: rgba(255, 255, 255, 0.9); max-width: 31ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcfcf; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand .brand { margin-bottom: 1.1rem; }
.footer-brand .brand-title .bw-ink { color: #fff; }
.footer-brand .brand-market { color: #fff; }
.footer-brand p { max-width: 34ch; font-size: 0.95rem; color: #9a9a9a; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.95rem; color: #fff; margin-bottom: 1rem; letter-spacing: 0.02em; }
.footer-col a { display: block; padding: 0.35rem 0; color: #cfcfcf; font-size: 0.94rem; transition: color 0.15s var(--ease); }
.footer-col a:hover { color: var(--red); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: 0.85rem; color: #8a8a8a; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: #cfcfcf; transition: color 0.15s var(--ease); }
.footer-legal a:hover { color: var(--red); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.legal-head { max-width: 70ch; margin-bottom: 2.5rem; }
.legal-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal-head p { color: var(--muted); margin-top: 0.75rem; }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal-body p, .legal-body li { color: #3f3f46; font-size: 1rem; line-height: 1.7; }
.legal-body ul { margin: 0.5rem 0 0.5rem 1.2rem; }
.legal-body a { color: var(--red); text-decoration: underline; }
.legal-note { margin-top: 2.5rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); color: var(--muted); font-size: 0.92rem; }

/* ---------- Interior pages (About / Contact) ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.25rem, 3vw, 2rem); text-align: center; }
.page-hero .eyebrow { display: block; margin-bottom: 0.9rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 900; }
.page-hero .lede { margin: 1.1rem auto 0; text-align: center; }

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -20px rgba(26, 26, 26, 0.32);
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.pillar { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.5rem, 2.5vw, 2rem); }
.pillar-num { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 0.85rem; }
.pillar h3 { font-size: 1.25rem; margin: 0.5rem 0 0.6rem; }
.pillar p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.9rem; }
.contact-info .lede { margin-bottom: 1.75rem; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; gap: 0.2rem; }
.contact-list .c-label { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-list a:hover { color: var(--red); }

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  border: 1px solid #c9c9cf;
  background: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: #8a8a90; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(208, 32, 37, 0.18); }
.field textarea { min-height: 150px; resize: vertical; }
.form-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 0.95rem 1.15rem; border: 1px solid; font-size: 0.95rem; margin-bottom: 1.5rem; }
.alert-success { background: #f0f9f2; border-color: #bfe3c9; color: #1c6b34; }
.alert-error { background: #fdf1f1; border-color: #f2c9cb; color: #a11b21; }

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

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav, .header-actions .btn-sm { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .why-grid, .faq-grid { grid-template-columns: 1fr; }
  .ticket-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand-icon { height: 46px; }
  .brand-title { font-size: 20px; }
  .brand-market { font-size: 10px; letter-spacing: 3px; }
  .ticket-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-badge { left: 0; }
  /* CTA buttons fill the row and share it while both still fit, else wrap */
  .hero-cta .btn { flex: 1 1 140px; }
  .cta-inner > .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .ticket-card:hover, .ticket-card:hover .ticket-media img { transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
