/*
Theme Name: iTint
Theme URI: https://itint.co.nz
Description: Custom theme for iTint – Hawke's Bay Window Film Specialists. Features a lens flare intro animation and AI-powered chat quote widget.
Author: Trent Barton
Version: 1.0
Tags: business, custom, dark
*/

/* ══════════════════════════════════════════════════════════════════════
   iTint — Shared Stylesheet
   Fonts: Playfair Display (headings) · Raleway (body)
   Brand gold: #FFD60A  |  Dark bg: #0d0d0d / #151515
   ══════════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #000;
  font-family: 'Raleway', sans-serif;
  overflow-x: hidden;
}

/* ── HOMEPAGE SCENE (lens flare) ── */
.scene {
  background: #000;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

canvas#lf {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* ── OVERLAY TEXT ── */
.overlay-text {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.line1, .line2, .line3 {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
  text-align: center;
}
.line1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(255,200,80,0.5);
}
.line2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 60px rgba(255,220,100,0.6), 0 0 20px rgba(255,255,255,0.4);
}
.line3 {
  font-size: clamp(11px, 1.8vw, 14px);
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 20px;
  text-shadow: 0 0 20px rgba(255,214,10,0.5);
}
.line1.show, .line2.show, .line3.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── BACKGROUND LENS FLARE (canvas, scroll-reactive) ── */
#bg-flare {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 16;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 2.5s ease;
}
#bg-flare.show {
  opacity: 1;
}

/* ── OVEREXPOSURE FLASH ── */
#flash-overlay {
  position: fixed;
  inset: 0;
  background: #fff9f0;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
}

/* ── CHROMATIC TEXT ABERRATION ── */
@keyframes chromaIn {
  0%   { text-shadow: -5px 0 rgba(255,30,30,0.7), 5px 0 rgba(30,100,255,0.7), 0 0 30px rgba(255,200,80,0.5); }
  40%  { text-shadow: -2px 0 rgba(255,30,30,0.35), 2px 0 rgba(30,100,255,0.35), 0 0 30px rgba(255,200,80,0.5); }
  100% { text-shadow: 0 0 30px rgba(255,200,80,0.5); }
}
.line1.show { animation: chromaIn 0.7s ease-out forwards; }

@keyframes chromaIn2 {
  0%   { text-shadow: -7px 0 rgba(255,30,30,0.8), 7px 0 rgba(30,100,255,0.8), 0 0 60px rgba(255,220,100,0.6); }
  35%  { text-shadow: -3px 0 rgba(255,30,30,0.4), 3px 0 rgba(30,100,255,0.4), 0 0 60px rgba(255,220,100,0.6); }
  100% { text-shadow: 0 0 60px rgba(255,220,100,0.6), 0 0 20px rgba(255,255,255,0.4); }
}
.line2.show { animation: chromaIn2 0.8s ease-out forwards; }

/* ── SITE REVEAL (homepage) ── */
.site-reveal {
  position: relative;
  z-index: 15;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #0d0d0d 0%, #151515 50%, #0a0a0a 100%);
  background-image:
    radial-gradient(ellipse 600px 400px at 70% 40%, rgba(255,214,10,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 20% 80%, rgba(255,214,10,0.04) 0%, transparent 70%),
    linear-gradient(160deg, #0d0d0d 0%, #151515 50%, #0a0a0a 100%);
}
.site-reveal.show {
  opacity: 1;
  pointer-events: all;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 1px 0 rgba(255,214,10,0.08), 0 4px 24px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.5px;
}
.logo-name em {
  color: #FFD60A;
  font-style: normal;
}
.logo-img {
  height: 64px;
  width: auto;
  display: block;
  /* brighter + stronger gold glow so logo reads clearly on the dark nav */
  filter: brightness(1.6) contrast(1.15) drop-shadow(0 0 10px rgba(255,214,10,0.65)) drop-shadow(0 0 3px rgba(255,214,10,0.9));
  transition: filter 0.25s;
}
.logo:hover .logo-img {
  filter: brightness(1.9) contrast(1.2) drop-shadow(0 0 16px rgba(232,170,34,0.85)) drop-shadow(0 0 5px rgba(232,170,34,1));
}
.logo-sub {
  font-family: 'Raleway', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,214,10,0.85);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: #FFD60A; }

.nav-phone {
  font-size: 13px;
  color: #FFD60A;
  font-weight: 700;
}
.nav-phone a {
  color: #FFD60A;
  text-decoration: none;
}
.nav-phone a:hover { opacity: 0.8; }

/* Get a Quote — nav CTA button */
.nav-quote-btn {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, #FFD60A 0%, #E0A800 100%);
  color: #fff;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(255,214,10,0.3);
}
.nav-quote-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── HERO (homepage) ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 40px 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-left h1 em { color: #FFD60A; font-style: normal; }

.tagline {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FFD60A;
  margin-bottom: 16px;
  text-shadow: 0 0 12px rgba(255,214,10,0.5);
}

.hero-left p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 380px;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  background: #FFD60A;
  color: #04080f;
  border: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  box-shadow: 0 0 24px rgba(255,214,10,0.25);
  transition: box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { box-shadow: 0 0 36px rgba(255,214,10,0.45); }

.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 0.5px solid rgba(255,255,255,0.15);
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  transition: border-color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { border-color: rgba(255,214,10,0.3); color: #FFD60A; }

/* ── CHAT PANEL ── */
.chat-panel {
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(32px) saturate(180%);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.6),
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 -1px 0 rgba(0,0,0,0.3) inset,
    0 0 0 0.5px rgba(255,214,10,0.1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,214,10,0.07);
  border-bottom: 0.5px solid rgba(255,214,10,0.1);
}
.chat-header-left { display: flex; align-items: center; gap: 8px; }

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #FFD60A;
  box-shadow: 0 0 8px rgba(255,214,10,0.9);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

.chat-name {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.chat-now-btn {
  background: #FFD60A;
  color: #04080f;
  border: none;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
  cursor: pointer;
}

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 400px;
  overflow-y: auto;
  overflow-anchor: none; /* stops the browser from auto-shifting the surrounding page when content grows here */
  scroll-behavior: smooth;
  overscroll-behavior: contain; /* keeps scroll momentum inside the chat panel */
}

.bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 88%;
}
.bubble-ai {
  background: rgba(255,214,10,0.08);
  border: 0.5px solid rgba(255,214,10,0.18);
  color: rgba(255,255,255,0.82);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.bubble-user {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-family: 'Raleway', sans-serif;
  outline: none;
}
.chat-input:focus { border-color: rgba(255,214,10,0.3); }
.chat-send {
  background: #FFD60A;
  border: none;
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #04080f;
  font-size: 16px;
  font-weight: 700;
}

/* ── SERVICES ── */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  padding: 24px 16px;
  text-align: center;
  background-color: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  transition: all ease 0.3s;
  cursor: pointer;
}
.service-card:hover {
  box-shadow: 0 0 24px 2px rgba(255,214,10,0.2);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-3px);
}

/* Minor service card — available but not promoted */
.service-card--minor {
  opacity: 0.45;
  border-color: rgba(255,255,255,0.07);
}
.service-card--minor:hover {
  opacity: 0.7;
  box-shadow: none;
}
.service-icon { font-size: 28px; margin-bottom: 10px; }
.service-card h3 {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.service-card p {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
}

/* ── BENEFITS SECTION ── */
.benefits-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.benefits-header {
  text-align: center;
  margin-bottom: 48px;
}
.benefits-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.benefits-title em { color: #FFD60A; font-style: normal; }
.benefits-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,214,10,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.benefit-card:hover {
  border-color: rgba(255,214,10,0.2);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.benefit-card:hover::before { opacity: 1; }

.benefit-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

/* When icon and stat sit together (e.g. UV 99% card) */
.benefit-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.benefit-stat-row .benefit-icon {
  font-size: 28px;
  margin-bottom: 0;
}

.benefit-stat {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: #FFD60A;
  line-height: 1;
  margin-bottom: 4px;
}
/* No extra bottom margin when stat is inside a row */
.benefit-stat-row .benefit-stat {
  margin-bottom: 0;
}

.benefit-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.benefit-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ── REVIEWS ── */
.reviews-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.reviews-header {
  text-align: center;
  margin-bottom: 40px;
}
.reviews-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.reviews-title em { color: #FFD60A; font-style: normal; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, transform 0.3s;
}
.review-card:hover {
  border-color: rgba(255,214,10,0.25);
  transform: translateY(-2px);
}

.review-stars {
  color: #FFD60A;
  font-size: 14px;
  letter-spacing: 2px;
}

.review-quote {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  flex: 1;
  position: relative;
  padding-top: 8px;
}
.review-quote::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: rgba(255,214,10,0.25);
  position: absolute;
  top: -16px;
  left: -4px;
  line-height: 1;
}

.review-author {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 14px;
}
.review-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.review-location {
  font-size: 11px;
  color: rgba(255,214,10,0.7);
  letter-spacing: 0.5px;
}

/* ── BEFORE & AFTER GALLERY ── */
.gallery-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}
.gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.gallery-title em { color: #FFD60A; font-style: normal; }
.gallery-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── COMPARISON SLIDER ── */
.comparison {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: ew-resize;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  user-select: none;
  aspect-ratio: 4 / 3;
}

/* Both images fill the same container — never change size or position */
.img-before,
.img-after {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

/* After image revealed by clip-path — JS updates this only, image never moves */
.img-after {
  clip-path: inset(0 50% 0 0);
}

/* Wrapper kept in HTML but does no clipping — JS no longer sets its width */
.img-after-wrap {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

/* ── HANDLE ── */
.comp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.comp-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #FFD60A 20%, #FFD60A 80%, transparent);
}
.comp-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFD60A;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255,214,10,0.6), 0 2px 8px rgba(0,0,0,0.4);
  z-index: 2;
}

/* ── BEFORE / AFTER LABELS ── */
.comp-label {
  position: absolute;
  top: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.7);
  pointer-events: none;
}
.comp-label.left  { left: 12px; }
.comp-label.right { right: 12px; }

/* ── FOOTER ── */
footer {
  padding: 16px 40px;
  background: rgba(0,0,0,0.3);
  border-top: 0.5px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
footer p { font-size: 11px; color: rgba(255,255,255,0.25); }
footer span { font-size: 12px; color: #FFD60A; font-weight: 700; }
footer span a { color: #FFD60A; text-decoration: none; }
footer span a:hover { opacity: 0.8; }

/* ── REPLAY BUTTON ── */
.replay-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  background: rgba(255,214,10,0.08);
  border: 0.5px solid rgba(255,214,10,0.25);
  color: #FFD60A;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  opacity: 0;
  transition: opacity 0.5s;
}
.replay-btn.show { opacity: 1; }

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255,214,10,0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* ── GLASS SPARKLE PARTICLE ── */
/* 4-pointed star — like light catching a glass edge */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  clip-path: polygon(
    50% 0%,   53% 47%,
    100% 50%, 53% 53%,
    50% 100%, 47% 53%,
    0% 50%,   47% 47%
  );
}


/* ══════════════════════════════════════════════════════════════════════
   SUB PAGE STYLES
   ══════════════════════════════════════════════════════════════════════ */

/* ── SUB PAGE BASE ── */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 600px 400px at 70% 20%, rgba(255,214,10,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 20% 70%, rgba(255,214,10,0.03) 0%, transparent 70%),
    linear-gradient(160deg, #0d0d0d 0%, #151515 50%, #0a0a0a 100%);
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 80px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.page-hero-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #FFD60A;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 700px;
}
.page-hero h1 em { color: #FFD60A; font-style: normal; }
.page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 32px;
}

/* ── CONTENT SECTIONS ── */
.content-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.section-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #FFD60A;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.section-title em { color: #FFD60A; font-style: normal; }
.section-intro {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 40px;
}

/* ── TWO COLUMN CONTENT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.two-col-text h2 em { color: #FFD60A; font-style: normal; }
.two-col-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  margin-bottom: 16px;
}
.two-col-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(16px);
}

/* ── STAT BLOCKS ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.stat-block {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: #FFD60A;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── FEATURE LIST ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.feature-list li::before {
  content: '✦';
  color: #FFD60A;
  font-size: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── CURING LIST — three-column grid: bullet | term | description ── */
.curing-list li {
  display: grid;
  grid-template-columns: 18px 155px 1fr;
  gap: 0 12px;
  align-items: baseline;
}
.curing-list li::before {
  margin-top: 0;
  line-height: 1.55;
}
.curing-list li strong {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.55;
}
.curing-list li span {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.55;
}

/* ── FAQ ── */
.faq-section {
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
.faq-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
}
.faq-title em { color: #FFD60A; font-style: normal; }
.faq-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
}
.faq-question {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question::after {
  content: '+';
  color: #FFD60A;
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
}
.faq-answer {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

/* ── BEFORE / AFTER SLIDER ── */
.ba-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.ba-slider {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Both images fill the same space */
/* After: background layer, sets the slider height, never moves */
.ba-after {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* Before: sits exactly on top of after — same size, same crop */
.ba-before-wrap {
  position: absolute;
  inset: 0;
  overflow: visible; /* no clipping here — clip-path on the image instead */
  pointer-events: none;
}

.ba-before {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  /* Clip right side — JS updates this value only, image never moves */
  clip-path: inset(0 50% 0 0);
}

/* Vertical divider line */
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* JS controls this */
  width: 2px;
  background: rgba(255,214,10,0.8);
  transform: translateX(-50%);
  cursor: ew-resize;
}

/* Circular drag handle */
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0d0d0d;
  border: 2px solid #FFD60A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255,214,10,0.4), 0 4px 12px rgba(0,0,0,0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ba-slider:hover .ba-handle,
.ba-slider.dragging .ba-handle {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 24px rgba(255,214,10,0.65), 0 4px 16px rgba(0,0,0,0.7);
}

/* Before / After labels */
.ba-label {
  position: absolute;
  bottom: 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  pointer-events: none;
}

.ba-label-before {
  left: 16px;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}

.ba-label-after {
  right: 16px;
  background: rgba(255,214,10,0.18);
  color: #FFD60A;
  border: 1px solid rgba(255,214,10,0.35);
}

/* ── PAGE CTA SECTION ── */
.page-cta {
  margin: 40px 40px 60px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(255,214,10,0.08) 0%, rgba(255,214,10,0.03) 100%);
  border: 1px solid rgba(255,214,10,0.2);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  backdrop-filter: blur(16px);
}
.page-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.page-cta h2 em { color: #FFD60A; font-style: normal; }
.page-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── APPLICATIONS GRID (commercial page) ── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.app-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px 20px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.app-card:hover {
  border-color: rgba(255,214,10,0.2);
  transform: translateY(-2px);
}
.app-card-icon { font-size: 28px; margin-bottom: 12px; }
.app-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.app-card p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-family: 'Raleway', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,214,10,0.4);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select option { background: #151515; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(12px);
}
.contact-info-card h3 {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.contact-info-card p, .contact-info-card a {
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.contact-info-card a:hover { color: #FFD60A; }
.contact-info-card .area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.area-tag {
  font-size: 11px;
  color: rgba(255,214,10,0.8);
  background: rgba(255,214,10,0.08);
  border: 1px solid rgba(255,214,10,0.15);
  border-radius: 20px;
  padding: 4px 12px;
}

/* ── ABOUT PAGE ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-photo {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  backdrop-filter: blur(12px);
}
.about-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  margin-bottom: 20px;
}
.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 32px);
  color: #fff;
  margin-bottom: 20px;
}
.about-text h2 em { color: #FFD60A; font-style: normal; }

/* ── CATEGORY TABS ── */
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cat-tab {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  background: transparent;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  transition: all 0.2s;
}
.cat-tab.active,
.cat-tab:hover {
  border-color: rgba(255,214,10,0.4);
  color: #FFD60A;
  background: rgba(255,214,10,0.06);
}

/* ── GALLERY NOTE ── */
.gallery-note {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 24px;
  letter-spacing: 0.5px;
}


/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Homepage */
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .logo-img { height: 44px; }
  .logo-text { display: none; }
  .hero { grid-template-columns: 1fr; padding: 32px 20px 24px; gap: 28px; }
  .services { grid-template-columns: repeat(2, 1fr); padding: 0 20px 32px; }
  footer { padding: 12px 20px; flex-direction: column; gap: 6px; text-align: center; }

  /* Benefits */
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-section { padding: 40px 20px; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-section { padding: 40px 20px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-section { padding: 40px 20px; }

  /* Before/After slider */
  .ba-handle { width: 38px; height: 38px; }
  .ba-label  { font-size: 10px; padding: 4px 10px; bottom: 10px; }

  /* Sub pages */
  .page-hero { padding: 48px 20px 40px; }
  .content-section { padding: 40px 20px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .faq-section { padding: 40px 20px; }
  .page-cta { margin: 20px; padding: 32px 24px; }
}


/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════════ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding: 0 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

.chat-panel--large {
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(32px) saturate(180%);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.6),
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 -1px 0 rgba(0,0,0,0.3) inset,
    0 0 0 0.5px rgba(255,214,10,0.1);
}

.chat-panel--large .chat-messages {
  min-height: 380px;
  max-height: 480px;
  overflow-y: auto;
  overflow-anchor: none;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.chat-intro { margin-bottom: 20px; }
.chat-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.chat-intro h2 em { color: #FFD60A; font-style: normal; }
.chat-intro p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.chat-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.chat-step {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-step span { color: #FFD60A; }

.sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.or-divider {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 0;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
  }
  .sidebar-info { position: static; }
}


/* ═══════════════════════════════════════════════════════════
   AFTERCARE PAGE
   ═══════════════════════════════════════════════════════════ */

.tip-box {
  background: rgba(255,214,10,0.06);
  border: 1px solid rgba(255,214,10,0.18);
  border-left: 3px solid #FFD60A;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
}
.tip-box-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFD60A;
  margin-bottom: 8px;
}
.tip-box p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin: 0;
}

.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
@media (max-width: 600px) {
  .do-dont { grid-template-columns: 1fr; }
}
.do-col, .dont-col {
  border-radius: 10px;
  padding: 20px 22px;
}
.do-col {
  background: rgba(60,210,120,0.06);
  border: 1px solid rgba(60,210,120,0.18);
}
.dont-col {
  background: rgba(255,80,80,0.06);
  border: 1px solid rgba(255,80,80,0.18);
}
.do-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(60,210,120,0.9);
  margin: 0 0 14px 0;
}
.dont-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,100,100,0.9);
  margin: 0 0 14px 0;
}
.do-col ul, .dont-col ul {
  margin: 0; padding: 0; list-style: none;
}
.do-col li, .dont-col li {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.5;
}
.do-col li:last-child, .dont-col li:last-child { border-bottom: none; }
.do-col li::before { content: '✓ '; color: rgba(60,210,120,0.8); font-weight: 700; }
.dont-col li::before { content: '✕ '; color: rgba(255,100,100,0.8); font-weight: 700; }

.standard-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 24px 0;
}
.standard-box p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin: 0;
}

.review-nudge {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 16px;
}
.review-nudge h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 28px);
  color: #fff;
  margin-bottom: 10px;
}
.review-nudge h3 em { color: #FFD60A; font-style: normal; }
.review-nudge p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Curing list — 3-column grid */
.curing-list {
  display: grid;
  grid-template-columns: 18px 155px 1fr;
  column-gap: 10px;
  row-gap: 12px;
  align-items: start;
}
.curing-list li {
  display: contents;
}
.curing-list li strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.curing-list li span {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════
   CHAT BUBBLES & TYPING INDICATOR
   ═══════════════════════════════════════════════════════════ */

.bubble-user {
  background: linear-gradient(135deg, #FFD60A, #E0A800);
  color: #fff;
  align-self: flex-end;
  margin-left: auto;
  max-width: 80%;
  border-radius: 18px 18px 4px 18px;
}

.bubble-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  min-width: 52px;
}

.bubble-typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.bubble-typing span:nth-child(1) { animation-delay: 0s; }
.bubble-typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.4s; }

/* ── CHAT PHOTO UPLOAD ── */
.chat-attach {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chat-attach:hover { background: rgba(255,214,10,0.12); border-color: rgba(255,214,10,0.3); color: #FFD60A; }
.chat-attach:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-attachments {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px 0;
}

.attachment-thumb {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 0.5px solid rgba(255,214,10,0.3);
  background: rgba(0,0,0,0.2);
}
.attachment-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.attachment-remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.attachment-remove:hover { background: #FFD60A; }

.bubble-photo {
  display: block;
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.bubble-text { font-size: 13px; }

.chat-disclaimer {
  font-size: 10.5px;
  color: rgba(255,255,255,0.32);
  line-height: 1.55;
  text-align: center;
  padding: 10px 16px 14px;
  margin: 0;
  letter-spacing: 0.1px;
}

/* Honeypot — hidden from humans, visible-looking to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── LAW LIST — structured rule blocks (used on /automotive/) ── */
.law-list {
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.law-rule {
  padding: 16px 18px;
  background: rgba(0,0,0,0.18);
  border: 0.5px solid rgba(255,214,10,0.18);
  border-left: 2px solid #FFD60A;
  border-radius: 10px;
}
.law-rule dt {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFD60A;
  margin-bottom: 4px;
}
.law-rule-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  margin: 0 0 8px;
  padding: 0;
}
.law-rule dd {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin: 0;
  padding: 0;
}
.law-rule dd strong {
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}
.law-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.law-note p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin: 0;
}

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1;   }
}
