/* ==========================================================================
   TRI-COUNTY ELECTRIC INC. - ULTRA LUXURY RED & WHITE DESIGN SYSTEM V4
   ========================================================================== */

:root {
  --red-primary: #e60000;
  --red-hover: #c40000;
  --red-dark: #990000;
  --red-light: #fff0f0;
  --red-subtle: rgba(230, 0, 0, 0.05);
  --red-glow: rgba(230, 0, 0, 0.35);
  
  --dark-navy: #090f19;
  --navy-card: #111a2e;
  --gray-dark: #1e293b;
  --gray-body: #475569;
  --gray-light: #f8fafc;
  --gray-border: #e2e8f0;
  --white: #ffffff;
  
  --font-main: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 4px 14px rgba(0,0,0,0.03);
  --shadow-md: 0 15px 35px rgba(0,0,0,0.06);
  --shadow-lg: 0 25px 60px rgba(0,0,0,0.1);
  --shadow-red: 0 15px 35px rgba(230, 0, 0, 0.35);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CUSTOM SELECTION STYLING */
::selection {
  background-color: var(--red-primary);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--red-primary);
  color: var(--white);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--gray-body);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--red-primary);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* PRELOADER STYLING */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 75px;
  height: 75px;
  border: 4px solid rgba(230, 0, 0, 0.2);
  border-top: 4px solid var(--red-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 25px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* INCREASED PRELOADER LOGO SIZE */
.preloader-logo {
  height: 75px;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(230, 0, 0, 0.5);
}

/* SCROLL TO TOP BUTTON */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--red-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-red);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

#scrollTopBtn.show-btn {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  background: var(--red-hover);
  transform: translateY(-4px);
}

/* Keyframe Animations */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 18px rgba(230, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 0, 0, 0); }
}

@keyframes floatBobY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.animate-pulse {
  animation: pulseGlow 2.5s infinite;
}

.animate-float {
  animation: floatBobY 5s ease-in-out infinite;
}

/* Topbar Header */
.topbar-red {
  background-color: var(--dark-navy);
  color: #94a3b8;
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 3px solid var(--red-primary);
}

.topbar-red__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.topbar-red__info {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.topbar-red__info li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-red__info i {
  color: var(--red-primary);
}

.badge-est-red {
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: var(--white);
  padding: 5px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(230,0,0,0.3);
}

/* Navbar Navigation & INCREASED LOGO SIZE */
.navbar-red {
  background: var(--white);
  box-shadow: 0 4px 25px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-red__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px; /* Increased height from 95px to 110px */
}

/* INCREASED LOGO SIZE */
.navbar-logo img {
  height: 75px; /* Increased height from 56px to 75px */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-logo img:hover {
  transform: scale(1.04);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-menu li a {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

.navbar-menu li.active a,
.navbar-menu li a:hover {
  color: var(--red-primary);
  background: var(--red-light);
}

/* Buttons */
.btn-red {
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: var(--white) !important;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-red);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-red:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(230, 0, 0, 0.45);
}

.btn-outline-red {
  border: 2px solid var(--red-primary);
  color: var(--red-primary) !important;
  background: transparent;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-outline-red:hover {
  background: var(--red-primary);
  color: var(--white) !important;
}

.mobile-toggle {
  display: none !important;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--dark-navy);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition);
}

.mobile-toggle:hover {
  color: var(--red-primary);
  background: var(--red-light);
}

/* Hero Section */
.hero-red {
  background: linear-gradient(135deg, #ffffff 0%, var(--red-light) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-border);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 0, 0, 0.08);
  color: var(--red-primary);
  border: 1px solid rgba(230, 0, 0, 0.2);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--dark-navy);
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--red-primary);
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Headings */
.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--dark-navy);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--red-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 40px;
  display: block;
}

/* Service Cards */
.services-grid-red {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card-red {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 38px 30px;
  transition: var(--transition);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.card-red:hover {
  border-color: var(--red-primary);
  box-shadow: 0 20px 45px rgba(230, 0, 0, 0.15);
  transform: translateY(-6px);
}

.card-icon-red {
  width: 65px;
  height: 65px;
  background: var(--red-light);
  color: var(--red-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  border: 1px solid rgba(230, 0, 0, 0.2);
}

/* 2-Column Job Reference Grid */
.job-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.job-card-red {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.job-card-red:hover {
  border-color: var(--red-primary);
  box-shadow: 0 18px 40px rgba(230, 0, 0, 0.12);
  transform: translateY(-4px);
}

.job-tag {
  color: var(--red-primary);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.job-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 12px;
}

.job-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--gray-border);
  font-size: 13px;
  margin-top: 18px;
}

.status-completed {
  background: #dcfce7;
  color: #15803d;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 11px;
}

.status-progress {
  background: var(--red-light);
  color: var(--red-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 11px;
}

/* Process Timeline Steps */
.process-step-num {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-red);
}

/* FAQ Accordion Styling */
.faq-accordion-item {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-accordion-item:hover {
  border-color: var(--red-primary);
}

.faq-accordion-btn {
  width: 100%;
  padding: 22px 26px;
  text-align: left;
  background: var(--white);
  border: none;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-accordion-body {
  display: none;
  padding: 0 26px 24px;
  color: var(--gray-body);
  font-size: 15px;
  line-height: 1.7;
}

/* Counter Bar */
.counter-bar-red {
  background: var(--dark-navy);
  color: var(--white);
  padding: 70px 0;
  border-top: 4px solid var(--red-primary);
}

.counter-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--red-primary);
  line-height: 1;
}

/* Footer Red & INCREASED FOOTER LOGO SIZE */
.footer-red {
  background: var(--dark-navy);
  color: #94a3b8;
  padding: 75px 0 35px;
  font-size: 14px;
  border-top: 5px solid var(--red-primary);
}

.footer-red h5 {
  color: var(--white);
  font-weight: 800;
  margin-bottom: 22px;
  position: relative;
}

.footer-red h5::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--red-primary);
}

/* FOOTER LOGO SIZE ENHANCEMENT */
.footer-logo-img {
  height: 65px; /* Increased height from 48px to 65px */
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* MEDIA QUERIES FOR MOBILE AND TABLET */
@media (max-width: 992px) {
  .hero-title { font-size: 2.6rem; }
  .job-grid-2col { grid-template-columns: 1fr; }
  .navbar-menu { display: none; }
  .navbar-red__inner { height: 95px; }
  .navbar-logo img { height: 60px; }
  
  .mobile-toggle {
    display: block !important;
  }

  .navbar-menu.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 95px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--red-primary);
  }

  .navbar-menu.mobile-active li a {
    width: 100%;
    padding: 12px 16px;
  }
}
