/* ============================================================
   WWGD — Watch What God Does
   Faith-based premium streetwear. Minimal, elevated.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --faith-black: #15130F;
  --desert-stone: #C9B8A3;
  --cream: #F3EEE3;
  --olive: #5C5A41;
  --revival-grey: #9C968A;
  --rust: #A8512E;
  --gold: #C7A04C;

  /* Tinted near-blacks / near-creams for depth */
  --black-soft: #1B1813;
  --black-line: #2A2620;
  --cream-deep: #E7DFCF;

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --hairline: 1px solid var(--desert-stone);
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--faith-black);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.dot { color: var(--rust); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(243, 238, 227, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--hairline);
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.12em;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.4rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-nav a {
  position: relative;
  padding-bottom: 2px;
  color: var(--olive);
  transition: color 0.3s var(--ease);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover { color: var(--faith-black); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   HERO — Signature stacked band motif
   ============================================================ */
.hero {
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-deep) 45%, var(--desert-stone) 100%);
  padding: clamp(2rem, 6vw, 4.5rem) 0 0;
  border-bottom: var(--hairline);
}

.band-stack {
  border-top: var(--hairline);
}

.band {
  width: 100%;
  border-bottom: var(--hairline);
  display: flex;
  align-items: center;
  padding: clamp(0.1rem, 1.5vw, 0.6rem) clamp(1rem, 5vw, 4rem);
  overflow: hidden;
}

.band-word {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--faith-black);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(4.5rem, 21vw, 17rem);
  width: 100%;
}

/* alternating subtle inset rhythm so the stack reads as built, not flat */
.band:nth-child(even) .band-word { color: var(--olive); }
.band:nth-child(even) { background: rgba(201, 184, 163, 0.16); }

.hero-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem);
}

.hero-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  color: var(--rust);
  line-height: 1.1;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--olive);
  text-transform: uppercase;
}

/* ============================================================
   SECTION LABEL — boxed-band motif reused as structural device
   ============================================================ */
.section-label {
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  padding: clamp(1.1rem, 3vw, 1.8rem) 0;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.label-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.4rem;
}
.label-band {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--faith-black);
}
.section-label--dark { border-color: var(--olive); }
.section-label--dark .label-band { color: var(--cream); }
.section-label--dark .label-tag { color: var(--gold); }

/* ============================================================
   SHOP — lookbook grid
   ============================================================ */
.shop {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
}

.shop-intro {
  max-width: 46ch;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--olive);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--cream-deep);
  border: var(--hairline);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}

.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream-deep);
}
.product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}
.product-img--back { opacity: 0; }

.product-flag {
  position: absolute;
  left: 0; bottom: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--faith-black);
  padding: 0.35rem 0.7rem;
  z-index: 2;
}

.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.4rem;
  border-top: var(--hairline);
}
.product-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.product-price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--olive);
  white-space: nowrap;
}

.shopify-target { padding: 0 1.1rem; }
.shopify-target:empty { display: none; }

.buy-btn {
  margin: 0.7rem 1.1rem 1.1rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--faith-black);
  border: 1px solid var(--faith-black);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), letter-spacing 0.3s var(--ease);
}
.buy-btn:hover {
  background: var(--rust);
  border-color: var(--rust);
  letter-spacing: 0.3em;
}
.buy-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Card hover: lift + image swap */
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 40px -24px rgba(21, 19, 15, 0.45);
  }
  .product-card:hover .product-img--front { opacity: 0; transform: scale(1.04); }
  .product-card:hover .product-img--back { opacity: 1; transform: scale(1.04); }
  /* cards with no back image: gentle zoom on the single mockup */
  .product-card:hover .product-img--front:only-of-type { opacity: 1; }
}

/* ============================================================
   BRAND STORY — Faith Black / Cream
   ============================================================ */
.story {
  background: var(--faith-black);
  color: var(--cream);
  position: relative;
  border-top: 1px solid var(--black-line);
}
.story::before {
  /* subtle grain/atmosphere, fixed & non-interactive */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(168, 81, 46, 0.10), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(92, 90, 65, 0.18), transparent 60%);
  pointer-events: none;
}
.story-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.2rem, 5vw, 3rem);
}
.story-lede {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  line-height: 1.18;
  color: var(--desert-stone);
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
}
.story-body p {
  font-family: var(--font-mono);
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  line-height: 1.85;
  color: var(--cream);
  margin-bottom: 1.5rem;
  max-width: 62ch;
}
.story-accent {
  font-family: var(--font-accent) !important;
  font-style: italic;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem) !important;
  line-height: 1.4 !important;
  color: var(--gold) !important;
  border-left: 2px solid var(--rust);
  padding-left: 1.2rem;
}
.story-sign {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--revival-grey);
}

/* ============================================================
   EMAIL SIGNUP
   ============================================================ */
.drops {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
}
.drops-sub {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--olive);
  max-width: 44ch;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}

.signup-form { max-width: 620px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--revival-grey);
  margin-bottom: 0.7rem;
}
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 2px solid var(--faith-black);
  padding-bottom: 0.5rem;
}
.email-input {
  flex: 1 1 240px;
  min-width: 0;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--faith-black);
  padding: 0.5rem 0.2rem;
}
.email-input::placeholder { color: var(--revival-grey); }
.email-input:focus { outline: none; }
.email-input:focus-visible { outline: none; }

.signup-btn {
  flex: 0 0 auto;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faith-black);
  background: var(--gold);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.signup-btn:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--cream);
}
.signup-btn:focus-visible { outline: 2px solid var(--faith-black); outline-offset: 2px; }

.form-status {
  min-height: 1.2rem;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--olive);
}
.form-status.is-error { color: var(--rust); }
.form-status.is-success { color: var(--olive); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--faith-black);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.2rem, 5vw, 3rem) 2.5rem;
  border-top: 1px solid var(--black-line);
  text-align: center;
}
.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 7rem);
  letter-spacing: 0.08em;
  line-height: 1;
}
.footer-statement {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  letter-spacing: 0.5em;
  color: var(--desert-stone);
  margin: 1rem 0 2.5rem;
  text-indent: 0.5em;
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.footer-social a {
  color: var(--revival-grey);
  transition: color 0.3s var(--ease);
}
.footer-social a:hover { color: var(--gold); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  padding-top: 1.8rem;
  border-top: 1px solid var(--black-line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--revival-grey);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* stagger product cards as the grid scrolls in */
.product-card { transition-delay: calc(var(--i, 0) * 70ms); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .site-nav { gap: 1rem; font-size: 0.66rem; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-footer { flex-direction: column; align-items: flex-start; }
  .field-row { flex-direction: column; align-items: stretch; }
  .signup-btn { width: 100%; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}
