/* Bonlec Electrical Solutions — palette and type extracted from the original
   Squarespace site (see ../site-archive/STYLE-GUIDE.md). */

@font-face{font-family:"DM Sans";src:url("/assets/fonts/dm-sans-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"DM Sans";src:url("/assets/fonts/dm-sans-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

:root{
  --cream:#f5f1e6;
  --accent:#ad845f;
  --accent-dark:#96714f;
  --ink:#000;
  --ink-soft:#333;
  --white:#fff;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:"DM Sans",system-ui,sans-serif;color:var(--ink);background:var(--white);line-height:1.5;font-size:16px}
img{max-width:100%;display:block}
a{color:var(--accent);text-decoration:none}
h1,h2,h3,h4{line-height:1.12;font-weight:700;letter-spacing:-.02em}
h1{font-size:clamp(2rem,4vw,3rem);color:#333}
h2{font-size:clamp(1.7rem,3.2vw,2.6rem)}
h3{font-size:1.25rem}
.h-light{font-weight:400}

.wrap{max-width:1030px;margin:0 auto;padding:0 24px}

/* Buttons — original site paired tan/outline buttons with a phone icon */
.btn{display:inline-flex;align-items:center;gap:.55rem;padding:1rem 1.3rem;border-radius:10px;font-weight:400;font-size:1rem;text-transform:uppercase;letter-spacing:.01em;transition:opacity .15s,background .15s,color .15s;cursor:pointer;border:1px solid transparent}
.btn svg{width:1.05em;height:1.05em;flex:none}
.btn-solid{background:var(--accent);color:var(--white)}
.btn-solid:hover{opacity:.88}
.btn-outline{background:var(--white);color:var(--accent);border-color:var(--accent)}
.btn-outline:hover{background:rgba(173,132,95,.08)}
.btn-dark{background:var(--ink);color:var(--white)}
.btn-dark:hover{background:#000}

/* Header */
.site-header{background:var(--white);position:sticky;top:0;z-index:50;box-shadow:0 1px 0 rgba(0,0,0,.07)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:14px;padding-bottom:14px}
.site-header .logo img{height:61px;width:auto}
.site-nav{display:flex;align-items:center;gap:1.9rem;font-weight:400;font-size:1rem}
.site-nav a{color:var(--ink)}
.site-nav a:hover,.site-nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:5px}
.site-nav .btn{text-decoration:none}
.nav-insta{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;background:var(--accent);border-radius:6.4px}
.nav-insta:hover{opacity:.85;text-decoration:none!important}
.nav-insta svg{width:19px;height:19px;color:#fff}
.nav-toggle{display:none;background:none;border:0;font-size:1.7rem;line-height:1;cursor:pointer;color:var(--ink)}

/* Hero */
.hero{background:var(--cream)}
.hero-grid{display:grid;grid-template-columns:54% 46%;align-items:center;min-height:655px}
.hero-copy{padding:64px 40px 64px max(24px,calc((100vw - 1030px)/2))}
.hero-copy p{margin:1.2rem 0 1.8rem;color:var(--ink);font-size:1.2rem;line-height:1.5;max-width:30.5rem}
.hero-media{height:100%;min-height:420px;background-size:cover;background-position:80% 50%}
.hero-ctas{display:flex;gap:.9rem;flex-wrap:wrap}

/* Supplier strip */
.suppliers{background:var(--white);padding:44px 0}
.suppliers{overflow:hidden}
.suppliers .wrap{display:flex;align-items:center;justify-content:center;gap:clamp(1rem,2.6vw,2.5rem);flex-wrap:wrap;max-width:1280px}
.suppliers .sup-track{flex-wrap:nowrap;justify-content:flex-start;max-width:none;width:max-content;animation:ticker 38s linear infinite}
@media (prefers-reduced-motion:reduce){.suppliers .sup-track{animation:none}}
.suppliers img{height:50px;width:auto}
.suppliers img[alt="Clipsal"],.suppliers img[alt="Hager"]{height:40px}
.suppliers img[alt="NECA — National Electrical and Communications Association"]{height:44px}

/* Sections */
.section{padding:72px 0}
.section-cream{background:var(--cream)}
.section-head{text-align:center;max-width:56rem;margin:0 auto 2.6rem}
.section-head p{color:var(--ink-soft);margin-top:.7rem}

/* Service cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
.card{background:var(--white);border-radius:12px;overflow:hidden;box-shadow:0 8px 28px rgba(60,45,25,.09);display:flex;flex-direction:column}
.card img{height:230px;object-fit:cover;width:100%}
.card-body{padding:1.5rem 1.5rem 1.8rem}
.card-body h3{margin-bottom:.8rem}
.card-body ul{list-style:none}
.card-body li{padding-left:1.6rem;position:relative;margin:.55rem 0;color:var(--ink)}
.card-body li::before{content:"•";position:absolute;left:.35em;top:0;color:var(--ink-soft)}

/* About Nick — nick.jpg contains its own cream backdrop, used full-bleed like the original */
.about{background:var(--cream) url("/assets/images/nick.jpg") right center/cover no-repeat;min-height:681px;display:flex;align-items:center}
.about-copy{max-width:34rem;padding:64px 0}
.about-copy p{margin:.9rem 0;color:var(--ink);font-size:1.1rem}
@media (max-width:900px){.about{background-position:78% center;min-height:0}.about-copy{padding:52px 0;max-width:26rem}}

/* USP strip */
.usps{background:#333;color:#fff;padding:38px 0;overflow:hidden}
.usps .ticker{display:flex;gap:3.2rem;width:max-content;animation:ticker 30s linear infinite;white-space:nowrap}
.usps span{display:inline-flex;align-items:center;gap:.6rem;font-size:1.05rem}
.usps svg{width:1.1em;height:1.1em;color:var(--accent)}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.usps .ticker{animation:none;flex-wrap:wrap;justify-content:center;width:auto}}

/* Service area */
.area-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.area-grid iframe{width:100%;height:380px;border:0;border-radius:12px}
.area-grid p{color:var(--ink-soft);margin:1rem 0 1.6rem}

/* Suburbs */
.suburbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:.5rem 1.4rem;list-style:none;margin-top:1.6rem}
.suburbs li{padding-left:1.4rem;position:relative;color:var(--ink-soft)}
.suburbs li::before{content:"";position:absolute;left:0;top:.5em;width:.6em;height:.6em;border-radius:50%;background:var(--accent)}

/* FAQ */
.faq{max-width:46rem;margin:0 auto}
.faq details{background:var(--white);border-radius:10px;box-shadow:0 6px 22px rgba(60,45,25,.08);margin-bottom:1.4rem;overflow:hidden}
.faq summary{cursor:pointer;font-weight:700;font-size:1.3rem;letter-spacing:-.02em;padding:1.35rem 3.4rem 1.35rem 1.6rem;list-style:none;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:1.2rem;top:50%;width:1.6rem;height:1.6rem;transform:translateY(-50%);background:var(--accent);border-radius:50%;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 15.5 4.5 8l1.4-1.4L12 12.7l6.1-6.1L19.5 8z'/%3E%3C/svg%3E") center/60% no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 15.5 4.5 8l1.4-1.4L12 12.7l6.1-6.1L19.5 8z'/%3E%3C/svg%3E") center/60% no-repeat;background-color:var(--accent)}
.faq details[open] summary::after{transform:translateY(-50%) rotate(180deg)}
.faq details p{padding:0 1.6rem 1.4rem;color:var(--ink-soft);font-size:1.05rem;line-height:1.6}
.faq .faq-body{overflow:hidden;transition:height .35s ease}

/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.88);display:none;align-items:center;justify-content:center;z-index:200}
.lightbox.open{display:flex}
.lightbox img{max-width:88vw;max-height:88vh;box-shadow:0 10px 60px rgba(0,0,0,.5)}
.lightbox button{position:absolute;background:none;border:0;color:#fff;font-size:2.6rem;cursor:pointer;padding:.4rem 1rem;line-height:1;opacity:.8}
.lightbox button:hover{opacity:1}
.lb-close{top:18px;right:22px}
.lb-prev{left:14px;top:50%;transform:translateY(-50%)}
.lb-next{right:14px;top:50%;transform:translateY(-50%)}

/* Gallery */
.gallery{columns:4 220px;column-gap:20px}
.gallery img{margin-bottom:20px;width:100%}

/* Contact */
.contact-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:1.25rem;margin:2.2rem 0}
.contact-card{background:var(--white);border:1px solid var(--accent);border-radius:5px;padding:1.6rem 1rem;text-align:center}
.contact-card svg{width:1.5rem;height:1.5rem;color:var(--accent);margin:0 auto .9rem}
.contact-card .label{display:inline;font-size:1rem;text-transform:uppercase;color:var(--ink)}
.contact-card .value{display:inline;font-weight:400;word-break:break-word}
.contact-card .value a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.contact-card .value a:hover{color:var(--accent)}


/* Footer */
.prefooter img{width:100%;max-height:700px;object-fit:cover;object-position:50% 42%}
.site-footer{background:#333;color:#efe6d8;padding:64px 0}
.site-footer .wrap{display:flex;justify-content:space-between;align-items:center;gap:2rem;flex-wrap:wrap;max-width:1240px}
.site-footer img{height:165px;width:auto}
.footer-contact{list-style:none;display:grid;gap:1.15rem;font-size:1rem}
.footer-contact li{display:flex;align-items:center;gap:.9rem}
.footer-chip{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;background:#efe6d8;border-radius:8px;flex:none}
.footer-chip svg{width:19px;height:19px;color:var(--accent)}
.footer-contact a{color:#efe6d8;text-decoration:underline;text-underline-offset:3px}
.footer-contact a:hover{color:var(--accent)}
.footer-legal{background:#000;color:#cfcabe;font-size:.95rem}
.footer-legal .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;padding-top:26px;padding-bottom:26px;max-width:1360px}

/* CTA band */
.cta-band{background:var(--accent);color:var(--white);text-align:center;padding:56px 0}
.cta-band h2{margin-bottom:1.4rem}
.cta-band .btn-outline{border-color:#fff;color:#fff;background:transparent}
.cta-band .btn-outline:hover{background:#fff;color:var(--accent)}
.cta-band .btn-solid{background:var(--ink)}

@media (max-width:900px){
  .hero-grid,.area-grid{grid-template-columns:1fr}
  .hero-grid{min-height:0}
  .hero-copy{padding:52px 24px 60px}
  .hero-media{display:none} /* the live site shows no banner photo on mobile */
  .hero-ctas{flex-direction:column;align-items:center}
  .hero-ctas .btn{min-width:172px;justify-content:center;text-align:center}
  .cards{grid-template-columns:1fr;gap:2.6rem}
  .card{box-shadow:none;border-radius:0;background:transparent} /* flat cards, as on the live mobile layout */
  .card img{height:auto}
  .card-body{padding:1.2rem 0 0}
  .mobile-white{background:var(--white)} /* live turns the services + service-area sections white on mobile */
  .about{background-image:none;min-height:0} /* live hides Nick's photo on mobile */
  .about-copy{padding:52px 0;max-width:none}
  .suppliers .sup-track{animation:none;display:grid;grid-template-columns:repeat(2,auto);justify-content:space-evenly;align-items:center;gap:34px 20px;width:100%}
  .suppliers .sup-track img:nth-child(n+9){display:none} /* hide the marquee duplicates */
  .area-grid iframe{border-radius:0;height:340px}
  .site-nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--white);flex-direction:column;padding:1.2rem 24px 1.6rem;box-shadow:0 12px 18px rgba(0,0,0,.08);align-items:flex-start}
  .site-nav.open{display:flex}
  .nav-toggle{display:block}
  .gallery{columns:2 140px;column-gap:10px}
  .gallery img{margin-bottom:10px}
  .footer-legal .wrap{justify-content:center;text-align:center}
  .site-footer .wrap{justify-content:flex-start}
}
