/*
Theme Name: JUVYRI
Theme URI: https://github.com/jamena4u/JUVYRI
Author: JUVYRI
Description: Custom theme for the JUVYRI marketing site — a warm, editorial, animated one-page design for a Ghanaian modest ready-to-wear brand. Content (products, lookbook, testimonials, events, Instagram grid, hero copy, stats, footer) is managed entirely from wp-admin via custom post types and Advanced Custom Fields (free version) — no code edits needed for day-to-day updates.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Requires Plugins: advanced-custom-fields
Text Domain: juvyri
*/

/* ============ JUVYRI — Design Tokens ============ */
:root {
  --ink: #1b1512;
  --ink-soft: #3a322c;
  --cream: #f7f1e6;
  --cream-2: #efe4d2;
  --paper: #fffcf6;
  --rust: #a8552c;
  --rust-dark: #7c3e20;
  --gold: #b98a4e;
  --line: rgba(27, 21, 18, 0.12);

  --font-display: "Bodoni Moda", "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1220px;
  --header-h: 76px;
  --ease: cubic-bezier(.16,.8,.24,1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.visually-hidden, .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 4px; z-index: 999; transition: top .25s var(--ease); }
.skip-link:focus { top: 12px; }

/* ============ Marquee bar ============ */
.marquee-bar { background: var(--ink); color: var(--cream); overflow: hidden; white-space: nowrap; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 9px 0; }
.marquee-bar.marquee-alt { background: var(--rust); color: var(--paper); font-family: var(--font-display); font-size: .8rem; letter-spacing: .06em; padding: 14px 0; }
.marquee-track { display: inline-flex; gap: 2.2em; padding-left: 2.2em; animation: marquee 26s linear infinite; width: max-content; }
.marquee-alt .marquee-track { animation-duration: 34s; animation-direction: reverse; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Header ============ */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(247, 241, 230, .88); backdrop-filter: blur(10px); transition: background .3s var(--ease); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(27,21,18,.06); }
.header-inner { max-width: var(--container); margin: 0 auto; height: var(--header-h); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .3s var(--ease); }
.site-header.scrolled .header-inner { height: 62px; }

.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: .01em; color: var(--ink); }
.logo-text span { color: var(--rust); }
.logo img { max-height: 44px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 34px; }
.primary-nav ul { display: flex; gap: 30px; }
.primary-nav a:not(.icon-link) { position: relative; font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 0; }
.primary-nav a:not(.icon-link)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--rust); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.primary-nav a:not(.icon-link):hover::after, .primary-nav a:not(.icon-link):focus-visible::after { transform: scaleX(1); transform-origin: left; }

.icon-link { display: inline-flex; color: var(--ink); transition: color .25s, transform .25s; }
.icon-link:hover { color: var(--rust); transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; z-index: 120; }
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s 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); }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; border: 1px solid transparent; position: relative; overflow: hidden; transition: color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-101%); transition: transform .4s var(--ease); z-index: -1; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary::before { background: var(--rust); }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover::before { transform: translateX(0); }
.btn-ghost:hover { color: var(--cream); transform: translateY(-2px); }
.btn-outline { color: var(--ink); border-color: var(--line); background: var(--paper); }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover::before { transform: translateX(0); }
.btn-outline:hover { color: var(--cream); transform: translateY(-2px); }

/* ============ Hero ============ */
.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px 24px 60px; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-gradient { position: absolute; inset: 0; background: radial-gradient(60% 55% at 20% 15%, rgba(168,85,44,.28), transparent 60%), radial-gradient(55% 50% at 85% 80%, rgba(185,138,78,.28), transparent 60%), linear-gradient(160deg, var(--cream-2), var(--cream) 60%); animation: driftGradient 18s ease-in-out infinite alternate; }
@keyframes driftGradient { from { filter: hue-rotate(0deg) saturate(1); } to { filter: hue-rotate(-6deg) saturate(1.15); } }
.hero-texture { position: absolute; inset: 0; opacity: .5; background-image: repeating-linear-gradient(115deg, rgba(27,21,18,.035) 0 2px, transparent 2px 26px); }

.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rust-dark); margin-bottom: 14px; font-weight: 500; }
.hero-title { font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.02; font-weight: 700; margin: 0 0 22px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-sub { max-width: 560px; margin: 0 auto 34px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-soft); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--ink); border-radius: 20px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--rust); animation: scrollDot 1.8s ease infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ============ Reveal-on-scroll ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * .12s); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-title .line.is-visible { animation: none; }

/* ============ Sections ============ */
.section { max-width: var(--container); margin: 0 auto; padding: 110px 24px; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 14px; }
.section-lede { color: var(--ink-soft); font-size: 1.02rem; }
.section-cta { text-align: center; margin-top: 48px; }

/* Fabric-inspired placeholder swatches (used until real photos are uploaded) */
.swatch-1 { background: linear-gradient(150deg,#caa06c,#8a4a2a 70%); }
.swatch-2 { background: linear-gradient(150deg,#e7cba3,#a8552c 75%); }
.swatch-3 { background: linear-gradient(150deg,#d9c4a3,#5b4636 80%); }
.swatch-4 { background: linear-gradient(150deg,#c98b5e,#3a271c 75%); }
.swatch-5 { background: linear-gradient(150deg,#e3d3b8,#7c3e20 80%); }
.swatch-6 { background: linear-gradient(150deg,#b98a4e,#231a15 80%); }

/* ============ Product grid ============ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-card { position: relative; }
.product-media { aspect-ratio: 3/4; border-radius: 6px; position: relative; overflow: hidden; isolation: isolate; background-size: cover; background-position: center; }
.product-media::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(60deg, rgba(255,255,255,.06) 0 3px, transparent 3px 22px); transition: transform .6s var(--ease); }
.product-card:hover .product-media::after { transform: scale(1.15) rotate(3deg); }
.product-card:hover .product-media { box-shadow: 0 18px 34px rgba(27,21,18,.18); }
.product-media { transition: transform .5s var(--ease); }
.product-card:hover .product-media { transform: translateY(-6px); }
.product-tag { position: absolute; top: 14px; left: 14px; background: var(--paper); color: var(--ink); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.product-info { padding-top: 16px; text-align: left; }
.product-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.product-info p { margin: 0; color: var(--rust-dark); font-size: .92rem; }

/* ============ Story ============ */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.story-media { position: relative; }
.story-swatch { aspect-ratio: 4/5; border-radius: 10px; background: linear-gradient(150deg,#e7cba3,#7c3e20 75%); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.story-swatch::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(70deg, rgba(255,255,255,.07) 0 2px, transparent 2px 24px); }
.story-stat-card { position: absolute; bottom: -26px; right: -26px; background: var(--paper); border-radius: 10px; padding: 22px 26px; box-shadow: 0 20px 40px rgba(27,21,18,.14); text-align: center; animation: floatCard 6s ease-in-out infinite; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.story-copy p { color: var(--ink-soft); margin: 0 0 18px; max-width: 46ch; }
.story-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 20px; }
.stats { display: flex; gap: 40px; margin: 30px 0 34px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: var(--rust); }
.stat-label { font-size: .78rem; letter-spacing: .04em; color: var(--ink-soft); text-transform: uppercase; margin-top: 4px; }

/* ============ Lookbook ============ */
.look-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 20px; }
.look { margin: 0; position: relative; overflow: hidden; border-radius: 8px; }
.look-tall { grid-row: span 2; }
.look-media { position: absolute; inset: 0; transition: transform .6s var(--ease); background-size: cover; background-position: center; }
.look:hover .look-media { transform: scale(1.08) rotate(.5deg); }
.look figcaption { position: absolute; left: 16px; bottom: 14px; color: var(--paper); font-family: var(--font-display); font-size: 1.02rem; letter-spacing: .02em; opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.look::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 55%); opacity: 0; transition: opacity .35s var(--ease); }
.look:hover::after, .look:hover figcaption { opacity: 1; transform: translateY(0); }

/* ============ Instagram grid ============ */
.instagram-section { background: var(--cream-2); border-radius: 28px; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ig-tile { aspect-ratio: 1/1; border-radius: 8px; position: relative; overflow: hidden; transition: transform .4s var(--ease); background-size: cover; background-position: center; }
.ig-tile:hover { transform: translateY(-6px) scale(1.03); }
.ig-overlay { position: absolute; inset: 0; background: rgba(27,21,18,.45); color: var(--paper); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .85rem; opacity: 0; transition: opacity .3s var(--ease); }
.ig-tile:hover .ig-overlay { opacity: 1; }
.ig-follow { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-display); font-size: 1.05rem; }
.ig-follow small { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-size: .68rem; }

/* ============ Events ============ */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.event-card { background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(27,21,18,.06); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.event-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(27,21,18,.14); }
.event-media { aspect-ratio: 4/3; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.event-date-badge { position: absolute; top: 14px; left: 14px; background: var(--ink); color: var(--cream); border-radius: 8px; padding: 8px 12px; text-align: center; line-height: 1.1; }
.event-date-badge .day { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.event-date-badge .month { display: block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.event-body { padding: 22px 24px 26px; text-align: left; }
.event-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.event-location { font-size: .82rem; color: var(--rust-dark); letter-spacing: .03em; text-transform: uppercase; margin-bottom: 10px; }
.event-desc { color: var(--ink-soft); font-size: .92rem; margin-bottom: 16px; }

/* ============ Testimonials ============ */
.testimonial-carousel { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial-track { position: relative; min-height: 160px; }
.testimonial { position: absolute; inset: 0; margin: 0; padding: 0; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.testimonial.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.testimonial p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.5; margin-bottom: 18px; }
.testimonial cite { font-style: normal; color: var(--rust-dark); font-size: .85rem; letter-spacing: .04em; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.carousel-dots button.is-active { background: var(--rust); transform: scale(1.3); }

/* ============ Newsletter ============ */
.newsletter { background: var(--ink); color: var(--cream); padding: 100px 24px; text-align: center; }
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter h2 { color: var(--cream); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.newsletter p { color: rgba(247,241,230,.7); margin-bottom: 32px; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input { flex: 1; padding: 15px 20px; border-radius: 999px; border: 1px solid rgba(247,241,230,.25); background: rgba(247,241,230,.06); color: var(--cream); transition: border-color .25s, background .25s; }
.newsletter-form input::placeholder { color: rgba(247,241,230,.5); }
.newsletter-form input:focus { outline: none; border-color: var(--rust); background: rgba(247,241,230,.1); }
.form-message { min-height: 24px; margin-top: 16px; font-size: .88rem; color: var(--gold); }

/* ============ Footer ============ */
.site-footer { background: var(--cream-2); padding: 80px 24px 0; }
.footer-top { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer-logo { font-size: 1.9rem; }
.footer-brand p { color: var(--ink-soft); margin: 16px 0 22px; max-width: 32ch; }
.social-row { display: flex; gap: 14px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s, transform .25s; }
.social-row a:hover { background: var(--rust); color: var(--paper); transform: translateY(-3px); }
.footer-col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--ink-soft); font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--rust); }
.footer-bottom { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 26px 0; font-size: .82rem; color: var(--ink-soft); }
.back-to-top { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease), background .3s; }
.back-to-top:hover { background: var(--rust); transform: translateY(-4px); }

/* ============ Mobile nav drawer ============ */
.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(27, 21, 18, .45); opacity: 0; transition: opacity .4s var(--ease); z-index: 105; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-backdrop.is-open { display: block; opacity: 1; }
  .primary-nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 340px); height: 100vh; z-index: 110; background: var(--paper); flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px; gap: 44px; transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -20px 0 50px rgba(27,21,18,.15); }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; gap: 26px; }
  .primary-nav a:not(.icon-link) { font-size: 1.1rem; }
  .nav-ig { order: -1; }
  .site-header.scrolled .header-inner, .header-inner { height: 68px; }
  .story { grid-template-columns: 1fr; gap: 60px; }
  .story-stat-card { right: 16px; bottom: -20px; }
}

@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .look-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 76px 20px; }
  .hero { min-height: 86vh; padding: 76px 20px 50px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .stats { flex-wrap: wrap; gap: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: 1fr; }
  .marquee-bar.marquee-alt { font-size: .68rem; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero-gradient { animation: none; }
  .scroll-cue span { animation: none; }
  .story-stat-card { animation: none; }
  .reveal { transition: opacity .01s linear; transform: none; }
  .btn::before, .product-media, .look-media, .ig-tile { transition: none; }
}
