/* ============================================================
   EASTERN APPLIANCES — PAGES.CSS
   Page-specific styles: Hero · Refurbished · About
   ============================================================ */

/* ── HERO (Homepage) ── */
.hero {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg svg { position: absolute; width: 100%; height: 100%; }

/* Subtle dot-grid texture */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}

/* ── Centered hero layout ── */
.hero-centered {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
}

/* Logo — ribbon banner */
.hero-logo-wrap {
  margin-bottom: 2rem;
  animation: heroLogoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  position: relative;
  display: inline-block;
}

/* Front panel — sits on top of tails */
.hero-logo-front {
  position: relative;
  z-index: 3;
  background: #ffffff;
  padding: 1.5rem 3.5rem;
}

/* Ribbon tails — behind the front panel with V-notch cut */
.hero-ribbon-tail {
  position: absolute;
  top: 12px;
  z-index: 1;
  width: 100px;
  height: calc(100% - 24px);
  background: #d5d5d5;
}
.hero-ribbon-tail--left {
  left: -70px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 18% 50%);
}
.hero-ribbon-tail--right {
  right: -70px;
  clip-path: polygon(0% 0%, 100% 0%, 82% 50%, 100% 100%, 0% 100%);
}

/* Dark fold triangles — 4 corners connecting front to tails */
.hero-ribbon-fold {
  position: absolute;
  z-index: 2;
  width: 0;
  height: 0;
  border-style: solid;
}
.hero-ribbon-fold--tl {
  top: -12px; left: 0;
  border-width: 0 16px 12px 0;
  border-color: transparent transparent #0a1220 transparent;
}
.hero-ribbon-fold--tr {
  top: -12px; right: 0;
  border-width: 0 0 12px 16px;
  border-color: transparent transparent #0a1220 transparent;
}
.hero-ribbon-fold--bl {
  bottom: -12px; left: 0;
  border-width: 12px 16px 0 0;
  border-color: #0a1220 transparent transparent transparent;
}
.hero-ribbon-fold--br {
  bottom: -12px; right: 0;
  border-width: 12px 0 0 16px;
  border-color: #0a1220 transparent transparent transparent;
}
.hero-logo {
  width: min(700px, 88vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 32px rgba(0,0,0,0.35));
}

/* Thin rule between logo and copy */
.hero-rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,203,128,0.6), transparent);
  margin: 0 auto 2rem;
  animation: heroFadeUp 0.7s 0.25s both;
}

/* Copy */
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFCB80;
  margin-bottom: 1rem;
  animation: heroFadeUp 0.7s 0.35s both;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.1rem;
  animation: heroFadeUp 0.7s 0.45s both;
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
}
.hero-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.7;
  margin: 0 auto 2rem;
  animation: heroFadeUp 0.7s 0.55s both;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: heroFadeUp 0.7s 0.65s both;
}

/* Category tiles — horizontal row at the bottom of the hero */
.hero-tiles-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-tile {
  background: rgba(255,255,255,0.03);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  transition: background 0.2s;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.hero-tile:last-child { border-right: none; }
.hero-tile:hover { background: rgba(255,255,255,0.08); }
.hero-tile-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.25rem;
}
.hero-tile-icon svg { width: 20px; height: 20px; color: rgba(255,255,255,0.8); }
.hero-tile-label { font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; color: var(--white); }
.hero-tile-sub   { font-size: 0.72rem; color: rgba(255,255,255,0.45); }

/* Entrance animations */
@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── REFURBISHED PAGE ── */
.refurb-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.refurb-step-icon { width: 56px; height: 56px; background: var(--navy-50); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; border: 3px solid var(--navy-100); }
.refurb-step-icon svg { width: 26px; height: 26px; color: var(--navy-700); }
.refurb-step h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 0.4rem; }
.refurb-step p  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

/* ── ABOUT PAGE ── */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card { background: var(--white); border: 1px solid var(--navy-100); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; text-align: center; }
.value-icon { width: 52px; height: 52px; background: var(--navy-50); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.value-icon svg { width: 26px; height: 26px; color: var(--navy-700); }
.value-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 0.4rem; }
.value-card p  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

/* ── SHOP PAGE ── */
.no-results { text-align: center; padding: 4rem 0; display: none; }
.no-results h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-900); margin-bottom: 0.5rem; }
.no-results p  { color: var(--text-muted); font-size: 0.9rem; }
.no-results.visible { display: block; }

/* ── RESPONSIVE (page-specific) ── */
@media (max-width: 900px) {
  .hero-tiles-row   { grid-template-columns: repeat(3, 1fr); }
  .refurb-process   { grid-template-columns: 1fr 1fr; }
  .values-grid      { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-logo        { width: min(480px, 90vw); }
  .hero-logo-front  { padding: 1.25rem 2rem; }
  .hero-ribbon-tail { width: 60px; }
  .hero-ribbon-tail--left  { left: -40px; }
  .hero-ribbon-tail--right { right: -40px; }
  .hero-tiles-row   { grid-template-columns: repeat(2, 1fr); }
  .hero-tile:nth-child(5) { grid-column: span 2; }
  .refurb-process   { grid-template-columns: 1fr; }
  .values-grid      { grid-template-columns: 1fr; }
}
