/* TopTier Electrical improved site styles */
/* Define color palette */
:root {
  --primary: #04172a;
  --secondary: #f47037;
  --light-bg: #f9fafb;
  --text-dark: #1f2937;
  --text-light: #f9fafb;
  --muted: #6b7280;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
  --font-size-body: 1rem;
  --line-height-body: 1.7;
  --line-height-heading: 1.2;
}

/* Accessible skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ensure padding and borders are included in width calculations */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--light-bg);
  line-height: var(--line-height-body);
}

h1 { font-size: var(--font-size-h1); line-height: var(--line-height-heading); font-weight: 700; }
h2 { font-size: var(--font-size-h2); line-height: var(--line-height-heading); font-weight: 600; }
h3 { font-size: var(--font-size-h3); line-height: var(--line-height-heading); font-weight: 600; }
h4 { font-size: var(--font-size-h4); line-height: var(--line-height-heading); font-weight: 500; }

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Layout helpers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--primary);
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .logo img {
  height: 50px;
  width: auto;
  display: block;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

header nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Active navigation link styling */
header nav a.active {
  color: var(--secondary);
}

header nav a:hover,
header nav a:focus {
  color: var(--secondary);
}

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: var(--text-light);
  margin-bottom: 4px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Display a mobile menu on narrower viewports. We increase the breakpoint
   to 1000px to accommodate additional navigation links without truncation. */
@media (max-width: 1200px) {
  header nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary);
    /* increase width to accommodate more menu items */
    width: 250px;
    display: none;
    flex-direction: column;
    padding: 1rem;
  }

  header nav.active {
    display: flex;
  }

  header nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .menu-toggle {
    display: flex;
  }
}


/* Testimonials section */
.testimonials {
  padding: 3rem 0;
  background: var(--light-bg);
}
.testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
}
.testimonial-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.testimonial-card .author {
  font-weight: bold;
  color: var(--primary);
}

/* Info section (financing, emergency, faq) */
.info-section {
  padding: 3rem 0;
}
.info-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
}
.info-section h3 {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}
.info-section p,
.info-section ul {
  color: var(--muted);
  margin-bottom: 1rem;
}
.info-section ul {
  list-style: disc;
  margin-left: 2rem;
}

/* FAQ styles */
.faq-list details {
  margin-bottom: 1rem;
  background: white;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.faq-list summary {
  font-weight: bold;
  cursor: pointer;
  color: var(--primary);
}
.faq-list p {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* Hero section */
.hero {
  position: relative;
  background: url('/assets/images/hero.jpg') center/cover no-repeat;
  color: var(--text-light);
  text-align: center;
  padding: 8rem 1rem 6rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 23, 42, 0.65);
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-form .form-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 150px;
}

.hero-form label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-light);
}

.hero-form input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.hero-form button {
  flex: 0 0 auto;
}

.btn-primary {
  display: inline-block;
  background: var(--secondary);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #e05b2b;
  transform: translateY(-2px);
}

/* Value propositions */
.values {
  background: var(--light-bg);
  padding: 3rem 0;
}

.values h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
}

.values .value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.values .value-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.values .value-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.07);
}

.values .icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.values h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.values p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Services section */
.services {
  padding: 3rem 0;
  background: var(--light-bg);
}

.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
}

.services .service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.services .service-grid article {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 900px) {
  .services .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.07);
}

.service-card .icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.service-card a {
  margin-top: 1rem;
  display: inline-block;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.service-card a:hover {
  text-decoration: underline;
}

/* Gallery section */
.gallery-page {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--light-bg) 0%, #e8ecf0 100%);
}

.gallery-page h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.25rem;
  color: var(--primary);
  font-weight: 700;
}

.gallery-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Gallery Filter Buttons */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(4, 23, 42, 0.25);
}

/* Gallery Grid - Masonry-style layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

/* Gallery Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: white;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Featured items span 2 rows */
.gallery-item.featured {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item.featured img {
  height: 100%;
  min-height: 580px;
}

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

/* Image overlay with caption */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(4, 23, 42, 0.9) 0%, rgba(4, 23, 42, 0.5) 50%, transparent 100%);
  padding: 2.5rem 1.25rem 1.25rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  color: white;
  font-size: 1rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin: 0;
}

/* Category Badge */
.gallery-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery Section Divider */
.gallery-section {
  margin-bottom: 3rem;
}

.gallery-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.gallery-section-title::before,
.gallery-section-title::after {
  content: '';
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.gallery-section-title h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }

  .gallery-item img {
    height: 220px;
  }

  .gallery-item.featured img {
    min-height: 460px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item img,
  .gallery-item.featured img {
    height: 250px;
    min-height: 250px;
  }

  .gallery-item.featured {
    grid-row: span 1;
  }

  .gallery-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* Lightbox placeholder - uses native hover effects */
.gallery-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item::before {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  z-index: 1;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease 0.05s;
  pointer-events: none;
}

.gallery-item:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

/* Estimate callout */
.estimate, .quote-preview {
  padding: 3rem 0;
  text-align: center;
  background: var(--light-bg);
}

.estimate h2, .quote-preview h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Contact page */
.contact-page {
  padding: 3rem 0;
}

.contact-page h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-info {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--primary);
}

.contact-info p {
  margin: 0.5rem 0;
  color: var(--muted);
}

.contact-info a {
  color: var(--secondary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: bold;
  color: var(--primary);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
}

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

.contact-form button {
  align-self: flex-start;
  background: var(--secondary);
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #e05b2b;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--text-light);
  text-align: center;
  padding: 1.5rem;
}

footer p {
  margin: 0;
  font-size: 0.875rem;
}

.footer-logo img {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

/* Header contact bar and small button */
.header-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  font-size: 0.875rem;
}

.header-contact a.phone {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.header-contact a.phone:hover,
.header-contact a.phone:focus {
  text-decoration: underline;
}

/* Small button variant for header call-to-action */
.btn-small {
  display: inline-block;
  background: var(--secondary);
  color: var(--text-light);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-small:hover,
.btn-small:focus {
  background: #e05b2b;
}

/* Trust signals section */
.trust-section {
  padding: 3rem 1rem;
  background: var(--light-bg);
}
.trust-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.trust-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
}
.trust-icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.trust-item h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.trust-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Call-to-action section */
.cta-section {
  background: var(--primary);
  color: var(--text-light);
  padding: 3rem 1rem;
  text-align: center;
}

/* Blog listing styles */
.blog-list {
  padding: 3rem 1rem;
}
.blog-list h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
}
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-card h3 {
  font-size: 1.25rem;
  margin: 1rem;
  color: var(--primary);
}
.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}
.blog-card p {
  margin: 0 1rem 1rem;
  color: var(--muted);
  flex-grow: 1;
}
.blog-card .read-more {
  margin: 0 1rem 1.5rem;
  display: inline-block;
  color: var(--secondary);
  font-weight: bold;
  text-decoration: none;
}

/* Individual blog post */
.blog-post {
  padding: 3rem 1rem;
}
.blog-post h2 {
  margin-top: 2rem;
  color: var(--primary);
}
.blog-post p {
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Service detail pages */
.service-detail {
  padding: 3rem 1rem;
}
.service-detail h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.service-detail h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}
.service-detail ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style-type: disc;
}
.service-detail li {
  margin-bottom: 0.5rem;
}
.service-detail p {
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Map on contact page */
.map {
  margin-top: 2rem;
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}
.cta-section a.btn-primary {
  background: var(--secondary);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-section a.btn-primary:hover,
.cta-section a.btn-primary:focus {
  background: #e05b2b;
  transform: translateY(-2px);
}/* Sticky mobile call-to-action bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--secondary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.sticky-bar a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
}
@media (min-width: 768px) {
  .sticky-bar { display: none; }
}

/* ===== UX/UI IMPROVEMENTS ===== */

/* Quick Actions Bar (Home Page) */
.quick-actions {
  background: #f1f5f9;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.quick-actions .container {
  display: flex;
  justify-content: center;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 600px;
  width: 100%;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.action-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.action-label {
  font-size: 0.875rem;
  font-weight: 600;
}
.action-emergency {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.action-emergency:hover {
  background: #fee2e2;
}
@media (max-width: 480px) {
  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Trust Strip (Compact badge bar) */
.trust-strip {
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
}
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.trust-badges .badge {
  font-size: 0.875rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .trust-badges {
    gap: 0.5rem 1rem;
  }
  .trust-badges .badge {
    font-size: 0.75rem;
  }
}

/* About Preview Section (Home Page) */
.about-preview {
  padding: 3rem 0;
  background: var(--light-bg);
}
.about-preview h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}
.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image {
    order: -1;
  }
}

/* Secondary Button */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--secondary);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--secondary);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--secondary);
  color: var(--text-light);
}

/* Star Ratings */
.stars {
  color: var(--warning);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

/* Emergency Page Enhancements */
.emergency-hero-badge {
  display: inline-block;
  background: var(--danger);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
.emergency-call-btn {
  display: inline-block;
  background: var(--danger);
  color: white;
  font-size: 1.25rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.2s ease;
}
.emergency-call-btn:hover {
  background: #b91c1c;
}
.emergency-actions {
  padding: 2rem 0;
  background: white;
}
.emergency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.emergency-card {
  padding: 1.5rem;
  border-radius: 8px;
}
.emergency-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.emergency-card ul {
  margin: 0;
  padding-left: 1.25rem;
}
.emergency-card li {
  margin-bottom: 0.5rem;
}
.emergency-card.do-this {
  border-left: 4px solid var(--success);
  background: #f0fdf4;
}
.emergency-card.do-not {
  border-left: 4px solid var(--danger);
  background: #fef2f2;
}
@media (max-width: 768px) {
  .emergency-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery Filters and Captions */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}
.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: rgba(255,255,255,0.95);
  font-size: 0.875rem;
  color: var(--text-dark);
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover figcaption {
  transform: translateY(0);
}
.featured-projects {
  margin-bottom: 2rem;
}
.featured-projects h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.featured-grid .gallery-item img {
  height: 280px;
}

/* Financing Timeline */
.financing-timeline {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  position: relative;
}
.financing-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: #e2e8f0;
}
.timeline-step {
  text-align: center;
  position: relative;
  flex: 1;
  padding: 0 0.5rem;
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}
.step-content h4 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 1rem;
}
.step-content p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 768px) {
  .financing-timeline {
    flex-direction: column;
    gap: 1.5rem;
  }
  .financing-timeline::before {
    display: none;
  }
  .timeline-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }
  .step-number {
    flex-shrink: 0;
    margin: 0;
  }
  .step-content {
    padding-top: 0.5rem;
  }
}

/* FAQ Enhancements */
.faq-list details summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.2s ease;
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: 4px;
}
.faq-list details summary:hover {
  background: rgba(244, 112, 55, 0.05);
}
.faq-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.faq-list details p a {
  color: var(--secondary);
  font-weight: 500;
}

/* Pre-footer Section */
.pre-footer {
  background: #f1f5f9;
  padding: 2.5rem 0;
  border-top: 1px solid #e2e8f0;
}
.pre-footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--secondary);
}
.footer-col p {
  color: var(--muted);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .pre-footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Slim Footer */
.footer-slim {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 600px) {
  .footer-slim {
    flex-direction: column;
    text-align: center;
  }
}

/* Breadcrumb Navigation */
.breadcrumb {
  padding: 0.75rem 1rem;
  background: #f1f5f9;
  font-size: 0.875rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.breadcrumb li::after {
  content: ">";
  margin-left: 0.5rem;
  color: var(--muted);
}
.breadcrumb li:last-child::after {
  content: "";
}
.breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Blog Sidebar Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}
.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}
.sidebar-widget {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.sidebar-widget h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1rem;
}
.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-widget li {
  margin-bottom: 0.5rem;
}
.sidebar-widget a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.sidebar-widget a:hover {
  color: var(--secondary);
}
.sidebar-cta {
  background: var(--primary);
  color: white;
}
.sidebar-cta h4,
.sidebar-cta p {
  color: white;
}
.sidebar-cta .btn-primary {
  display: block;
  text-align: center;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
  }
}

/* Service Area Map */
.service-map {
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}
.service-map iframe {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Locations Section */
.locations {
  padding: 3rem 0;
}
.locations h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
}
.locations p {
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.locations ul {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}
.locations li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
  color: var(--text-dark);
}
.locations li:last-child {
  border-bottom: none;
}

/* Hover States */
.gallery-grid img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
header nav a:hover {
  text-decoration: underline;
}

/* Mobile Hero Sizing */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 1rem 4rem;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-form {
    flex-direction: column;
  }
  .hero-form input,
  .hero-form button {
    width: 100%;
  }
}

/* Responsive Grids */
@media (max-width: 480px) {
  .service-grid,
  .trust-grid,
  .value-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* Section Separators */
.services,
.testimonials,
.values {
  background: white;
}
.trust-section,
.estimate,
.about-preview {
  background: var(--light-bg);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px;
  z-index: 9999;
}
.skip-link:focus {
  top: 0;
}

/* Utility: padding for mobile sticky bar */
@media (max-width: 767px) {
  main {
    padding-bottom: 60px;
  }
}

/* Hero CTA buttons */
.hero .btn-primary {
  margin-right: 0.5rem;
}
.hero .btn-secondary {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}
.hero .btn-secondary:hover {
  background: white;
  color: var(--primary);
}
