/* =========================================================
   Cablenet Electrical - Design System
   Colours: Forest Green #33992B / White #FCFEFD

   Font: Inter, self-hosted from assets/fonts. No external font
   service (for example Google Fonts) is called at any time. Hosting
   the font files on the same server removes the extra connection a
   browser would otherwise open to load fonts, which speeds up the
   page.
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #33992B;
  --green-dark: #257820;
  --green-light: #E8F5E6;
  --white: #FCFEFD;
  --ink: #142012;
  --ink-soft: #4B564A;
  --border: #DCE7D9;
  --banner: #257820;
  --red: #C62828;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 16px rgba(20, 32, 18, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 32, 18, 0.14);
  --max: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.text-center { text-align: center; }
ul { padding-left: 1.2em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--green);
  color: #fff; padding: 10px 16px; z-index: 10000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  border: 2px solid transparent; cursor: pointer; transition: all .15s ease;
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green-dark); }
.btn-outline:hover { background: var(--green-light); text-decoration: none; }
.btn-filter.is-active { background: var(--green); color: #fff; }
.btn-white { background: var(--white); color: var(--green-dark); }
.btn-white:hover { background: var(--green-light); text-decoration: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* Emergency banner */
.emergency-banner {
  background: var(--banner); color: var(--white); font-weight: 700; text-align: center;
  padding: 10px 16px; font-size: 0.92rem;
}
.emergency-banner a { color: var(--white); text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 999; background: var(--white); box-shadow: var(--shadow); }
.header-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand img, .site-logo { height: 50px; width: auto; max-width: 240px; display: block; }
.header-contact { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green-dark); font-size: 1.05rem;
}
.header-phone svg { flex-shrink: 0; }
.header-quote-btn { display: none; }
@media (min-width: 900px) { .header-quote-btn { display: inline-flex; } }

.main-nav { border-top: 1px solid var(--border); }
.nav-list {
  list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap;
}
.nav-list a {
  display: block; padding: 12px 16px; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  border-radius: 6px;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--green-dark); background: var(--green-light); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--border); border-radius: 8px;
  padding: 8px 10px; cursor: pointer;
}
@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; }
  .header-contact .header-phone-text { display: none; }
}

/* Mega menu: top-level items with sub-items (currently Services).
   Desktop shows a two-line panel per item (name + one-line description).
   Mobile collapses to a plain name-only drop-down, description hidden. */
.nav-item.has-children { position: relative; display: flex; align-items: center; }
.submenu-toggle {
  background: none; border: none; cursor: pointer; padding: 8px 10px 8px 2px;
  color: var(--ink); font-size: 0.8rem; line-height: 1;
}
.mega-panel {
  display: none; position: absolute; top: 100%; left: 0; z-index: 500;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px; min-width: 560px;
}
.nav-item.has-children:hover .mega-panel,
.nav-item.has-children:focus-within .mega-panel,
.nav-item.has-children.is-open .mega-panel {
  display: block;
}
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mega-item {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px;
  color: var(--ink);
}
.mega-item:hover { background: var(--green-light); text-decoration: none; }
.mega-title { display: block; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.mega-desc { display: block; margin-top: 3px; font-size: 0.7rem; color: var(--ink-soft); line-height: 1.4; }

@media (max-width: 780px) {
  .nav-item.has-children { flex-direction: column; align-items: stretch; }
  .submenu-toggle { align-self: flex-end; margin-top: -34px; }
  .mega-panel {
    display: none; position: static; box-shadow: none; border: none; border-radius: 0;
    padding: 0 0 0 16px; min-width: 0; background: transparent;
  }
  .nav-item.has-children:hover .mega-panel,
  .nav-item.has-children:focus-within .mega-panel {
    display: none;
  }
  .nav-item.has-children.is-open .mega-panel { display: block; }
  .mega-grid { grid-template-columns: 1fr; gap: 0; }
  .mega-item { padding: 10px 12px; border-radius: 6px; }
  .mega-desc { display: none; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff; padding: 70px 0;
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { color: #fff; }
.hero p.lead { color: #EAF6E8; font-size: 1.1rem; max-width: 46ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.badge {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-size: 0.82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }

/* Trust strip */
.trust-strip { background: var(--green-light); padding: 22px 0; border-bottom: 1px solid var(--border); }
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: center;
}
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item .num { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); display: block; }
.trust-item .label { font-size: 0.82rem; color: var(--ink-soft); }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; color: var(--green-dark);
}
.card h3 { margin-bottom: 4px; }
.card a.card-link { font-weight: 700; }
.card .icon p { display: none; }

/* Section header */
.section-head { max-width: 62ch; margin: 0 auto 36px; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--green-dark); font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; font-size: 0.78rem; margin-bottom: 10px;
}

/* Quote form */
.quote-form-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: 1rem; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--green);
}
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }
.honeypot { position: absolute; left: -9999px; }

/* Sliding brand logo strip - pure CSS animation, no JS library, so it
   stays smooth on both desktop and mobile with a low performance cost. */
.brand-strip { padding-bottom: 48px; }
.brand-marquee {
  overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  animation: brand-scroll 28s linear infinite;
}
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand-logo { height: 56px; width: auto; flex-shrink: 0; opacity: 0.85; }
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; }
  .brand-marquee { overflow-x: auto; }
}

/* Testimonials / reviews */
.stars { color: var(--amber); font-size: 1.05rem; letter-spacing: 2px; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.review-card .who { font-weight: 800; margin-top: 10px; }
.review-card .who span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.rating-summary { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 30px; }
.rating-summary .score { font-size: 2.2rem; font-weight: 800; color: var(--green-dark); }

/* CTA band */
.cta-band { background: var(--green); color: #fff; padding: 48px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #EAF6E8; }

/* Credentials strip */
.credentials-table { width: 100%; border-collapse: collapse; }
.credentials-table th, .credentials-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.95rem;
}
.credentials-table th { color: var(--ink-soft); font-weight: 700; width: 42%; }

/* People */
.person { display: flex; gap: 16px; align-items: flex-start; }
.person .avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
}

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (min-width: 720px) { .photo-grid { grid-template-columns: repeat(4,1fr); } }
.photo-grid img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; }

/* Footer */
.site-footer { background: #10190F; color: #D6E6D3; padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: .04em; }
.site-footer p { color: #D6E6D3; }
.site-footer a { color: #D6E6D3; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; color: #D6E6D3; }
.footer-bottom {
  border-top: 1px solid #22301F; margin-top: 40px; padding-top: 20px; font-size: 0.82rem;
  color: #C7D9C3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
}
.footer-credit { width: 100%; font-size: 0.78rem; color: #C7D9C3; margin-top: 10px; }
.footer-credit a { color: #D6E6D3; text-decoration: underline; font-weight: 700; }
.legal-line { font-size: 0.78rem; color: #C7D9C3; margin-top: 10px; line-height: 1.6; }

/* Social media icons - shown only for platforms with a saved URL
   (Appearance > Customise > Social Media Links). */
.social-icons { display: flex; gap: 10px; margin-top: 16px; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1);
  color: #fff; font-weight: 800; font-size: 0.72rem; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.25);
}
.social-icon:hover { background: var(--green); border-color: var(--green); text-decoration: none; }

/* Sticky mobile call bar */
.sticky-mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 998; display: flex;
  background: #fff; box-shadow: 0 -6px 20px rgba(0,0,0,.12);
}
.sticky-mobile-bar a {
  flex: 1; text-align: center; padding: 14px 8px; font-weight: 800; font-size: 0.92rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sticky-mobile-bar .call { background: var(--green); color: #fff; }
.sticky-mobile-bar .whatsapp { background: #1EBE5D; color: #fff; }
.sticky-mobile-bar .quote { background: var(--ink); color: #fff; }
@media (min-width: 900px) { .sticky-mobile-bar { display: none; } }
body { padding-bottom: 0; }
@media (max-width: 899px) { body { padding-bottom: 58px; } }

/* WhatsApp floating button (desktop) */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: #1EBE5D; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  z-index: 997;
}
@media (max-width: 899px) { .whatsapp-float { display: none; } }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }

/* Page hero (interior pages) */
.page-hero { background: var(--green-light); padding: 44px 0; border-bottom: 1px solid var(--border); }
.page-hero h1 { color: var(--ink); margin-bottom: 6px; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.3fr 0.9fr; align-items: start; } }
.sidebar-card { background: var(--green-light); border-radius: var(--radius-lg); padding: 22px; }
.list-check { list-style: none; padding: 0; }
.list-check li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.list-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-dark); font-weight: 800;
}
.placeholder-note {
  background: #FFF6E0; border: 1px solid #F0D98C; border-radius: var(--radius); padding: 14px 16px;
  font-size: 0.9rem; color: #6B5400;
}
