/* ============================================
   Summit Roofing Co. — Master Stylesheet
   Earth tones + bold red accents
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-charcoal: #2C2C2C;
  --color-dark-brown: #3E2723;
  --color-warm-brown: #5D4037;
  --color-tan: #A1887F;
  --color-sand: #D7CCC8;
  --color-cream: #EFEBE9;
  --color-white: #FFFFFF;
  --color-red: #C62828;
  --color-red-dark: #A31D1D;
  --color-red-light: #EF5350;
  --color-gold: #D4A24E;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-overlay: rgba(44, 44, 44, 0.7);
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --radius: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-red-dark); }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark-brown);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-red);
  border-radius: 2px;
}
.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 15px auto 0;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(198, 40, 40, 0.35);
}
.btn-primary:hover {
  background: var(--color-red-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-red);
}
.btn-dark {
  background: var(--color-charcoal);
  color: var(--color-white);
}
.btn-dark:hover {
  background: var(--color-dark-brown);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--color-gold);
  color: var(--color-white);
}
.btn-gold:hover {
  background: #c4922e;
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--color-charcoal);
  color: var(--color-sand);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--color-sand); }
.topbar a:hover { color: var(--color-red-light); }
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar i { margin-right: 5px; color: var(--color-red-light); }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 75px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--color-red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.4rem;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-brown);
  line-height: 1.1;
}
.logo-text span { display: block; font-size: 0.65rem; color: var(--color-tan); letter-spacing: 3px; text-transform: uppercase; font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-links a {
  padding: 8px 16px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-red);
  background: rgba(198, 40, 40, 0.06);
}
.nav-cta {
  margin-left: 10px;
}
.nav-cta .btn { padding: 10px 22px; font-size: 0.85rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-dark-brown);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-charcoal);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4E342E 0%, #3E2723 40%, #2C2C2C 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.hero-text { color: var(--color-white); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(198, 40, 40, 0.2);
  border: 1px solid rgba(198, 40, 40, 0.4);
  color: var(--color-red-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.hero-text h1 {
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-text h1 .accent { color: var(--color-red-light); }
.hero-text p {
  font-size: 1.15rem;
  color: var(--color-sand);
  margin-bottom: 30px;
  max-width: 500px;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-red-light);
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--color-tan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Before/After Slider ---------- */
.ba-slider-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--color-charcoal);
}
.ba-slider-wrap .ba-label {
  position: absolute;
  top: 16px;
  padding: 6px 18px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-white);
  border-radius: 50px;
  z-index: 5;
  pointer-events: none;
}
.ba-label-before { left: 16px; background: var(--color-red); }
.ba-label-after { right: 16px; background: #2E7D32; }
.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-img-before-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba-img-before-wrap .ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--color-white);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: transform 0.15s;
}
.ba-slider-handle:hover { transform: translate(-50%, -50%) scale(1.1); }
.ba-slider-handle i { color: var(--color-charcoal); font-size: 1.2rem; }
.ba-slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--color-white);
  padding: 30px 0;
  border-bottom: 1px solid var(--color-sand);
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 0.95rem;
}
.trust-item i {
  font-size: 1.6rem;
  color: var(--color-gold);
}

/* ---------- Services ---------- */
.services {
  padding: 90px 0;
  background: var(--color-cream);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-icon-badge {
  position: absolute;
  bottom: -22px;
  left: 25px;
  width: 44px;
  height: 44px;
  background: var(--color-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.service-card-body {
  padding: 35px 25px 25px;
}
.service-card-body h3 {
  margin-bottom: 10px;
}
.service-card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.service-link {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link i { transition: transform var(--transition); }
.service-link:hover i { transform: translateX(4px); }

/* Service card placeholder backgrounds */
.service-card:nth-child(1) .service-card-img { background: linear-gradient(135deg, #8D6E63 0%, #A1887F 100%); }
.service-card:nth-child(2) .service-card-img { background: linear-gradient(135deg, #78909C 0%, #90A4AE 100%); }
.service-card:nth-child(3) .service-card-img { background: linear-gradient(135deg, #6D4C41 0%, #8D6E63 100%); }
.service-card:nth-child(4) .service-card-img { background: linear-gradient(135deg, #C62828 0%, #EF5350 100%); }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 15px;
}
.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-outline { border-color: var(--color-white); color: var(--color-white); }
.cta-section .btn-outline:hover { background: var(--color-white); color: var(--color-red); }

/* CTA with background photo */
.cta-with-bg {
  background: url('../IMAGES/Person Relieved/pexels-gustavo-fring-4971273.jpg') center/cover no-repeat;
}
.cta-with-bg::before {
  background: rgba(0,0,0,0.7);
}

/* ---------- Why Choose Us ---------- */
.why-us {
  padding: 90px 0;
  background: var(--color-white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.why-card {
  text-align: center;
  padding: 30px 20px;
}
.why-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: rgba(198, 40, 40, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-red);
}
.why-card h3 { margin-bottom: 10px; }
.why-card p { color: var(--color-text-light); font-size: 0.95rem; }

/* ---------- Financing ---------- */
.financing {
  padding: 90px 0;
  background: var(--color-cream);
}
.financing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.financing-visual {
  background: linear-gradient(135deg, var(--color-dark-brown), var(--color-warm-brown));
  border-radius: 12px;
  padding: 50px 40px;
  color: var(--color-white);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.financing-visual .big-rate {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}
.financing-visual .big-rate sup { font-size: 2rem; vertical-align: super; }
.financing-visual p { color: var(--color-sand); font-size: 1.1rem; }
.financing-content h2 { margin-bottom: 15px; }
.financing-content > p {
  color: var(--color-text-light);
  margin-bottom: 25px;
  font-size: 1.05rem;
}
.financing-features {
  margin-bottom: 30px;
}
.financing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-sand);
}
.financing-features li i {
  color: #2E7D32;
  margin-top: 3px;
  font-size: 1.1rem;
}

/* ---------- Reviews ---------- */
.reviews {
  padding: 90px 0;
  background: var(--color-white);
}
.reviews-with-bg {
  background: url('../IMAGES/Person Relieved/pexels-gustavo-fring-4971273.jpg') center/cover no-repeat fixed;
  position: relative;
}
.reviews-with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.92);
  z-index: 0;
}
.reviews-with-bg .container {
  position: relative;
  z-index: 1;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.review-card {
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.review-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--color-red);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}
.review-stars {
  color: var(--color-gold);
  margin-bottom: 12px;
  font-size: 1rem;
}
.review-card p {
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 18px;
  position: relative;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-warm-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
}
.review-author-info strong { display: block; font-size: 0.95rem; color: var(--color-dark-brown); }
.review-author-info small { color: var(--color-text-light); }
.reviews-cta {
  text-align: center;
  margin-top: 40px;
}
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-cream);
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--color-text);
}
.google-badge img { height: 24px; }

/* ---------- Gallery Section (homepage teaser) ---------- */
.gallery-teaser {
  padding: 90px 0;
  background: var(--color-charcoal);
  color: var(--color-white);
}
.gallery-teaser .section-header h2 { color: var(--color-white); }
.gallery-teaser .section-header p { color: var(--color-sand); }
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.gallery-preview-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: var(--color-warm-brown);
}
.gallery-preview-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
}
.gallery-preview-item:hover::after { background: rgba(198, 40, 40, 0.4); }
.gallery-teaser-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark-brown);
  color: var(--color-sand);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer h4 {
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.footer-about .logo { margin-bottom: 15px; }
.footer-about .logo-text { color: var(--color-white); }
.footer-about .logo-text span { color: var(--color-tan); }
.footer-about p { font-size: 0.9rem; line-height: 1.8; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--color-sand);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-links a:hover { color: var(--color-red-light); padding-left: 5px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}
.footer-contact i { color: var(--color-red-light); margin-top: 3px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sand);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--color-red);
  color: var(--color-white);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-tan);
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--color-dark-brown), var(--color-charcoal));
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header h1 {
  color: var(--color-white);
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}
.page-header .breadcrumb {
  position: relative;
  z-index: 1;
  color: var(--color-tan);
  font-size: 0.9rem;
}
.page-header .breadcrumb a { color: var(--color-sand); }
.page-header .breadcrumb a:hover { color: var(--color-red-light); }

/* ---------- Insurance Page ---------- */
.insurance-content {
  padding: 90px 0;
}
.insurance-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.insurance-main h2 { margin-bottom: 15px; }
.insurance-main p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.insurance-steps {
  margin: 40px 0;
}
.insurance-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}
.step-content h3 { margin-bottom: 5px; font-size: 1.2rem; }
.step-content p { color: var(--color-text-light); font-size: 0.95rem; }
.insurance-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin-bottom: 25px;
}
.sidebar-card h3 { margin-bottom: 15px; font-size: 1.15rem; }
.sidebar-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-sand);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sidebar-card ul li i {
  color: var(--color-red);
  margin-top: 4px;
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-emergency {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: var(--color-white);
}
.sidebar-emergency h3 { color: var(--color-white); }
.sidebar-emergency p { color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.sidebar-emergency .btn { width: 100%; justify-content: center; }

/* ---------- Gallery Page ---------- */
.gallery-page { padding: 90px 0; }
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 22px;
  border: 2px solid var(--color-sand);
  background: transparent;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-text);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item .gallery-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.gallery-item .gallery-item-placeholder i {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.5);
}
.gallery-item:nth-child(odd) { background: linear-gradient(135deg, #6D4C41, #8D6E63); }
.gallery-item:nth-child(even) { background: linear-gradient(135deg, #78909C, #90A4AE); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(62, 39, 35, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--color-white);
  text-align: center;
  padding: 20px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay i { font-size: 2rem; margin-bottom: 10px; }
.gallery-item-overlay h4 { font-size: 1rem; margin-bottom: 5px; color: var(--color-white); }
.gallery-item-overlay p { font-size: 0.8rem; color: var(--color-sand); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
}
.lightbox-content {
  max-width: 80vw;
  max-height: 80vh;
  text-align: center;
  color: var(--color-white);
}
.lightbox-content .lightbox-placeholder {
  width: 60vw;
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: var(--color-warm-brown);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-sand);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.lightbox-content .lightbox-placeholder i { font-size: 4rem; }
.lightbox-caption {
  margin-top: 15px;
  font-size: 1rem;
  color: var(--color-sand);
}

/* ---------- Quote Form ---------- */
.quote-page { padding: 90px 0; }
.quote-container {
  max-width: 750px;
  margin: 0 auto;
}
.form-progress {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 50px;
  position: relative;
}
.form-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: var(--color-sand);
  z-index: 0;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}
.progress-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-sand);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  transition: all var(--transition);
}
.progress-step.active .progress-circle {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 0 0 5px rgba(198, 40, 40, 0.2);
}
.progress-step.completed .progress-circle {
  background: #2E7D32;
  color: var(--color-white);
}
.progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
}
.progress-step.active .progress-label { color: var(--color-red); }
.progress-step.completed .progress-label { color: #2E7D32; }

.form-step {
  display: none;
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-step h3 {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-sand);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark-brown);
}
.form-group label .required { color: var(--color-red); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-sand);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--color-white);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 15px;
}
.form-actions .btn { flex: 0 0 auto; }

/* Service type selector */
.service-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.service-option {
  position: relative;
}
.service-option input { position: absolute; opacity: 0; }
.service-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--color-sand);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}
.service-option label i { color: var(--color-tan); font-size: 1.2rem; }
.service-option input:checked + label {
  border-color: var(--color-red);
  background: rgba(198, 40, 40, 0.05);
}
.service-option input:checked + label i { color: var(--color-red); }

/* Urgency selector */
.urgency-selector {
  display: flex;
  gap: 12px;
}
.urgency-option {
  position: relative;
  flex: 1;
}
.urgency-option input { position: absolute; opacity: 0; }
.urgency-option label {
  display: block;
  text-align: center;
  padding: 14px;
  border: 2px solid var(--color-sand);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
}
.urgency-option input:checked + label {
  border-color: var(--color-red);
  background: rgba(198, 40, 40, 0.05);
  color: var(--color-red);
}

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 40px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-success.active { display: block; animation: fadeIn 0.4s ease; }
.form-success-icon {
  width: 80px;
  height: 80px;
  background: #2E7D32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-white);
  font-size: 2.5rem;
}
.form-success h2 { color: #2E7D32; margin-bottom: 10px; }
.form-success p { color: var(--color-text-light); max-width: 400px; margin: 0 auto 25px; }

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--color-red);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--color-red-dark); transform: translateY(-3px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .ba-slider-wrap { max-width: 500px; margin: 40px auto 0; }
  .financing-grid { grid-template-columns: 1fr; }
  .financing-visual { max-width: 400px; margin: 0 auto; }
  .insurance-grid { grid-template-columns: 1fr; }
  .insurance-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar-right { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin-left: 0; width: 100%; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero { min-height: auto; padding: 80px 0 60px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat-number { font-size: 1.8rem; }
  .service-selector { grid-template-columns: 1fr; }
  .urgency-selector { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .form-step { padding: 25px; }
  .insurance-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-preview-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .progress-label { font-size: 0.65rem; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .trust-bar .container { gap: 25px; }
  .gallery-preview-grid { grid-template-columns: 1fr; }
  .form-progress::before { left: 5%; right: 5%; }
}
