/* ==========================================================================
   Burbank Appliance Repair — Custom Overrides
   ========================================================================== */

/* Enhanced section headings */
.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* CTA Section styling */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
  color: var(--color-text-inverse);
  text-align: center;
}

.cta-section__heading {
  color: var(--color-text-inverse);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.cta-section__subtext {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
}

/* Service card icon styling */
.service-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
  color: white;
  border-radius: var(--border-radius-lg);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

/* Service card hover animation */
.service-card {
  border: 1px solid var(--color-border);
}

.service-card:hover {
  border-color: var(--primary-color-light);
}

/* Service areas center alignment */
.service-areas {
  display: flex;
  justify-content: center;
}

.service-area-list {
  justify-content: center;
}

/* Testimonials blockquote reset (override base blockquote styles) */
.testimonial-card blockquote,
.testimonial-quote {
  border-left: none;
  padding: 0;
  margin: 0;
  background: transparent;
  font-style: italic;
  color: var(--color-text);
  flex-grow: 1;
  margin-bottom: var(--space-lg);
}

/* Trust badges styling */
.hero-trust-item {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Smooth scroll for all internal links */
html {
  scroll-behavior: smooth;
}

/* Better container on wider screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Nav overlay for mobile */
.nav-overlay {
  display: none;
}

/* Logo in nav */
.nav-brand-logo {
  height: 44px;
  width: auto;
  border-radius: 50%;
}

/* Stats/metrics section */
.stats-section {
  background: var(--color-bg-alt);
  padding: var(--space-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-lg);
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Guarantee badge */
.guarantee-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
}

.guarantee-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-2xl);
  background: white;
  border: 3px solid var(--accent-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.guarantee-badge h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.guarantee-icon {
  font-size: 3rem;
}

.guarantee-details {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-md);
}

.guarantee-item {
  text-align: center;
}

.guarantee-item strong {
  display: block;
  font-size: 1.25rem;
  color: var(--primary-color);
}

/* Brand logos grid */
.brands-section {
  text-align: center;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg) var(--space-xl);
  margin-top: var(--space-xl);
  opacity: 0.7;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-light);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-bg-alt);
}

/* Founder/story section */
.founder-section {
  background: var(--color-bg);
}

.founder-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.founder-photo {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.founder-emblem {
  width: 200px;
  margin-bottom: var(--space-lg);
}

.founder-name {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.founder-title {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}

.founder-quote {
  border-left: 4px solid var(--accent-color) !important;
  font-size: 1.125rem;
  margin-top: var(--space-lg);
}

@media (max-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-photo, .founder-emblem {
    margin: 0 auto;
  }

  .founder-quote {
    text-align: left;
  }
}

/* Coupon/offer banner */
.offer-banner {
  background: var(--accent-color);
  color: white;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  font-size: 0.9375rem;
}

.offer-banner a {
  color: white;
  text-decoration: underline;
}

/* Outline light button for hero */
.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid white;
  font-weight: 700;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  border-color: white;
}

/* Blog grid styling */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--color-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-categories {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.blog-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, white);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.blog-card-title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.blog-card-title a {
  color: var(--color-text);
}

.blog-card-title a:hover {
  color: var(--primary-color);
}

.blog-card-date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

.blog-card-link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary-color);
  margin-top: auto;
}

.blog-card-link:hover {
  color: var(--primary-color-dark);
}

.blog-card-link::after {
  content: ' →';
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Typography refinements */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* Service page content styling */
.service-page-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.service-page-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.service-page-content h3 {
  font-size: 1.125rem;
  color: var(--color-text-light);
}

/* Blog article body styling */
.blog-article-body {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.blog-article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.blog-article-body h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.blog-article-body p {
  margin-bottom: 1.25rem;
}

/* Fix blog list page title */
.blog-list h1,
.section > .container > .section-header > h1 {
  text-align: center;
}
