/* NJ Denim — first-draft site styles
   Accent blue and navy sampled from the modernized wordmark. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1f3a5f;
  --navy: #1f3a5f;
  --blue-hover: #2a4d77;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e6e3dc;
  --paper: #ffffff;
  --cream: #ffffff;
  --sand: #ffffff;
  --placeholder-bg: #f4efe3;
  --placeholder-ink: #6a5a38;
  --placeholder-line: #c9b894;
  --max: 1140px;
  --header-h: 7.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(calc(100% - 2.5rem), 1280px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.established {
  margin: 0 0 1.15rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #1F3A5F;
  line-height: 1.3;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.55rem 0;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  height: 96px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--navy);
}

.site-nav a:hover {
  color: var(--blue-hover);
}

/* ---------- Hero ---------- */

.hero {
  padding: 3.5rem 0 0;
}

.hero h1,
.section-head h2 {
  margin: 0 0 0.85rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  background: var(--navy);
  color: var(--paper);
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--navy);
  border-radius: 2px;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

.hero-image {
  margin-top: 3.25rem;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-caption {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  padding: 6.5rem 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.note {
  margin-top: 0.85rem;
  font-size: 0.88rem;
}

/* ---------- Brands ---------- */

.brands {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.brand-carousel {
  position: relative;
}

.brand-track {
  --brand-gap: 1.1rem;
  display: flex;
  gap: var(--brand-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0.15rem 0 0.35rem;
}

.brand-track::-webkit-scrollbar {
  display: none;
}

.brand-card {
  flex: 0 0 calc((100% - (1 * var(--brand-gap))) / 1.3);
  scroll-snap-align: start;
  min-width: 0;
}

.brand-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.brand-card h3 {
  margin: 0.8rem 0 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand-nav {
  display: none;
  position: absolute;
  top: calc((100% - 2.6rem) * 0.42);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(31, 58, 95, 0.08);
}

.brand-nav span {
  display: block;
  margin-top: -0.12em;
}

.brand-nav:hover:not(:disabled) {
  background: var(--navy);
  color: var(--paper);
}

.brand-nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.brand-nav-prev { left: -1.25rem; }
.brand-nav-next { right: -1.25rem; }

@media (prefers-reduced-motion: reduce) {
  .brand-track {
    scroll-behavior: auto;
  }
}

/* ---------- Visit ---------- */

.visit {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.visit-details h2 {
  margin: 0 0 0.75rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.visit-details .intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 28rem;
}

.visit-meta {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  max-width: 46rem;
}

.visit-meta h3 {
  margin: 0 0 0.35rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.visit-meta p {
  margin: 0;
}

.directions {
  font-size: 0.92rem;
  text-underline-offset: 3px;
}

/* ---------- Social ---------- */

.social-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 36rem;
}

.social h2 {
  margin: 0 0 0.5rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.social p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.handle {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

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

/* ---------- Footer ---------- */

.site-footer {
  padding: 3rem 0 2.25rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: 0.85rem;
}

.footer-brand p,
.footer-meta p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.wholesale-note {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: #8a8a8a;
}

.wholesale-note a {
  color: #6e6e6e;
  text-underline-offset: 2px;
}

.wholesale-note a:hover {
  color: var(--navy);
}

/* ---------- Placeholders ---------- */

.placeholder {
  display: inline-block;
  background: var(--placeholder-bg);
  color: var(--placeholder-ink);
  border: 1px dashed var(--placeholder-line);
  padding: 0.12em 0.45em;
  font-size: 0.86em;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
}

.tag {
  display: inline-block;
  background: var(--placeholder-bg);
  color: var(--placeholder-ink);
  border: 1px dashed var(--placeholder-line);
  padding: 0.15em 0.45em;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ---------- Wholesale form ---------- */

.page-header {
  padding: 3.25rem 0 0;
}

.page-header h1 {
  margin: 0 0 0.85rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-header p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.wholesale-panel {
  padding: 3rem 0 6rem;
}

.email-callout {
  margin: 0 0 2.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.email-callout strong,
.email-callout a {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.email-callout a:hover {
  color: var(--blue-hover);
  text-underline-offset: 3px;
  text-decoration: underline;
}

.wholesale-form {
  display: grid;
  gap: 1.15rem;
  max-width: 40rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  gap: 1.15rem;
}

.field label {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  border-radius: 2px;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (min-width: 700px) {
  .brand-card {
    flex-basis: calc((100% - (3 * var(--brand-gap))) / 3.5);
  }

  .brand-nav {
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

  .visit-meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
  }
}


@media (min-width: 960px) {
  .hero {
    padding-top: 4.5rem;
  }

}

@media (max-width: 520px) {
  .wrap,
  .wrap-wide {
    width: min(calc(100% - 1.75rem), var(--max));
  }

  .header-inner {
    min-height: 5.5rem;
    padding: 0.45rem 0;
  }

  .logo img {
    height: 68px;
  }

  .site-nav {
    gap: 0.85rem;
  }

  .site-nav a {
    font-size: 0.875rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .section {
    padding: 4.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
