/* ============================================================
   Painting Solutions Inc. — Custom Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary: #D31D24;
  --primary-dark: #ab0013;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --silver: #E5E7EB;
  --text-muted: #6B7280;
  --nav-height: 80px;
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  overflow-x: hidden;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#main-nav.nav-scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 #E5E7EB, 0 4px 24px rgba(0,0,0,0.06);
  border-bottom-color: #E5E7EB;
}

.nav-logo-text { color: white; transition: color var(--transition); }
.nav-scrolled .nav-logo-text { color: #0A0A0A; }

.nav-link {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  padding-bottom: 4px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { color: white; }

.nav-scrolled .nav-link { color: #374151; }
.nav-scrolled .nav-link:hover { color: var(--primary); }

.nav-phone {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--transition);
}

.nav-phone:hover { color: white; border-color: white; }
.nav-scrolled .nav-phone { color: #374151; border-color: #D1D5DB; }
.nav-scrolled .nav-phone:hover { color: var(--primary); border-color: var(--primary); }

.menu-btn-icon { color: white; transition: color var(--transition); }
.nav-scrolled .menu-btn-icon { color: #0A0A0A; }

/* Mobile menu */
#mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: #0A0A0A;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#mobile-menu.menu-open { transform: translateX(0); }

#mobile-menu .mobile-link {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
  text-decoration: none;
  display: block;
}

#mobile-menu .mobile-link:hover { color: var(--primary); }

#mobile-menu .mobile-cta {
  margin-top: 2rem;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 1rem;
  border-radius: 4px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition);
}

#mobile-menu .mobile-cta:hover { background: var(--primary-dark); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-bg {
  position: absolute;
  inset: -25% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.88) 0%,
    rgba(10,10,10,0.60) 55%,
    rgba(211,29,36,0.12) 100%
  );
}

#hero .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Wave bottom divider */
#hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 80px;
  background: white;
  clip-path: polygon(0 100%, 100% 20%, 100% 100%);
  z-index: 5;
}

/* Badge above headline */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(211,29,36,0.15);
  border: 1px solid rgba(211,29,36,0.4);
  color: #ff8080;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Hero headline animation */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-animate-1 { animation: fade-up 0.9s cubic-bezier(0.4,0,0.2,1) 0.1s both; }
.hero-animate-2 { animation: fade-up 0.9s cubic-bezier(0.4,0,0.2,1) 0.3s both; }
.hero-animate-3 { animation: fade-up 0.9s cubic-bezier(0.4,0,0.2,1) 0.5s both; }
.hero-animate-4 { animation: fade-up 0.9s cubic-bezier(0.4,0,0.2,1) 0.7s both; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--black); }

.stat-item {
  text-align: center;
  padding: 2.5rem 1rem;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat-number {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
}

.stat-suffix {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-animate].animated { opacity: 1; transform: translateY(0); }
[data-animate][data-delay="1"] { transition-delay: 100ms; }
[data-animate][data-delay="2"] { transition-delay: 200ms; }
[data-animate][data-delay="3"] { transition-delay: 300ms; }
[data-animate][data-delay="4"] { transition-delay: 400ms; }
[data-animate][data-delay="5"] { transition-delay: 500ms; }
[data-animate][data-delay="6"] { transition-delay: 600ms; }

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--silver);
  background: white;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.12);
  border-color: transparent;
}

.service-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 280px;
  flex-shrink: 0;
}

.service-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.4,0,0.2,1);
}

.service-card:hover img { transform: scale(1.08); }

.service-card .card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.7) 100%);
}

.service-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card .card-tag {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-card h3 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.service-card .card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  transition: gap var(--transition);
}

.service-card:hover .card-cta { gap: 10px; }

/* ============================================================
   TRUST CARDS
   ============================================================ */
.trust-card {
  border: 1px solid var(--silver);
  border-radius: 8px;
  padding: 2rem;
  background: white;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms ease;
}

.trust-card:hover::before { transform: scaleX(1); }
.trust-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.trust-icon {
  width: 56px; height: 56px;
  background: #FEF2F2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.filter-btn {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1.5px solid var(--silver);
  border-radius: 4px;
  background: transparent;
  color: #6B7280;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.filter-active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--silver);
  cursor: pointer;
  transition: opacity 350ms ease, transform 350ms ease;
}

.portfolio-item.hidden-item {
  display: none;
}

.portfolio-item img {
  width: 100%; height: 240px;
  object-fit: cover;
  transition: transform 500ms ease;
  display: block;
}

.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.8) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-info { color: white; }

.portfolio-info .p-tag {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8080;
  display: block;
  margin-bottom: 4px;
}

.portfolio-info .p-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: white;
  border: 1px solid var(--silver);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
}

.testimonial-card .quote-mark {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 0.7;
  opacity: 0.12;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  pointer-events: none;
  user-select: none;
}

.stars { color: #F59E0B; letter-spacing: 2px; font-size: 14px; margin-bottom: 14px; }

.reviewer-name {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-top: 1.25rem;
}

.reviewer-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-label {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  border: 1.5px solid #D1D5DB;
  border-radius: 4px;
  padding: 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #111827;
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input, .form-select { height: 48px; }

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211,29,36,0.08);
}

.form-textarea {
  padding: 12px 14px;
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 12px;
  border: 1.5px solid #D1D5DB;
  border-radius: 4px;
  transition: all var(--transition);
}

.radio-option:hover { border-color: var(--primary); background: #FEF2F2; }

.radio-option input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; }

.radio-option.selected { border-color: var(--primary); background: #FEF2F2; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: white;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 4px;
  border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(211,29,36,0.3);
  text-decoration: none; line-height: 1;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(211,29,36,0.4);
}

.btn-primary:disabled {
  opacity: 0.65; cursor: not-allowed;
  transform: none; box-shadow: none;
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 27px; border-radius: 4px;
  border: 2px solid var(--primary); cursor: pointer;
  transition: all var(--transition); text-decoration: none; line-height: 1;
}

.btn-secondary:hover { background: var(--primary); color: white; }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 4px;
  border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none; line-height: 1;
}

.btn-white:hover { background: #f3f4f6; }

/* ============================================================
   PROCESS STEPS (service pages)
   ============================================================ */
.process-step { display: flex; gap: 1.5rem; align-items: flex-start; }

.step-num {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--primary); color: white;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.25rem; font-weight: 800;
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.check-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
}

.check-item:last-child { border-bottom: none; }

.check-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.check-icon svg { width: 12px; height: 12px; stroke: white; fill: none; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: #0A0A0A; }
footer .foot-link { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14px; transition: color var(--transition); }
footer .foot-link:hover { color: white; }

.foot-social {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all var(--transition);
}

.foot-social:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   HERO SERVICE (service pages)
   ============================================================ */
.service-hero {
  position: relative;
  height: 55vh; min-height: 440px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}

.service-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}

.service-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.85) 100%);
}

.service-hero-content {
  position: relative; z-index: 10;
  padding: 0 2rem 3rem;
  max-width: 1280px; margin: 0 auto; width: 100%;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.3); }
.breadcrumb .current { color: var(--primary); }

/* ============================================================
   UTILITY
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 768px) { .container { padding: 0 1.25rem; } }

.section-pad { padding: 96px 0; }
@media (max-width: 768px) { .section-pad { padding: 64px 0; } }

.section-pad-sm { padding: 64px 0; }

.bg-off-white { background: #F9FAFB; }
.bg-black { background: var(--black); }

.divider { width: 48px; height: 3px; background: var(--primary); margin: 1.25rem 0; }
.divider-center { margin: 1.25rem auto; }

/* ============================================================
   LOGO (circular badge on white chip)
   ============================================================ */
.logo-chip { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-chip.nav-chip img { height: 58px; width: auto; object-fit: contain; display: block; }
.logo-chip.foot-chip img { height: 56px; width: auto; object-fit: contain; display: block; }

@media (max-width: 768px) {
  .logo-chip.nav-chip img { height: 50px; }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.nav-scrolled .lang-switch { border-color: #D1D5DB; }

.lang-btn {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  line-height: 1;
}

.nav-scrolled .lang-btn { color: #6B7280; }

.lang-btn:hover { color: var(--primary); }
.nav-scrolled .lang-btn:hover { color: var(--primary); }

.lang-btn.lang-active {
  background: var(--primary);
  color: #ffffff;
}
.nav-scrolled .lang-btn.lang-active { color: #ffffff; }

/* Mobile language switcher (inside drawer) */
.lang-switch-mobile {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1.5rem;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}
.lang-switch-mobile .lang-btn { color: rgba(255,255,255,0.6); padding: 10px 20px; font-size: 14px; }
.lang-switch-mobile .lang-btn.lang-active { background: var(--primary); color: #fff; }

/* ============================================================
   CREATIVE / PAINT THEME
   ============================================================ */

/* Marquee handles the hero→next transition now */
#hero::after { content: none; }

/* --- Hero floating paint blobs --- */
.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.42; mix-blend-mode: screen;
}
.hero-blob.b1 { width: 380px; height: 380px; background: #D31D24; top: -70px; left: -90px; animation: blobFloatA 16s ease-in-out infinite; }
.hero-blob.b2 { width: 320px; height: 320px; background: #ff5a3c; bottom: -60px; right: -60px; animation: blobFloatB 20s ease-in-out infinite; }
.hero-blob.b3 { width: 240px; height: 240px; background: #8b0010; top: 38%; left: 56%; animation: blobFloatA 24s ease-in-out infinite reverse; }
@keyframes blobFloatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,40px) scale(1.1); } }
@keyframes blobFloatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,-50px) scale(1.08); } }

/* --- Hero brush underline (animated draw) --- */
.hero-brush { display: block; width: 280px; max-width: 70%; height: auto; margin: 4px auto 1.75rem; }
.hero-brush path {
  stroke: var(--primary); stroke-width: 9; fill: none; stroke-linecap: round;
  stroke-dasharray: 360; stroke-dashoffset: 360;
  animation: brushDraw 1.1s cubic-bezier(0.65,0,0.35,1) 0.95s forwards;
  filter: drop-shadow(0 2px 6px rgba(211,29,36,0.5));
}
@keyframes brushDraw { to { stroke-dashoffset: 0; } }

/* --- Marquee ticker --- */
.marquee {
  background: var(--primary); overflow: hidden; padding: 15px 0;
  border-top: 3px solid var(--black); border-bottom: 3px solid var(--black);
  position: relative; z-index: 6;
}
.marquee-track { display: inline-flex; align-items: center; white-space: nowrap; animation: marqueeScroll 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: 'Hanken Grotesk', sans-serif; font-weight: 900; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: #fff;
  display: inline-flex; align-items: center; padding: 0 1.4rem;
}
.marquee-item::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--black); margin-left: 2.8rem; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Brush-stroke divider (upgrades .divider everywhere) --- */
.divider {
  width: 84px; height: 18px; background: var(--primary); border-radius: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M4 13 q 12 -8 30 -5 q 20 3 42 -2 q 22 -4 40 3 q -12 8 -32 5 q -20 -3 -42 1 q -20 3 -38 -2 Z' fill='black'/%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 120 24'%3E%3Cpath d='M4 13 q 12 -8 30 -5 q 20 3 42 -2 q 22 -4 40 3 q -12 8 -32 5 q -20 -3 -42 1 q -20 3 -38 -2 Z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* --- Before / After slider --- */
.ba {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: 14px; overflow: hidden; cursor: ew-resize; user-select: none;
  box-shadow: 0 24px 64px rgba(0,0,0,0.20); --pos: 50%;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba .ba-before { filter: grayscale(0.92) brightness(0.6) contrast(0.92); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba.demo .ba-before { transition: clip-path 0.55s cubic-bezier(0.4,0,0.2,1); }
.ba.demo .ba-divider { transition: left 0.55s cubic-bezier(0.4,0,0.2,1); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35); border: 3px solid #fff;
}
.ba-tag {
  position: absolute; bottom: 16px; font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: rgba(10,10,10,0.55); padding: 6px 12px; border-radius: 4px;
  backdrop-filter: blur(4px); pointer-events: none;
}
.ba-tag-before { left: 16px; }
.ba-tag-after  { right: 16px; background: rgba(211,29,36,0.85); }

/* --- Colour swatches --- */
.swatch-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 1.5rem; }
.swatch {
  width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15); cursor: pointer; position: relative;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s;
}
.swatch:hover { transform: translateY(-8px) scale(1.12); box-shadow: 0 14px 28px rgba(0,0,0,0.28); }
.swatch::after {
  content: attr(data-hex); position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%);
  font-family: 'Hanken Grotesk', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.05em;
  color: #6B7280; opacity: 0; transition: opacity 0.25s; white-space: nowrap;
}
.swatch:hover::after { opacity: 1; }

/* --- Service card top paint accent on hover --- */
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease; z-index: 4;
}
.service-card:hover::after { transform: scaleX(1); }

/* --- CTA band with subtle paint-splatter texture --- */
.cta-band { position: relative; background: var(--primary); overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 22%, rgba(255,255,255,0.13) 0 7px, transparent 8px),
    radial-gradient(circle at 86% 68%, rgba(0,0,0,0.13) 0 11px, transparent 12px),
    radial-gradient(circle at 68% 20%, rgba(255,255,255,0.10) 0 4px, transparent 5px),
    radial-gradient(circle at 28% 78%, rgba(0,0,0,0.10) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06) 0 3px, transparent 4px);
}
.cta-band > * { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .hero-brush { margin-bottom: 1.25rem; }
  .marquee-item { font-size: 0.95rem; }
  .ba-handle { width: 42px; height: 42px; }
  .swatch { width: 46px; height: 46px; }
}

/* ============================================================
   STATS BAR — enhanced
   ============================================================ */
.stats-bar { position: relative; overflow: hidden; }
.stats-bar::after {
  content: ''; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(211,29,36,0.18), transparent 70%); pointer-events: none;
}
.stat-item { transition: transform 0.3s ease; }
.stat-item:hover { transform: translateY(-5px); }
.stat-icon {
  width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 12px;
  background: rgba(211,29,36,0.14); display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.stats-bar .stat-number { font-size: 3.3rem; text-shadow: 0 4px 28px rgba(211,29,36,0.35); }
.stat-underline { width: 0; height: 3px; background: var(--primary); border-radius: 2px; margin: 14px auto 0; transition: width 0.85s cubic-bezier(0.4,0,0.2,1) 0.35s; }
.stat-item.animated .stat-underline { width: 42px; }
@media (max-width: 768px) { .stats-bar .stat-number { font-size: 2.6rem; } }

/* ============================================================
   COLOUR VISUALIZER
   ============================================================ */
.viz { --wall: #C9B79C; }
.viz-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; }
.scene-tab {
  font-family: 'Hanken Grotesk', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 9px 22px; border: 1.5px solid var(--silver); border-radius: 4px;
  background: #fff; color: #6B7280; cursor: pointer; transition: all var(--transition);
}
.scene-tab:hover { border-color: var(--primary); color: var(--primary); }
.scene-tab.scene-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.viz-stage { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--silver); box-shadow: 0 24px 64px rgba(0,0,0,0.14); background: #fff; }
.viz-scene { display: none; }
.viz-scene.active { display: block; }
.viz-scene svg { display: block; width: 100%; height: auto; }
.paint-target { fill: var(--wall); transition: fill 0.45s ease; }
.viz-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  margin-top: 26px; background: #fff; border: 1px solid var(--silver); border-radius: 12px; padding: 20px 24px;
}
.viz-swatches { margin-top: 0; justify-content: flex-start; flex: 1; gap: 12px; }
.viz-swatch.sel { transform: translateY(-4px); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--primary); }
.viz-picker-wrap { display: flex; align-items: center; gap: 12px; }
.viz-picker-label { font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6B7280; }
.viz-picker { width: 46px; height: 46px; padding: 0; border: none; background: none; cursor: pointer; }
.viz-picker::-webkit-color-swatch-wrapper { padding: 0; }
.viz-picker::-webkit-color-swatch { border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.viz-picker::-moz-color-swatch { border: 3px solid #fff; border-radius: 50%; }
.viz-hex { font-family: 'Hanken Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: #111827; min-width: 74px; }
@media (max-width: 640px) {
  .viz-controls { flex-direction: column; align-items: stretch; }
  .viz-swatches { justify-content: center; }
  .viz-picker-wrap { justify-content: center; }
}

/* ============================================================
   MOBILE RESPONSIVE FIXES
   Inline grid-template-columns beats Tailwind's responsive
   classes, so the layouts never collapsed on phones. We force
   the correct column counts here (and it works even if the
   Tailwind CDN fails, since display:grid is set inline).
   ============================================================ */
/* Navigation show/hide — done in our own CSS so it works even if the
   Tailwind CDN is slow/unavailable (inline display:flex was defeating
   Tailwind's hidden/md:hidden, showing desktop links AND the burger). */
@media (max-width: 767px) {
  #main-nav .md\:flex { display: none !important; }
  #main-nav #menu-btn { display: flex !important; }
}
@media (min-width: 768px) {
  #main-nav .md\:flex { display: flex !important; }
  #main-nav #menu-btn { display: none !important; }
}

@media (max-width: 767px) {
  .grid.grid-cols-1 { grid-template-columns: 1fr !important; }
  .grid.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  /* tame the large desktop gutters once columns stack vertically */
  [style*="gap:72px"], [style*="gap:64px"], [style*="gap:40px"] { gap: 2.25rem !important; }

  /* drop the stray vertical divider lines in the stacked stats grid */
  .stat-item + .stat-item::before { display: none; }
  .stat-item { padding: 1.75rem 0.75rem; }

  /* keep the about floating badge from being clipped off-screen */
  #about [style*="bottom:-20px"] { left: 12px !important; bottom: 12px !important; }

  /* hero a touch tighter on short phones */
  #hero { min-height: 600px; }

  /* stop long emails/links from overflowing narrow footer columns */
  footer .foot-link, footer span { overflow-wrap: anywhere; }
}

/* Tablets: the 4-column feature grids (services / trust / process) → 2 cols */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid.lg\:grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Very small phones: stack the side-by-side form fields */
@media (max-width: 430px) {
  #contact-form .grid.grid-cols-2 { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-blob { animation: none; }
  .hero-brush path { stroke-dashoffset: 0; animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
