/* ============================================
   Custom Paint Works - Vintage 1950s Garage
   ============================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- PALETTE ---------- */
:root {
  --cream: #F2ECD8;
  --cream-dark: #E8DEBD;
  --red: #8B0000;
  --red-hover: #A31212;
  --orange: #CC4400;
  --ink: #2C1810;          /* dark brown body text */
  --wood: #1A0F0A;         /* nav / dark surfaces */
  --wood-edge: #0d0704;
  --shadow-emboss:
     0 2px 0 rgba(0,0,0,0.35),
     0 4px 12px rgba(0,0,0,0.35),
     inset 0 1px 0 rgba(255,255,255,0.18),
     inset 0 -2px 0 rgba(0,0,0,0.35);
}

/* ---------- BASE / GRAIN ---------- */
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
}

/* Reusable grain texture overlay (SVG fractal noise) */
.section, .hero, .footer {
  position: relative;
  isolation: isolate;
}
.section::before,
.hero::before,
.footer::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18   0 0 0 0 0.10   0 0 0 0 0.04   0 0 0 0.28 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero::before { mix-blend-mode: overlay; opacity: 0.6; }
/* Disable grain on sections that use ::before for flames */
#about::before, #services::before { mix-blend-mode: normal; opacity: 1; }
.footer::before { mix-blend-mode: overlay; opacity: 0.55; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, .nav-brand, .btn {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-sub, blockquote, .quote-form .form-title-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid rgba(0,0,0,0.35);
  border-radius: 4px;
  background: var(--red);
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  box-shadow: var(--shadow-emboss);
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: var(--red-hover);
  box-shadow:
    0 2px 0 rgba(0,0,0,0.35),
    0 4px 14px rgba(139,0,0,0.55),
    0 0 24px rgba(204,68,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -2px 0 rgba(0,0,0,0.35);
}
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); box-shadow: none; text-shadow: none; }
.btn-outline:hover { background: var(--red); color: var(--cream); box-shadow: var(--shadow-emboss); text-shadow: 0 1px 0 rgba(0,0,0,0.35); }
.btn-block { width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--wood);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.25)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='0.02 0.7' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.08   0 0 0 0 0.04   0 0 0 0 0.02   0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23w)'/></svg>");
  border-bottom: 3px solid var(--red);
  box-shadow: 0 3px 14px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 20px;
}
.nav-brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 700; color: var(--cream);
  font-size: 22px;
  letter-spacing: 0.12em;
}
.nav-brand:hover { color: var(--red); }
.nav-brand { display: inline-flex; align-items: center; }
.nav-logo {
  height: 60px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;           /* drops the white card on the dark nav */
  filter: contrast(1.05);
}

/* ---------- HERO LOGO ---------- */
.hero-logo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--cream);
  box-shadow:
    0 0 0 3px var(--red),
    0 0 36px rgba(139, 0, 0, 0.8),
    0 14px 36px rgba(0, 0, 0, 0.6);
  background: var(--cream);
}

/* ---------- FOOTER LOGO ---------- */
.footer-logo {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}
.nav-links {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a { color: var(--cream); padding: 6px 2px; transition: color 0.2s; }
.nav-links a:hover { color: var(--red); }
.nav-sep { color: var(--red); font-size: 14px; }
.nav-cta { font-size: 13px; padding: 10px 18px; }

/* ---------- HERO ---------- */
.hero {
  min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 20px;
  overflow: hidden;
  background: var(--wood);
  border-bottom: 4px solid var(--red);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  display: flex;
}
.hero-bg-half {
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) saturate(0.9);
}
.hero-bg-left  { background-image: url('car1.jpg'); }
.hero-bg-right { background-image: url('car5.jpg'); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, 0.55);
}
.hero-content {
  position: relative; z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--cream);
  max-width: 900px;
}
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-top: 10px;
  color: var(--cream);
  text-shadow:
    3px 3px 0 var(--red),
    4px 4px 2px rgba(0,0,0,0.5),
    0 0 30px rgba(0,0,0,0.7);
}
.hero-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-top: 14px;
  color: var(--cream);
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.hero-cta { margin-top: 28px; font-size: 16px; padding: 14px 30px; }

/* ---------- BADGE ---------- */
.badge {
  display: inline-block;
  width: 220px; height: 220px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6));
}
.badge-svg { width: 100%; height: 100%; }
.badge-ring-outer { fill: var(--cream); stroke: var(--red); stroke-width: 3; }
.badge-ring-mid   { fill: none; stroke: var(--red); stroke-width: 1; stroke-dasharray: 3 4; }
.badge-ring-inner { fill: none; stroke: var(--red); stroke-width: 2; }
.badge-text {
  fill: var(--red);
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3.5px;
}
.badge-center-top    { fill: var(--ink); font-family: 'Playfair Display', serif; font-style: italic; font-size: 11px; letter-spacing: 2px; }
.badge-center-main   { fill: var(--red); font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: 4px; }
.badge-center-bottom { fill: var(--red); font-size: 12px; letter-spacing: 6px; }

/* ---------- FLAME DIVIDERS (CSS pseudo-elements) ---------- */
#about::before,
#services::before {
  content: '';
  display: block;
  width: 100%;
  height: 130px;
  background-image: url('flame-trans.jpg');
  background-size: cover;
  background-position: bottom;
  margin-top: -130px;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

/* ---------- SECTIONS ---------- */
.section, .footer {
  background-image: url('background%20texture.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}
.section { padding: 90px 0; color: var(--ink); }
.section-services { background-blend-mode: multiply; background-color: rgba(232, 222, 189, 0.35); }

/* Section title: red, all caps, with ★ and flanking rule lines */
.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--red) 20%, var(--red) 80%, transparent);
}
/* Add star marker via content */
.section-title > span.star { color: var(--red); font-size: 0.8em; }
.section-title.center { justify-content: center; }

.section-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  opacity: 0.78;
  text-align: center;
  margin: 4px 0 48px;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.about-text p { margin-bottom: 16px; color: var(--ink); }
.about-list { margin-top: 22px; }
.about-list li {
  padding: 6px 0;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  color: var(--ink);
}
.about-list li::first-letter { color: var(--red); }

/* ---------- FORM ---------- */
.quote-form {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  color: var(--ink);
  padding: 32px;
  border: 3px double var(--red);
  box-shadow:
    0 0 0 1px var(--red) inset,
    0 10px 24px rgba(0,0,0,0.25);
  position: relative;
}
.quote-form::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px dashed rgba(139,0,0,0.35);
  pointer-events: none;
}
.form-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
  text-align: center;
}
.quote-form .form-title-sub {
  display: block;
  text-align: center;
  font-size: 1rem;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 20px;
}
.quote-form label {
  display: block;
  margin-bottom: 14px;
}
.quote-form label span {
  display: block;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  color: var(--red);
}
.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  background: #FBF6E3;
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(139,0,0,0.15);
}
.quote-form textarea { resize: vertical; }
.form-status { margin-top: 12px; font-size: 14px; min-height: 20px; text-align: center; }
.form-status.success { color: #2d6b2d; }
.form-status.error   { color: var(--red); }

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  border: 2px solid var(--ink);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.5),
    0 0 0 8px var(--ink),
    0 10px 22px rgba(0,0,0,0.28);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); }
.service-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 3px double var(--red);
  filter: sepia(45%) contrast(1.05) saturate(0.85);
}
.service-body { padding: 26px 24px; flex: 1; display: flex; flex-direction: column; text-align: center; }
.service-body h3 {
  font-family: 'Oswald', sans-serif;
  color: var(--red);
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.service-body .service-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.7;
  margin-bottom: 12px;
}
.service-body p { color: var(--ink); margin-bottom: 20px; flex: 1; }
.service-body .btn { align-self: center; }

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border: 1px solid var(--red);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.gallery-item:hover img { filter: sepia(0.4); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--wood);
  color: var(--cream);
}
.footer-inner { padding: 60px 24px 32px; text-align: center; position: relative; z-index: 2; }
.footer-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}
.footer-tag {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  margin: 8px 0 22px;
  opacity: 0.85;
}
.footer-phone {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-phone a { color: var(--cream); border-bottom: 1px solid var(--red); padding-bottom: 2px; }
.footer-phone a:hover { color: var(--red); }
.form-phone {
  color: var(--red);
  font-weight: 700;
  border-bottom: 1px dashed var(--red);
  font-style: normal;
}
.footer-copy {
  font-size: 13px;
  opacity: 0.6;
  border-top: 1px solid rgba(242,236,216,0.15);
  padding-top: 20px;
  max-width: 520px;
  margin: 0 auto;
  letter-spacing: 0.05em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; gap: 10px; }
  .nav-brand { font-size: 18px; }
  .nav-links { gap: 8px; font-size: 13px; order: 3; width: 100%; justify-content: center; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-cta { font-size: 12px; padding: 8px 14px; }
  .hero { min-height: 70vh; padding: 50px 16px; }
  .badge { width: 170px; height: 170px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.6rem; }
  .section-title::before, .section-title::after { min-width: 20px; }
  .quote-form { padding: 22px; }
}
@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.3rem; }
}
