/* ═══════════════════════════════════════════════════════════════
   JunkHive Pros — 2026-11 Redesign layer
   Loaded after styles.css + ux-polish.css. Overrides only; remove
   this file (and its <link>) to roll back to the previous look.

   Sources: icons — Lucide via Iconify · photos — Unsplash ·
   card/token system — shadcn/ui conventions · motion — Magic UI
   patterns (border-beam, shimmer button, marquee, dot pattern)
   ported to plain CSS.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* shadcn-style semantic tokens, mapped onto the JunkHive brand */
  --background: #F6F7F3;
  --foreground: #0F1A13;
  --card: #FFFFFF;
  --card-border: #E3E7DF;
  --muted-fg: #56645B;
  --ring: rgba(22, 163, 74, 0.35);
  --ink: #07110B;
  --ink-2: #0B1A11;

  /* re-point legacy tokens */
  --light: var(--background);
  --dark: var(--ink);
  --dark-2: var(--ink-2);
  --text-dark: var(--foreground);
  --text-muted-light: var(--muted-fg);
  --border-light: var(--card-border);
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 19, 0.05), 0 1px 1px rgba(15, 26, 19, 0.03);
  --shadow-md: 0 1px 2px rgba(15, 26, 19, 0.04), 0 8px 24px -6px rgba(15, 26, 19, 0.12);
  --shadow-lg: 0 2px 4px rgba(15, 26, 19, 0.04), 0 24px 48px -12px rgba(15, 26, 19, 0.22);
}

body { background: var(--background); color: var(--foreground); }

/* ─── Icons (Lucide SVG) ─── */
.ico { width: 1em; height: 1em; display: inline-block; flex-shrink: 0; vertical-align: -0.14em; }
.ico-inline { width: 1.05em; height: 1.05em; margin-right: 0.15em; color: currentColor; }

/* ─── Typography ─── */
.section-h2 { letter-spacing: -0.025em; font-weight: 800; }
.hero-h1 { letter-spacing: -0.035em; }
.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ─── Dark sections: Magic UI-style dot pattern ─── */
.section-dark, .footer {
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ═══ HERO: full-bleed photo ═══ */
.hero { background: var(--ink); }
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  z-index: 0;
  transform: scale(1.04);
  animation: hero-zoom 18s ease-out forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
#hero-canvas { opacity: 0.35; z-index: 1; }
.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 12, 8, 0.95) 0%, rgba(5, 12, 8, 0.86) 42%, rgba(5, 12, 8, 0.55) 100%),
    linear-gradient(0deg, rgba(5, 12, 8, 0.9) 0%, transparent 35%);
}
.hero-glow.g1 { opacity: 0.6; }
.hero-glow.g2 { opacity: 0.5; }
.hero-container { z-index: 2; }
.hero-badge { backdrop-filter: blur(8px); }

/* Hero booking card: glass + Magic UI border beam */
.hc-main {
  position: relative;
  background: rgba(8, 18, 12, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.hc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green-500);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.hcf-stars { color: var(--green-500); font-size: 1.1rem; }

.border-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid transparent;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box;
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box;
  mask-composite: exclude;
}
.border-beam::after {
  content: '';
  position: absolute;
  width: 110px;
  aspect-ratio: 1;
  background: linear-gradient(to left, var(--green-500), var(--amber-400), transparent);
  offset-path: rect(0 auto auto 0 round 110px);
  animation: border-beam 7s linear infinite;
}
@keyframes border-beam { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* Primary CTA: Magic UI-style shimmer */
.btn-shimmer { position: relative; overflow: hidden; isolation: isolate; }
.btn-shimmer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.38) 50%, transparent 75%);
  transform: translateX(-120%);
  animation: btn-shimmer 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shimmer { 0%, 35% { transform: translateX(-120%); } 75%, 100% { transform: translateX(120%); } }

/* ═══ SERVICE AREA MARQUEE ═══ */
.area-marquee {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--ink-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 0 14px max(24px, calc((100vw - 1200px) / 2 + 24px));
  overflow: hidden;
}
.am-label {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-400);
}
.am-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.am-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.am-group { display: flex; gap: 10px; padding-right: 10px; }
.area-marquee:hover .am-track, .area-marquee:focus-within .am-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.am-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.am-item .ico { color: var(--green-500); }
.am-item:hover { color: #fff; border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.08); }

/* ═══ SERVICES: photo cards ═══ */
.svc-grid { gap: 24px; }
.svc-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(22, 163, 74, 0.3); }
.svc-card > *:not(.svc-media):not(.svc-new-tag) { margin-left: 26px; margin-right: 26px; }
.svc-card > .svc-link { margin-top: auto; margin-bottom: 26px; }
.svc-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #DDE3DA;
  margin-bottom: -26px;
}
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-icon-box {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  background: #fff !important;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  color: var(--green-600);
  font-size: 1.45rem;
}
.svc-icon-box.icon-amber { color: var(--amber-600); }
.svc-card h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.svc-list li::before {
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: var(--green-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.svc-list li { padding-left: 22px; }

/* last card fills the empty slot in the 3-col grid: wide, photo left */
@media (min-width: 1025px) {
  .svc-grid > .svc-card:nth-child(6):last-child { grid-column: span 2; flex-direction: row; flex-wrap: wrap; align-content: flex-start; }
  .svc-grid > .svc-card:nth-child(6):last-child .svc-media { flex: 0 0 46%; aspect-ratio: auto; margin: 0 26px 0 0; align-self: stretch; min-height: 100%; }
  .svc-grid > .svc-card:nth-child(6):last-child { display: grid; grid-template-columns: 46% 1fr; grid-template-rows: auto auto auto auto 1fr; column-gap: 0; }
  .svc-grid > .svc-card:nth-child(6):last-child .svc-media { grid-column: 1; grid-row: 1 / -1; margin: 0; }
  .svc-grid > .svc-card:nth-child(6):last-child > *:not(.svc-media) { grid-column: 2; }
  .svc-grid > .svc-card:nth-child(6):last-child .svc-icon-box { margin-top: 26px; }
}

/* featured (Trash Can Cleaning) — photo left, content right */
.svc-card.featured {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) 1.25fr 1fr;
  grid-template-rows: auto auto auto 1fr;
  gap: 0 28px;
  padding: 0;
  background: linear-gradient(135deg, #FFFFFF 40%, rgba(245, 158, 11, 0.06));
  border-color: rgba(245, 158, 11, 0.3);
}
.svc-card.featured > * { margin-left: 0; margin-right: 0; }
.svc-card.featured .svc-media { grid-column: 1; grid-row: 1 / -1; aspect-ratio: auto; height: 100%; min-height: 260px; margin: 0; }
.svc-card.featured .svc-icon-box { grid-column: 2; grid-row: 1; margin-top: 30px; }
.svc-card.featured h3 { grid-column: 2; grid-row: 2; }
.svc-card.featured p { grid-column: 2; grid-row: 3; }
.svc-card.featured .svc-link { grid-column: 2; grid-row: 4; align-self: end; margin-bottom: 30px; }
.svc-card.featured .svc-list { grid-column: 3; grid-row: 1 / -1; align-self: center; padding: 30px 30px 30px 0; margin: 0; }
.svc-new-tag { z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: #FFF7E6; }

@media (max-width: 1024px) {
  .svc-card.featured { grid-template-columns: 1fr 1fr; }
  .svc-card.featured .svc-media { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 21 / 9; min-height: 0; }
  .svc-card.featured .svc-icon-box { grid-column: 1; grid-row: 2; margin: -26px 0 0 26px; }
  .svc-card.featured h3 { grid-column: 1; grid-row: 3; margin-left: 26px; margin-top: 18px; }
  .svc-card.featured p { grid-column: 1; grid-row: 4; margin-left: 26px; }
  .svc-card.featured .svc-link { grid-column: 1; grid-row: 5; margin-left: 26px; }
  .svc-card.featured .svc-list { grid-column: 2; grid-row: 2 / 6; padding: 26px 26px 26px 0; }
}
@media (max-width: 768px) {
  .svc-card.featured { display: flex; flex-direction: column; }
  .svc-card.featured .svc-media { aspect-ratio: 16 / 10; margin-bottom: -26px; }
  .svc-card.featured > *:not(.svc-media):not(.svc-new-tag) { margin-left: 22px; margin-right: 22px; }
  .svc-card.featured .svc-icon-box { margin-top: 0; }
  .svc-card.featured h3 { margin-top: 0; }
  .svc-card.featured .svc-list { padding: 0; margin-bottom: 14px; align-self: stretch; }
  .svc-card.featured .svc-link { align-self: flex-start; }
  .svc-card > *:not(.svc-media):not(.svc-new-tag) { margin-left: 22px; margin-right: 22px; }
}

/* ═══ HOW IT WORKS ═══ */
.hiw-emoji {
  font-size: 1.75rem;
  color: var(--green-500);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0.04));
  border-color: rgba(34, 197, 94, 0.28);
}
.hiw-step:last-child .hiw-emoji { color: var(--amber-400); background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.04)); border-color: rgba(245, 158, 11, 0.3); }

/* ═══ PRICING / QUOTE icons ═══ */
.price-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green-500);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 14px;
  margin: 0 auto 14px;
}
.price-featured .price-icon { color: var(--amber-400); background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.3); }
.price-pop { display: inline-flex; align-items: center; gap: 4px; }
.hoa-icon { font-size: 1.8rem; color: var(--amber-400); display: flex; }
.qc-opt-ico { font-size: 1.6rem; color: var(--green-600); }
.qc-opt-ico .ico { display: block; margin: 0 auto; }
.trash-h3 { display: flex; align-items: center; gap: 6px; }
.price-note .ico-inline, .form-note .ico-inline { color: var(--amber-500); }

/* ═══ TRUST (shadcn card) ═══ */
.trust-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.trust-card:hover { border-color: rgba(22, 163, 74, 0.35); box-shadow: var(--shadow-md); }
.trust-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--green-700);
  background: rgba(22, 163, 74, 0.09);
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 12px;
  margin: 0 auto 16px;
}
.first-review-cta .frc-inner { border-radius: var(--radius-xl); }

/* ═══ ABOUT: River Walk photo with floating card ═══ */
.about-visual { position: relative; }
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.about-visual .av-card {
  position: relative;
  margin: -110px 28px 0;
  background: rgba(8, 18, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
}
.avc-s strong .ico { color: var(--green-500); font-size: 1.3rem; }
.pillar-icon, .jp-ico {
  font-size: 1.25rem;
  color: var(--green-500);
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
}
.join .jp-ico { color: var(--amber-400); background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.24); }
@media (max-width: 480px) {
  .about-visual .avc-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .about-visual .avc-s { padding: 14px 8px; }
}
@media (max-width: 1024px) {
  .about-photo { aspect-ratio: 16 / 10; }
  .about-visual .av-card { margin: -64px 16px 0; }
}

/* ═══ FAQ (shadcn accordion feel) ═══ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: none;
}
.faq-item:hover { border-color: rgba(22, 163, 74, 0.3); }
.faq-q:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 12px; }

/* ═══ CONTACT ═══ */
.ci-card { border-radius: 14px; }
.ci-ico {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--green-700);
  background: rgba(22, 163, 74, 0.09);
  border-radius: 12px;
}
.ci-guarantee > .ico { font-size: 1.6rem; color: var(--green-600); }
.map-badge .ico { color: var(--green-600); }
.pi-emoji { color: var(--green-700); font-size: 1.5rem; }
.contact-form-card, .pay-invoice-card { border-radius: var(--radius-xl); }

/* ═══ Forms: shadcn-style focus ring ═══ */
.form-g input:focus, .form-g select:focus, .form-g textarea:focus {
  box-shadow: 0 0 0 3px var(--ring);
}

/* ═══ Announcement / footer / misc ═══ */
.ann-icon { display: inline-flex; font-size: 1.05rem; }
.exit-popup-emoji { font-size: 2.2rem; color: var(--amber-400); display: flex; justify-content: center; }
.fc-item { display: inline-flex; align-items: center; gap: 6px; }
.ft-badge, .avc-badge { display: inline-flex; align-items: center; gap: 4px; }
.ft-badge .ico, .avc-badge .ico { color: var(--green-500); }
.photo-credits {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  padding-top: 18px;
  padding-bottom: 4px;
}
.photo-credits a { color: rgba(255, 255, 255, 0.55); text-decoration: underline; text-underline-offset: 2px; }
.photo-credits a:hover { color: #fff; }

/* ═══ Legal / SMS / 404 pages (shared nav + footer) ═══ */
.legal-wrap, .nf-wrap { position: relative; }
.legal-wrap h2 { letter-spacing: -0.01em; }

/* ═══ Motion preferences ═══ */
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .border-beam::after, .btn-shimmer::before { animation: none; }
  .border-beam { display: none; }
  .am-track { animation: none; }
  .am-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .am-group[aria-hidden="true"] { display: none; }
}
