/* =========================================================================
   Eureka Bath Works | Banner restyle layer (companion to victorian.css)
   Adds: hero banner composition, teal cartouche cards, script header band,
         botanical accents. Loaded after victorian.css.
   ========================================================================= */

:root {
  --banner-teal:   #0C5969;
  --banner-cream:  #FFFDF7;
  --banner-paper:  #FBF6EC;
}

/* ---------- script header band ---------- */

.banner-script {
  text-align: center;
  margin: clamp(2rem, 4vw, 3rem) auto clamp(1.5rem, 3vw, 2.5rem);
  padding: 0 var(--pad-page);
  max-width: 1900px;
}
.banner-script img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 1500px;
  height: auto;
}

/* ---------- hero banner (composed) ---------- */

.hero-banner {
  position: relative;
  background: var(--banner-cream);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  overflow: visible;
}
.hero-banner__inner {
  max-width: 1900px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) clamp(240px, 22vw, 340px) minmax(420px, 1.8fr) clamp(240px, 22vw, 340px) minmax(200px, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  justify-items: center;
  min-height: clamp(460px, 50vw, 660px);
}

/* botanical corner accents — top-corner only, never overlap figures */
.hero-banner__citrus,
.hero-banner__lemon {
  position: absolute;
  top: clamp(-40px, -3vw, -20px);
  width: clamp(110px, 10vw, 180px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.92;
}
.hero-banner__citrus { left: 0; }
.hero-banner__lemon  { right: 0; }
.hero-banner__citrus img,
.hero-banner__lemon img { width: 100%; height: auto; display: block; }

/* character figures — sit forward, balanced size */
.hero-banner__figure {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-banner__figure img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(31, 20, 16, 0.08));
}

/* central medallion — give it dominance */
.hero-banner__medallion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  z-index: 2;
  width: 100%;
}
.hero-banner__medallion img {
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(12, 89, 105, 0.12));
}
.hero-banner__url {
  font-family: var(--f-display);
  color: var(--banner-teal);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
}
.hero-banner__url a {
  color: var(--banner-teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  display: inline-flex;
  align-items: center;
}
.hero-banner__url a:hover { border-bottom-color: var(--banner-teal); }
.hero-banner__url svg { width: 1.1em; height: 1.1em; fill: var(--banner-teal); }
.hero-banner__url-domain { letter-spacing: 0.12em; font-weight: 500; }

/* ---------- teal cartouche (panel with vertical text list) ---------- */

.cartouche--teal {
  position: relative;
  background: var(--banner-teal);
  color: var(--banner-cream);
  border-radius: 16px;
  padding: clamp(2.2rem, 4vw, 3.2rem) clamp(1.2rem, 2vw, 2rem);
  text-align: center;
  font-family: var(--f-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 8px 22px rgba(12, 89, 105, 0.22);
  /* inner light border */
  outline: 1px solid rgba(255, 253, 247, 0.55);
  outline-offset: -12px;
}
.cartouche--teal h3,
.cartouche--teal h4 {
  color: var(--banner-cream);
  font-family: var(--f-display);
  margin: 0 0 1rem;
}
.cartouche--teal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(0.9rem, 1.15vw, 1.1rem);
  line-height: 2.6;
}
.cartouche--teal li {
  white-space: nowrap;
}
.cartouche--teal a {
  color: var(--banner-cream);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.cartouche--teal a:hover { border-bottom-color: var(--banner-cream); }

/* corner ornaments — small cream curls inside the teal panel */
.cartouche--teal::before,
.cartouche--teal::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 253, 247, 0.5);
  border-radius: 50% 0;
}
.cartouche--teal::before {
  top: 6px; left: 6px;
  border-right: none; border-bottom: none;
  border-radius: 50% 0 0 0;
}
.cartouche--teal::after {
  bottom: 6px; right: 6px;
  border-left: none; border-top: none;
  border-radius: 0 0 50% 0;
}

/* mobile fallback: use single banner image */
.hero-banner__mobile {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.hero-banner__mobile img {
  width: 100%;
  height: auto;
  display: block;
}

/* tablet-narrow: hide the side figures so the cartouches + medallion can breathe */
@media (max-width: 1200px) and (min-width: 901px) {
  .hero-banner__inner {
    grid-template-columns: clamp(240px, 28vw, 340px) minmax(360px, 1.6fr) clamp(240px, 28vw, 340px);
  }
  .hero-banner__figure {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-banner__inner,
  .hero-banner__citrus,
  .hero-banner__lemon,
  .banner-script {
    display: none;
  }
  .hero-banner { padding: 0; }
  .hero-banner__mobile { display: block; }
}

/* ---------- shared decorative band (used as page header on interior pages) ---------- */

.banner-strip {
  background: var(--banner-cream);
  text-align: center;
  padding: clamp(1.2rem, 3vw, 2rem) var(--pad-page) clamp(0.6rem, 1.5vw, 1rem);
  position: relative;
  overflow: hidden;
}
.banner-strip__title {
  font-family: var(--f-display);
  color: var(--banner-teal);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-style: italic;
  letter-spacing: 0.04em;
  margin: 0;
  position: relative;
  z-index: 2;
}
.banner-strip__sub {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  margin-top: 0.4rem;
}
.banner-strip__citrus,
.banner-strip__lemon {
  position: absolute;
  top: -10px;
  width: clamp(80px, 9vw, 140px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}
.banner-strip__citrus { left: 0; }
.banner-strip__lemon  { right: 0; }

/* ---------- compact cartouche-row (for use in any page section) ---------- */

.cartouche-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
}

/* ---------- Shop page grid system ---------- */

.shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  justify-content: center;
  margin: 1.5rem auto 0;
  max-width: 920px;
}
.shop-chip {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--cream);
  border: 1px solid rgba(12, 89, 105, 0.25);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 180ms ease;
}
.shop-chip:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--cream);
}
.shop-chip--featured {
  background: var(--banner-teal);
  color: var(--banner-cream);
  border-color: var(--banner-teal);
  font-weight: 600;
}
.shop-chip--featured:hover {
  background: var(--coral);
  border-color: var(--coral);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  margin: 0 auto;
  max-width: 1320px;
}
.shop-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(0.6rem, 1.2vw, 1rem);
}

/* compact card variant for items without images */
.product-card--compact .product-card__image {
  aspect-ratio: 1 / 1;
}
.product-card--compact .product-card__name {
  font-size: 0.86rem;
}
.product-card--compact .product-card__type {
  font-size: 0.72rem;
}
.product-card--compact .product-card__price {
  font-size: 0.95rem;
}
.product-card--compact .product-card__body {
  padding: 0.6rem 0.55rem 0.85rem;
}

/* ---------- shop "show more" details fold ---------- */
.shop-more-details { text-align: center; }
.shop-more-summary {
  display: inline-block;
  cursor: pointer;
  font-family: var(--f-ui);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--banner-cream);
  background: var(--banner-teal);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  list-style: none;
  margin: 0.5rem auto 0;
  transition: background 200ms ease, transform 200ms ease;
}
.shop-more-summary:hover { background: var(--coral); transform: translateY(-1px); }
.shop-more-summary::-webkit-details-marker { display: none; }
.shop-more-details[open] .shop-more-summary::after { content: " — collapse"; opacity: 0.7; }
