/* ==========================================================================
   Mission Viejo Appliance Repair
   Design: Recreating the Columbine Appliance classic business site style
   Colors: Navy #004b88, Dark navy #22428f, Red CTA #d50000, Gray #f7f7f7
   ========================================================================== */

/* ---- Reset overrides: flatten the modern template ---- */
:root {
  --primary-color: #004b88;
  --primary-color-dark: #002f55;
  --primary-color-light: #0075d4;
  --accent-color: #d50000;
  --accent-color-dark: #890000;
  --color-bg-alt: #f7f7f7;
  --color-bg-dark: #22428f;
  --border-radius: 0;
  --border-radius-sm: 0;
  --border-radius-lg: 0;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: Arial, Helvetica, sans-serif;
  --header-height: auto;
  --max-width: 960px;
}

/* Kill all template section padding */
section {
  padding-top: 0;
  padding-bottom: 0;
}

/* Kill template header */
.site-header {
  position: static;
  height: auto;
  box-shadow: none;
  background: #22428f;
}

/* ---- TOP BAR: white bg, company name left, phone + button right ---- */
.top-bar {
  background: #ffffff;
  border-bottom: 1px solid #d9d9d9;
  padding: 12px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.top-bar-logo {
  height: 120px;
  width: auto;
  display: block;
}

.top-bar-label {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: #004b88;
}

.top-bar-phones {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar-phone {
  font-size: 1.1rem;
  font-weight: bold;
  color: #004b88;
  text-decoration: none;
}

.top-bar-phone:hover {
  color: #0075d4;
}

.appointments-btn {
  display: inline-block;
  background: #d50000;
  color: #ffffff !important;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.appointments-btn:hover {
  background: #890000;
  color: #ffffff !important;
}

/* ---- MAIN NAV: dark navy bar ---- */
.main-nav {
  background: #22428f;
}

.nav-inner {
  display: flex;
  align-items: center;
}

/* Hide the template nav-wrapper stuff */
.nav-wrapper,
.nav-brand,
.nav-phone {
  display: none !important;
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 14px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: normal;
  font-family: Arial, Helvetica, sans-serif;
  transition: background-color 0.15s ease, color 0.15s ease;
  border-radius: 0;
  background: transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: #a0dcf4;
  color: #22428f;
  font-weight: 700;
}

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

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 3px;
  background: #ffffff;
  position: relative;
  transition: all 0.3s ease;
}

.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; }

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

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .top-bar-logo {
    height: 80px;
  }

  .top-bar-label {
    font-size: 1.1rem;
  }

  .top-bar-phone {
    font-size: 1rem;
  }
}

/* ---- HERO BANNER with right-aligned overlay box (Columbine style) ---- */
.hero-banner {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.hero-banner-img {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background-image: url('/images/hero-kitchen.jpg');
  background-size: cover;
  background-position: center;
  animation: heroZoom 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroZoom {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.08) translate(-1%, -1%);
  }
}

/* Right-aligned dark blue overlay box */
.hero-overlay-box {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  background: rgba(0, 47, 85, 0.88);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-box-inner {
  padding: 30px 35px;
  color: #ffffff;
  text-align: center;
}

.overlay-title {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.25;
}

.overlay-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
  text-align: left;
}

.overlay-desc a {
  color: #ffffff;
  text-decoration: underline;
}

.overlay-desc a:hover {
  color: #a0dcf4;
}

/* White-outlined buttons in rows */
.overlay-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.overlay-btn {
  display: inline-block;
  padding: 7px 20px;
  border: 2px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.overlay-btn:hover {
  background: #ffffff;
  color: #002f55;
}

@media (max-width: 900px) {
  .hero-overlay-box {
    width: 55%;
  }
  .overlay-title {
    font-size: 1.35rem;
  }
  .overlay-desc {
    font-size: 0.85rem;
  }
}

@media (max-width: 700px) {
  .hero-banner {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .hero-banner-img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 240px;
    animation: heroZoom 18s ease-in-out infinite alternate;
  }
  .hero-overlay-box {
    position: relative;
    width: 100%;
    top: auto;
    right: auto;
    bottom: auto;
  }
  .overlay-box-inner {
    padding: 22px 20px;
  }
  .overlay-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-banner-img {
    height: 180px;
  }
  .overlay-desc {
    font-size: 0.82rem;
  }
  .overlay-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}

/* ---- WELCOME SECTION ---- */
.welcome-section {
  padding: 25px 0 20px;
  background: #ffffff;
}

.welcome-content {
  overflow: hidden; /* contain float */
}

.welcome-thumb {
  display: none;
}

.welcome-headline {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #004b88;
  margin-bottom: 8px;
  font-weight: bold;
}

.welcome-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #111111;
  margin-bottom: 12px;
}

.welcome-intro a {
  color: #004b88;
  text-decoration: underline;
}

.welcome-intro a:hover {
  color: #0075d4;
}

.welcome-links {
  margin-top: 10px;
}

.welcome-links a {
  color: #004b88;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
}

.welcome-links a:hover {
  color: #0075d4;
  text-decoration: underline;
}

.welcome-links .sep {
  color: #999;
  margin: 0 8px;
}

@media (max-width: 480px) {
  .welcome-thumb {
    float: none;
    display: block;
    width: 125px;
    height: 125px;
    margin: 0 auto 15px;
  }
}

/* ---- MAIN DESCRIPTION SECTION ---- */
.main-description {
  padding: 25px 0 30px;
  background: #ffffff;
}

.main-heading {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: #111111;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 8px;
}

.heading-rule {
  border: none;
  height: 2px;
  background: #111111;
  margin: 0 0 20px;
}

.main-body {
  overflow: hidden; /* contain float */
}

.body-float-logo {
  float: right;
  width: 150px;
  height: auto;
  margin: 0 0 15px 25px;
}

.main-description p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333333;
  margin-bottom: 12px;
}

/* ---- TESTIMONIALS CAROUSEL ---- */
.testimonials-carousel {
  padding: 25px 0;
  background: #ffffff;
  border-bottom: 1px solid #d9d9d9;
}

.section-title {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #004b88;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
  text-align: center;
}

.carousel-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 40px;
}

.carousel-track {
  overflow: hidden;
  position: relative;
  min-height: 120px;
}

.carousel-slide {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testimonial-stars {
  color: #f1c40f;
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333333;
  margin: 0 0 10px;
  border: none;
  padding: 0;
  background: none;
}

.testimonial-attribution {
  font-size: 0.875rem;
  color: #666666;
  font-style: normal;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #004b88;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
  font-family: Arial, sans-serif;
}

.carousel-btn:hover {
  color: #0075d4;
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* ---- OWNER / THANK YOU SECTION ---- */
.owner-section {
  padding: 25px 0;
  background: #ffffff;
  border-bottom: 1px solid #d9d9d9;
}

.owner-section h2 {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #004b88;
  text-align: center;
  margin-bottom: 15px;
}

.owner-message {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.owner-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 2px solid #0075d4;
  border-radius: 0;
  flex-shrink: 0;
}

.owner-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 10px;
}

.owner-sig {
  font-style: italic;
  color: #004b88;
}

@media (max-width: 480px) {
  .owner-message {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ---- SERVICE BOXES: Blue flex cards ---- */
.service-boxes {
  padding: 25px 0;
  background: #f7f7f7;
  border-bottom: 1px solid #d9d9d9;
}

.flex-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.flex-box {
  margin: 0;
}

.flex-box a {
  display: block;
  background: #004b88;
  color: #ffffff;
  padding: 18px 28px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
  border: 3px solid #d9d9d9;
  min-width: 160px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.flex-box a:hover {
  background: #a0dcf4;
  color: #22428f;
  font-weight: 700;
}

@media (max-width: 600px) {
  .flex-box a {
    min-width: 130px;
    padding: 14px 18px;
    font-size: 0.875rem;
  }
}

/* ---- LOCATION BAR ---- */
.location-bar {
  padding: 25px 0;
  background: #ffffff;
  border-bottom: 3px solid #004b88;
}

.location-info {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.location-col h3 {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: #004b88;
  margin-bottom: 6px;
}

.location-col address,
.location-col p {
  font-size: 0.875rem;
  color: #333333;
  font-style: normal;
  line-height: 1.5;
  margin: 0;
}

.location-phone {
  font-size: 1rem;
  font-weight: bold;
  color: #004b88;
  text-decoration: none;
}

.location-phone:hover {
  color: #0075d4;
}

.location-social a {
  color: #004b88;
  text-decoration: none;
  font-size: 0.875rem;
}

.location-social a:hover {
  color: #0075d4;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .location-info {
    flex-direction: column;
    gap: 18px;
  }
}

/* ---- FOOTER ---- */
.site-footer {
  background: #22428f;
  color: #ffffff;
  padding: 15px 0;
  text-align: center;
}

.site-footer .footer-links {
  margin-bottom: 8px;
}

.site-footer .footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8125rem;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}

.site-footer .footer-links .sep {
  color: rgba(255,255,255,0.5);
  margin: 0 8px;
}

.site-footer .footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ---- MOBILE CTA ---- */
.mobile-cta {
  background: #d50000;
}

.mobile-cta-link {
  background: #890000;
  border-radius: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.mobile-cta-link:hover,
.mobile-cta-link:active {
  background: #d50000;
}

/* ---- PAGE LAYOUTS (about, contact, services, brands, blog) ---- */
.page-content {
  padding: 25px 0;
}

.page-content h1 {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: #004b88;
  margin-bottom: 15px;
}

.page-content h2 {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #111111;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-content h3 {
  font-family: Georgia, serif;
  font-size: 1rem;
  color: #004b88;
}

.page-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333333;
}

.page-content a {
  color: #004b88;
}

.page-content a:hover {
  color: #0075d4;
}

.page-content ul, .page-content ol {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.65;
}

/* About page stats */
.about-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.about-stats__item {
  text-align: center;
}

.about-stats__value {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: #004b88;
}

.about-stats__label {
  display: block;
  font-size: 0.8125rem;
  color: #666;
  text-transform: uppercase;
}

.about-mission {
  border-left: 3px solid #004b88;
  background: #f7f7f7;
  padding: 12px 18px;
  font-style: italic;
  color: #333;
  margin-bottom: 20px;
  border-radius: 0;
}

/* Contact grid */
.contact-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.contact-info {
  flex: 1;
  min-width: 250px;
}

.contact-map {
  flex: 1;
  min-width: 300px;
}

/* Service page sidebar */
.service-page {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 30px;
}

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

.service-sidebar-block {
  background: #f7f7f7;
  border: 1px solid #d9d9d9;
  padding: 15px;
  margin-bottom: 15px;
}

.service-sidebar-block h3 {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: #004b88;
  border-bottom: 2px solid #004b88;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

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

.service-sidebar-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: #004b88;
  border-bottom: 1px solid #e5e5e5;
  text-decoration: none;
}

.service-sidebar-links a:hover {
  color: #0075d4;
}

.service-sidebar-links li:last-child a {
  border-bottom: none;
}

/* Brands page grid */
.brands-page-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.brand-page-card {
  flex: 1 1 calc(50% - 15px);
  min-width: 280px;
  background: #f7f7f7;
  border: 1px solid #d9d9d9;
  border-left: 3px solid #004b88;
  padding: 18px;
}

.brand-page-card h3 {
  font-family: Georgia, serif;
  color: #004b88;
  font-size: 1rem;
  margin-bottom: 6px;
}

.brand-page-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #444;
}

@media (max-width: 600px) {
  .brand-page-card {
    flex: 1 1 100%;
  }
}

/* Blog cards */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.blog-card {
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 15px;
}

.blog-card-title a {
  font-family: Georgia, serif;
  color: #004b88;
  text-decoration: none;
  font-size: 1.05rem;
}

.blog-card-title a:hover {
  color: #0075d4;
  text-decoration: underline;
}

.blog-card-date {
  font-size: 0.8125rem;
  color: #888;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

/* ---- CAROUSEL JAVASCRIPT (inline via CSS trick — use JS below) ---- */

/* ---- BRAND SINGLE PAGE LAYOUT ---- */
.brand-page {
  padding: 25px 0;
}

.brand-page-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #004b88;
}

.brand-page-title {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: #004b88;
  margin-bottom: 6px;
}

.brand-page-tagline {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
  margin: 0;
}

.brand-page-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 30px;
  align-items: start;
}

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

.brand-page-content h2 {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #111;
  margin-top: 22px;
  margin-bottom: 10px;
}

.brand-page-content h3 {
  font-family: Georgia, serif;
  font-size: 1rem;
  color: #004b88;
  margin-top: 16px;
  margin-bottom: 6px;
}

.brand-page-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333;
  margin-bottom: 12px;
}

.brand-page-content ul,
.brand-page-content ol {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.65;
}

.brand-page-content strong {
  color: #111;
}

.brand-page-sidebar {
  position: sticky;
  top: 20px;
}

/* ---- BLOG POST TABLE (price tables in guides) ---- */
.blog-post__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 0.9rem;
}

.blog-post__content th {
  background: #004b88;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: bold;
  font-family: Georgia, serif;
  font-size: 0.85rem;
}

.blog-post__content td {
  padding: 8px 12px;
  border-bottom: 1px solid #e5e5e5;
  color: #333;
}

.blog-post__content tr:nth-child(even) td {
  background: #f7f7f7;
}

/* Print styles override */
@media print {
  .top-bar, .main-nav, .mobile-cta, .carousel-btn {
    display: none !important;
  }
}
