/* ===================================
   X-TREME HVAC PAY - Main Styles
   ================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ===================================
   CSS Custom Properties
   ================================== */
:root {
  /* Brand Colors */
  --primary-blue: #00509d;
  --primary-yellow: #fdc500;

  /* Color Variations */
  --dark-blue: #003366;
  --light-blue: #0066cc;
  --dark-yellow: #d4a500;
  --light-yellow: #ffe680;

  /* Neutral Colors */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --medium-gray: #6c757d;
  --dark-gray: #212529;
  --black: #000000;

  /* Neon Gradient Colors */
  --neon-blue: #00d4ff;
  --neon-purple: #9d00ff;
  --neon-pink: #ff00ea;
  --neon-cyan: #00ffff;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Orbitron', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */
  --text-6xl: 3.75rem;
  /* 60px */

  /* Spacing */
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */
  --space-16: 4rem;
  /* 64px */
  --space-20: 5rem;
  /* 80px */
  --space-24: 6rem;
  /* 96px */

  /* Border Radius */
  --radius-sm: 0.25rem;
  /* 4px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 1rem;
  /* 16px */
  --radius-xl: 1.5rem;
  /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* Z-index layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===================================
   Reset & Base Styles
   ================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* ===================================
   Typography
   ================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--primary-blue);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 900;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 800;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: 700;
}

h4 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h6 {
  font-size: var(--text-lg);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  text-align: justify;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--light-blue);
}

ul,
ol {
  margin-left: var(--space-6);
  margin-bottom: var(--space-4);
}

li {
  margin-bottom: var(--space-2);
}

strong {
  font-weight: 700;
}

/* ===================================
   Layout Containers
   ================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-6);
}

.container-narrow {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ===================================
   Sections
   ================================== */
section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-bg-light {
  background-color: var(--off-white);
}

.section-bg-dark {
  background-color: var(--dark-gray);
  color: var(--white);
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4,
.section-bg-dark h5,
.section-bg-dark h6 {
  color: var(--primary-yellow);
}

/* ===================================
   Buttons
   ================================== */
.btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: var(--white);
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 80, 157, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary-yellow), var(--dark-yellow));
  color: var(--dark-gray);
  border-color: var(--primary-yellow);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--dark-yellow), var(--primary-yellow));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(253, 197, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-large {
  padding: var(--space-5) var(--space-12);
  font-size: var(--text-lg);
}

/* ===================================
   Grid System
   ================================== */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===================================
   Utilities
   ================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary-blue);
}

.text-secondary {
  color: var(--primary-yellow);
}

.text-white {
  color: var(--white);
}

.bg-primary {
  background-color: var(--primary-blue);
}

.bg-secondary {
  background-color: var(--primary-yellow);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-12 {
  margin-top: var(--space-12);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.py-12 {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.py-20 {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

/* ===================================
   Animations
   ================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* ===================================
   Responsive Images
   ================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================================
   Selection
   ================================== */
::selection {
  background-color: var(--primary-yellow);
  color: var(--dark-gray);
}

::-moz-selection {
  background-color: var(--primary-yellow);
  color: var(--dark-gray);
}

/* ===================================
   Heat Pump Section
   ================================== */
.heat-pump-section {
  padding: var(--space-20) 0;
  background-color: var(--off-white);
}

.heat-pump-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.heat-pump-image,
.heat-pump-content {
  flex: 1;
}

.heat-pump-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  /* Consistent with theme */
  /* Remove box-shadow if user didn't ask for it, but it looks better */
}

.heat-pump-content h2 {
  margin-bottom: var(--space-4);
  color: var(--primary-blue);
}

.heat-pump-content p {
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
  color: var(--dark-gray);
}

.btn-white {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  background-color: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-white:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .heat-pump-container {
    flex-direction: column;
    text-align: center;
  }

  .heat-pump-image {
    margin-bottom: var(--space-6);
  }
}

/* ===================================
   Chill Out Section
   ================================== */
.chill-out-section {
  padding: var(--space-20) 0;
  background-color: var(--white);
}

.chill-out-section1 {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, #001a33 0%, #000c19 100%);
}

.chill-out-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.chill-out-image,
.chill-out-content {
  flex: 1;
}

.chill-out-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.chill-out-label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--medium-gray);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--text-sm);
}

.chill-out-content h2 {
  margin-bottom: var(--space-4);
  color: var(--primary-blue);
}

.chill-out-content p {
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
  color: var(--dark-gray);
}

.btn-blue-solid {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  background-color: var(--primary-blue);
  color: var(--white);
  border: 2px solid var(--primary-blue);
}

.btn-blue-solid:hover {
  background-color: var(--light-blue);
  color: rgb(225, 225, 225);
  border-color: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .chill-out-card {
    flex-direction: column;
    text-align: center;
  }

  .chill-out-image {
    margin-bottom: var(--space-6);
    order: -1;
    /* Ensure image is on top on mobile */
  }
}

/* ===================================
   Product Showcase Section
   ================================== */
.product-showcase-section {
  padding: var(--space-20) 0;
  background-color: var(--off-white);
  overflow: hidden;
  /* For collage items potentially overlapping */
}

/* Brands Banner */
.brands-banner {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--light-gray);
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.brands-banner::-webkit-scrollbar {
  display: none;
}

.brands-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  min-width: 100%;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--medium-gray);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Showcase Content */
.showcase-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.showcase-content {
  flex: 1;
  max-width: 50%;
}

.showcase-label {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--medium-gray);
  margin-bottom: var(--space-2);
}

.showcase-content h2 {
  font-size: var(--text-3xl);
  color: var(--primary-blue);
  margin-bottom: var(--space-4);
}

.showcase-content p {
  color: var(--dark-gray);
  margin-bottom: var(--space-8);
}

.btn-blue-rect {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  background-color: transparent;
  color: var(--primary-blue);
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.btn-blue-rect:hover {
  color: var(--light-blue);
  text-decoration: underline;
}

/* Collage Visuals */
.showcase-visuals {
  flex: 1;
  position: relative;
  min-height: 500px;
  /* Increased height for better spacing */
  /* display: flex; Removed to rely on absolute positioning */
}

.collage-item {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  /* Stronger shadow for depth */
  transition: transform var(--transition-slow);
  background: var(--white);
  /* Ensure no transparency issues */
}

.collage-item img {
  display: block;
  width: 100%;
  height: auto;
}

.collage-item:hover {
  transform: scale(1.03);
  /* Subtle hover */
  z-index: 20;
}

/* Positioning specific items */
.item-large {
  width: 65%;
  z-index: 5;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.item-small-top {
  width: 45%;
  z-index: 4;
  right: 0;
  top: 5%;
}

.item-small-bottom {
  width: 40%;
  z-index: 6;
  right: 5%;
  bottom: 0px;
}

/* Responsive */
@media (max-width: 992px) {
  .showcase-container {
    flex-direction: column;
    text-align: center;
  }

  .showcase-content {
    max-width: 100%;
    margin-bottom: var(--space-8);
  }

  .showcase-visuals {
    width: 100%;
    height: 300px;
  }

  .item-large {
    position: relative;
    width: 80%;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
  }

  .item-small-top,
  .item-small-bottom {
    display: none;
    /* Simplify on smaller screens */
  }
}

/* ===================================
   Project Slider Section
   ================================== */
.project-slider-section {
  padding: var(--space-20) 0;
  background-color: var(--white);
  overflow: hidden;
}

.project-swiper {
  width: 100%;
  padding: var(--space-8) var(--space-4) var(--space-12) var(--space-4);
  /* Add padding for shadow and pagination */
}

.swiper-slide {
  height: auto;
  /* Ensure equal height */
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-info {
  padding: var(--space-6);
  flex: 1;
}

.project-info h4 {
  font-size: var(--text-lg);
  color: var(--primary-blue);
  margin-bottom: var(--space-2);
}

.project-info p {
  color: var(--medium-gray);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* Swiper Controls Customization */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-blue);
  background: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: bold;
}

.swiper-pagination-bullet-active {
  background: var(--primary-blue);
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
}

.section-label {
  color: var(--primary-blue);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-align: center;
}

.prestige-hero .tagline {
  color: var(--primary-yellow);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.service-banner-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1rem;
  }
}