/* =============================================
   BREEZER ELECTRIC - Main Stylesheet
   breezerelectric.co.ke
   ============================================= */

:root {
  --primary: #f7a800;
  --primary-dark: #d48f00;
  --secondary: #1a2535;
  --dark: #111827;
  --dark2: #1e293b;
  --text: #374151;
  --text-light: #6b7280;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --transition: 0.25s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); line-height: 1.7; font-size: 16px; background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===================== TOP BAR ===================== */
.topbar {
  background: var(--secondary);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.topbar a { color: var(--primary); }
.topbar a:hover { text-decoration: underline; }

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-bolt { font-size: 28px; }
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.5px;
  line-height: 1;
}
.logo-sub { color: var(--primary); display: block; font-size: 13px; font-weight: 600; letter-spacing: 2px; }

.footer-logo-img {
  height: 32px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* NAV */
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(247,168,0,0.08); }
.nav-toggle { display: none; font-size: 24px; color: var(--dark); padding: 4px 8px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--dark); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(247,168,0,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: #f1f5f9; }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--dark); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111827;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(17,24,39,0.97) 0%, rgba(30,41,59,0.9) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(247,168,0,0.03) 40px, rgba(247,168,0,0.03) 80px);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 64px 80px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(247,168,0,0.15);
  color: #f7a800;
  border: 1px solid rgba(247,168,0,0.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 7vw, 86px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero-title .highlight { color: #f7a800; }
.hero-desc {
  font-size: 18px;
  color: #94a3b8;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; justify-content: center; }
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #f7a800;
  line-height: 1;
}
.stat-label { font-size: 14px; color: #94a3b8; margin-top: 4px; }

/* ===================== SECTIONS ===================== */
.section { padding: 80px 0; }
.bg-light { background: var(--light-bg); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.1;
}
.section-header p { color: var(--text-light); font-size: 17px; }

/* ===================== SERVICES GRID (homepage) ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-icon { font-size: 40px; margin-bottom: 16px; }
.service-card h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-card p { color: var(--text-light); margin-bottom: 16px; }
.card-link { color: var(--primary); font-weight: 600; font-size: 14px; }
.card-link:hover { text-decoration: underline; }

/* ===================== WHY US ===================== */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-image-placeholder {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  border-radius: 16px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}
.big-icon { font-size: 80px; margin-bottom: 16px; }
.why-image-placeholder p { font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.why-content h2 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.why-content p { color: var(--text-light); margin-bottom: 12px; }
.why-list { margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.why-list li { color: var(--text); font-size: 15px; }

/* ===================== CTA SECTION ===================== */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-inner h2 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-inner p { color: #94a3b8; font-size: 17px; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===================== FOOTER ===================== */
.footer { background: var(--dark); color: #94a3b8; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 12px; display: flex; align-items: center; }
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 14px; color: #94a3b8; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }
.contact-list li { display: flex; gap: 8px; font-size: 14px; align-items: flex-start; }
.contact-list a { color: #94a3b8; }
.contact-list a:hover { color: var(--primary); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}
.social-links a:hover { transform: scale(1.15); opacity: 1; }

/* Facebook — blue */
.social-fb { background: #1877f2; color: #fff; }
.social-fb:hover { background: #1464d8; }

/* Instagram — gradient */
.social-ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }

/* TikTok — black */
.social-tt { background: #010101; color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.social-tt:hover { background: #1a1a1a;}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 13px; }
.footer-bottom a { color: var(--primary); }

/* ===================== PAGE HERO ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  padding: 64px 0 48px;
  color: var(--white);
}
.page-hero h1 { font-family: var(--font-heading); font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: #94a3b8; font-size: 17px; margin-bottom: 16px; }
.breadcrumb { font-size: 13px; color: #64748b; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===================== ABOUT PAGE ===================== */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text h2 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.about-card-group { display: flex; flex-direction: column; gap: 20px; }
.about-card { background: var(--light-bg); border-radius: 12px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.about-icon { font-size: 32px; flex-shrink: 0; }
.about-card h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.about-card p { color: var(--text-light); font-size: 14px; }

/* STATS SECTION */
.stats-section { background: var(--primary); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-box { display: flex; flex-direction: column; align-items: center; }
.stat-box .stat-num { font-family: var(--font-heading); font-size: 48px; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-box .stat-label { font-size: 14px; color: rgba(0,0,0,0.6); margin-top: 6px; font-weight: 500; }

/* CERT GRID */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card { text-align: center; padding: 36px 24px; border: 1px solid var(--border); border-radius: 12px; transition: all var(--transition); }
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cert-icon { font-size: 48px; margin-bottom: 16px; }
.cert-card h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.cert-card p { color: var(--text-light); font-size: 15px; }

/* ===================== SERVICES DETAIL (services.html) ===================== */
.service-detail {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: center;
}
.service-detail.reverse {
  grid-template-columns: 1fr 380px;
}
.service-detail.reverse .service-detail-icon {
  order: 2;
}

/* THE FIX — image box */
.service-detail-icon {
  width: 380px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
}
.service-detail-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 16px;
  display: block !important;
}

.service-detail-content h2 { font-family: var(--font-heading); font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.service-detail-content p { color: var(--text-light); margin-bottom: 20px; }
.service-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.service-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.service-features li::before { content: "✓"; color: var(--primary); font-weight: 700; }
.section-divider { height: 1px; background: var(--border); }

/* ===================== PROJECTS ===================== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid var(--border);
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); background: var(--primary); color: var(--dark); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition); }
.project-card:hover { transform: translateY(-4px); }
.project-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-img-1 { background: linear-gradient(135deg, #1a2535 0%, #2d3d52 100%); }
.project-img-2 { background: linear-gradient(135deg, #1a3525 0%, #2d5237 100%); }
.project-img-3 { background: linear-gradient(135deg, #35251a 0%, #52372d 100%); }
.project-img-4 { background: linear-gradient(135deg, #1a1a35 0%, #2d2d52 100%); }
.project-img-5 { background: linear-gradient(135deg, #25351a 0%, #37522d 100%); }
.project-img-6 { background: linear-gradient(135deg, #35351a 0%, #52522d 100%); }
.project-img-7 { background: linear-gradient(135deg, #1a3535 0%, #2d5252 100%); }
.project-img-8 { background: linear-gradient(135deg, #351a35 0%, #522d52 100%); }
.project-img-9 { background: linear-gradient(135deg, #1a2535 0%, #35522d 100%); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay span { color: var(--primary); font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.project-info { padding: 20px; background: var(--white); }
.project-info h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.project-info p { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }
.project-tag { display: inline-block; background: rgba(247,168,0,0.12); color: var(--primary-dark); padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; }

/* ===================== CONTACT ===================== */
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact-info h2 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 36px); font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.contact-info > p { color: var(--text-light); margin-bottom: 28px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; padding: 16px; background: var(--light-bg); border-radius: 10px; }
.info-icon { font-size: 24px; flex-shrink: 0; }
.info-card h4 { font-weight: 600; color: var(--dark); margin-bottom: 4px; font-size: 14px; }
.info-card a, .info-card p { color: var(--text-light); font-size: 14px; }
.info-card a:hover { color: var(--primary); }
.whatsapp-btn-wrap { margin-top: 24px; }
.contact-form-wrap h2 { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--dark); margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; }
.form-note { font-size: 13px; color: var(--text-light); text-align: center; }
.map-section iframe { display: block; width: 100%; }

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  animation: pulse-wa 2s infinite;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.7);
}
@keyframes pulse-wa {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 300px 1fr; gap: 36px; }
  .service-detail.reverse { grid-template-columns: 1fr 300px; }
  .service-detail-icon { width: 300px; height: 240px; }
}

@media (max-width: 768px) {
  .topbar-inner { flex-direction: column; gap: 4px; font-size: 12px; }
  .header-inner { flex-wrap: wrap; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 16px; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-inner .btn-primary { display: none; }
  .logo-img { height: 28px; }
  .logo-text { font-size: 16px; }
  .logo-sub { font-size: 10px; }
  .why-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .service-detail,
  .service-detail.reverse { grid-template-columns: 1fr; }
  .service-detail.reverse .service-detail-icon { order: 0; }
  .service-detail-icon {
    width: 100% !important;
    height: 220px !important;
    font-size: 0;
  }
  .service-detail-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  .cert-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 80px 24px 60px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: center; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 24px; }
}