/* ============================================
   BEST RATE ELECTRICAL SERVICES
   Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --yellow: #FFD700;
  --yellow-dark: #e6c200;
  --navy: #0a0e1a;
  --navy-mid: #111827;
  --navy-light: #1a2236;
  --navy-card: #1e2a3a;
  --white: #ffffff;
  --gray: #94a3b8;
  --gray-light: #e2e8f0;
  --red: #ef4444;
  --green: #22c55e;
  --font: 'Poppins', sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-yellow: 0 4px 24px rgba(255,215,0,0.2);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================
   UTILITIES
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--navy-light); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .label {
  display: inline-block;
  background: rgba(255,215,0,0.1);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,215,0,0.3);
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
}
.section-header h2 span { color: var(--yellow); }
.section-header p { color: var(--gray); margin-top: 12px; font-size: 1.05rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: var(--shadow-yellow); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,14,26,0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .name { font-size: 0.95rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.nav-logo-text .tagline { font-size: 0.65rem; color: var(--yellow); font-weight: 500; letter-spacing: 0.05em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 2px;
  background: var(--yellow);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--yellow); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.9rem;
}
.nav-phone i { font-size: 0.85rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--yellow); padding-left: 8px; }
.mobile-menu .mobile-cta { margin-top: 32px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/bentley1.png');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,26,0.95) 0%, rgba(10,14,26,0.7) 50%, rgba(10,14,26,0.9) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--yellow);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}
.hero-badge i { font-size: 0.75rem; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero h1 span { color: var(--yellow); display: block; }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray);
  margin-bottom: 36px;
  animation: fadeInUp 0.6s ease 0.2s both;
  max-width: 540px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  animation: fadeInUp 0.6s ease 0.4s both;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray);
}
.trust-item i { color: var(--yellow); font-size: 1rem; }
.trust-item strong { color: var(--white); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}
.hero-scroll i { font-size: 1.2rem; }

/* ============================================
   EMERGENCY BANNER
   ============================================ */
.emergency-banner {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  padding: 14px 0;
}
.emergency-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}
.emergency-inner i { font-size: 1.1rem; animation: pulse 1.5s infinite; }
.emergency-inner span { font-weight: 600; font-size: 0.95rem; }
.emergency-inner a { color: var(--white); font-weight: 800; text-decoration: underline; }

/* ============================================
   STATS
   ============================================ */
.stats { padding: 60px 0; background: var(--navy-light); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.stat-label { color: var(--gray); font-size: 0.9rem; margin-top: 6px; }

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(255,215,0,0.2); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }
.service-badge {
  display: inline-block;
  background: rgba(255,215,0,0.1);
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  margin-top: 12px;
  border: 1px solid rgba(255,215,0,0.2);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item.featured { grid-column: span 2; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: rgba(255,215,0,0.2); transform: translateY(-4px); }
.stars { color: var(--yellow); font-size: 0.9rem; margin-bottom: 16px; }
.testimonial-text { color: var(--gray); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-text::before { content: '"'; font-size: 2rem; color: var(--yellow); line-height: 0; vertical-align: -0.6rem; margin-right: 4px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), #ff9500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: var(--navy); flex-shrink: 0;
}
.author-info .name { font-weight: 700; font-size: 0.95rem; }
.author-info .location { color: var(--gray); font-size: 0.8rem; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-card));
  border: 1px solid rgba(255,215,0,0.1);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '⚡';
  position: absolute;
  font-size: 12rem;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.cta-section h2 span { color: var(--yellow); }
.cta-section p { color: var(--gray); margin-bottom: 36px; font-size: 1.05rem; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image-stack { position: relative; }
.about-img-main {
  border-radius: var(--radius);
  width: 100%;
  height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-img-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--yellow);
  color: var(--navy);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-yellow);
}
.about-img-badge .big { font-size: 2rem; font-weight: 900; line-height: 1; }
.about-img-badge .small { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.about-content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 20px; }
.about-content h2 span { color: var(--yellow); }
.about-content p { color: var(--gray); line-height: 1.8; margin-bottom: 20px; }
.about-features { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.about-feature i { color: var(--yellow); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.about-feature div strong { display: block; margin-bottom: 2px; }
.about-feature div span { color: var(--gray); font-size: 0.9rem; }

/* ============================================
   SERVICE AREAS
   ============================================ */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.area-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: var(--transition);
}
.area-tag:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.area-tag i { color: var(--yellow); font-size: 0.75rem; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy-card);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.06);
}
.contact-info-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 28px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(255,215,0,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-info strong { display: block; margin-bottom: 4px; }
.contact-item-info span, .contact-item-info a { color: var(--gray); font-size: 0.9rem; }
.contact-item-info a:hover { color: var(--yellow); }

.contact-form-card {
  background: var(--navy-card);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.06);
}
.contact-form-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--gray-light); }
input, select, textarea {
  width: 100%;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}
input::placeholder, textarea::placeholder { color: var(--gray); }
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--navy-mid); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .footer-logo img { height: 48px; }
.footer-brand .footer-logo span { font-weight: 700; font-size: 1rem; }
.footer-brand p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px;
  background: var(--navy-card);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
}
.social-link:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.footer-col h4 { font-weight: 700; margin-bottom: 20px; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--gray); font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--yellow); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; color: var(--gray); font-size: 0.9rem; }
.footer-contact-item i { color: var(--yellow); margin-top: 2px; flex-shrink: 0; }
.footer-contact-item a { color: var(--gray); }
.footer-contact-item a:hover { color: var(--yellow); }
.footer-payment { margin-top: 16px; }
.footer-payment p { color: var(--gray); font-size: 0.8rem; margin-bottom: 8px; }
.payment-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.payment-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--gray);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--gray); font-size: 0.85rem; }
.footer-bottom .license { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 0.8rem; font-weight: 600; }
.footer-bottom .license i { font-size: 0.9rem; }

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,215,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 12px; }
.page-header h1 span { color: var(--yellow); }
.page-header p { color: var(--gray); font-size: 1.1rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.85rem; color: var(--gray); }
.breadcrumb a { color: var(--yellow); }
.breadcrumb i { font-size: 0.7rem; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-stack { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.featured { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .cta-section { padding: 48px 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-img-badge { right: 0; bottom: -20px; }
}
