/**
 * Location Homepage Styles
 * Custom styles for single location pages
 */

/* ===== HERO SECTION ===== */
.hero-section-local {
  min-height: 800px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Carousel Specific Styles */
#locationHeroCarousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#locationHeroCarousel .carousel-inner,
#locationHeroCarousel .carousel-item {
  height: 100%;
  min-height: 800px;
}

#locationHeroCarousel .carousel-item img,
#locationHeroCarousel .carousel-item video {
  height: 100%;
  min-height: 800px;
  object-fit: cover;
  width: 100%;
  max-height: unset !important;
}

#locationHeroCarousel .carousel-indicators {
  z-index: 5;
  /* margin-bottom: 2rem; */
}

#locationHeroCarousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 1;
  background-color: #fff;
  border: none;
}

#locationHeroCarousel .carousel-indicators .active {
  background-color: #d32027;
}

#locationHeroCarousel .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.68) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
}

/* Fallback for non-carousel hero */
.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.68) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
}

.hero-content-local {
  z-index: 3;
}

.location-name {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-family: 'Barlow Condensed', sans-serif;
}

.location-tagline {
  font-size: 74.25px;
  line-height: 1.2;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.location-description {
  font-size: 18px;
  line-height: 1.4;
}

/* Contact Form Card */
.contact-form-card {
  background-color: rgba(35, 66, 139, 0.98) !important;
  border-radius: 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 25.28px;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
}

.form-subtitle {
  font-size: 14.183px;
  line-height: 1.3;
}

.contact-form-card input[type='text'],
.contact-form-card input[type='email'],
.contact-form-card input[type='tel'],
.contact-form-card select,
.contact-form-card textarea {
  background-color: #f4f4f4;
  border: 0.79px solid #999999;
  padding: 10px 12px;
  font-size: 11.06px;
}

.contact-form-card input[type='checkbox'] {
  background-color: #f4f4f4;
  border: 1px solid #999999;
  width: 16px;
  height: 16px;
}

.contact-form-card label {
  color: white;
  font-size: 11.06px;
  font-family: 'Gotham', sans-serif;
  text-transform: uppercase;
}

.contact-form-card .gform_button,
.contact-form-card button[type='submit'] {
  background-color: #d32027;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-size: 15px;
  font-family: 'Gotham', sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form-card .gform_button:hover,
.contact-form-card button[type='submit']:hover {
  background-color: #000;
}

/* ===== SERVICES SECTION ===== */
/* Using default homepage service grid styles */

/* ===== EXPERTS SECTION ===== */
.experts-section {
  padding: 0;
  overflow: hidden;
}

.experts-section .bg-primary {
  background-color: #23428b !important;
  min-height: 700px;
}

.experts-left-column,
.experts-right-column {
  min-height: 700px;
}

/* Image Carousel - Left Column */
.experts-image-carousel-wrapper {
  position: relative;
  height: 100%;
  /*height: 700px;*/
}

.experts-image-carousel {
  position: relative;
  height: 100%;
  overflow: hidden;
  margin-bottom: 0px !important;
}
.experts-image-carousel .slick-list,
.experts-image-carousel .slick-list .slick-track {
  height: 100% !important;
}

.experts-image-carousel.slick-slider .slick-slide {
  height: 100% !important;
}

.carousel-image-slide {
  height: 100%;
  width: 100%;
}

.carousel-image-slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Red Caption Bar */
.image-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #d32027;
  height: 61px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.caption-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  padding: 0 20px;
}

/* Team Member Carousel - Right Column */
.experts-team-carousel {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.team-member-slide {
  padding: 20px 30px 10px 30px;
}

.team-member {
  padding: 0 15px;
}

.member-photo {
  border: none;
}

.member-name {
  font-size: 25px;
  font-family: 'Barlow Condensed', sans-serif;
  color: white;
}

.member-title {
  font-size: 20px;
  font-style: italic;
  color: white;
  font-family: 'Gotham', sans-serif;
}

.member-bio {
  font-size: 15px;
  line-height: 1.4;
  color: white;
  font-family: 'Gotham', sans-serif;
}

/* Slick Carousel Dots - Left Side (on red bar) */
.experts-image-carousel-wrapper .slick-dots {
  bottom: 20px; /* Position above the red caption bar */
  z-index: 11;
}

.experts-image-carousel-wrapper .slick-dots li button:before {
  font-size: 12px;
  color: white;
  opacity: 0.7;
}

.experts-image-carousel-wrapper .slick-dots li.slick-active button:before {
  color: white;
  opacity: 1;
  font-size: 14px;
}

/* Slick Carousel Dots - Right Side */
.experts-team-carousel .slick-dots {
  /* bottom: 20px; */
  z-index: 10;
}

.experts-team-carousel .slick-dots li button:before {
  font-size: 12px;
  color: white;
  opacity: 0.7;
}

.experts-team-carousel .slick-dots li.slick-active button:before {
  color: #d32027;
  opacity: 1;
  font-size: 14px;
}

/* ===== VETERANS SECTION ===== */
.veterans-section {
  padding: 80px 0;
}

.section-title {
  font-size: 45px;
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 45px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

/* ===== WARRANTY SECTION ===== */
.warranty-section {
  padding: 0;
  overflow: hidden;
}

.warranty-section .bg-primary {
  background-color: #23428b !important;
}

.warranty-form-column,
.warranty-image-column {
  min-height: 584px;
}

.warranty-image-column img {
  min-height: 584px;
  object-fit: cover;
}

.warranty-section .section-title {
  font-size: 45px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.warranty-section input[type='text'],
.warranty-section input[type='email'],
.warranty-section input[type='tel'],
.warranty-section select,
.warranty-section textarea {
  background-color: #f4f4f4 !important;
  border: 0.688px solid #999999 !important;
  padding: 10px 12px;
  font-size: 9.628px !important;
  border-radius: 0 !important;
  color: #909090;
}

.warranty-section input::placeholder,
.warranty-section textarea::placeholder {
  color: #909090;
  font-size: 9.628px;
}

.warranty-section label {
  color: white !important;
  font-size: 9.628px !important;
  font-family: 'Gotham', sans-serif !important;
}

.warranty-section .gform_button,
.warranty-section button[type='submit'],
.warranty-section .btn-secondary {
  background-color: #d32027 !important;
  border: none !important;
  border-radius: 30px !important;
  font-size: 15px !important;
  font-weight: bold !important;
  padding: 10px 30px !important;
  color: white !important;
}

.warranty-section .gform_button:hover,
.warranty-section button[type='submit']:hover {
  background-color: #000 !important;
}

/* ===== REVIEWS SECTION ===== */
/* Using default homepage testimonial slider styles */

/* ===== SUPPORT SECTION ===== */
/* Using default homepage support section styles from custom-style.css */

/* ===== GALLERY SECTION ===== */
.gallery-section {
  padding: 80px 0 80px 0;
  margin-bottom: 0 !important;
}

/* Gallery Carousel */
.gallery-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-slide {
  padding: 0 15px;
  transition: all 0.3s ease;
}

/* Center slide is larger */
.gallery-carousel .slick-slide {
  opacity: 1;
  transform: scale(0.85);
  transition: all 0.3s ease;
}

.gallery-carousel .slick-center {
  transform: scale(1);
  opacity: 1;
}

.gallery-item {
  overflow: hidden;
  border-radius: 0;
  height: 350px;
  position: relative;
}

.gallery-carousel .slick-center .gallery-item {
  height: 400px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Items */
.video-item {
  cursor: default;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: auto;
}

.video-play-overlay .play-btn {
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  outline: none !important;
}

.video-play-overlay .play-btn:hover {
  transform: scale(1.1);
}

.video-play-overlay .play-btn:focus {
  outline: none;
  box-shadow: none;
}

.video-placeholder {
  min-height: 350px;
}

/* Gallery Carousel Dots */
.gallery-carousel .slick-dots {
  bottom: -45px;
  margin-bottom: 0;
}

.gallery-carousel .slick-dots li {
  margin: 0 5px;
}

.gallery-carousel .slick-dots li button:before {
  font-size: 10px;
  color: #cccccc;
  opacity: 1;
}

.gallery-carousel .slick-dots li.slick-active button:before {
  color: #d32027;
  opacity: 1;
  font-size: 10px;
}

/* Video Modal */
.modal-content video {
  width: 100%;
  height: auto;
}

/* ===== BUSINESS OPPORTUNITY SECTION ===== */
/* Using default homepage business-section styles from custom-style.css */

/* ===== BLOG SECTION ===== */
.blog-section {
  padding: 80px 0;
}

.blog-card {
  background-color: white;
}

.blog-image {
  overflow: hidden;
  height: 239px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-title {
  font-size: 24px;
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1.2;
}

.blog-excerpt {
  font-size: 16px;
  line-height: 1.5;
}

/* ===== SERVICE CONTACT SECTION ===== */
/* Using default homepage service-contact-section styles from custom-style.css */

/* ===== BUTTONS ===== */
.btn-secondary {
  background-color: #d32027;
  border: none;
  color: white;
  border-radius: 30px;
  padding: 10px 30px;
  font-size: 15px;
  font-weight: bold;
  text-transform: none;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #000;
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero-section {
    min-height: 600px;
  }

  #locationHeroCarousel .carousel-inner,
  #locationHeroCarousel .carousel-item {
    min-height: 600px;
  }

  #locationHeroCarousel .carousel-item img,
  #locationHeroCarousel .carousel-item video {
    min-height: 600px;
  }

  .location-name {
    font-size: 32px;
  }

  .location-tagline {
    font-size: 48px;
  }

  .section-title {
    font-size: 36px;
  }

  .contact-form-card {
    margin-top: 30px;
  }

  /* Experts Section - Stack on tablet/mobile */
  .experts-section .bg-primary {
    min-height: auto;
  }

  .experts-left-column,
  .experts-right-column {
    min-height: 500px;
  }

  .experts-image-carousel-wrapper {
    height: 500px;
  }

  .experts-image-carousel {
    height: calc(100% - 61px);
  }

  .image-caption-bar {
    height: 61px;
  }

  .caption-text {
    font-size: 16px;
    line-height: 22px;
  }

  /* Warranty Section - Tablet */
  .warranty-form-column,
  .warranty-image-column {
    min-height: 500px;
  }

  .warranty-image-column img {
    min-height: 500px;
  }

  .warranty-section .section-title {
    font-size: 36px;
  }

  /* Gallery Carousel - Tablet */
  .gallery-item {
    height: 300px;
  }

  .gallery-carousel .slick-center .gallery-item {
    height: 350px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 500px;
  }

  #locationHeroCarousel .carousel-inner,
  #locationHeroCarousel .carousel-item {
    min-height: 500px;
  }

  #locationHeroCarousel .carousel-item img,
  #locationHeroCarousel .carousel-item video {
    min-height: 500px;
  }

  #locationHeroCarousel .carousel-indicators {
    margin-bottom: 1rem;
  }

  .location-name {
    font-size: 24px;
  }

  .location-tagline {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 28px;
  }

  /* Experts Section - Mobile */
  .experts-left-column,
  .experts-right-column {
    min-height: 400px;
  }

  .experts-image-carousel-wrapper {
    height: 400px;
  }

  .experts-image-carousel {
    height: calc(100% - 61px);
  }

  .image-caption-bar {
    height: 61px;
  }

  .caption-text {
    font-size: 14px;
    line-height: 20px;
    padding: 0 15px;
  }

  .member-name {
    font-size: 20px;
  }

  .member-title {
    font-size: 16px;
  }

  .member-bio {
    font-size: 13px;
  }

  /* Stack team members vertically on small mobile */
  .experts-team-carousel .team-member-slide .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Warranty Section - Mobile */
  .warranty-form-column,
  .warranty-image-column {
    min-height: 400px;
  }

  .warranty-image-column img {
    min-height: 400px;
  }

  .warranty-section .section-title {
    font-size: 28px;
  }

  /* Gallery Carousel - Mobile */
  .gallery-item {
    height: 250px;
  }

  .gallery-carousel .slick-center .gallery-item {
    height: 300px;
  }

  .video-play-overlay svg {
    width: 80px;
    height: 80px;
  }
}

/* ===== UTILITIES ===== */
.bg-neutral {
  background-color: #eeeeee;
}

.bg-primary {
  background-color: #23428b;
}

.text-primary {
  color: #23428b !important;
}

.bg-secondary {
  background-color: #d32027;
}

.text-secondary {
  color: #d32027 !important;
}
