/* ==========================================================
   Electrician Experts Guildford — styles.css
   Mobile-first, no framework, fast-loading.
   Brand: Black + Yellow used as accent only.
   ========================================================== */

:root {
  --black:       #0d0d0d;
  --black-2:     #1a1a1a;
  --black-3:     #252525;
  --yellow:      #f5c800;
  --yellow-dark: #d9b000;
  --white:       #ffffff;
  --off-white:   #fafafa;
  --grey-100:    #f4f4f4;
  --grey-200:    #e8e8e8;
  --grey-400:    #9a9a9a;
  --grey-600:    #555555;
  --grey-700:    #333333;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.07);
  --shadow-md:   0 6px 24px rgba(0,0,0,.11);
  --radius:      10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; color: var(--black); }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 2rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.2rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: var(--black);
  padding: .6rem 1rem; z-index: 1000; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 2px solid rgba(245,200,0,.3);
}
.header a { color: var(--white); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1rem; color: var(--white);
}
.logo-bolt {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--yellow); color: var(--black);
  border-radius: 7px; font-size: 1.1rem; flex-shrink: 0;
}
.logo-text em { color: var(--yellow); font-style: normal; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: transparent; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2.5px; background: var(--white); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute; top: 62px; left: 0; right: 0;
  background: var(--black-2);
  flex-direction: column;
  padding: .5rem 1.2rem 1rem;
  border-bottom: 1px solid #2e2e2e;
}
.nav.open { display: flex; }
.nav a {
  padding: .85rem 0;
  font-weight: 600; font-size: .95rem;
  border-bottom: 1px solid #2a2a2a;
  color: #d0d0d0;
}
.nav a.active { color: var(--yellow); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex !important; flex-direction: row;
    position: static; padding: 0; background: transparent; border: 0;
    gap: .15rem;
  }
  .nav a {
    padding: .5rem .85rem; border: 0; border-radius: 6px; color: #c8c8c8;
  }
  .nav a:hover { background: var(--black-3); color: var(--white); }
  .nav a.active { background: var(--yellow); color: var(--black); }
}

/* ---------- Click-to-call bar ---------- */
.call-bar {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem;
  background: var(--black-2);
  color: var(--white) !important;
  padding: .85rem 1rem;
  text-align: center;
  font-weight: 700;
  border-bottom: 1px solid #2e2e2e;
  transition: background .15s;
}
.call-bar:hover { background: var(--black-3); }
.call-bar-icon { font-size: 1.4rem; flex-shrink: 0; }
.call-bar-text { display: flex; flex-direction: column; line-height: 1.15; }
.call-bar-label { font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: #888; }
.call-bar-number {
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  font-weight: 900; letter-spacing: .02em;
  color: var(--yellow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .9rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700; font-size: .95rem;
  text-align: center; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s, background .15s, color .15s, box-shadow .15s;
  min-height: 48px; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--yellow); color: var(--black) !important; border-color: var(--yellow);
  box-shadow: 0 2px 12px rgba(245,200,0,.3);
}
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn-outline {
  background: transparent; color: var(--black) !important; border-color: var(--grey-200);
}
.btn-outline:hover { border-color: var(--black); background: var(--black); color: var(--white) !important; }
.btn-ghost {
  background: rgba(255,255,255,.08); color: var(--white) !important; border-color: rgba(255,255,255,.2);
}
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--black) 0%, #1c1c1c 100%);
  color: var(--white);
  padding: 2.5rem 0 3rem;
}
.hero h1 { color: var(--white); max-width: 680px; }
.lead { font-size: 1.05rem; line-height: 1.65; }
.hero .lead { color: #bbb; max-width: 600px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.3rem 0 1.5rem; }
.hero-points {
  list-style: none; padding: 0; margin: .5rem 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem;
  color: #aaa; font-size: .9rem;
}

.trust-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.badge {
  display: inline-block;
  background: rgba(255,255,255,.07);
  color: #ccc;
  border: 1px solid rgba(255,255,255,.15);
  padding: .3rem .65rem;
  border-radius: 999px;
  font-weight: 600; font-size: .78rem;
}
.badge.stars { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

@media (min-width: 900px) {
  .hero { padding: 4rem 0 4.5rem; }
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--black) 0%, #1c1c1c 100%);
  color: var(--white);
  padding: 2.4rem 0 2.6rem;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #bbb; max-width: 720px; }
.page-hero .hero-ctas { margin-bottom: 0; }

/* ---------- Sections ---------- */
.services-section { padding: 3.5rem 0; background: var(--off-white); }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--grey-400); margin-bottom: 2rem; }

.services-grid {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 580px)  { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px)  { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245,200,0,.5);
}
.service-card h3 { margin: .45rem 0 .3rem; color: var(--black); }
.service-card p { margin: 0; color: var(--grey-600); font-size: .93rem; }
.svc-icon {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  background: rgba(245,200,0,.15);
  border-radius: 9px; font-size: 1.3rem;
}
.service-card.emergency {
  background: var(--black-2); border-color: var(--black-2);
}
.service-card.emergency h3 { color: var(--yellow); }
.service-card.emergency p { color: #aaa; }
.service-card.emergency .svc-icon { background: rgba(245,200,0,.12); }

.center { text-align: center; margin-top: 2.2rem; }

/* ---------- Trust band ---------- */
.trust-section { background: var(--grey-100); padding: 2.8rem 0; }
.trust-grid {
  display: grid; gap: 1.4rem; grid-template-columns: 1fr; text-align: center;
}
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item p { margin: .5rem 0 0; color: var(--grey-600); font-size: .95rem; }
.trust-item strong { color: var(--black); }

.trust-logo.niceic {
  display: inline-grid; place-items: center;
  background: var(--black); color: var(--yellow);
  font-weight: 900; letter-spacing: .1em;
  width: 120px; height: 72px;
  margin: 0 auto;
  border-radius: 8px;
  border: 2px solid rgba(245,200,0,.4);
  font-size: 1rem; line-height: 1;
}
.trust-logo.niceic small { font-size: .62rem; letter-spacing: .12em; color: #aaa; margin-top: 4px; display: inline-block; }
.trust-logo.niceic.large { width: 160px; height: 96px; font-size: 1.2rem; }

.trust-stars { color: var(--yellow); font-size: 1.5rem; letter-spacing: .1em; }
.trust-stars.big { font-size: 2rem; }
.trust-pin { font-size: 2rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--black-2); padding: 2.6rem 0; }
.cta-band-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.cta-band h2 { margin: 0; color: var(--white); }

/* ---------- About ---------- */
.about-section { padding: 3.5rem 0; }
.about-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1.5fr .9fr; align-items: start; }
}
.about-text h2 { color: var(--black); }
.about-text p { color: var(--grey-600); }
.about-card {
  background: var(--grey-100);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  text-align: center;
  border-top: 4px solid var(--yellow);
}
.rating-text { margin: .5rem 0 1.3rem; color: var(--grey-600); }
.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative; padding-left: 1.6rem; margin-bottom: .55rem;
  color: var(--grey-600); font-size: .95rem;
}
.check-list li::before {
  content: "✔"; position: absolute; left: 0; top: 0;
  color: var(--yellow); font-weight: 900;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem;
}
@media (min-width: 760px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem;
  margin: 0;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--yellow);
}
.review p { font-style: italic; color: var(--grey-600); font-size: .95rem; }
.review cite { font-style: normal; font-weight: 700; color: var(--grey-400); font-size: .85rem; }

/* ---------- Contact ---------- */
.contact-section { padding: 3.5rem 0; }
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.contact-info { padding: .2rem 0; }
.contact-info h2 { color: var(--black); }

.big-phone {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--black);
  color: var(--yellow) !important;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 900;
  padding: .9rem 1.2rem;
  border-radius: 12px;
  margin: .5rem 0 .25rem;
  box-shadow: var(--shadow-md);
  transition: background .15s;
}
.big-phone:hover { background: var(--black-3); }
.phone-sub { color: var(--grey-400); font-size: .88rem; margin-bottom: 0; }
.info-block { margin-top: 1.5rem; }
.info-block h3 { color: var(--black); margin-bottom: .25rem; font-size: 1rem; }
.info-block p { color: var(--grey-600); margin: 0; }
.info-block a { color: var(--black); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Contact form (contact page only) */
.contact-form-card {
  background: var(--grey-100);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  border-top: 4px solid var(--yellow);
}
.contact-form-card h2 { margin-top: 0; }
.contact-form { display: flex; flex-direction: column; gap: .9rem; }
.contact-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .88rem; color: var(--black); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit; font-size: .95rem;
  padding: .75rem .9rem;
  border: 1.5px solid var(--grey-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,200,0,.2);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: .83rem; color: var(--grey-400); text-align: center; margin: 0; }
.form-note a { color: var(--black); font-weight: 700; }
.form-success {
  background: #f0faf0; border: 1.5px solid #b8ddb8;
  padding: 1.2rem; border-radius: 10px; text-align: center;
}

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #888; padding: 2.8rem 0 1.2rem; }
.footer a { color: var(--yellow); }
.footer a:hover { color: #fff; }
.footer h3 { color: var(--white); margin-bottom: .6rem; }
.footer h4 { color: var(--white); margin-bottom: .6rem; font-size: .95rem; }
.footer p { font-size: .93rem; }
.footer-grid {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: #888; font-size: .93rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid #222;
  text-align: center; font-size: .82rem; color: #555;
}

/* ---------- Photo strip (homepage) ---------- */
.photo-strip {
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .photo-strip { grid-template-columns: 1fr 1fr; min-height: 400px; }
  .photo-strip.reverse .strip-img { order: 2; }
  .photo-strip.reverse .strip-content { order: 1; }
}
.strip-img {
  position: relative; min-height: 280px; overflow: hidden;
  background: var(--black-3);
}
.strip-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .4s ease;
}
.strip-img:hover img { transform: scale(1.03); }

.strip-content {
  background: var(--black-2); color: var(--white);
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
}
.strip-content h2 { color: var(--white); }
.strip-content p { color: #aaa; margin-bottom: .5rem; }
.strip-content .check-list li { color: #aaa; }
.strip-content .check-list li::before { color: var(--yellow); }

/* ---------- About photo ---------- */
.about-photo {
  border-radius: 14px; overflow: hidden;
  min-height: 320px; background: var(--grey-200);
  box-shadow: var(--shadow-md);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  min-height: 320px;
}

/* ---------- Hero with photo background ---------- */
.hero-with-photo {
  background:
    linear-gradient(160deg, rgba(13,13,13,.92) 0%, rgba(20,20,20,.88) 100%),
    var(--hero-img, none) center/cover no-repeat;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
