/* ============================================
   PURE INTEGRITY COATINGS — Design System
   Professional & Clean Epoxy Coatings
   ============================================ */

/* --- Type Scale --- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.5rem, 0.5rem + 6vw, 5rem);
}

/* --- Spacing --- */
:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* --- Fonts --- */
:root {
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
}

/* --- Light Mode (Warm Amber + Slate Teal) ---
   Primary is the dominant brand color (amber/gold — warm, premium craftsmanship).
   Accent is the sparingly-used secondary (muted slate-teal — deeper, less neon). */
:root,
[data-theme='light'] {
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-surface-2: #f8f9fb;
  --color-surface-offset: #ebedf1;
  --color-surface-offset-2: #e2e5ea;
  --color-surface-dynamic: #d8dce2;
  --color-divider: #e0e3e8;
  --color-border: #d1d5dd;

  --color-text: #14171e;
  --color-text-muted: #5b6270;
  --color-text-faint: #9ba1ad;
  --color-text-inverse: #1a1206;

  /* Amber/gold — dominant brand color */
  --color-primary: #b8781f;
  --color-primary-hover: #9c6418;
  --color-primary-active: #7f5112;
  --color-primary-highlight: #f4e2c2;

  /* Muted slate-teal — secondary accent, used sparingly */
  --color-accent: #2f5a5e;
  --color-accent-hover: #244548;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px rgba(20, 23, 30, 0.06);
  --shadow-md: 0 4px 16px rgba(20, 23, 30, 0.08);
  --shadow-lg: 0 12px 40px rgba(20, 23, 30, 0.12);

  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1280px;
}

/* --- Dark Mode --- */
[data-theme='dark'] {
  --color-bg: #0e1014;
  --color-surface: #161a21;
  --color-surface-2: #1a1f27;
  --color-surface-offset: #1c2128;
  --color-surface-offset-2: #222831;
  --color-surface-dynamic: #2a313c;
  --color-divider: #232830;
  --color-border: #2e3540;

  --color-text: #d4d7de;
  --color-text-muted: #8b91a0;
  --color-text-faint: #555b67;
  --color-text-inverse: #1a1206;

  /* Amber/gold — dominant brand color (contrast-safe on dark bg) */
  --color-primary: #e0a548;
  --color-primary-hover: #eab35c;
  --color-primary-active: #c99339;
  --color-primary-highlight: #2a2015;

  /* Muted slate-teal — secondary accent, used sparingly */
  --color-accent: #4a8a8f;
  --color-accent-hover: #5aa0a5;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* System dark mode fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0e1014;
    --color-surface: #161a21;
    --color-surface-2: #1a1f27;
    --color-surface-offset: #1c2128;
    --color-surface-offset-2: #222831;
    --color-surface-dynamic: #2a313c;
    --color-divider: #232830;
    --color-border: #2e3540;
    --color-text: #d4d7de;
    --color-text-muted: #8b91a0;
    --color-text-faint: #555b67;
    --color-text-inverse: #1a1206;
    --color-primary: #e0a548;
    --color-primary-hover: #eab35c;
    --color-primary-active: #c99339;
    --color-primary-highlight: #2a2015;
    --color-accent: #4a8a8f;
    --color-accent-hover: #5aa0a5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  }
}

/* ============================================
   COMPONENTS
   ============================================ */

/* --- Layout --- */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: clamp(var(--space-10), 4vw, var(--space-16));
}

.section-tight {
  padding-block: clamp(var(--space-8), 4vw, var(--space-16));
}

/* --- Header / Nav --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow var(--transition-interactive);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-text span {
  color: var(--color-primary);
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 880px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.phone-link {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

@media (min-width: 600px) {
  .phone-link {
    display: flex;
  }
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
  border-radius: var(--radius-md);
}

@media (min-width: 880px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 49;
  padding: var(--space-6) var(--space-4);
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
}

.mobile-menu a:hover {
  background: var(--color-surface-offset);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  border: 1px solid transparent;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), color var(--transition-interactive);
}

/* Primary CTA uses the amber brand color for a warm, premium feel on both themes. */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 2px 8px oklch(from var(--color-primary) l c h / 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(from var(--color-primary) l c h / 0.45);
}

.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
  box-shadow: 0 2px 6px oklch(from var(--color-primary) l c h / 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.15);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--space-20) var(--space-16);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    oklch(from var(--color-bg) l c h / 0.92) 0%,
    oklch(from var(--color-bg) l c h / 0.7) 50%,
    oklch(from var(--color-bg) l c h / 0.4) 100%
  );
}

[data-theme='dark'] .hero-bg::after {
  background: linear-gradient(
    90deg,
    oklch(from var(--color-bg) l c h / 0.94) 0%,
    oklch(from var(--color-bg) l c h / 0.75) 50%,
    oklch(from var(--color-bg) l c h / 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: oklch(from var(--color-primary) l c h / 0.12);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Legacy hero-stats kept for safety in case referenced elsewhere */
.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Non-quantified trust row shown under the hero CTAs */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.1);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.hero-trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* --- Section Headings --- */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header.center {
  text-align: center;
  margin-inline: auto;
  max-width: 640px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
}

.section-header.center .section-description {
  margin-inline: auto;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.service-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
}

.service-card-link {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.service-card-link:hover {
  gap: var(--space-3);
}

/* --- Features / Why Choose Us --- */
.features {
  background: var(--color-surface);
  border-block: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

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

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: oklch(from var(--color-primary) l c h / 0.1);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

.feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- Process --- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  text-align: center;
}

.process-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.process-step-num svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

.process-step h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

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

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1/1;
}

.gallery-item:nth-child(1) {
  grid-column: span 1;
}

@media (min-width: 960px) {
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1/1;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(transparent, oklch(from var(--color-bg) l c h / 0.85));
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  opacity: 0;
  transition: opacity var(--transition-interactive);
}

.gallery-item:hover .gallery-item-label {
  opacity: 1;
}

/* --- About --- */
.about {
  background: var(--color-surface);
  border-block: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.about-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.about-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.about-list-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Quote Form --- */
.quote-section {
  background:
    radial-gradient(circle at 15% 20%, oklch(from var(--color-primary) l c h / 0.04), transparent 40%),
    radial-gradient(circle at 85% 80%, oklch(from var(--color-accent) l c h / 0.03), transparent 40%),
    var(--color-surface-2);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .quote-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-16);
  }
}

.quote-info h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.quote-info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.quote-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.quote-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.quote-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.quote-contact-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.quote-contact-item a:hover {
  color: var(--color-primary);
}

/* Form */
.form {
  background: var(--color-bg);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

@media (min-width: 640px) {
  .form {
    padding: var(--space-10);
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 480px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group label .required {
  color: #e05a5a; /* required-field indicator */
}

.form-control {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
  border-radius: var(--radius-md);
  min-height: 44px;
  font-family: var(--font-body);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}

.form-control::placeholder {
  color: var(--color-text-faint);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.form-submit {
  margin-top: var(--space-4);
  width: 100%;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-10) var(--space-6);
}

.form-success.show {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
}

.form-success h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.form-success p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-active) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-12), 6vw, var(--space-20));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, oklch(1 0 0 / 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, oklch(1 0 0 / 0.06), transparent 40%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
}

[data-theme='dark'] .cta-banner {
  background: var(--color-primary-highlight);
}

.cta-banner::before {
  display: none;
}

.cta-banner h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  color: var(--color-text-inverse);
  position: relative;
}

[data-theme='dark'] .cta-banner h2 {
  color: var(--color-text);
}

.cta-banner p {
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
  margin-bottom: var(--space-6);
  max-width: 50ch;
  margin-inline: auto;
  position: relative;
}

[data-theme='dark'] .cta-banner p {
  color: var(--color-text-muted);
}

.cta-banner .btn {
  position: relative;
}

.cta-banner .btn-primary {
  background: var(--color-text-inverse);
  color: var(--color-primary);
}

[data-theme='dark'] .cta-banner .btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.cta-banner .btn-primary:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.9);
}

/* --- Flake Color Chart --- */
/* ============================================
   FLAKE COLOR CHART — premium sample-board look
   Larger swatches, dark card body, textured depth,
   subtle sheen sweep, amber accent on hover.
   ============================================ */
.flake-chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 500px) {
  .flake-chart-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .flake-chart-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Flake swatches: always dark-themed regardless of site theme, per design brief
   requesting a "dark premium" card look with amber accent glow. */
.flake-swatch {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #1c1d21 0%, #131418 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 380ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flake-swatch:hover {
  transform: translateY(-4px);
  border-color: oklch(from var(--color-primary) l c h / 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 48px rgba(0, 0, 0, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.35),
    0 0 0 1px oklch(from var(--color-primary) l c h / 0.15),
    0 0 32px oklch(from var(--color-primary) l c h / 0.22);
}

.flake-swatch-img {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.flake-swatch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Subtle contrast/saturation lift so the flake texture reads richer, more depth */
  filter: contrast(1.08) saturate(1.12) brightness(1.02);
  transition: filter 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flake-swatch:hover .flake-swatch-img img {
  filter: contrast(1.12) saturate(1.2) brightness(1.05);
}

/* Sheen / wet-look sweep across the swatch — mimics light catching a real epoxy sample */
.flake-swatch-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateX(-8%);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 400ms ease;
  opacity: 0.9;
}

.flake-swatch:hover .flake-swatch-img::before {
  transform: translateX(8%);
  opacity: 1;
}

/* Vignette + top highlight for depth and sample-board feel */
.flake-swatch-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(120% 90% at 50% 100%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

.flake-swatch-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  position: relative;
}

/* Thin amber underline that expands on hover to tie name back to the brand color */
.flake-swatch-body::after {
  content: '';
  position: absolute;
  left: var(--space-5);
  right: var(--space-5);
  bottom: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flake-swatch:hover .flake-swatch-body::after {
  transform: scaleX(1);
}

.flake-swatch-name {
  display: block;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  /* Hardcoded light color because the card body is now dark in every theme */
  color: #f5f4f1;
  line-height: 1.1;
}

.flake-swatch-desc {
  display: block;
  padding: 0;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245, 244, 241, 0.55);
}

/* More Available Colors */
.flake-chart-more {
  margin-top: var(--space-8);
  text-align: center;
}

.flake-chart-more-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.flake-chart-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.flake-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  background: oklch(from var(--color-text) l c h / 0.06);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

/* --- Footer --- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding-block: var(--space-12) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 400px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-primary);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Before / After Slider --- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .ba-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ba-item {
  text-align: center;
  transition: transform var(--transition-interactive);
}

.ba-item:hover {
  transform: translateY(-4px);
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: ew-resize;
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  user-select: none;
  touch-action: pan-y;
  outline: none;
}

.ba-slider:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* JS drives width/left via a rAF lerp; keep CSS out of it to avoid double-animation. */

.ba-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* The "after" panel is a clipping mask. The image inside is absolutely positioned
   at the FULL slider width so changing the mask width never rescales the image —
   it's a pure linear reveal (curtain), not a zoom. */
.ba-after {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
}

.ba-after img {
  position: absolute;
  top: 0;
  left: 0;
  /* Width set by JS to match the slider's rendered pixel width so the image stays
     pinned at natural scale regardless of how narrow the reveal mask becomes. */
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.ba-handle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  color: var(--color-text-inverse);
  background: var(--color-primary);
  border-radius: 50%;
  padding: 6px;
  box-sizing: content-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.14);
  transition: box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
              background 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* No scaling on hover or drag — only color / shadow feedback, so the interaction
   reads as a pure horizontal reveal with no zoom-like motion. */
.ba-slider:hover .ba-handle svg,
.ba-slider:focus-visible .ba-handle svg {
  background: var(--color-primary-hover);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45),
              0 0 0 4px rgba(255, 255, 255, 0.18),
              0 0 24px oklch(from var(--color-primary) l c h / 0.35);
}

.ba-slider--dragging .ba-handle svg {
  background: var(--color-primary-active);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45),
              0 0 0 4px rgba(255, 255, 255, 0.22),
              0 0 28px oklch(from var(--color-primary) l c h / 0.45);
  transition: none;
}

.ba-label {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

/* --- FAQ --- */
.faq-list {
  max-width: var(--content-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.faq-item summary {
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  padding: 0 var(--space-5) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- Mobile Sticky CTA Bar --- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.mobile-cta-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
}

.mobile-cta-call {
  color: var(--color-text);
}

.mobile-cta-quote {
  color: var(--color-text-inverse);
  background: var(--color-primary);
}

@media (max-width: 767px) {
  .mobile-cta-bar {
    display: flex;
  }

  body {
    padding-bottom: 64px;
  }
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--color-surface);
  border-block: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding-block: var(--space-4);
}

.trust-bar-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6) var(--space-10);
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.trust-bar-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* --- Reviews / Social Proof --- */
.reviews-section {
  background: var(--color-surface-2);
}

.reviews-cta {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.reviews-badge:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.reviews-badge-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.reviews-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.reviews-badge-text small {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
}

.reviews-placeholder {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- Service Areas --- */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.area-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: border-color var(--transition-interactive), color var(--transition-interactive);
}

.area-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.area-tag svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
}
