/* Mohawk Souvenirs theme. Loads after styles.css and replaces the Wolfpack look.
   Colours and type come from the old Mohawk Souvenirs site. The scroll effects
   on the home page follow the reference site AJ picked (Outten Golden). */

:root {
  --bg: #F8F6F2;
  --surface: #FAF8F5;
  --soft: #EEECE7;
  --text: #2C2826;
  --muted: #6B6460;
  --line: #E2DDD5;
  --night: #2C2826;
  --night-dark: #1E1B19;
  --accent: #A34B29;
  --accent-dark: #833B1F;
  --on-accent: #FFFFFF;
  --gold: #C0702A;
  --gold-soft: #F1E4D6;
  --link: #A34B29;
  --cream: #F8F6F2;
  --sand: #EFE6DA;
  --sage: #E6E4DC;
  --ice: #EEECE7;
  --photo: #EEECE7;
  --radius: 4px;
  --radius-small: 3px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --display: var(--serif);
}

body { font-family: "Albert Sans", "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); transition: background-color 0.6s ease; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.eyebrow { color: var(--gold); letter-spacing: 0.22em; font-weight: 600; font-size: 0.74rem; }

/* Buttons: squared, quiet */
.btn { border-radius: var(--radius-small); background: var(--accent); border-color: var(--accent); font-weight: 600; letter-spacing: 0.01em; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline, .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-small); }
.btn-outline:hover, .btn-ghost:hover { background: var(--soft); color: var(--text); }
.btn.added { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Announcement bar: one slow scrolling line */
.topbar { background: var(--night); border: 0; color: #F8F6F2; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { white-space: nowrap; padding: 9px 28px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.marquee span::before { content: "\2726"; color: var(--gold); margin-right: 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* Header: light and translucent instead of the navy band */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 246, 242, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-main { background: transparent; }
.logo-stack { display: flex; flex-direction: column; line-height: 1; color: var(--text); }
.logo-stack .logo-name { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: -0.01em; }
.logo-stack .logo-sub { font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-top: 3px; font-weight: 600; }
.site-footer .logo-stack { color: #F8F6F2; }
.search input { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); }
.search button { background: transparent; color: var(--text); border-radius: var(--radius-small); }
.basket-link { color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-small); }
.basket-link:hover { background: var(--soft); color: var(--text); }
.basket-count { background: var(--accent); color: #fff; }
.cat-nav { background: transparent; border-bottom: 0; border-top: 1px solid var(--line); }
.cat-nav a { color: var(--text); font-weight: 500; font-size: 0.9rem; }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); }

/* Product cards: big photos, name and price under a thin rule */
.card-photo { border-radius: var(--radius); border: 0; background: var(--soft); }
.card-photo:hover { box-shadow: none; }
.card-img.product-photo { object-fit: cover; padding: 0; aspect-ratio: 4 / 5; transition: transform 0.6s ease; }
.card-photo:hover .card-img { transform: scale(1.04); }
.product-img.product-photo { object-fit: cover; padding: 0; }
.card-body { padding: 14px 0 0; border-top: 1px solid var(--gold-soft); margin-top: 12px; }
.card-name { font-family: var(--serif); font-size: 1.15rem; }
.card-name strong { font-weight: 400; color: var(--text); }
.price, .product-price { font-family: var(--serif); font-weight: 400; color: var(--text); }
.card-cat { color: var(--gold); letter-spacing: 0.18em; font-weight: 600; font-size: 0.7rem; }
.btn-small { border-radius: var(--radius-small); }

/* Footer: dark brown */
.site-footer { background: var(--night); }
.footer-col h3 { font-family: "Albert Sans", Arial, sans-serif; font-size: 0.72rem; letter-spacing: 0.22em; border-bottom: 0; color: var(--gold); }

/* ===== Home page ===== */

/* 1. Hero: headline, then the photo rises over it and opens to full width */
.hero-stage { position: relative; height: 230vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.hero-copy { text-align: center; padding: 14vh 16px 0; max-width: 920px; opacity: calc(1 - var(--p, 0) * 1.6); transform: translateY(calc(var(--p, 0) * -40px)); }
.hero-copy h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; margin: 10px 0 18px; }
.hero-copy .hero-lead { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin: 0 auto 24px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-photo {
  position: absolute; left: 50%; bottom: 0;
  width: calc(66% + var(--p, 0) * 34%); height: calc(46vh + var(--p, 0) * 54vh);
  transform: translate(-50%, calc((1 - var(--p, 0)) * 22vh));
  border-radius: calc((1 - var(--p, 0)) * 28px); overflow: hidden;
  background: url("images/banner-dreamcatcher-detail.jpg") center / cover no-repeat;
  will-change: width, height, transform;
}
@media (max-width: 700px) { .hero-photo { width: calc(88% + var(--p, 0) * 12%); } .hero-copy { padding-top: 9vh; } }

/* 2. Paragraph that darkens word by word */
.reveal-band { padding: 110px 0 120px; }
.reveal-text { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.25; max-width: 1060px; margin: 0; }
.reveal-text .w { color: rgba(44, 40, 38, 0.18); transition: color 0.25s ease; }
.reveal-text .w.on { color: var(--text); }

/* 3. Sections ease in */
.fade-up { opacity: 0; transform: translateY(36px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; } .hero-stage { height: auto; } .hero-sticky { position: relative; height: auto; padding-bottom: 40px; } .hero-photo { position: relative; left: auto; transform: none; width: 92%; height: 50vh; margin: 30px auto 0; border-radius: 12px; } }

.home-section { padding: 90px 0; }
.home-section h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; margin: 6px 0 12px; }
.home-section .section-lead { color: var(--muted); max-width: 640px; font-size: 1.05rem; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.split-head a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.grid-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 900px) { .grid-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; } }

/* Bordered category grid */
.craft-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 640px) { .craft-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .craft-grid { grid-template-columns: repeat(3, 1fr); } }
.craft { display: block; padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background-color 0.3s ease; }
.craft:hover { background: var(--surface); color: var(--text); }
.craft-count { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.craft h3 { font-size: 1.8rem; margin: 10px 0 6px; }
.craft p { color: var(--muted); margin: 0 0 16px; }
.craft-enter { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* Maker band: dark, communities listed */
.maker-band { color: #F1ECE4; }
.maker-band h2 { color: #F8F6F2; max-width: 760px; }
.maker-band .section-lead { color: rgba(241, 236, 228, 0.78); }
.community-list { display: grid; gap: 0; margin-top: 44px; border-top: 1px solid rgba(241, 236, 228, 0.2); }
@media (min-width: 820px) { .community-list { grid-template-columns: repeat(4, 1fr); } }
.community { padding: 24px 0; border-bottom: 1px solid rgba(241, 236, 228, 0.2); }
@media (min-width: 820px) { .community { padding: 28px 24px 28px 0; border-bottom: 0; } }
.community h3 { font-size: 1.5rem; color: #F8F6F2; margin-bottom: 6px; }
.community p { margin: 0; color: rgba(241, 236, 228, 0.7); font-size: 0.92rem; }

.how { background: transparent; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { background: var(--accent); color: #fff; font-family: var(--serif); }

/* ===== Home page, Era Residence layer ===== */

/* Header floats over the opener, then turns solid once you scroll */
body[data-page="home"] .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color 0.4s ease, border-color 0.4s ease; }
body[data-page="home"] .site-header .cat-nav { display: none; }
body[data-page="home"]:not(.scrolled) .site-header .logo-stack,
body[data-page="home"]:not(.scrolled) .site-header .basket-link { color: #fff; border-color: rgba(255,255,255,0.5); }
body[data-page="home"]:not(.scrolled) .site-header .logo-sub { color: #F3D9BF; }
body[data-page="home"]:not(.scrolled) .site-header .search input { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); color: #fff; }
body[data-page="home"]:not(.scrolled) .site-header .search input::placeholder { color: rgba(255,255,255,0.8); }
body[data-page="home"]:not(.scrolled) .site-header .search button { color: #fff; }
body[data-page="home"].scrolled .site-header { background: rgba(248, 246, 242, 0.94); border-color: var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body[data-page="home"] .topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 51; }
body[data-page="home"] .site-header { top: 33px; }

/* Rotating ring badge beside the name */
.logo-ring { width: 52px; height: 52px; flex: none; animation: spin 24s linear infinite; }
.logo-ring text { font-size: 10.5px; letter-spacing: 3.2px; text-transform: uppercase; fill: currentColor; font-family: "Albert Sans", Arial, sans-serif; font-weight: 600; }
.logo-ring .ring-star { fill: var(--gold); }
.logo { display: inline-flex; align-items: center; gap: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .logo-ring { animation: none; } }
@media (max-width: 600px) { .logo-ring { width: 40px; height: 40px; } }

/* 1. Opener: full screen photo, giant name, script word, split line */
.opener { position: relative; height: 100vh; min-height: 560px; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; }
.opener-bg { position: absolute; inset: -6% 0 0; background-size: cover; background-position: center; transform: scale(calc(1.08 + var(--o, 0) * 0.12)) translateY(calc(var(--o, 0) * 8%)); will-change: transform; }
.opener-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,27,25,0.45) 0%, rgba(30,27,25,0.15) 40%, rgba(30,27,25,0.55) 100%); }
.opener-inner { position: relative; text-align: center; padding: 0 16px; opacity: calc(1 - var(--o, 0) * 1.4); }
.opener-title { margin: 0; line-height: 0.86; font-weight: 300; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(4rem, 15vw, 13rem); display: flex; flex-direction: column; align-items: center; }
.opener-script { font-family: "Pinyon Script", "Snell Roundhand", cursive; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.42em; line-height: 1; margin-top: -0.12em; color: #F3D9BF; }
.opener-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; margin: 34px auto 0; max-width: 1000px; font-family: var(--serif); text-transform: uppercase; font-size: clamp(1rem, 2.2vw, 1.6rem); letter-spacing: 0.06em; }
.opener-line span:first-child { text-align: right; }
.opener-line span:last-child { text-align: left; }
.opener-mid { font-family: "Albert Sans", Arial, sans-serif; font-size: 0.62rem; letter-spacing: 0.3em; display: flex; align-items: center; gap: 10px; }
.opener-mid::before, .opener-mid::after { content: ""; width: 38px; height: 1px; background: rgba(255,255,255,0.6); }
@media (max-width: 640px) { .opener-line { grid-template-columns: 1fr; gap: 8px; } .opener-line span:first-child, .opener-line span:last-child { text-align: center; } }
.opener-cta { position: absolute; bottom: 8vh; left: 50%; transform: translateX(-50%); width: 132px; height: 132px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; text-decoration: none; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; transition: background-color 0.3s ease; }
.opener-cta span { max-width: 90px; }
.opener-cta:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Letters rise one by one */
.split-letters .l { display: inline-block; opacity: 0; transform: translateY(0.5em); transition: opacity 0.6s ease, transform 0.6s ease; }
.split-letters.in .l { opacity: 1; transform: none; }
.split-letters .sp { display: inline-block; width: 0.26em; }

/* 2. tweak: headline is an h2 now */
.hero-title { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; margin: 10px 0 18px; }

/* 3. Reveal band sits on a faded birch photo */
.reveal-band { position: relative; overflow: hidden; }
.reveal-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.16; filter: grayscale(0.3); }
.reveal-inner { position: relative; }

/* 5. Arch rising over a full bleed photo */
.arch-stage { position: relative; padding-top: 70vh; overflow: hidden; }
.arch-photo { position: absolute; inset: 0 0 auto; height: 110vh; background-size: cover; background-position: center; transform: translateY(calc(var(--a, 0) * -10%)); }
.arch { position: relative; background: var(--bg); border-radius: 50% 50% 0 0 / calc(220px - var(--a, 0) * 200px) calc(220px - var(--a, 0) * 200px) 0 0; margin: 0 calc((1 - var(--a, 0)) * 8vw); padding: 40px 0 90px; transition: margin 0.1s linear; }
.arch-words { display: block; width: min(900px, 92%); margin: -10px auto 10px; overflow: visible; }
.arch-words text { font-family: var(--serif); font-size: 62px; letter-spacing: 6px; text-transform: uppercase; fill: var(--text); }
@media (max-width: 640px) { .arch-words text { font-size: 86px; } .arch-stage { padding-top: 55vh; } }

/* 6 and 7. Full bleed photo bands */
.photo-band { position: relative; overflow: hidden; padding: 140px 0; }
.band-bg { position: absolute; inset: -12% 0; background-size: cover; background-position: center; transform: translateY(calc(var(--b, 0) * 10%)); will-change: transform; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,27,25,0.82), rgba(30,27,25,0.62)); }
.band-shade.light { background: linear-gradient(180deg, rgba(248,246,242,0.78), rgba(248,246,242,0.9)); }
.band-inner { position: relative; }
.photo-band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; margin: 6px 0 12px; }
.maker-band .eyebrow { color: #F3C9A0; }
.band-script { font-size: clamp(2rem, 4vw, 3rem); color: #F3D9BF; margin: 8px 0 0; }
.how-band .steps { margin-top: 28px; }

/* Left scroll rail with section number */
.scroll-rail { position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text); mix-blend-mode: difference; filter: invert(1); }
.rail-num { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; }
.rail-line { width: 1px; height: 160px; background: rgba(44,40,38,0.25); position: relative; overflow: hidden; }
.rail-line span { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: currentColor; }
.rail-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; }
@media (max-width: 900px) { .scroll-rail { display: none; } }

/* Fixes after first check */
.split-letters .wd { display: inline-block; white-space: nowrap; }
body[data-page="home"]:not(.scrolled) .site-header .search { background: transparent; }
@media (max-width: 899px) { .hero-copy { padding-top: 150px; } body[data-page="home"] .site-header .search { display: none; } }
.search { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); }
.search input, body[data-page="home"]:not(.scrolled) .site-header .search input { background: transparent; border: 0; }
body[data-page="home"]:not(.scrolled) .site-header .search { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.45); }

/* 2. Sliding strip of pieces (replaces the growing dreamcatcher photo) */
.slide-stage { position: relative; height: 320vh; }
.slide-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(280px, 30%) 1fr; align-items: center; gap: 40px; padding-left: max(48px, 4vw); }
.slide-head .hero-title { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.slide-head .hero-lead { color: var(--muted); max-width: 420px; margin-bottom: 24px; }
.slide-track { display: flex; gap: 22px; will-change: transform; padding-top: 60px; }
.slide { flex: none; width: clamp(240px, 24vw, 340px); color: var(--text); text-decoration: none; }
.slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; transition: transform 0.6s ease; }
.slide:nth-child(even) { margin-top: 70px; }
.slide:hover img { transform: scale(1.03); }
.slide-cap { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-top: 12px; border-top: 1px solid var(--gold-soft); margin-top: 12px; }
.slide-cat { grid-column: 1 / -1; color: var(--gold); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.slide-name, .slide-price { font-family: var(--serif); font-size: 1.1rem; }
@media (max-width: 899px) {
  .slide-stage { height: 260vh; }
  .slide-sticky { grid-template-columns: 1fr; align-content: start; gap: 18px; padding: 130px 0 0 16px; }
  .slide-head .hero-title { font-size: 2.3rem; margin: 6px 0 10px; }
  .slide-head .hero-lead { font-size: 0.95rem; margin-bottom: 14px; }
  .slide-track { padding-top: 0; }
  .slide { width: 62vw; }
  .slide:nth-child(even) { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { .slide-stage { height: auto; } .slide-sticky { position: relative; height: auto; padding-bottom: 40px; } .slide-track { overflow-x: auto; } }
/* Strip fixes: headline stays on top, the strip slides underneath it */
.slide-sticky { grid-template-columns: minmax(300px, 34%) minmax(0, 1fr); }
.slide-head { position: relative; z-index: 2; background: var(--bg); align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-right: 32px; box-shadow: 40px 0 40px -10px var(--bg); }
.slide-head .hero-title { font-size: clamp(2.2rem, 3.6vw, 3.6rem); }
.slide-track { min-width: 0; }
@media (max-width: 899px) {
  .slide-sticky { grid-template-columns: minmax(0, 1fr); }
  .slide-head { align-self: auto; box-shadow: none; padding-right: 16px; }
  .slide-head .hero-title { font-size: 2.1rem; }
}
@media (min-width: 900px) { .slide-head { margin-left: calc(-1 * max(48px, 4vw)); padding-left: max(48px, 4vw); } }

/* Shopify merchant badge in the footer (AJ, 6 Nov): official Shopify bag mark */
.merchant-badge { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 4px 11px; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; font-size: 0.8rem; color: #fff; }
.merchant-badge svg { color: #95BF47; flex: none; }
