/*
Theme Name:  BlueFuse Electrical
Theme URI:   https://bluefuseelectrical.co.uk
Author:      BlueFuse Electrical
Description: Custom WordPress theme for BlueFuse Electrical — trusted electricians across the UK.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: bluefuse
*/

/* ── Reset & Base ─────────────────────────────────── */
:root {
  --blue:  #1f4fe0;
  --navy:  #0e1a2b;
  --light: #f5f7fa;
  --grey:  #6b7685;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--navy);
  line-height: 1.6;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  background: var(--blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  transition: background .2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: #173db0; color: #fff; }

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ── Top Bar ──────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: #cdd6e3;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  padding: 8px 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a:hover { color: #fff; }

/* ── Header / Nav ─────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  z-index: 50;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo { font-size: 1.7rem; font-weight: 800; letter-spacing: -.5px; }
.logo .b { color: var(--blue); }
.logo .f { color: var(--navy); }
.logo small {
  display: block;
  font-size: .6rem;
  letter-spacing: 4px;
  color: var(--grey);
  font-weight: 600;
  margin-top: -4px;
}

/* WordPress nav menu */
#primary-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  font-weight: 600;
  font-size: .95rem;
  margin: 0;
  padding: 0;
}
#primary-menu a:hover { color: var(--blue); }
#primary-menu .current-menu-item > a { color: var(--blue); }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, #16263f 60%, var(--blue) 140%);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.hero h1 { font-size: 3rem; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: #5e87ff; }
.hero p { font-size: 1.15rem; color: #c5d0e0; margin-bottom: 30px; max-width: 520px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.badges { display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: #c5d0e0; }
.badge svg { width: 22px; height: 22px; fill: #5e87ff; }

/* Quote card inside hero */
.hero-card {
  background: #fff;
  color: var(--navy);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.hero-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.hero-card p { color: var(--grey); font-size: .9rem; margin-bottom: 20px; }
.hero-card input,
.hero-card select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #d6dbe3;
  border-radius: 6px;
  font-size: .95rem;
}
.hero-card .btn { width: 100%; text-align: center; }

/* WPForms inside hero card */
.hero-card .wpforms-container { margin: 0; }
.hero-card .wpforms-field input,
.hero-card .wpforms-field select { margin-bottom: 0; }
.hero-card .wpforms-submit-container { margin-top: 4px; }
.hero-card .wpforms-submit {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
}
.hero-card .wpforms-submit:hover { background: #173db0; }

/* ── Sections (shared) ────────────────────────────── */
section { padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-head span {
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .85rem;
}
.section-head h2 { font-size: 2.3rem; margin: 10px 0; }
.section-head p { color: var(--grey); }

/* ── Service Cards ────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 12px;
  padding: 32px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(31,79,224,.12);
  border-color: transparent;
}
.icon {
  width: 56px;
  height: 56px;
  background: #eaf0ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon svg { width: 30px; height: 30px; fill: var(--blue); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--grey); font-size: .95rem; }

/* ── Why Us ───────────────────────────────────────── */
.why { background: var(--light); }
.why .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why h2 { font-size: 2.3rem; margin-bottom: 20px; }
.why ul { list-style: none; margin-top: 24px; }
.why li { display: flex; gap: 14px; margin-bottom: 20px; }
.why li .tick {
  min-width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why li .tick svg { width: 16px; height: 16px; fill: #fff; }
.why li strong { display: block; }
.why li span { color: var(--grey); font-size: .93rem; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}
.stat:nth-child(even) { background: var(--blue); }
.stat h3 { font-size: 2.4rem; }
.stat p { font-size: .9rem; color: #c5d0e0; }

/* ── CTA Banner ───────────────────────────────────── */
.cta {
  background: linear-gradient(120deg, var(--blue), #173db0);
  color: #fff;
  text-align: center;
}
.cta h2 { font-size: 2.4rem; margin-bottom: 14px; }
.cta p { font-size: 1.1rem; margin-bottom: 28px; color: #dbe4ff; }
.cta .btn { background: #fff; color: var(--blue); font-size: 1.05rem; padding: 16px 34px; }
.cta .btn:hover { background: var(--navy); color: #fff; }

/* ── Testimonials ─────────────────────────────────── */
.quote {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 12px;
  padding: 30px;
}
.stars { color: #ffb400; margin-bottom: 12px; }
.quote p { font-style: italic; color: #3a4658; margin-bottom: 16px; }
.quote strong { color: var(--navy); }
.quote small { color: var(--grey); display: block; }

/* ── Footer ───────────────────────────────────────── */
footer {
  background: var(--navy);
  color: #aeb9c8;
  padding: 60px 0 24px;
  font-size: .92rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer h4 { color: #fff; margin-bottom: 18px; font-size: 1.05rem; }
footer ul { list-style: none; padding: 0; }
footer li { margin-bottom: 10px; }
footer a:hover { color: #fff; }

.foot-logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.foot-logo .b { color: #5e87ff; }

/* WordPress footer nav */
#footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
#footer-menu li { margin-bottom: 10px; }
#footer-menu a:hover { color: #fff; }

.foot-bottom {
  border-top: 1px solid #233349;
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
  color: #7e8b9d;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 880px) {
  .hero .container,
  .why .container { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  #primary-menu { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .badges { flex-direction: column; gap: 12px; }
}

/* Remove large gap between card header and form */
.hero-card .wpforms-container {
  margin-top: -10px;
}

/* Tighten spacing between each field */
.hero-card .wpforms-field {
  padding-top: 8px !important;
  padding-bottom: 4px !important;
}

/* Reduce label margin */
.hero-card .wpforms-field label {
  margin-bottom: 4px !important;
  display: block;
}

/* Make inputs and dropdowns a bit shorter */
.hero-card .wpforms-field input,
.hero-card .wpforms-field select {
  padding: 9px 12px !important;
  height: auto !important;
}

/* Tighten submit button gap */
.hero-card .wpforms-submit-container {
  margin-top: 8px !important;
  padding-top: 0 !important;
}
