/*
Theme Name: Doua Bado
Theme URI: https://doua-bado-digital.lovable.app
Author: Doua Bado
Author URI: https://doua-bado-digital.lovable.app
Description: Ultra-premium one-page theme for the DOUA BADO luxury streetwear cap label. Warm off-white editorial hero, oversized display typography, sticky dark product storytelling and a Drop 01 product grid.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doua-bado
Tags: one-column, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-width-template, translation-ready
*/

/* ---------------------------------------------------------------
   1. Tokens
--------------------------------------------------------------- */
:root {
  --ink: #14141a;
  --bone: #f6f5f1;
  --hero: #f3f0e9;
  --wash: #7aa7d8;
  --border: rgba(20, 20, 26, 0.14);
  --muted: #6b6b74;
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------
   2. Reset / base
--------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--ink);
  color: var(--bone);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  clip: auto;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bone);
}

/* ---------------------------------------------------------------
   3. Type utilities
--------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.625rem;
  font-weight: 500;
}

.muted {
  color: var(--muted);
}

.btn-ink,
.btn-bone,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 1.15rem 2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.4s var(--ease),
    background 0.3s ease,
    color 0.3s ease;
}

.btn-ink {
  background: var(--ink);
  color: var(--bone);
}

.btn-bone {
  background: var(--bone);
  color: var(--ink);
}

.btn-outline {
  border-color: var(--border);
  color: var(--ink);
}

.btn-ink:hover,
.btn-bone:hover {
  transform: translateY(-2px);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bone);
}

/* ---------------------------------------------------------------
   4. Sections / grain
--------------------------------------------------------------- */
.section {
  padding: 4rem 1.25rem;
}

.section--dark {
  background: var(--ink);
  color: var(--bone);
}

.section--soft {
  background: #eceae4;
}

.grain {
  position: relative;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(20, 20, 26, 0.4) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------
   5. Site header (solid ink bar, bone type)
--------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--ink);
  color: var(--bone);
}

.site-header a,
.site-header button {
  color: var(--bone);
}

.site-brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
}

.site-brand img {
  max-height: 22px;
  width: auto;
}

.site-nav ul {
  display: none;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
}

.nav-toggle {
  background: none;
  border: 1px solid rgba(246, 245, 241, 0.35);
  padding: 0.5rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  background: var(--ink);
  color: var(--bone);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.mobile-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 2.5rem;
  line-height: 1;
}

.mobile-nav .nav-close {
  align-self: flex-end;
  background: none;
  border: 0;
  color: var(--bone);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.625rem;
  cursor: pointer;
}

/* ---------------------------------------------------------------
   6. HERO — off-white, never dimmed while scrolling.
   Layering: background < typography < cap < UI.
--------------------------------------------------------------- */
.hero {
  position: relative;
  height: 175vh;
  background: var(--hero);
  color: var(--ink);
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--hero);
}

.hero__inner {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 1.5rem;
}

.hero__type {
  position: absolute;
  left: 0;
  right: 0;
  top: 13vh;
  z-index: 1;
  text-align: center;
  font-size: 30vw;
  line-height: 0.86;
  letter-spacing: 0.04em;
  word-spacing: 0.04em;
  color: var(--ink);
  pointer-events: none;
  will-change: transform;
}

.hero__cap {
  position: relative;
  z-index: 10;
  margin: -6vh auto 1vh;
  width: 110vw;
  max-width: none;
  height: 52vh;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.25));
  will-change: transform;
}

.hero__cap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__meta {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
}

.hero__meta p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  max-width: 18rem;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.6;
}

.hero__scroll-rail {
  position: relative;
  display: block;
  width: 1px;
  height: 2.5rem;
  overflow: hidden;
  background: rgba(20, 20, 26, 0.25);
}

.hero__scroll-rail span {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1rem;
  background: var(--ink);
}

/* Entrance */
@keyframes db-type-rise {
  from {
    transform: translateY(14%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes db-cap-settle {
  from {
    transform: scale(1.08);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes db-soft-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.enter-type {
  animation: db-type-rise 1s var(--ease) both;
}

.enter-cap {
  animation: db-cap-settle 0.9s var(--ease) 0.12s both;
}

.enter-nav {
  animation: db-soft-fade 0.7s ease-out 0.62s both;
}

.enter-meta {
  animation: db-soft-fade 0.8s ease-out 0.8s both;
}

/* ---------------------------------------------------------------
   7. Sticky product moments (dark section scrolls up from below)
--------------------------------------------------------------- */
.moments {
  position: relative;
  height: 300vh;
  background: var(--ink);
  color: var(--bone);
}

.moments__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.moments__grid {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
}

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

.moments__media img {
  width: 94vw;
  max-width: 620px;
  height: 38vh;
  object-fit: contain;
}

.moments__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.25rem 2.5rem;
}

.moments__copy h2 {
  font-size: 14vw;
  margin: 0.75rem 0 0;
  white-space: pre-line;
}

.moments__copy .eyebrow {
  color: var(--wash);
}

.moments__copy p {
  max-width: 24rem;
  font-size: 0.875rem;
  opacity: 0.7;
}

.moments__bars {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
}

.moments__bars span {
  width: 2.5rem;
  height: 2px;
  background: rgba(246, 245, 241, 0.2);
  transition: background 0.3s ease;
}

.moments__bars span.is-on {
  background: var(--bone);
}

/* Film-cut between angles: one image visible at a time */
@keyframes db-cut-in {
  from {
    transform: scale(1.04);
    filter: blur(9px);
    opacity: 0.55;
  }
  to {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
  }
}

.cut-in {
  animation: db-cut-in 230ms var(--ease) both;
}

.cut-out {
  transform: scale(0.96);
  filter: blur(7px);
  opacity: 0.6;
  transition:
    transform 130ms cubic-bezier(0.4, 0, 1, 1),
    filter 130ms linear,
    opacity 130ms linear;
}

/* ---------------------------------------------------------------
   8. Drop grid / product cards
--------------------------------------------------------------- */
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section__head h2 {
  font-size: 16vw;
  line-height: 0.8;
}

.product-grid {
  display: grid;
  gap: 3rem;
  margin-top: 2.5rem;
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eceae4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__media img {
  width: 86%;
  transition: transform 0.7s var(--ease);
}

.product-card:hover .product-card__media img,
.product-card:focus-within .product-card__media img {
  transform: translateY(-14px) rotate(-2.5deg) scale(1.05);
}

.product-card__cta {
  position: absolute;
  inset: auto 0 1rem 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s var(--ease);
}

.product-card:hover .product-card__cta,
.product-card:focus-within .product-card__cta {
  opacity: 1;
  transform: none;
}

.product-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.product-card__foot h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.75rem;
  margin: 0;
}

/* ---------------------------------------------------------------
   9. Details, brand moment, editorial, marquee, signup
--------------------------------------------------------------- */
.detail-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.detail-grid figure {
  margin: 0;
}

.detail-grid .frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bone);
}

.detail-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.detail-grid figure:hover img {
  transform: scale(1.05);
}

.detail-grid figcaption {
  margin-top: 0.75rem;
}

.brand-moment {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 85vh;
  padding: 0 1.25rem;
  background: var(--ink);
  color: var(--bone);
  text-align: center;
}

.brand-moment h2 {
  font-size: 16vw;
  line-height: 0.82;
}

.brand-moment img {
  position: absolute;
  bottom: -4vh;
  left: 50%;
  width: 86vw;
  max-width: 560px;
  transform: translateX(-50%);
  pointer-events: none;
}

.statement {
  max-width: 56rem;
  margin: 0 auto;
}

.statement p {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 8.5vw;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}

.marquee {
  overflow: hidden;
  padding: 1.25rem 0;
  background: var(--ink);
  color: var(--bone);
  border-top: 1px solid rgba(246, 245, 241, 0.12);
  border-bottom: 1px solid rgba(246, 245, 241, 0.12);
}

.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  animation: db-marquee 32s linear infinite;
  will-change: transform;
}

.marquee__track span {
  padding: 0 2rem;
}

@keyframes db-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.signup {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.signup h2 {
  font-size: 14vw;
  line-height: 0.85;
}

.signup form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 2rem auto 0;
}

.signup input[type="email"] {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bone);
  padding: 1rem;
  font: inherit;
  font-size: 0.875rem;
  outline: none;
}

.signup input[type="email"]:focus {
  border-color: var(--ink);
}

/* ---------------------------------------------------------------
   10. Footer
--------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 3rem 1.25rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

.site-footer h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 3rem;
  margin: 0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 245, 241, 0.14);
  opacity: 0.6;
}

/* ---------------------------------------------------------------
   11. Editor / fallback content styles
--------------------------------------------------------------- */
.entry-content {
  max-width: 46rem;
  margin: 0 auto;
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.alignwide {
  max-width: 72rem;
}

.alignfull {
  max-width: none;
}

.wp-caption,
.gallery-caption,
.sticky,
.bypostauthor {
  /* required by the WordPress theme review guidelines */
  display: block;
}

/* ---------------------------------------------------------------
   12. Responsive
--------------------------------------------------------------- */
@media (min-width: 768px) {
  .section {
    padding: 8rem 2.5rem;
  }

  .site-header {
    padding: 1.25rem 2.5rem;
  }

  .site-nav ul {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero__type {
    top: 15vh;
    font-size: 19vw;
    white-space: nowrap;
  }

  .hero__type br {
    display: none;
  }

  .hero__cap {
    margin: 0 auto;
    width: 64vw;
    max-width: 760px;
    height: 60vh;
  }

  .hero__meta {
    padding: 0 2.5rem;
  }

  .moments__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .moments__media img {
    height: 62vh;
  }

  .moments__copy {
    padding: 0 3.5rem;
  }

  .moments__copy h2 {
    font-size: 6vw;
  }

  .section__head h2 {
    font-size: 8vw;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
  }

  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4rem;
  }

  .brand-moment h2 {
    font-size: 9vw;
  }

  .statement p {
    font-size: 3.4vw;
  }

  .signup h2 {
    font-size: 6vw;
  }

  .signup form {
    flex-direction: row;
  }

  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

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

  .marquee__track,
  .enter-type,
  .enter-cap,
  .enter-nav,
  .enter-meta,
  .cut-in {
    animation: none;
  }

  .cut-out {
    transition: none;
    filter: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
