/* ===========================
   ELECTRICIAN GLASGOW TEAM
   Global Stylesheet
   =========================== */

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

:root {
  --yellow: #F5C400;
  --yellow-dark: #d4a900;
  --yellow-light: #fffbe6;
  --dark: #111827;
  --mid: #374151;
  --muted: #6B7280;
  --border: #E5E7EB;
  --bg: #F9FAFB;
  --white: #ffffff;
  --green: #15803d;
  --green-light: #dcfce7;
  --red: #dc2626;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.65;
  font-size: 16px;
}

/* ---- HEADER ---- */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--dark);
  border-bottom: 4px solid var(--yellow);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--yellow);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
}
.logo span { color: var(--yellow); }
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
nav a:hover, nav a.active { color: var(--yellow); background: rgba(245,196,0,0.08); }
.header-phone {
  color: var(--yellow);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  margin-left: 12px;
}
.hamburger { display: none; background: none; border: none; color: white; font-size: 1.6rem; cursor: pointer; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-yellow { background: var(--yellow); color: var(--dark); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-outline-yellow { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }
.btn-outline-yellow:hover { background: rgba(245,196,0,0.1); }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: #1f2937; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ---- CONTAINER ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; }

/* ---- SECTION LABELS ---- */
.section-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.18;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 38px;
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--yellow);
  padding: 10px 20px;
}
.trust-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}
.trust-bar-inner span { display: flex; align-items: center; gap: 6px; }

/* ---- HERO ---- */
.hero {
  background: var(--dark);
  color: white;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  max-width: 1140px;
  margin: 0 auto;
}
.hero-content {
  padding: 60px 40px 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,196,0,0.15);
  border: 1px solid rgba(245,196,0,0.4);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 3px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-desc { font-size: 1.1rem; color: #9ca3af; margin-bottom: 30px; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; }
.htrust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; color: #d1d5db;
}
.htrust-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(245,196,0,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow); font-size: 0.7rem; font-weight: 900; flex-shrink: 0;
}

/* Hero image side */
.hero-img-side {
  position: relative;
  overflow: hidden;
  background: #1a2030;
}
.hero-img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.75;
}
.hero-img-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, var(--dark) 0%, transparent 30%);
}

/* Unsplash fallback — SVG electrician illustration */
.hero-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c2436;
}

/* ---- STATS STRIP ---- */
.stats-strip {
  background: white;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 26px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.stat-num span { color: var(--yellow-dark); }
.stat-label { font-size: 0.85rem; color: var(--muted); }

/* ---- CARDS ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 22px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.08); transform: translateY(-3px); }
.card-icon {
  width: 50px; height: 50px;
  background: var(--yellow-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.card p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.card-link { font-size: 0.88rem; font-weight: 700; color: var(--yellow-dark); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---- WHY US ---- */
.why-bg { background: var(--dark); color: white; }
.why-bg .section-title { color: white; }
.why-bg .section-sub { color: #9ca3af; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 24px 20px;
}
.why-num {
  font-size: 2.5rem; font-weight: 900;
  color: rgba(245,196,0,0.25);
  line-height: 1; margin-bottom: 8px;
}
.why-item h3 { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 6px; }
.why-item p { font-size: 0.9rem; color: #9ca3af; line-height: 1.6; }

/* ---- AREAS ---- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
}
.area-pill {
  background: white;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 9px 14px;
  font-size: 0.88rem;
  color: var(--mid);
  display: flex; align-items: center; gap: 7px;
}
.area-pill::before { content: '⚡'; font-size: 0.78rem; }

/* ---- REVIEWS ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 20px;
}
.review-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 10px; }
.review-text { font-size: 0.93rem; color: var(--mid); margin-bottom: 14px; line-height: 1.65; font-style: italic; }
.review-author { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
.review-loc { font-size: 0.8rem; color: var(--muted); }

/* ---- FAQ ---- */
.faq-bg { background: white; }
.faqs { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 0; font-size: 0.97rem; font-weight: 600;
  color: var(--dark); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q:hover { color: var(--yellow-dark); }
.faq-toggle {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow-light);
  color: var(--yellow-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0; font-weight: 900;
  transition: transform 0.2s;
}
.faq-a { font-size: 0.93rem; color: var(--muted); padding: 0 0 18px; display: none; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ---- CTA BAND ---- */
.cta-band { background: var(--yellow); padding: 56px 20px; text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: var(--dark); margin-bottom: 12px; }
.cta-band p { font-size: 1.05rem; color: rgba(0,0,0,0.65); margin-bottom: 28px; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--dark);
  color: white;
  padding: 52px 20px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 900; line-height: 1.15; margin-bottom: 14px; }
.page-hero h1 em { color: var(--yellow); font-style: normal; }
.page-hero p { font-size: 1.05rem; color: #9ca3af; max-width: 580px; margin: 0 auto 24px; }
.breadcrumb { font-size: 0.82rem; color: #6b7280; margin-bottom: 14px; }
.breadcrumb a { color: #9ca3af; text-decoration: none; }
.breadcrumb a:hover { color: var(--yellow); }

/* ---- CONTENT BLOCKS ---- */
.content-section { background: white; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }
.content-img { border-radius: 10px; overflow: hidden; background: #e5e7eb; height: 320px; display: flex; align-items: center; justify-content: center; }
.content-img img { width: 100%; height: 100%; object-fit: cover; }
.content-body h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; color: var(--dark); line-height: 1.2; }
.content-body p { font-size: 0.95rem; color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.content-body ul { padding-left: 20px; margin-bottom: 18px; }
.content-body ul li { font-size: 0.95rem; color: var(--mid); margin-bottom: 7px; line-height: 1.6; }

/* ---- CHECKLIST ---- */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.93rem; color: var(--mid); margin-bottom: 10px; line-height: 1.55;
}
.check-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 900; flex-shrink: 0; margin-top: 1px;
}

/* ---- PRICE TABLE ---- */
.price-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin-top: 8px; }
.price-table th { background: var(--dark); color: white; padding: 12px 16px; text-align: left; font-weight: 600; }
.price-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--mid); }
.price-table tr:nth-child(even) td { background: #f9fafb; }
.price-table tr:last-child td { border-bottom: none; }

/* ---- CONTACT FORM ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 32px 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 5px; font-size: 0.93rem; font-family: inherit;
  color: var(--dark); background: white;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--yellow-dark); }
.form-group textarea { min-height: 110px; resize: vertical; }
.contact-info h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 18px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-detail-icon {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--yellow-light); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-detail strong { font-size: 0.88rem; color: var(--muted); display: block; margin-bottom: 3px; }
.contact-detail a, .contact-detail p { font-size: 1rem; font-weight: 700; color: var(--dark); text-decoration: none; }
.contact-detail a:hover { color: var(--yellow-dark); }

/* ---- FOOTER ---- */
footer {
  background: #0d1117;
  color: #6b7280;
  padding: 48px 20px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto 36px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.87rem; line-height: 1.7; color: #6b7280; max-width: 260px; }
.footer-col h4 { font-size: 0.88rem; font-weight: 700; color: #e5e7eb; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.87rem; color: #6b7280; text-decoration: none; }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: 1140px; margin: 0 auto;
  border-top: 1px solid #1f2937;
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.82rem;
}

/* ---- BADGE CHIPS ---- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mid);
  display: flex; align-items: center; gap: 6px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---- ALERT BOX ---- */
.alert-box {
  border-radius: 6px;
  padding: 18px 22px;
  font-size: 0.93rem;
  margin: 24px 0;
  line-height: 1.65;
}
.alert-yellow { background: var(--yellow-light); border-left: 4px solid var(--yellow-dark); color: #7a5f00; }
.alert-green { background: var(--green-light); border-left: 4px solid var(--green); color: #145724; }
.alert-box strong { display: block; font-size: 0.97rem; margin-bottom: 5px; }

/* ---- MOBILE NAV ---- */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--dark);
  padding: 12px 20px 20px;
  border-top: 1px solid #1f2937;
}
.mobile-nav a { color: #d1d5db; text-decoration: none; padding: 10px 0; border-bottom: 1px solid #1f2937; font-size: 0.95rem; }
.mobile-nav a:last-child { border-bottom: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img-side { height: 240px; }
  .hero-img-overlay { background: linear-gradient(180deg, transparent 0%, var(--dark) 80%); }
  .hero-content { padding: 40px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  nav { display: none; }
  .header-phone { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid, .contact-wrap { grid-template-columns: 1fr; }
  .content-grid.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
