/* ============================================
   Blue Peak HVAC - Main Stylesheet
   Reverted to Solid Header Design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #0099ff;
  --secondary-color: #11182a; /* Exact background color from logo_solid.jpg */
  --accent-color: #ff8c00;
  --purple-accent: #6a0dad;
  --text-color: #333;
  --light-bg: #f4f7fa;
  --white: #ffffff;
  --nav-hover: #0077cc;
  --gradient-main: linear-gradient(135deg, #0099ff 0%, #6a0dad 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--secondary-color);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #1a2a3a;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-left a,
.top-bar-right a {
  color: #fff;
}

.top-bar-left a:hover,
.top-bar-right a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar .icon {
  font-size: 14px;
}

/* --- Header / Navbar --- */
.site-header {
  background: var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-new-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-img-full {
  height: 100px; /* Adjusted to fit text next to it */
  width: auto;
  object-fit: contain;
  display: block;
  margin-right: 20px;
}

.logo-text-new {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
  text-transform: uppercase;
  font-weight: 900;
}

.text-blue-peak {
  font-size: 32px; /* 2/3 of previous 48px */
  background: linear-gradient(to right, #6a0dad, #0099ff); /* Purple to Blue like logo */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.text-hvac {
  font-size: 18px; /* Proportional reduction */
  color: #ff8c00; /* Exact orange from logo */
  letter-spacing: 6px; /* Spaced out like in logo */
  align-self: flex-end; /* Align to the right of Blue Peak */
  margin-top: -2px;
}

/* --- Navigation --- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 15px;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
  text-decoration: none;
}

.main-nav .has-dropdown {
  position: relative;
}

.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--secondary-color);
  min-width: 220px;
  border: 1px solid #1a2a3a;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  z-index: 100;
}

.main-nav .has-dropdown:hover .dropdown {
  display: block;
}

.main-nav .dropdown a {
  display: block;
  padding: 12px 20px;
  border: none;
  font-size: 13px;
}

.main-nav .dropdown a::after {
  display: none;
}

.main-nav .dropdown a:hover {
  background: #1a2a3a;
  color: var(--primary-color);
}

.nav-search-btn {
  background: none;
  border: 1px solid #333;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.nav-search-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
}

/* --- Hero Banner (Page Title) --- */
.page-hero {
  position: relative;
  height: 300px;
  background: url('../images/hero_bg.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 24, 42, 0.7), rgba(13, 24, 42, 0.4));
}

.page-hero-title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* --- Main Content Area --- */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* --- Centered Content (Home/Contact) --- */
.home-content-centered,
.contact-container-centered {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hvac-banner-img-large {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  margin-bottom: 40px;
}

/* --- Testimonials Section --- */
.testimonials-section {
  background: var(--light-bg);
  padding: 80px 20px;
}

.testimonials-section h2 {
  max-width: 1200px;
  margin: 0 auto 40px;
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  color: var(--secondary-color);
}

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.testimonial-item {
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  position: relative;
}

.testimonial-item::before {
  content: '“';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 60px;
  color: #eee;
  font-family: serif;
  line-height: 1;
}

.testimonial-item p {
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
  font-size: 17px;
  position: relative;
  z-index: 1;
}

.testimonial-item .author {
  font-weight: 700;
  color: var(--secondary-color);
  font-style: normal;
  border-top: 2px solid var(--primary-color);
  display: inline-block;
  padding-top: 10px;
}

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-track img {
  min-width: 100%;
  height: 450px;
  object-fit: cover;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
}

.slider-next {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: var(--secondary-color);
  border: none;
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.slider-next:hover {
  background: var(--primary-color);
  color: #fff;
}

.about-text h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--secondary-color);
  line-height: 1.3;
}

.about-text p {
  margin-bottom: 20px;
  color: #555;
  font-size: 17px;
}

.btn-cta {
  display: inline-block;
  background: var(--gradient-main);
  color: #fff;
  padding: 15px 35px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 153, 255, 0.3);
  text-decoration: none;
}

/* --- Contact Page Info --- */
.contact-info-card-large {
  background: #fff;
  padding: 60px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  margin-top: 40px;
  text-align: left;
}

.contact-info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-item {
  display: flex;
  gap: 20px;
}

.info-item .icon {
  font-size: 28px;
  color: var(--primary-color);
  background: var(--light-bg);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.info-item strong {
  display: block;
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.info-item p {
  color: #666;
  font-size: 16px;
}

/* --- Policy Pages --- */
.policy-content {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.policy-content h3, 
.policy-content h4 {
  color: var(--secondary-color);
  margin: 40px 0 20px;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

.policy-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
  background: var(--secondary-color);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid #1a2a3a;
}

.site-footer p {
  font-size: 15px;
  color: #888;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-main);
  color: #fff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-5px);
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .slider-track img {
    height: 350px;
  }
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid #1a2a3a;
  }

  .main-nav.show {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 15px 0;
    text-align: center;
  }

  .main-nav a::after {
    left: 20%;
    right: 20%;
  }

  .main-nav .dropdown {
    position: static;
    display: block;
    background: #1a2a3a;
    border: none;
    margin-top: 10px;
    padding: 0;
    box-shadow: none;
  }

  .testimonials-grid,
  .contact-info-list {
    grid-template-columns: 1fr;
  }

  .page-hero {
    height: 200px;
  }

  .page-hero-title {
    font-size: 28px;
  }
  
  .contact-info-card-large {
    padding: 30px;
  }
}
