/* ==========================================================================
   All Electrics Adelaide — landing page
   Palette and spacing carried over from the Claude Design source.
   ========================================================================== */

:root {
  --navy:        #0B2239;
  --navy-deep:   #06192B;
  --navy-foot:   #081C30;
  --ink:         #0E1B2A;
  --sky:         #4FC3F7;
  --blue:        #1E88E5;
  --blue-dark:   #1256A3;
  --muted:       #5A6B7E;
  --on-navy:     #A9C3DA;
  --on-navy-2:   #C7DCEE;
  --on-navy-3:   #7FA3C4;
  --line:        #DCE9F4;
  --line-2:      #E3EDF6;
  --tint:        #EEF6FC;
  --tint-2:      #EAF5FE;
  --field:       #F5FAFE;
  --gold:        #F5B301;
  --danger:      #C0392B;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Honeypot — hidden from humans, visible to bots */
.hp { position: absolute !important; left: -9999px !important; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; }

.sec { padding: 88px 24px; display: flex; justify-content: center; }
.sec-white { background: #ffffff; }
.sec-tint  { background: var(--tint); }
.sec-navy  { background: var(--navy); color: #ffffff; }

.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.stack-18 { display: flex; flex-direction: column; gap: 18px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-22 { display: flex; flex-direction: column; gap: 22px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.stack-44 { display: flex; flex-direction: column; gap: 44px; }

.split { display: grid; align-items: center; }
.split-why      { grid-template-columns: 1.05fr 0.95fr; gap: 52px; }
.split-stats    { grid-template-columns: 1.1fr 0.9fr;  gap: 52px; }
.split-testi    { grid-template-columns: 0.9fr 1.1fr;  gap: 52px; }
.split-faq      { grid-template-columns: 0.9fr 1.1fr;  gap: 52px; align-items: start; }
.split-contact  { grid-template-columns: 0.9fr 1.1fr;  gap: 44px; align-items: stretch; }
.proj-head      { grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }

/* Cover-cropped image frame. JS re-applies the saved pan from the design;
   without JS this stays a centred cover crop. */
.frame {
  position: relative; overflow: hidden;
  /* Shows through until the photo loads. */
  background: linear-gradient(135deg, #DCE9F4, #EAF5FE);
}
.frame img {
  position: absolute; left: 50%; top: 50%;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.h-hero {
  font-size: 56px; line-height: 1.12; font-weight: 700; letter-spacing: -0.5px;
  max-width: 880px; color: #ffffff; text-wrap: pretty;
}

.h2 {
  font-size: 38px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.25;
  text-wrap: pretty;
}
.h2-sm { font-size: 36px; line-height: 1.28; }
.h2-xs { font-size: 30px; line-height: 1.3; }

.accent     { color: var(--blue); }
.accent-sky { color: var(--sky); }

.sec-head {
  text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.sec-sub {
  color: var(--muted); font-size: 15px; max-width: 640px; line-height: 1.7; text-wrap: pretty;
}
.sec-sub-light { color: var(--on-navy); max-width: 620px; }
.sec-sub-left  { text-align: left; max-width: none; font-size: 15px; line-height: 1.75; }

.stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }

/* --------------------------------------------------------------------------
   Tags, buttons, pips
   -------------------------------------------------------------------------- */

.tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px;
}
.sec-head .tag { align-self: center; }
.tag-pale { background: var(--tint-2); color: var(--blue-dark); }
.tag-sky  { background: var(--sky); color: var(--navy-deep); }
.tag-sky-outline {
  background: rgba(79, 195, 247, 0.12);
  border: 1px solid rgba(79, 195, 247, 0.4);
  color: var(--sky);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 14px 26px; white-space: nowrap;
  transition: filter 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-sky   { background: var(--sky); color: var(--navy-deep); }
.btn-sky:hover  { color: var(--navy-deep); filter: brightness(1.08); }
.btn-navy  { background: var(--navy); color: #ffffff; font-size: 12px; padding: 11px 22px; gap: 8px; }
.btn-navy:hover { color: #ffffff; filter: brightness(1.15); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: #ffffff; background: none; }
.btn-ghost:hover { color: var(--sky); border-color: var(--sky); }
.btn-sm    { font-size: 12px; padding: 10px 18px; gap: 6px; }
.btn-self  { align-self: flex-start; }
.btn-block { width: 100%; }

.pip {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.pip-sky    { width: 18px; height: 18px; background: var(--sky); color: var(--navy-deep); }
.pip-navy   { background: var(--navy-deep); color: var(--sky); }
.pip-sky-sm { width: 28px; height: 28px; background: var(--sky); color: var(--navy-deep); font-size: 13px; }

/* --------------------------------------------------------------------------
   Top bar + nav
   -------------------------------------------------------------------------- */

.topbar { background: #ffffff; border-bottom: 1px solid var(--line-2); padding: 10px 24px; }
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.topbar-logo img { height: 60px; width: auto; }

.top-mid {
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--navy-deep); font-weight: 500;
}
.top-mid a { color: var(--navy-deep); }
.top-mid a:hover { color: var(--blue); }

.nav {
  background: var(--navy); padding: 0 24px;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(79, 195, 247, 0.15);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nav-links {
  display: flex; gap: 30px; align-items: center; padding: 16px 0;
  font-size: 14px; font-weight: 500;
}
.nav-links a { color: var(--on-navy-2); }
.nav-links a.is-current { color: #ffffff; }
.nav-links a:hover { color: var(--sky); }

.nav-phone {
  color: var(--sky); font-size: 14px; font-weight: 600;
  border: 1px solid var(--sky); border-radius: 999px; padding: 9px 20px; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-phone:hover { color: var(--navy-deep); background: var(--sky); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background-image:
    linear-gradient(100deg, rgba(6,22,38,0.92) 0%, rgba(8,28,48,0.78) 45%, rgba(10,34,57,0.45) 100%),
    url('assets/hero-bg2.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--navy-deep);
  color: #ffffff;
  padding: 64px 24px 72px;
  display: flex; justify-content: center;
}
.hero-inner { display: flex; flex-direction: column; gap: 24px; padding: 36px 0; }

.rating { display: flex; align-items: center; gap: 10px; }
.rating .stars { font-size: 16px; }
.rating-label { font-size: 14px; font-weight: 600; color: #ffffff; }

.hero-lead { font-size: 16px; line-height: 1.75; color: var(--on-navy); max-width: 640px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-cards {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px;
  margin-top: 22px; max-width: 780px;
}
.quote-card {
  margin: 0; background: #ffffff; color: var(--ink); border-radius: 12px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.quote-card blockquote { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.quote-card figcaption { font-size: 12px; font-weight: 600; }

.speed-card {
  background: var(--sky); color: var(--navy-deep); border-radius: 12px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
}
.speed-title { font-size: 13px; font-weight: 600; line-height: 1.4; }
.speed-row { display: flex; align-items: center; gap: 12px; }
.dial {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--navy) 0 85%, rgba(11,34,57,0.15) 85% 100%);
  display: flex; align-items: center; justify-content: center;
}
.dial-inner {
  width: 48px; height: 48px; border-radius: 50%; background: var(--sky);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.speed-copy { font-size: 12px; line-height: 1.5; font-weight: 500; }

/* --------------------------------------------------------------------------
   Lead form band
   -------------------------------------------------------------------------- */

.lead-band { background: #ffffff; padding: 0 24px; display: flex; justify-content: center; }
.lead-card {
  background: #ffffff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 32px; margin-top: -44px; position: relative; z-index: 5;
  box-shadow: 0 18px 44px rgba(6, 25, 43, 0.12);
}
.lead-head { margin-bottom: 18px; }
.lead-head h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.lead-head p { font-size: 14px; color: var(--muted); }

.lead-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: center;
}
.lead-grid .span3 { grid-column: span 3; }

/* Fields */
input[type="text"], input[type="tel"], input[type="email"], input:not([type]), textarea {
  font-family: inherit; font-size: 14px; width: 100%;
  border: 1px solid var(--line); background: var(--field); outline: none;
  color: var(--ink);
}
.lead-grid input { padding: 14px 18px; border-radius: 999px; }
.contact-form input, .contact-form textarea { padding: 13px 16px; border-radius: 8px; }
.contact-form textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue); background: #ffffff; }
::placeholder { color: #90A4B8; opacity: 1; }

.form-msg { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--blue-dark); }
.form-msg.is-error { color: var(--danger); font-weight: 500; }
.contact-form-card .form-msg.is-ok {
  background: var(--tint-2); border: 1px solid var(--sky); border-radius: 10px;
  padding: 18px; text-align: center;
}

/* --------------------------------------------------------------------------
   Bento
   -------------------------------------------------------------------------- */

.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 250px 220px; gap: 18px;
}
.bento-grid > * { border-radius: 14px; }

.bento-quote {
  margin: 0; background: var(--navy); color: #ffffff; padding: 28px;
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.bento-quote .stars { font-size: 13px; }
.bento-quote blockquote { margin: 0; font-size: 14px; line-height: 1.7; color: var(--on-navy-2); }
.bento-quote figcaption { font-size: 12px; font-weight: 600; color: var(--sky); }

.bento-wide { grid-column: span 2; }

.bento-stat {
  background: var(--sky); color: var(--navy-deep); padding: 28px;
  display: flex; flex-direction: column; gap: 8px; justify-content: center;
}
.bento-stat-num { font-size: 40px; font-weight: 800; line-height: 1; }
.bento-stat-label { font-size: 14px; font-weight: 600; }
.bento-stat-copy { font-size: 12.5px; line-height: 1.6; }

.bento-cta {
  background: var(--navy); color: #ffffff; padding: 28px;
  display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: flex-start;
}
.bento-cta-title { font-size: 16px; font-weight: 600; line-height: 1.4; }

.badges {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.badges li {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--field); color: var(--blue-dark);
  font-size: 13px; font-weight: 500; padding: 9px 18px; border-radius: 999px;
}
.badge-mark { color: var(--blue); }

/* --------------------------------------------------------------------------
   Accordions (Why Us + FAQ)
   -------------------------------------------------------------------------- */

.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion-faq { gap: 12px; }

.acc-item {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #ffffff;
}
.accordion-faq .acc-item { border-radius: 12px; border: none; }

.acc-head {
  width: 100%; border: none; text-align: left; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #ffffff; color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.accordion-faq .acc-head { padding: 17px 22px; }
.acc-item.is-open .acc-head { background: var(--sky); }
.accordion[data-accordion="why"] .acc-item.is-open .acc-head { color: var(--navy-deep); }
.acc-mark { font-size: 18px; line-height: 1; }

.acc-body {
  display: none;
  padding: 16px 20px; font-size: 14px; color: var(--muted); line-height: 1.75; background: #ffffff;
}
.accordion-faq .acc-body { padding: 16px 22px 20px; }
.acc-item.is-open .acc-body { display: block; }

/* Why Us media */
.why-media { position: relative; min-height: 480px; }
.why-frame { position: absolute; inset: 0; border-radius: 16px; }
.seal {
  position: absolute; top: -24px; right: 28px; width: 96px; height: 96px;
  border-radius: 50%; background: var(--sky); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  line-height: 1.35; box-shadow: 0 10px 26px rgba(18, 86, 163, 0.25); pointer-events: none;
}

.faq-aside {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(79, 195, 247, 0.25);
  border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-aside-title { font-weight: 600; font-size: 16px; }
.faq-aside p { font-size: 13.5px; color: var(--on-navy); line-height: 1.7; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: #ffffff; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(6, 25, 43, 0.28); }
.svc-frame { height: 210px; }
.svc-foot {
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.svc-title { color: var(--ink); font-size: 15.5px; font-weight: 600; }

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */

.ticks { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { border: 1px solid var(--line); background: #ffffff; border-radius: 12px; padding: 20px 22px; }
.fact-value { font-size: 30px; font-weight: 800; color: var(--blue-dark); line-height: 1.1; }
.fact-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stats-frame { min-height: 460px; border-radius: 16px; }

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj-card { border: 1px solid var(--line-2); border-radius: 14px; height: 260px; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.pills { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  background: #ffffff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.testi-card {
  margin: 0; background: var(--sky); color: var(--navy-deep); border-radius: 16px;
  padding: 40px 38px; display: flex; flex-direction: column; gap: 18px;
}
.testi-mark { font-size: 44px; line-height: 0.6; font-weight: 800; }
.testi-card blockquote { margin: 0; font-size: 17px; line-height: 1.75; font-weight: 500; text-wrap: pretty; }
.testi-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--sky);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.testi-name { display: block; font-weight: 700; font-size: 15px; }
.testi-src { display: block; font-size: 12.5px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-info {
  background: var(--navy); color: #ffffff; border-radius: 16px; padding: 40px 36px;
  display: flex; flex-direction: column; gap: 22px;
}
.contact-lead { color: var(--on-navy); font-size: 14.5px; line-height: 1.75; }
.contact-list { margin: 4px 0 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list dt {
  font-size: 11px; color: var(--on-navy-3); text-transform: uppercase; letter-spacing: 1px;
}
.contact-list dd { margin: 0; font-weight: 600; font-size: 15px; }
.contact-list a { color: #ffffff; word-break: break-word; }
.contact-list a:hover { color: var(--sky); }

.contact-form-card {
  background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 40px 36px;
}
.contact-form-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.contact-form-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .btn { padding: 15px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy-foot); color: var(--on-navy);
  padding: 56px 24px 32px; display: flex; justify-content: center;
}
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand img {
  height: 42px; width: auto; align-self: flex-start;
  background: #ffffff; border-radius: 8px; padding: 7px 14px;
}
.foot-brand p { font-size: 13.5px; line-height: 1.7; max-width: 320px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-col a { color: var(--on-navy); word-break: break-word; }
.foot-col a:hover { color: var(--sky); }
.foot-title { color: #ffffff; font-weight: 600; margin-bottom: 6px; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--on-navy-3);
}
.foot-bottom a { color: var(--on-navy-3); }
.foot-bottom a:hover { color: var(--sky); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .h-hero { font-size: 42px; }
  .h2 { font-size: 31px; }
  .h2-sm, .h2-xs { font-size: 28px; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-grid { grid-template-columns: 1fr 1fr; }
  .lead-grid .span3 { grid-column: span 2; }
  .lead-grid button { grid-column: span 2; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bento-grid > * { min-height: 210px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .sec { padding: 56px 18px; }
  .hero { padding: 44px 18px 56px; }
  .lead-band { padding: 0 18px; }
  .lead-card { padding: 24px 20px; }
  .h-hero { font-size: 33px; }
  .h2 { font-size: 26px; }
  .h2-sm, .h2-xs { font-size: 24px; }
  .top-mid { display: none; }
  .nav { padding: 0 18px; }
  .nav-inner { flex-wrap: wrap; gap: 10px; }
  .nav-links { gap: 16px; flex-wrap: wrap; padding: 12px 0; }
  .hero-cards { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-grid .span3,
  .lead-grid button { grid-column: auto; }
  .row2 { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .svc-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .why-media { min-height: 380px; }
  .seal { top: -18px; right: 14px; width: 84px; height: 84px; font-size: 9.5px; }
  .stats-frame { min-height: 320px; }
  .contact-info, .contact-form-card { padding: 30px 24px; }
  .testi-card { padding: 30px 26px; }
  .footer { padding: 44px 18px 28px; }
}

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