/* ===================================================================
   DII Stores — Home Page Hero & Tweak Variants
   Applied via body[data-*] attributes set by the Tweaks panel
   =================================================================== */

/* Anton (hero headline) is loaded with a <link> in the homepage <head> (faster than @import) */

/* Override the generic .hero so the new structure takes over */
.hero {
  position: relative;
  min-height: clamp(640px, 88vh, 880px);
  overflow: hidden;
  isolation: isolate;
  background: #0c1325;
  color: #fff;
  display: block;
}
.hero::before { content: none; } /* kill the legacy ::before overlay */

/* ----- Backdrop ----- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 50% 22%;
  filter: brightness(0.95) saturate(1.05) contrast(1.02);
  transition: filter .4s ease, transform .8s ease, object-position .4s ease;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.25) 16%, rgba(0,0,0,.08) 30%, rgba(0,0,0,0) 52%, rgba(0,0,0,.12) 80%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

/* ----- Content frame ----- */
.hero-frame {
  position: relative;
  z-index: 2;
  min-height: clamp(640px, 88vh, 880px);
  display: flex;
  align-items: center;
  padding: 120px 0 140px;
}
.hero-frame-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 64px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 36px;
  padding: 9px 18px 9px 14px;
  background: rgba(20, 30, 60, 0.55);
  border: 1px solid rgba(232, 218, 192, 0.35);
  backdrop-filter: blur(6px);
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--accent, var(--brick));
  border-radius: 50%;
  display: inline-block;
}

/* Headlines — only one visible at a time */
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 0.88;
  margin: 0 0 36px;
  text-transform: uppercase;
  color: #fff;
}
.hero-title .hl { display: none; flex-direction: column; gap: 4px; }
.hero-title .hl > span {
  display: block;
  font-size: clamp(64px, 11.5vw, 168px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.86;
}
.hero-title .hl > span:nth-child(2) {
  color: var(--accent, var(--brick));
  font-weight: 600;
}

/* Default headline shown */
body[data-headline="dii-stores"] .hero-title .hl-default,
body:not([data-headline]) .hero-title .hl-default { display: inline-flex; }
body[data-headline="since-1964"] .hero-title .hl-since { display: flex; }
body[data-headline="neighborhood"] .hero-title .hl-hood { display: flex; }

/* DII STORES — horizontal layout, sits up in the sky */
body[data-headline="dii-stores"] .hero-title .hl-default,
body:not([data-headline]) .hero-title .hl-default {
  flex-direction: row;
  gap: 0.4em;
  align-items: baseline;
  justify-content: center;
}
body[data-headline="dii-stores"] .hero-title .hl-default > span,
body:not([data-headline]) .hero-title .hl-default > span {
  font-family: 'Anton', 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 13vw, 184px);
  line-height: 1;
  letter-spacing: 0.005em;
  display: inline-block;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* Anchor hero content to the top so the headline lands in the sky */
body[data-headline="dii-stores"][data-hero-layout="photo"] .hero-frame,
body[data-headline="dii-stores"]:not([data-hero-layout]) .hero-frame,
body:not([data-headline]) .hero-frame {
  align-items: flex-start;
  padding-top: clamp(40px, 5vh, 72px);
}
body[data-headline="dii-stores"][data-hero-layout="photo"] .hero-frame-inner,
body[data-headline="dii-stores"]:not([data-hero-layout]) .hero-frame-inner,
body:not([data-headline]) .hero-frame-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateX(-3%);
}
body[data-headline="dii-stores"][data-hero-layout="photo"] .hero-title,
body[data-headline="dii-stores"]:not([data-hero-layout]) .hero-title,
body:not([data-headline]) .hero-title {
  margin: 0 0 24px;
}

/* Push CTAs below the storefront's DII sign */
body[data-headline="dii-stores"] .hero-actions,
body:not([data-headline]) .hero-actions {
  margin-top: clamp(160px, 26vh, 320px);
}

/* "Since 1964" and "Neighborhood" stay stacked / centered as before */
body[data-headline="since-1964"] .hero-frame,
body[data-headline="neighborhood"] .hero-frame {
  align-items: center;
}

/* "Neighborhood" headline needs smaller scale */
.hero-title .hl-hood > span { font-size: clamp(48px, 8vw, 122px); }

.hero-rule {
  width: 72px;
  height: 3px;
  background: var(--accent, var(--brick));
  margin: 0 0 32px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  margin: 0 0 44px;
  letter-spacing: 0.005em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-btn {
  background: var(--accent, var(--brick));
  border-color: var(--accent, var(--brick));
  color: #fff;
  padding: 18px 32px;
  font-size: 13px;
  letter-spacing: 0.22em;
}
.hero-btn:hover {
  background: rgba(0,0,0,.5);
  border-color: #fff;
  color: #fff;
}

.hero-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: color .15s ease, border-color .15s ease;
}
.hero-link:hover { color: #fff; border-color: #fff; }

/* ----- Wax stamp ----- */
.hero-stamp {
  position: absolute;
  right: 64px;
  top: 96px;
  z-index: 3;
  width: 160px;
  height: 160px;
  color: rgba(255, 255, 255, 0.78);
  transform: rotate(-8deg);
  pointer-events: none;
  opacity: 0;
  transform: rotate(-12deg) scale(0.92);
  animation: stamp-in 1.2s 0.6s cubic-bezier(.2,.7,.3,1.2) forwards;
}
.hero-stamp svg { width: 100%; height: 100%; }

@keyframes stamp-in {
  to { opacity: 1; transform: rotate(-8deg) scale(1); }
}

body[data-stamp="off"] .hero-stamp { display: none; }

/* ----- Bottom marquee (subtle neighborhood ticker) ----- */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 56px;
  background: rgba(20, 30, 60, 0.85);
  border-top: 1px solid rgba(232, 218, 192, 0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  padding-left: 100%;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.marquee-track span:nth-child(even) {
  color: var(--accent, var(--brick));
}

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

body[data-marquee="off"] .hero-marquee { display: none; }

/* ====================================================================
   PHOTO TREATMENT VARIANTS
   ==================================================================== */
body[data-photo="cinematic"] .hero-photo,
body:not([data-photo]) .hero-photo {
  filter: brightness(0.95) saturate(1.05) contrast(1.02);
}
body[data-photo="natural"] .hero-photo {
  filter: brightness(0.78) saturate(1.0) contrast(1.02);
}
body[data-photo="natural"] .hero-veil {
  background:
    linear-gradient(180deg, rgba(20,30,60,.30) 0%, rgba(0,0,0,.10) 50%, rgba(0,0,0,.55) 100%);
}
body[data-photo="duotone"] .hero-photo {
  filter: brightness(0.45) saturate(0) contrast(1.15);
}
body[data-photo="duotone"] .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  mix-blend-mode: color;
  opacity: 0.85;
  pointer-events: none;
}
body[data-photo="warm"] .hero-photo {
  filter: brightness(0.55) saturate(1.15) contrast(1.1) sepia(0.25);
}

/* ====================================================================
   ACCENT COLOR VARIANTS
   ==================================================================== */
body:not([data-accent]) { --accent: var(--brick); }
body[data-accent="brick"] { --accent: #9B1C1C; }
body[data-accent="forest"] { --accent: #2D5016; }
body[data-accent="burgundy"] { --accent: #6B1818; }
body[data-accent="gold"] { --accent: #B6883D; }

/* ====================================================================
   HERO LAYOUT VARIANTS
   ==================================================================== */

/* SPLIT — text left on dark band, photo on right */
body[data-hero-layout="split"] .hero {
  min-height: clamp(640px, 86vh, 820px);
}
body[data-hero-layout="split"] .hero-bg {
  inset: 0 0 0 50%;
}
body[data-hero-layout="split"] .hero-photo {
  filter: brightness(0.85) saturate(0.92) contrast(1.05);
  object-position: 30% 50%;
}
body[data-hero-layout="split"] .hero-veil {
  background: linear-gradient(90deg, rgba(20,30,60,1) 0%, rgba(20,30,60,1) 50%, rgba(20,30,60,0.4) 55%, rgba(0,0,0,0.25) 100%);
}
body[data-hero-layout="split"] .hero-frame-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
body[data-hero-layout="split"] .hero-frame-inner > * { grid-column: 1; }
body[data-hero-layout="split"] .hero-frame-inner .hero-actions { grid-column: 1; }
body[data-hero-layout="split"] .hero-title .hl > span {
  font-size: clamp(56px, 7.5vw, 124px);
}
body[data-hero-layout="split"] .hero-stamp {
  right: auto;
  left: 50%;
  top: auto;
  bottom: 100px;
  transform: translateX(-50%) translateX(80px) rotate(-8deg);
  color: #fff;
}
@media (max-width: 980px) {
  body[data-hero-layout="split"] .hero-bg { inset: 0; }
  body[data-hero-layout="split"] .hero-veil {
    background: linear-gradient(180deg, rgba(20,30,60,.6) 0%, rgba(0,0,0,.7) 100%);
  }
  body[data-hero-layout="split"] .hero-frame-inner { grid-template-columns: 1fr; }
}

/* STACKED — cream top with text, photo full-bleed below */
body[data-hero-layout="stacked"] .hero {
  background: var(--cream);
  min-height: auto;
}
body[data-hero-layout="stacked"] .hero-bg {
  position: relative;
  height: 56vh;
  min-height: 480px;
  margin-top: 0;
}
body[data-hero-layout="stacked"] .hero-photo {
  filter: brightness(0.95) saturate(0.95) contrast(1.05);
  object-position: center 60%;
}
body[data-hero-layout="stacked"] .hero-veil {
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
}
body[data-hero-layout="stacked"] .hero-frame {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  min-height: auto;
  padding: 100px 0 100px;
}
body[data-hero-layout="stacked"] .hero-frame-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body[data-hero-layout="stacked"] .hero-eyebrow {
  background: transparent;
  border-color: var(--tan);
  color: var(--navy);
}
body[data-hero-layout="stacked"] .hero-title { color: var(--navy); }
body[data-hero-layout="stacked"] .hero-title .hl > span:first-child { color: var(--navy); }
body[data-hero-layout="stacked"] .hero-rule { margin: 0 auto 32px; background: var(--accent, var(--brick)); }
body[data-hero-layout="stacked"] .hero-tagline { color: var(--ink-soft); }
body[data-hero-layout="stacked"] .hero-link { color: var(--navy); border-color: var(--tan); }
body[data-hero-layout="stacked"] .hero-link:hover { color: var(--accent, var(--brick)); border-color: var(--accent, var(--brick)); }
body[data-hero-layout="stacked"] .hero-stamp {
  color: var(--accent, var(--brick));
  right: 80px;
  top: 60px;
}
body[data-hero-layout="stacked"] .hero-marquee {
  background: var(--navy);
  position: relative;
  height: 64px;
}

/* ====================================================================
   VALUE STATEMENT VARIANTS (the section right under hero)
   ==================================================================== */
.value-editorial, .value-quote, .value-stats { display: none; }
body:not([data-value-style]) .value-editorial,
body[data-value-style="editorial"] .value-editorial { display: block; }
body[data-value-style="quote"] .value-quote { display: block; }
body[data-value-style="stats"] .value-stats { display: flex; }

/* Editorial value */
.value-edit-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
  max-width: 880px;
  margin: 0 auto;
  text-transform: none;
}
.value-edit-text .emph {
  color: var(--accent, var(--brick));
  font-weight: 700;
}

/* Quote value */
.value-quote { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.value-quote-mark {
  font-family: 'Georgia', serif;
  font-size: clamp(80px, 10vw, 140px);
  line-height: 0.8;
  color: var(--accent, var(--brick));
  margin-bottom: 16px;
}
.value-quote-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 28px;
  text-transform: none;
  font-style: italic;
}
.value-quote-attr {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Stats value */
.value-stats {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(24px, 5vw, 80px);
  padding: 24px 0;
}
.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--accent, var(--brick));
}
.stat-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stat-sep {
  width: 1px;
  height: 80px;
  background: var(--tan);
}
@media (max-width: 720px) {
  .value-stats { flex-direction: column; gap: 32px; }
  .stat-sep { width: 80px; height: 1px; }
}

/* ====================================================================
   TWEAKS PANEL
   ==================================================================== */
.tweaks-toggle-hint {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: none; /* enabled by main agent in edit mode */
}

#tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 340px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border: 1px solid var(--tan);
  box-shadow: 0 24px 60px rgba(10, 20, 50, 0.25);
  font-family: var(--font-body);
  color: var(--ink);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
#tweaks-panel.open { display: flex; }

.tw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--navy);
  color: var(--cream);
  border-bottom: 1px solid var(--tan);
  user-select: none;
  cursor: grab;
}
.tw-header.dragging { cursor: grabbing; }
.tw-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.tw-close {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid rgba(232, 218, 192, 0.35);
  color: var(--cream);
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  line-height: 1;
  padding: 0;
}
.tw-close:hover { background: rgba(255,255,255,0.1); }

.tw-body {
  overflow-y: auto;
  padding: 4px 0 16px;
  flex: 1;
}

.tw-section {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--tan-light);
}
.tw-section:last-child { border-bottom: none; }
.tw-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.tw-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tw-radio {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 12px;
  background: var(--cream);
  border: 1px solid var(--tan);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tw-radio:hover { background: #fff; color: var(--navy); }
.tw-radio.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.tw-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tw-swatch {
  width: 36px;
  height: 36px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  display: inline-block;
  transition: transform .15s ease, border-color .15s ease;
}
.tw-swatch:hover { transform: scale(1.08); }
.tw-swatch.active { border-color: var(--navy); transform: scale(1.08); }

.tw-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tw-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--tan);
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background .18s ease;
  padding: 0;
}
.tw-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s ease;
}
.tw-switch.on { background: var(--navy); }
.tw-switch.on::after { transform: translateX(20px); }
.tw-toggle .tw-name {
  font-size: 13px;
  color: var(--ink);
}

.tw-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--tan-light);
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 540px) {
  #tweaks-panel {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 16px;
    max-height: 70vh;
  }
}

/* ====================================================================
   POLISH — bump category section + neighborhoods for more pop
   ==================================================================== */

/* Bigger category numerals + brick rule */
.cat-card .num {
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--accent, var(--brick));
}
.cat-card .cat-meta {
  border-top: 2px solid var(--accent, var(--brick));
}

/* Neighborhood items - bigger, accent on hover */
.neighborhoods li {
  transition: padding-left .18s ease;
}
.neighborhoods li:hover {
  padding-left: 12px;
}
.section-head .hood-intro { margin-top: 16px; }
/* Each neighborhood links to its store page; keeps the list's original layout */
.neighborhoods li > a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  color: inherit;
}
.neighborhoods li:hover .hood {
  color: #F9FD14; /* brand yellow; red disappeared against the red section */
}

/* Add a vertical accent stripe to brand-story */
.story-photo { position: relative; }
.story-photo::before {
  content: "";
  position: absolute;
  left: -16px;
  top: -16px;
  bottom: 24px;
  width: 16px;
  background: var(--accent, var(--brick));
  z-index: -1;
}

/* Hero: 95% of screen so the next section peeks in; same content sizes, photo crops a little sky + sidewalk */
.hero{padding:0;height:calc(95vh - var(--nav-h,77px));height:calc(95svh - var(--nav-h,77px));min-height:410px}
.hero .hero-frame{min-height:100%;padding-bottom:52px}
.hero .hero-tagline{margin-bottom:clamp(20px,4vh,44px)}
body:not([data-headline]) .hero .hero-actions,body[data-headline="dii-stores"] .hero .hero-actions{margin-top:clamp(24px,calc(95svh - var(--nav-h,77px) - 452px),288px)}
.hero .hero-marquee{height:42px;background:rgba(92,135,178,.94);border-top-color:rgba(255,255,255,.3)}
.hero .marquee-track{padding-left:0;gap:0}.hero .marquee-track span{padding-right:28px}
.hero .marquee-track span{color:#fff}.hero .marquee-track span:nth-child(even){color:var(--accent-yellow)}
body[data-hero-layout="photo"] .hero-photo,body:not([data-hero-layout]) .hero-photo{object-position:50% 45%}
body[data-hero-layout="split"] .hero,body[data-hero-layout="stacked"] .hero{height:auto}
/* Thin navy outline on the big DII STORES headline (approved Nov 2, 2026). Thinner on phones, where the letters are smaller. */
.hero-title .hl > span{-webkit-text-stroke:clamp(2px,.37vw,5px) #1F3864;paint-order:stroke fill}
