/* =============================================
   Cosmetic Auto Chicago — Professional Red Theme
   Matches Elite Collision Render: white bg, red accents
   ============================================= */

:root {
  --red:       #cc0000;
  --red-dark:  #a00000;
  --red-light: #ff1a1a;
  --dark:      #1a1a1a;
  --dark2:     #222222;
  --dark3:     #333333;
  --black:     #0a0a0a;
  --white:     #ffffff;
  --offwhite:  #f7f7f7;
  --light-gray:#eeeeee;
  --gray:      #777777;
  --text:      #333333;
  --border:    rgba(0,0,0,0.08);
  --shadow:    0 4px 24px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.15);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; color: var(--dark); }

/* ---- Typography ---- */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.section-desc {
  color: var(--gray);
  font-size: 1rem;
  max-width: 600px;
}
.section-center { text-align: center; }
.section-center .section-desc { margin: 0.75rem auto 0; }

/* ---- Buttons ---- */
.btn-red {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--red);
  transition: background 0.25s, transform 0.2s;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); color: #fff; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.6);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-outline-dark {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--dark);
  transition: all 0.25s;
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }

.red-line { width: 50px; height: 3px; background: var(--red); display: inline-block; margin: 0.5rem 0; }
.container-max { max-width: 1280px; margin: 0 auto; }
.section-pad { padding: 5rem 2rem; }

/* ======================================
   NAVBAR — Dark, sleek, sticky
====================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(10,10,10,0.95);
  transition: box-shadow 0.3s;
  border-bottom: 3px solid var(--red);
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red-light); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 3px;
  font-weight: 700 !important;
  margin-left: 0.5rem;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; color: #fff !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column; padding: 1rem 2rem 1.5rem; gap: 0;
    transform: translateY(-120%); opacity: 0;
    transition: transform 0.3s, opacity 0.3s; pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { width: 100%; padding: 0.7rem 0; font-size: 0.9rem; }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; display: block !important; }
  .nav-toggle { display: flex; }
}

/* ======================================
   HERO — Full width, dark overlay, CTA buttons
====================================== */
#hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 60%, rgba(120,0,0,0.25) 100%);
}
.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  width: 100%;
  color: white;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  max-width: 650px;
  margin-bottom: 1rem;
}
.hero-content h1 span { color: var(--red-light); }
.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ======================================
   FEATURE CARDS — 3-column row like Elite render
====================================== */
#features {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.features-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  gap: 0;
}
.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--light-gray);
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  background: var(--offwhite);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  border: 2px solid var(--light-gray);
  transition: border-color 0.3s, background 0.3s;
}
.feature-card:hover .feature-icon { border-color: var(--red); background: rgba(204,0,0,0.05); }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; }
.feature-card p { font-size: 0.85rem; color: var(--gray); }
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ======================================
   SERVICES SECTION — Grid of image cards
====================================== */
#services { background: var(--white); }
.services-header { margin-bottom: 3rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  aspect-ratio: 4/5;
}
.service-card:hover { transform: translateY(-4px); }
.service-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover img { transform: scale(1.06); }
.service-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 2rem 1.25rem 1.25rem;
  color: white;
}
.service-card-body h3 { font-size: 0.95rem; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 0.05em; }
.service-card-body p { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-top: 0.3rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .services-grid { grid-template-columns: 1fr; } }

/* ======================================
   BEFORE / AFTER SLIDER
====================================== */
#before-after { background: var(--offwhite); }
.ba-wrap { max-width: 1100px; margin: 0 auto; }
.ba-header { text-align: center; margin-bottom: 3rem; }
.slider-container {
  position: relative; user-select: none;
  border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.slider-container img { width: 100%; display: block; }
.slider-after {
  position: absolute; top: 0; left: 0;
  width: 50%; height: 100%; overflow: hidden;
}
.slider-after img { width: auto; height: 100%; max-width: none; }
.slider-handle {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 100%;
  background: var(--red); cursor: ew-resize; z-index: 10;
}
.slider-handle::before {
  content: '\25C0  \25B6';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: white;
  box-shadow: 0 0 12px rgba(204,0,0,0.5);
  line-height: 44px; text-align: center;
}
.ba-labels { display: flex; justify-content: space-between; margin-top: 0.75rem; padding: 0 0.25rem; }
.ba-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--gray); }
.ba-label span { color: var(--red); }

/* BA Carousel */
.ba-carousel { margin-top: 3rem; }
.ba-carousel-track {
  display: flex; gap: 1.5rem; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 0.5rem;
}
.ba-carousel-track::-webkit-scrollbar { display: none; }
.ba-pair {
  flex: 0 0 calc(50% - 0.75rem); scroll-snap-align: start;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3px; border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow);
}
.ba-pair img { width: 100%; height: 200px; object-fit: cover; }
.ba-pair-label {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; padding: 0.4rem 0.6rem;
  background: var(--offwhite); color: var(--gray);
}
.ba-pair-label.after { color: var(--red); }
.ba-pair-inner { display: flex; flex-direction: column; }
.ba-carousel-nav { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.ba-nav-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--light-gray); background: white;
  color: var(--dark); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.ba-nav-btn:hover { background: var(--red); border-color: var(--red); color: white; }
@media (max-width: 768px) {
  .ba-pair { flex: 0 0 100%; }
  .ba-pair img { height: 160px; }
}

/* ======================================
   GALLERY
====================================== */
#gallery { background: var(--white); }
.gallery-header { text-align: center; margin-bottom: 3rem; }
.gallery-masonry { columns: 3; column-gap: 1rem; }
.gallery-item {
  break-inside: avoid; margin-bottom: 1rem;
  position: relative; overflow: hidden;
  border-radius: 4px; cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
  background: rgba(204,0,0,0.25);
}
.gallery-overlay span { font-size: 2rem; color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
@media (max-width: 900px) { .gallery-masonry { columns: 2; } }
@media (max-width: 500px) { .gallery-masonry { columns: 1; } }

/* Lightbox */
#lightbox-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 99999;
  align-items: center; justify-content: center; flex-direction: column;
}
#lightbox-overlay.active { display: flex; }
#lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 4px; box-shadow: 0 0 60px rgba(0,0,0,0.5); }
.lb-close { position: absolute; top: 1.5rem; right: 1.5rem; color: white; font-size: 2rem; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.lb-close:hover { opacity: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 2.5rem; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; padding: 1rem; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-caption { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ======================================
   WHY CHOOSE US
====================================== */
#why { background: var(--offwhite); }
.why-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.why-card {
  background: white; text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  background: rgba(204,0,0,0.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.why-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.why-card p { font-size: 0.83rem; color: var(--gray); }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .why-grid { grid-template-columns: 1fr; } }

/* ======================================
   CTA BAND
====================================== */
#cta-band {
  background: var(--dark);
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
#cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(204,0,0,0.15) 0%, transparent 70%);
}
.cta-inner { position: relative; max-width: 700px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; color: white; margin-bottom: 0.75rem; }
.cta-inner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1rem; }

/* ======================================
   CONTACT SECTION
====================================== */
#contact { background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 4rem; align-items: start;
}
.contact-info h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.contact-info p { color: var(--gray); font-size: 0.95rem; margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-detail-icon {
  width: 42px; height: 42px;
  background: rgba(204,0,0,0.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-detail-text strong { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 0.15rem; }
.contact-detail-text span { font-size: 0.9rem; color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--offwhite);
  border: 1px solid var(--light-gray);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 3px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 110px; }
.upload-zone {
  border: 2px dashed var(--light-gray); border-radius: 3px;
  padding: 1.25rem; text-align: center; cursor: pointer;
  transition: border-color 0.2s; background: var(--offwhite);
}
.upload-zone:hover { border-color: var(--red); }
.upload-zone p { color: var(--gray); font-size: 0.85rem; }
.upload-zone span { color: var(--red); }
.form-group input[type="file"] { display: none; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ======================================
   BLOG
====================================== */
#blog-section { background: var(--offwhite); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.blog-card {
  background: white; border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.25rem; }
.blog-cat { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 0.4rem; }
.blog-card-body h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card-body p { font-size: 0.8rem; color: var(--gray); margin-bottom: 0.75rem; line-height: 1.6; }
.blog-read { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; transition: gap 0.2s; }
.blog-card:hover .blog-read { gap: 0.7rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* Blog post page */
.blog-hero { height: 420px; position: relative; display: flex; align-items: flex-end; overflow: hidden; margin-top: 72px; }
.blog-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); }
.blog-hero-text { position: relative; padding: 3rem 2rem; max-width: 1280px; margin: 0 auto; width: 100%; color: white; }
.blog-hero-text h1 { color: white; }
.blog-post-content { max-width: 860px; margin: 0 auto; padding: 4rem 2rem; }
.blog-post-content h1 { font-size: clamp(1.6rem,3vw,2.5rem); margin-bottom: 1rem; }
.blog-post-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.blog-post-content h3 { font-size: 1.15rem; margin: 2rem 0 0.75rem; }
.blog-post-content p { color: #555; margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.8; }
.blog-post-content ul { margin: 1rem 0 1.5rem 1.5rem; list-style: disc; }
.blog-post-content ul li { color: #555; font-size: 1rem; margin-bottom: 0.5rem; }
.blog-post-content .highlight-box { background: rgba(204,0,0,0.06); border-left: 3px solid var(--red); padding: 1.25rem 1.5rem; border-radius: 0 4px 4px 0; margin: 2rem 0; }
.blog-post-content .highlight-box p { margin: 0; color: var(--text); }
.faq-item { border-bottom: 1px solid var(--light-gray); padding: 1.25rem 0; }
.faq-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.9rem; color: var(--gray); margin: 0; }
.blog-cta-box { background: var(--dark); border-radius: 4px; padding: 2.5rem; text-align: center; margin: 3rem 0; }
.blog-cta-box h3 { font-size: 1.5rem; color: white; margin-bottom: 0.75rem; }
.blog-cta-box p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.blog-meta { display: flex; gap: 1.5rem; font-size: 0.78rem; color: var(--gray); margin-bottom: 2rem; flex-wrap: wrap; }

/* ======================================
   ABOUT PAGE
====================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img { border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Stat row */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 4rem; }
.stat-box { background: var(--dark); border-radius: 4px; padding: 2.5rem 2rem; text-align: center; color: white; }
.stat-box .num { font-size: clamp(2.5rem,5vw,3.5rem); font-weight: 900; color: var(--red-light); line-height: 1; }
.stat-box p { color: rgba(255,255,255,0.7); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.4rem; }
@media (max-width: 768px) { .stat-row { grid-template-columns: repeat(2,1fr); } }

/* Page Hero (inner pages) */
.page-hero { padding: 9rem 2rem 3.5rem; background: var(--dark); color: white; }
.page-hero h1 { font-size: clamp(2rem,4vw,3rem); font-weight: 800; color: white; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; }
.breadcrumb-nav { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb-nav a { color: var(--red-light); }

/* ======================================
   ESTIMATE SIDEBAR (Elite render style)
====================================== */
.estimate-sidebar {
  background: var(--offwhite);
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  padding: 2rem;
  position: sticky;
  top: 90px;
}
.estimate-sidebar h3 {
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.estimate-sidebar .red-line { margin-bottom: 1.5rem; }

/* ======================================
   FOOTER
====================================== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand img { height: 42px; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-light); font-weight: 700; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 0.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ======================================
   ANIMATIONS
====================================== */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Preloader */
#preloader { position: fixed; inset: 0; background: white; z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s, visibility 0.5s; }
#preloader.done { opacity: 0; visibility: hidden; }
.loader-ring { width: 44px; height: 44px; border: 3px solid var(--light-gray); border-top-color: var(--red); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll progress */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--red); z-index: 99998; width: 0%; transition: width 0.1s linear; }

/* Map */
.map-embed { width: 100%; border-radius: 4px; overflow: hidden; border: 1px solid var(--light-gray); }
.map-embed iframe { width: 100%; border: none; display: block; }

/* Utilities */
.text-red { color: var(--red); }
.bg-offwhite { background: var(--offwhite); }
.bg-dark { background: var(--dark); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Service detail rows for services page */
.service-detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 480px; border-bottom: 1px solid var(--light-gray); }
.service-detail-row:nth-child(even) .sd-img { order: 2; }
.service-detail-row:nth-child(even) .sd-text { order: 1; }
.sd-img { overflow: hidden; }
.sd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.service-detail-row:hover .sd-img img { transform: scale(1.04); }
.sd-text { padding: 4rem; background: var(--white); display: flex; flex-direction: column; justify-content: center; }
.sd-text h2 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800; margin-bottom: 0.75rem; }
.sd-text p { color: var(--gray); font-size: 0.95rem; margin-bottom: 1.25rem; line-height: 1.75; }
.sd-list { margin: 0 0 2rem; }
.sd-list li { font-size: 0.88rem; color: var(--text); padding: 0.4rem 0; border-bottom: 1px solid var(--light-gray); display: flex; align-items: center; gap: 0.6rem; }
.sd-list li::before { content: '\2713'; color: var(--red); font-weight: 700; flex-shrink: 0; }
@media (max-width: 900px) {
  .service-detail-row { grid-template-columns: 1fr; }
  .service-detail-row:nth-child(even) .sd-img, .service-detail-row:nth-child(even) .sd-text { order: unset; }
  .sd-text { padding: 2.5rem 1.5rem; }
  .sd-img { min-height: 280px; }
}

/* Process steps */
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; margin-top: 3.5rem; }
.step { text-align: center; padding: 1.5rem 1rem; }
.step-num { width: 56px; height: 56px; background: white; border: 2px solid var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; color: var(--red); margin: 0 auto 1rem; }
.step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.8rem; color: var(--gray); }
@media (max-width: 768px) { .process-steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .process-steps { grid-template-columns: 1fr; } }

/* BA section styles for gallery page */
.ba-section { padding: 3rem 0; border-top: 1px solid var(--light-gray); }
.ba-section:first-child { border-top: none; padding-top: 0; }
.ba-section h3 { font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.ba-section h3::after { content: ''; flex: 1; height: 1px; background: var(--light-gray); }
.ba-pair-full { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.ba-side { position: relative; overflow: hidden; }
.ba-side img { width: 100%; height: 340px; object-fit: cover; display: block; transition: transform 0.4s; }
.ba-side:hover img { transform: scale(1.02); }
.ba-side-label { position: absolute; top: 1rem; left: 1rem; background: rgba(0,0,0,0.8); color: white; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 2px; }
.ba-side-label.after-label { background: var(--red); }
@media (max-width: 600px) { .ba-pair-full { grid-template-columns: 1fr; } .ba-side img { height: 220px; } }
