/* ═══════════════════════════════════════════════════
   Paul's Painting — Wakefield, MA
   Design: "The Painter's Canvas"
   Typography: Young Serif + Hanken Grotesk
   Palette: Sherwin-Williams inspired
   ═══════════════════════════════════════════════════ */

:root {
  /* Core palette — inspired by real SW paint colors */
  --primary: #2E3441;
  --primary-dark: #1E242E;
  --primary-light: #4A6080;
  --accent: #C4923A;
  --accent-dark: #A87A2E;
  --accent-light: #D4A84E;

  /* Named paint colors */
  --naval: #2E3441;
  --alabaster: #F2EDE4;
  --repose: #B8B3A8;
  --fog: #95978B;
  --charcoal: #363636;

  /* Semantic */
  --text: #2A2A2A;
  --text-light: #5E5E5E;
  --text-muted: #999;
  --bg: #FAF8F5;
  --bg-light: #F5F0E8;
  --bg-warm: #EDE8DE;
  --border: #E0DAD0;
  --white: #FFFFFF;

  /* Effects */
  --shadow: rgba(46,52,65,0.06);
  --shadow-md: rgba(46,52,65,0.10);
  --shadow-lg: rgba(46,52,65,0.14);
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);

  /* Fonts */
  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle canvas texture on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn:hover::after { transform: translateX(100%); }

.btn-primary {
  background: var(--naval);
  color: #fff;
  border-color: var(--naval);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,52,65,0.18);
}

.btn-accent, .btn-gold {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover, .btn-gold:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,146,58,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--naval);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--naval);
  color: #fff;
  border-color: var(--naval);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

.btn-lg { padding: 16px 38px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: 0.82rem; }
.btn-full { width: 100%; }
.btn-icon { font-size: 1.1em; }

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  padding: 20px 0;
}
.navbar.scrolled {
  background: rgba(250,248,245,0.92);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(46,52,65,0.06);
  padding: 10px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  font-size: 1.8rem;
  color: var(--accent);
  transition: color var(--transition);
}

.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.1;
  transition: color var(--transition);
}
.logo-tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.navbar.scrolled .logo-name { color: var(--text); }
.navbar.scrolled .logo-tagline { color: var(--text-muted); }
.navbar.scrolled .logo-icon { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
}
.nav-links li a {
  position: relative;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-links li a:hover { color: #fff; }
.nav-links li a:hover::after { transform: scaleX(1) rotate(-1deg); }

.navbar.scrolled .nav-links li a { color: var(--text-light); }
.navbar.scrolled .nav-links li a:hover { color: var(--naval); }
.navbar.scrolled .nav-links li a::after { background: var(--accent); }

.nav-links li a.active {
  color: #fff !important;
  background: var(--naval);
}
.navbar.scrolled .nav-links li a.active {
  color: #fff !important;
  background: var(--naval);
}
.nav-links li a.active::after { display: none; }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.35s ease;
}
.navbar.scrolled .nav-toggle span { background: var(--text); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--naval);
  overflow: hidden;
}

/* Warm radial glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(196,146,58,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74,96,128,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(184,179,168,0.05) 0%, transparent 70%);
}

/* Subtle diagonal lines */
.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 14px,
    rgba(255,255,255,0.5) 14px,
    rgba(255,255,255,0.5) 15px
  );
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 140px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text { color: #fff; }

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(196,146,58,0.3);
  border-radius: 50px;
  animation: heroFadeUp 0.8s cubic-bezier(0,0,0.2,1) 0.1s both;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 24px;
  line-height: 1.08;
  animation: heroFadeUp 0.8s cubic-bezier(0,0,0.2,1) 0.25s both;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 480px;
  opacity: 0.75;
  line-height: 1.8;
  margin-bottom: 36px;
  animation: heroFadeUp 0.8s cubic-bezier(0,0,0.2,1) 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.8s cubic-bezier(0,0,0.2,1) 0.55s both;
}
.hero-actions .btn-gold {
  font-size: 1.05rem;
  padding: 17px 36px;
}

/* Hero paint chips */
.hero-visual {
  position: relative;
  min-height: 420px;
  animation: heroFadeUp 1s cubic-bezier(0,0,0.2,1) 0.3s both;
}

.paint-chips {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.paint-chip {
  position: absolute;
  width: 130px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
  animation: chipIn 0.7s cubic-bezier(0,0,0.2,1) var(--delay, 0s) both;
  cursor: default;
}
.paint-chip:hover {
  transform: var(--rot) scale(1.08) translateY(-8px) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10 !important;
}

.chip-color {
  aspect-ratio: 1;
  background: var(--chip);
}
.chip-label {
  background: #fff;
  padding: 10px 12px 8px;
}
.chip-label span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--charcoal);
  line-height: 1.2;
}
.chip-label small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.paint-chip:nth-child(1) { top: 2%; left: 0%; transform: rotate(-5deg); z-index: 2; }
.paint-chip:nth-child(2) { top: 8%; left: 48%; transform: rotate(4deg); z-index: 4; }
.paint-chip:nth-child(3) { top: 36%; left: 12%; transform: rotate(-2deg); z-index: 1; }
.paint-chip:nth-child(4) { top: 42%; left: 58%; transform: rotate(6deg); z-index: 3; }
.paint-chip:nth-child(5) { top: 68%; left: 28%; transform: rotate(-4deg); z-index: 5; }

.hero-badges {
  position: relative;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px 60px;
  animation: heroFadeUp 0.8s cubic-bezier(0,0,0.2,1) 0.7s both;
}
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Brush stroke section divider */
.hero-divider {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  overflow: hidden;
}
.hero-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Sections ── */
.section { padding: 96px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text);
  margin-bottom: 14px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Painted top border motif for cards */
.service-card, .spec-card, .why-card, .contact-card {
  position: relative;
}
.service-card::before, .why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover::before, .why-card:hover::before {
  transform: scaleX(1);
}

/* ── Services Grid ── */
.services-section { background: var(--bg-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px var(--shadow);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px var(--shadow-lg);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--naval);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.93rem;
  margin-bottom: 18px;
  line-height: 1.7;
}

.service-list { list-style: none; }
.service-list li {
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--text-light);
}
.service-list li::before {
  content: '\2022';
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

/* ── Color Visualizer ── */
.visualizer-section { background: var(--bg); }
.visualizer-wrapper { max-width: 1100px; margin: 0 auto; }

.upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-light);
  transition: all var(--transition);
  cursor: pointer;
}
.upload-area.drag-over {
  border-color: var(--accent);
  background: rgba(196,146,58,0.04);
}

.upload-content { text-align: center; padding: 48px 24px; }
.upload-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.5; }
.upload-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text);
}
.upload-content p { color: var(--text-light); margin-bottom: 20px; }
.upload-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.upload-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 16px !important; }

/* Editor Layout */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  min-height: 500px;
}
.canvas-panel { display: flex; flex-direction: column; }

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--bg-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  align-items: center;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}
.tool-btn:hover { background: var(--naval); color: #fff; border-color: var(--naval); }
.tool-btn.active { background: var(--naval); color: #fff; border-color: var(--naval); }

.tolerance-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}
.tolerance-control input[type="range"] {
  width: 100px;
  accent-color: var(--accent);
}

.canvas-container {
  position: relative;
  background: #e8e8e8;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
#mainCanvas { display: block; max-width: 100%; cursor: crosshair; }
.canvas-instructions {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(46,52,65,0.85);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  text-align: center;
  max-width: 90%;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

/* Color Panel */
.color-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.color-panel-header { padding: 16px; border-bottom: 1px solid var(--border); }
.color-panel-header h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--naval);
}
.color-search {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  background: var(--white);
  transition: border-color var(--transition);
}
.color-search:focus { border-color: var(--accent); }

.color-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.cat-btn {
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-light);
}
.cat-btn:hover { background: var(--naval); color: #fff; border-color: var(--naval); }
.cat-btn.active { background: var(--naval); color: #fff; border-color: var(--naval); }

.selected-color-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.selected-swatch {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--border);
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.selected-info { display: flex; flex-direction: column; }
.selected-name { font-weight: 700; font-size: 0.88rem; }
.selected-code { font-size: 0.75rem; color: var(--text-muted); }

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 5px;
  padding: 12px;
  overflow-y: auto;
  max-height: 400px;
}
.color-swatch {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4px;
  position: relative;
  overflow: hidden;
}
.color-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px var(--shadow-md);
  z-index: 2;
}
.color-swatch.active {
  border-color: var(--naval);
  box-shadow: 0 0 0 3px rgba(46,52,65,0.2);
  transform: scale(1.05);
}
.swatch-name {
  font-size: 0.55rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  opacity: 0;
  transition: opacity 0.2s;
}
.color-swatch:hover .swatch-name { opacity: 1; }

.download-bar {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 24px 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── Why Choose Us ── */
.why-section { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow);
}
.why-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3rem;
  color: var(--repose);
  line-height: 1;
  margin-bottom: 12px;
}
.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--naval);
}
.why-card p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ── Trusted Products (SW Partnership) ── */
.trusted-section {
  background: var(--bg-light);
  padding: 48px 0;
}
.trusted-banner {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}
.trusted-badge {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.trusted-sw-logo {
  flex-shrink: 0;
}
.trusted-sw-logo svg {
  display: block;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}
.trusted-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trusted-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--naval);
}
.trusted-text span {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}
.trusted-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trusted-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.trusted-feature-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 10px;
}
.trusted-feature strong {
  display: block;
  font-size: 0.92rem;
  color: var(--naval);
  margin-bottom: 2px;
}
.trusted-feature span {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .trusted-banner { padding: 28px 20px; }
  .trusted-badge {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .trusted-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── Service Area ── */
.area-section { background: var(--bg-light); }
.area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.area-tag {
  background: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--naval);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.area-tag:hover {
  background: var(--naval);
  color: #fff;
  border-color: var(--naval);
  transform: translateY(-2px);
}

/* ── About ── */
.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--text);
}
.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.85;
}
.about-cta { margin-top: 28px; }

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.highlight:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 16px var(--shadow);
}
.highlight-icon { font-size: 1.8rem; flex-shrink: 0; }
.highlight strong {
  display: block;
  font-size: 0.93rem;
  color: var(--text);
}
.highlight span {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ── Contact ── */
.contact-section { background: var(--bg-light); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow);
}
.contact-icon { font-size: 1.8rem; margin-bottom: 10px; }
.contact-card h3 {
  font-size: 0.95rem;
  color: var(--naval);
  margin-bottom: 8px;
}
.contact-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
a.contact-value:hover { color: var(--accent); }
.contact-card p:not(.contact-value) {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 7px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,146,58,0.1);
}
.form-group textarea { resize: vertical; }
.form-note { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }
.form-note a { color: var(--accent); font-weight: 600; }

.form-success { text-align: center; padding: 40px 20px; }
.success-icon { font-size: 3rem; color: #28a745; margin-bottom: 16px; }
.form-success h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 12px; color: var(--naval); }
.form-success p { color: var(--text-light); margin-bottom: 20px; }

/* ── Footer ── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 32px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .logo-icon { font-size: 1.4rem; color: var(--accent); }
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  display: block;
  font-weight: 400;
}
.footer-brand span { font-size: 0.78rem; }

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }

.footer-areas {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}
.footer-areas strong {
  color: rgba(255,255,255,0.7);
  margin-right: 4px;
}
.footer-areas a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-areas a:hover { color: var(--accent); }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer-contact a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--accent);
}
.footer-contact a:hover { color: var(--accent-light); }
.footer-contact span { font-size: 0.78rem; }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
}

/* ── Page Header (non-hero) ── */
.page-header {
  background: var(--naval);
  color: #fff;
  padding: 130px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(196,146,58,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(74,96,128,0.15) 0%, transparent 50%);
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 14px,
    rgba(255,255,255,0.5) 14px,
    rgba(255,255,255,0.5) 15px
  );
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 14px;
  animation: heroFadeUp 0.6s cubic-bezier(0,0,0.2,1) 0.1s both;
}
.page-header p {
  font-size: 1.05rem;
  opacity: 0.7;
  max-width: 500px;
  margin: 0 auto;
  animation: heroFadeUp 0.6s cubic-bezier(0,0,0.2,1) 0.25s both;
}

/* ── Tool Tabs Bar ── */
.tool-tabs-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}
.tool-tabs { display: flex; gap: 0; overflow-x: auto; }
.tool-tab {
  flex: 1;
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.tool-tab:hover {
  color: var(--naval);
  background: var(--bg-light);
}
.tool-tab.active {
  color: var(--naval);
  border-bottom-color: var(--accent);
  background: var(--bg-light);
}
.tool-panel { display: none; }
.tool-panel.active { display: block; }

/* ── CTA Section ── */
.cta-section {
  background: var(--naval);
  text-align: center;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(196,146,58,0.08) 0%, transparent 60%);
}
.cta-section .container { position: relative; }
.cta-section h2 {
  color: #fff;
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.cta-section p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Animations ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chipIn {
  from { opacity: 0; transform: var(--rot, rotate(0deg)) translateY(40px) scale(0.85); }
  to { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0,0,0.2,1), transform 0.7s cubic-bezier(0,0,0.2,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── Scrollbar ── */
.color-grid::-webkit-scrollbar { width: 6px; }
.color-grid::-webkit-scrollbar-track { background: transparent; }
.color-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.color-grid::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .editor-layout { grid-template-columns: 1fr; }
  .color-grid { max-height: 250px; }
  .about-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { flex-direction: row; flex-wrap: wrap; }
  .contact-card { flex: 1 1 200px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 300px; }
  .paint-chips { min-height: 300px; }
  .paint-chip { width: 105px; }
  .paint-chip:nth-child(1) { top: 0%; left: 2%; }
  .paint-chip:nth-child(2) { top: 0%; left: 38%; }
  .paint-chip:nth-child(3) { top: 0%; left: 70%; }
  .paint-chip:nth-child(4) { top: 52%; left: 15%; }
  .paint-chip:nth-child(5) { top: 52%; left: 55%; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 24px 40px;
    box-shadow: -8px 0 30px rgba(46,52,65,0.12);
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    gap: 2px;
  }
  .nav-links.open { right: 0; }
  .nav-links li a {
    color: var(--text) !important;
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
  }
  .nav-links li a::after { display: none; }
  .nav-links li a:hover {
    background: var(--bg-light) !important;
    color: var(--naval) !important;
  }

  .hero-grid { padding: 110px 16px 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-tag { font-size: 0.72rem; }

  .section { padding: 72px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .section-header { margin-bottom: 40px; }

  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-nav { gap: 16px; }

  .tool-tabs-bar { top: 52px; }
  .tool-tab { padding: 12px 16px; font-size: 0.82rem; }
  .page-header { padding: 100px 0 40px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-subtitle { font-size: 0.93rem; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-gold { padding: 15px 24px; }
  .hero-badges { gap: 8px; }
  .badge { font-size: 0.75rem; padding: 8px 14px; }
  .hero-visual { min-height: 220px; }
  .paint-chips { min-height: 220px; }
  .paint-chip { width: 85px; }
  .chip-label { padding: 6px 8px 5px; }
  .chip-label span { font-size: 0.68rem; }
  .chip-label small { font-size: 0.55rem; }

  .upload-content h3 { font-size: 1.2rem; }
  .color-grid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }

  .contact-form { padding: 24px 16px; }

  .tool-tab { font-size: 0.74rem; padding: 10px 12px; }

  .tolerance-control { margin-left: 0; width: 100%; }
}
