/* ==========================================================================
   Encino Appliance Repairs — Custom Design System
   Deep indigo + rose gold, inspired by premium service aesthetics
   ========================================================================== */

/* ---------- Offer Banner ---------- */
.offer-banner {
  background: linear-gradient(135deg, #3a1078, #4e1a9e);
  color: #fff;
  text-align: center;
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.offer-banner strong {
  color: #e8d5c4;
}

/* ---------- Navigation Override ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid #3a1078;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #3a1078;
  text-decoration: none;
}

.nav-brand:hover {
  color: #2a0b5a;
}

.nav-brand img {
  height: 42px;
  width: auto;
  border-radius: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #3a1078;
  background: #f3edf9;
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #c4956a, #b07d52);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-phone:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 149, 106, 0.4);
  color: #fff;
}

@media (min-width: 769px) {
  .nav-phone {
    display: inline-flex;
  }
}

/* Mobile nav overrides */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

.nav-toggle:checked ~ .nav-toggle-label span {
  background: transparent;
}
.nav-toggle:checked ~ .nav-toggle-label span::before {
  top: 0;
  transform: rotate(45deg);
  background: #333;
}
.nav-toggle:checked ~ .nav-toggle-label span::after {
  top: 0;
  transform: rotate(-45deg);
  background: #333;
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 1.5rem 1.5rem;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav-toggle:checked ~ .nav-menu {
    transform: translateX(0);
  }

  .nav-menu a {
    padding: 0.875rem 1rem;
    font-size: 1.0625rem;
    border-bottom: 1px solid #eee;
    border-radius: 0;
  }
}

/* ---------- Hero Override ---------- */
.hero--fullbleed {
  min-height: 75vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero--fullbleed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(58, 16, 120, 0.85) 0%,
    rgba(58, 16, 120, 0.55) 50%,
    rgba(196, 149, 106, 0.35) 100%
  );
  z-index: 1;
}

.hero--fullbleed .container {
  position: relative;
  z-index: 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 1200px;
}

.hero-headline {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1rem;
  max-width: 700px;
  letter-spacing: -0.02em;
}

.hero-subtext {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-cta .btn-primary {
  background: linear-gradient(135deg, #c4956a, #b07d52);
  border-color: transparent;
  color: #fff;
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(196, 149, 106, 0.35);
}

.hero-cta .btn-primary:hover {
  background: linear-gradient(135deg, #b07d52, #9a6940);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 149, 106, 0.5);
  color: #fff;
}

.hero-cta .btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  border-radius: 50px;
}

.hero-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 768px) {
  .hero--fullbleed .container {
    text-align: center;
    align-items: center;
  }
  .hero-cta {
    justify-content: center;
    width: 100%;
  }
  .hero-trust {
    justify-content: center;
  }
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: #1e0a3c;
  padding: 0;
}

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

.stat-item {
  padding: 2rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #c4956a;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    padding: 1.25rem 0.75rem;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ---------- Services Section Override ---------- */
.services-section {
  background: #faf8f6;
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  color: #1e0a3c;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #666;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: 0;
  border-left: 4px solid #3a1078;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(58, 16, 120, 0.12);
  border-left-color: #c4956a;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e0a3c;
}

.service-card-title a {
  color: inherit;
  text-decoration: none;
}

.service-card-title a:hover {
  color: #3a1078;
}

.service-card-description {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #c4956a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s, color 0.2s;
}

.service-card-link::after {
  content: '\2192';
  transition: transform 0.2s;
}

.service-card-link:hover {
  color: #3a1078;
  gap: 0.5rem;
}

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

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

/* ---------- Founder Section ---------- */
.founder-section {
  background: #fff;
  padding: 4rem 0;
}

.founder-layout {
  max-width: 800px;
  margin: 0 auto;
}

.founder-content h2 {
  font-family: var(--font-heading);
  color: #1e0a3c;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.founder-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c4956a, #e8d5c4);
  border-radius: 2px;
}

.founder-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 1.25rem;
}

.founder-content blockquote {
  border-left: 4px solid #c4956a;
  background: #faf8f6;
  padding: 1.5rem 2rem;
  margin: 2rem 0 1rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: #3a1078;
  line-height: 1.6;
}

/* ---------- Guarantee Section ---------- */
.guarantee-section {
  background: linear-gradient(135deg, #f5f0eb, #faf8f6);
  padding: 4rem 0;
}

.guarantee-badge {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

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

.guarantee-badge h2 {
  font-family: var(--font-heading);
  color: #1e0a3c;
  margin-bottom: 2.5rem;
}

.guarantee-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.guarantee-item {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-top: 3px solid #c4956a;
}

.guarantee-item h3 {
  font-family: var(--font-heading);
  color: #3a1078;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.guarantee-item p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.65;
}

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

/* ---------- Brands Section ---------- */
.brands-section {
  background: #fff;
  padding: 4rem 0;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

.brand-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: #faf8f6;
  border: 1px solid #e8e2dc;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.brand-item a {
  color: inherit;
  text-decoration: none;
}

.brand-premium {
  background: #f3edf9;
  border-color: #d5c4e8;
  color: #3a1078;
  font-weight: 600;
}

.brand-premium:hover {
  background: #3a1078;
  border-color: #3a1078;
  color: #fff;
}

.brand-premium:hover a {
  color: #fff;
}

.brand-item:hover {
  border-color: #c4956a;
  color: #3a1078;
}

/* ---------- Testimonials Override ---------- */
.testimonials-section {
  background: #faf8f6;
  padding: 4rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(58, 16, 120, 0.1);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: #3a1078;
  opacity: 0.08;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  color: #c4956a;
}

.testimonial-quote {
  font-size: 0.9375rem;
  color: #444;
  font-style: italic;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.testimonial-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a1078, #6a3cb5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1e0a3c;
}

.testimonial-location {
  font-size: 0.8125rem;
  color: #888;
  margin-top: 2px;
}

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

/* ---------- Service Areas Override ---------- */
.service-area {
  background: #fff;
  padding: 4rem 0;
}

.service-area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-area-list li {
  margin: 0;
}

.service-area-list a {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 2px solid #3a1078;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3a1078;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.service-area-list a:hover {
  background: #3a1078;
  color: #fff;
}

/* ---------- CTA Section Override ---------- */
.cta-section {
  background: linear-gradient(135deg, #3a1078, #1e0a3c);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-section .btn-primary {
  background: linear-gradient(135deg, #c4956a, #b07d52);
  border-color: transparent;
  color: #fff;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
}

.cta-section .btn-primary:hover {
  background: linear-gradient(135deg, #b07d52, #9a6940);
  color: #fff;
}

.cta-section .btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  background: transparent;
}

.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ---------- Footer Override ---------- */
.site-footer {
  background: #120727;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c4956a;
  display: inline-block;
}

.footer-nap {
  font-style: normal;
  line-height: 1.8;
  font-size: 0.9375rem;
}

.footer-nap a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-nap a:hover {
  color: #c4956a;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #c4956a;
}

.footer-areas {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-areas li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-areas a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-areas a:hover {
  color: #c4956a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

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

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

/* ---------- Mobile CTA Override ---------- */
@media (max-width: 768px) {
  .mobile-cta {
    background: linear-gradient(135deg, #3a1078, #4e1a9e);
  }

  .mobile-cta-link {
    background: linear-gradient(135deg, #c4956a, #b07d52);
    border-radius: 8px;
    font-family: var(--font-heading);
    color: #fff;
    text-decoration: none;
  }

  .mobile-cta-link:hover,
  .mobile-cta-link:active {
    background: linear-gradient(135deg, #b07d52, #9a6940);
    color: #fff;
  }
}

/* ---------- Brand Page Styles ---------- */
.brand-page {
  padding: 3rem 0;
}

.brand-page h1 {
  font-family: var(--font-heading);
  color: #1e0a3c;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #c4956a;
}

.brands-landing {
  padding: 3rem 0;
}

.brands-landing h1 {
  font-family: var(--font-heading);
  color: #1e0a3c;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

/* ---------- Service Page Content Overrides ---------- */
.service-page-content h2 {
  color: #1e0a3c;
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.service-page-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #c4956a;
}

.service-sidebar-block {
  border-radius: 12px;
  background: #faf8f6;
}

.service-sidebar-block h3 {
  border-bottom-color: #3a1078;
}

.service-sidebar-cta {
  background: linear-gradient(135deg, #3a1078, #4e1a9e);
  border-radius: 12px;
}

.service-sidebar-cta .btn-primary {
  background: linear-gradient(135deg, #c4956a, #b07d52);
  border-color: transparent;
  border-radius: 50px;
}

/* ---------- Blog Card Overrides ---------- */
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(58, 16, 120, 0.1);
}

/* ---------- Utility: Section Heading Underline ---------- */
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c4956a, #e8d5c4);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ---------- Buttons global refinement ---------- */
.btn {
  border-radius: 50px;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, #c4956a, #b07d52);
  border-color: transparent;
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b07d52, #9a6940);
  border-color: transparent;
  color: #fff;
}

.btn-secondary {
  border-color: #3a1078;
  color: #3a1078;
}

.btn-secondary:hover {
  background: #3a1078;
  color: #fff;
}

/* ---------- Blockquote global ---------- */
blockquote {
  border-left-color: #c4956a;
}

li::marker {
  color: #3a1078;
}

a {
  color: #3a1078;
}

a:hover {
  color: #2a0b5a;
}
