/* ===================================================================
   Blue Bin Vintage — styles
   Palette pulled from the real logo: dusty teal #7ab2bf + warm cream,
   with a retro rust pop. Groovy rounded type to match the wordmark.
   =================================================================== */

:root {
  --ink: #211f1a;
  --ink-soft: #4d4840;
  --paper: #f6efe1;          /* warm vintage cream */
  --paper-2: #ece1ce;
  --paper-card: #fcf7ee;
  --teal: #7ab2bf;           /* brand signature (logo background) */
  --teal-deep: #3f8794;      /* CTAs / accents on light surfaces */
  --teal-ink: #1f4a52;       /* deep teal for dark moments */
  --rust: #cf6a3c;           /* warm retro pop */
  --line: rgba(33, 31, 26, 0.14);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(20, 50, 56, 0.5);

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- shared typography ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.5vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-head__note { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; }

section { padding: clamp(3.5rem, 9vw, 7rem) var(--gutter); }
.about, .shop, .featured, .feed, .reviews, .visit { max-width: var(--maxw); margin: 0 auto; }

/* ---------- placeholder blocks ---------- */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, rgba(122,178,191,0.28), rgba(207,106,60,0.12)),
    var(--paper-2);
  border: 1px dashed rgba(63, 135, 148, 0.5);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 160px;
}
.ph::before {
  content: "📷 " attr(data-ph);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-ink);
  text-align: center;
  padding: 0 1rem;
  opacity: 0.85;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.86rem; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
/* primary accent CTA */
.btn--neon {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
}
.btn--neon:hover { box-shadow: 0 12px 30px -10px rgba(63, 135, 148, 0.8); }

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 0.6rem 0;
}
.nav.scrolled {
  background: rgba(246, 239, 225, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 30px; width: auto; }
/* white wordmark over the photo before nav turns solid */
.nav .nav__logo--light { display: block; }
.nav .nav__logo--dark { display: none; }
.nav.scrolled .nav__logo--light { display: none; }
.nav.scrolled .nav__logo--dark { display: block; }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-weight: 500; font-size: 0.95rem; position: relative; color: var(--paper); }
.nav.scrolled .nav__links a { color: var(--ink); }
.nav__links a.nav__cta { color: #fff; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--teal-deep); transition: width 0.2s ease;
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--paper); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease; }
.nav.scrolled .nav__toggle span { background: var(--ink); }
.nav.open .nav__toggle span { background: var(--ink); }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 0; color: var(--paper); isolation: isolate; overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 32%;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14,32,36,0.9) 0%, rgba(14,32,36,0.3) 48%, rgba(14,32,36,0.55) 100%);
}
.hero__content { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 var(--gutter) clamp(3.5rem, 9vw, 6rem); }
.hero__eyebrow { font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; color: var(--teal); margin-bottom: 1rem; }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 9vw, 6.5rem); line-height: 0.98; letter-spacing: -0.02em;
  text-shadow: 0 8px 40px rgba(0,0,0,0.45);
}
.hero__sub { max-width: 540px; margin: 1.4rem 0 2rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,0.94); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__actions .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,0.75); }
.hero__actions .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero__open { margin-top: 1.8rem; display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.95rem; color: rgba(255,255,255,0.94); }
.hero__open .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(122,178,191,0.7); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(122,178,191,0.7); }
  70% { box-shadow: 0 0 0 9px rgba(122,178,191,0); }
  100% { box-shadow: 0 0 0 0 rgba(122,178,191,0); }
}

/* ===================================================================
   MARQUEE
   =================================================================== */
.marquee {
  background: var(--teal-deep); color: var(--paper);
  padding: 0.9rem 0; overflow: hidden; white-space: nowrap;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
}
.marquee__track { display: inline-flex; align-items: center; gap: 1.6rem; animation: scroll-x 26s linear infinite; will-change: transform; }
.marquee__track span { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.01em; }
.marquee__track .star { color: var(--rust); font-size: 1.1rem; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===================================================================
   ABOUT
   =================================================================== */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media .ph--tall { min-height: 460px; height: 100%; }
.about__text p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 1.08rem; }
.about__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.about__tags li { font-size: 0.85rem; font-weight: 600; padding: 0.4rem 0.9rem; border: 1.5px solid var(--ink); border-radius: 999px; }

.planet {
  margin-top: clamp(3rem, 7vw, 5rem);
  background: var(--ink); color: var(--paper);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.5rem);
}
.planet__mark { flex-shrink: 0; }
.planet__head { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.04; color: var(--teal); margin-bottom: 0.6rem; }
.planet p { color: rgba(255,255,255,0.85); max-width: 620px; }

/* ===================================================================
   FIND / CATEGORIES
   =================================================================== */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cat { position: relative; display: block; }
.cat__img { min-height: 280px; transition: transform 0.3s ease; }
.cat__label {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--paper-card);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 0.3rem 0.85rem; border-radius: 999px; border: 2px solid var(--ink);
}
.cat:hover .cat__img { transform: translateY(-6px); }

/* ===================================================================
   FEATURED / PRODUCTS
   =================================================================== */
.featured { background: var(--paper-2); border-radius: calc(var(--radius) + 10px); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.product { background: var(--paper-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.2s ease; }
.product:hover { transform: translateY(-5px); }
.product__img { min-height: 240px; border-radius: 0; border: none; border-bottom: 1px dashed rgba(63,135,148,0.5); }
.product__body { padding: 1.1rem 1.2rem 1.3rem; }
.product__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.product__meta { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.2rem; }
.product__row { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.product__price { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--teal-deep); }
.featured__foot { text-align: center; margin-top: 2.2rem; color: var(--ink-soft); }
.featured__foot a { color: var(--teal-deep); font-weight: 700; text-decoration: underline; }

/* ===================================================================
   INSTAGRAM FEED
   =================================================================== */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.ig-cell { aspect-ratio: 1 / 1; min-height: 0; }
.feed__cta { text-align: center; margin-top: 2.2rem; }

/* ===================================================================
   REVIEWS
   =================================================================== */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.stars { color: var(--rust); letter-spacing: 2px; margin-bottom: 0.8rem; }
.quote blockquote { font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; line-height: 1.4; color: var(--ink); }
.quote figcaption { margin-top: 1rem; font-weight: 600; color: var(--ink-soft); font-size: 0.9rem; }

/* ===================================================================
   VISIT
   =================================================================== */
.visit__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.visit__block { margin-top: 1.5rem; }
.visit__block h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--teal-deep); margin-bottom: 0.35rem; }
.visit__block p { font-size: 1.1rem; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.visit__map { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--ink); min-height: 380px; box-shadow: var(--shadow); }
.visit__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--teal-ink); color: var(--paper); padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.18); }
.footer__logo { height: 38px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer__links a:hover, .footer__social a:hover { color: var(--teal); }
.footer__social { display: flex; gap: 1.3rem; font-weight: 600; }
.footer__legal { max-width: var(--maxw); margin: 1.5rem auto 0; font-size: 0.85rem; color: rgba(255,255,255,0.65); text-align: center; }

/* ===================================================================
   MODAL
   =================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(14,32,36,0.6); backdrop-filter: blur(3px); }
.modal__card { position: relative; background: var(--paper-card); border-radius: calc(var(--radius) + 4px); border: 3px solid var(--ink); max-width: 420px; width: 100%; padding: clamp(1.8rem, 4vw, 2.5rem); box-shadow: var(--shadow); animation: pop 0.2s ease; }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__x { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.modal__title { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; margin-bottom: 0.8rem; }
.modal__item { margin-bottom: 0.8rem; }
.modal__copy { color: var(--ink-soft); margin-bottom: 1.5rem; }
.modal__actions { display: flex; flex-direction: column; gap: 0.7rem; }

/* ===================================================================
   REVEAL ANIMATION
   =================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 940px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media .ph--tall { min-height: 320px; }
  .visit__grid { grid-template-columns: 1fr; }
  .planet { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; top: 0; right: 0; height: 100svh; width: min(78vw, 320px);
    background: var(--paper); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; padding: 2rem var(--gutter); transform: translateX(100%); transition: transform 0.3s ease; box-shadow: var(--shadow);
  }
  .nav.open .nav__links { transform: translateX(0); }
  .nav__links a, .nav.scrolled .nav__links a { color: var(--ink); font-size: 1.2rem; }
  .nav__links a.nav__cta { color: #fff; }
  .nav__toggle { display: flex; z-index: 60; }
}

@media (max-width: 560px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
