/*
Theme Name: KRMP Electrical
Theme URI: https://krmpelectrical.com.au/
Author: KRMP Electrical Contractors
Description: A clean, responsive presentation theme for KRMP Electrical Contractors.
Version: 1.0.0
Text Domain: krmp-electrical
*/

:root {
  --ink: #10202d;
  --ink-soft: #314452;
  --muted: #6d7c85;
  --paper: #f6f8f7;
  --white: #ffffff;
  --line: #dfe7e5;
  --amber: #f3b63f;
  --amber-deep: #c88916;
  --teal: #0e6970;
  --teal-dark: #084950;
  --shadow: 0 24px 60px rgba(16, 32, 45, .12);
  --radius: 20px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 99; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,248,247,.9);
  border-bottom: 1px solid rgba(223,231,229,.86);
  backdrop-filter: blur(16px);
}
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; background: var(--ink); color: var(--amber); border-radius: 11px; box-shadow: 4px 4px 0 var(--amber); }
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { font-size: 1.08rem; line-height: 1.1; }
.brand-text small { display: block; margin-top: 3px; color: var(--muted); font-size: .63rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-size: .93rem; font-weight: 700; transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--teal); }
.nav-cta { display: inline-flex; align-items: center; gap: 7px; padding: 11px 17px; color: var(--white) !important; background: var(--teal); border-radius: 999px; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--teal-dark) !important; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); padding: 7px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; }

.hero { overflow: hidden; position: relative; padding: 96px 0 88px; background: var(--paper); }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -180px; top: -260px; border: 1px solid rgba(14,105,112,.11); border-radius: 50%; box-shadow: 0 0 0 52px rgba(14,105,112,.035), 0 0 0 104px rgba(14,105,112,.025); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--teal); font-size: .73rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--amber-deep); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.08; }
h1 { max-width: 700px; margin-bottom: 25px; font-size: clamp(3.25rem, 7vw, 6.15rem); font-weight: 880; }
h1 em { color: var(--teal); font-style: normal; }
.hero-copy { max-width: 570px; color: var(--ink-soft); font-size: 1.16rem; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 51px; padding: 13px 21px; border: 1px solid transparent; border-radius: 999px; font-size: .93rem; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--teal); box-shadow: 0 9px 20px rgba(14,105,112,.2); }
.button-primary:hover, .button-primary:focus-visible { background: var(--teal-dark); }
.button-secondary { color: var(--ink); border-color: var(--line); background: transparent; }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--teal); color: var(--teal); background: var(--white); }
.button svg { width: 18px; height: 18px; }

.hero-art { position: relative; min-height: 475px; display: grid; place-items: center; }
.art-panel { position: relative; width: min(100%, 480px); height: 420px; overflow: hidden; border-radius: 32px; background: var(--ink); box-shadow: var(--shadow); }
.art-panel::before { content: ""; position: absolute; width: 300px; height: 300px; top: -100px; right: -80px; border: 1px solid rgba(243,182,63,.36); border-radius: 50%; box-shadow: 0 0 0 34px rgba(243,182,63,.07), 0 0 0 68px rgba(243,182,63,.035); }
.art-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom right, black, transparent 80%); }
.art-bolt { position: absolute; top: 89px; left: 116px; color: var(--amber); filter: drop-shadow(0 0 25px rgba(243,182,63,.35)); }
.art-bolt svg { width: 155px; height: 205px; }
.art-wire { position: absolute; left: 0; right: 0; bottom: 73px; height: 2px; background: linear-gradient(90deg, transparent, var(--teal), var(--amber), transparent); box-shadow: 0 0 18px rgba(243,182,63,.45); }
.art-label { position: absolute; left: 32px; bottom: 27px; color: rgba(255,255,255,.65); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.art-signal { position: absolute; right: 31px; bottom: 26px; display: flex; align-items: center; gap: 8px; color: var(--amber); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.art-signal::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(243,182,63,.13); }

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; align-items: center; gap: 13px; min-height: 94px; padding: 18px 28px; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-icon { display: grid; flex: 0 0 auto; place-items: center; width: 35px; height: 35px; color: var(--teal); background: #e8f3f1; border-radius: 10px; }
.trust-icon svg { width: 18px; height: 18px; }
.trust-item strong { display: block; font-size: .92rem; }
.trust-item span { display: block; color: var(--muted); font-size: .78rem; }

.section { padding: 115px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 46px; }
.section-kicker { margin-bottom: 12px; color: var(--amber-deep); font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h2 { max-width: 660px; margin-bottom: 0; font-size: clamp(2.35rem, 5vw, 4.2rem); font-weight: 850; }
.section-intro { max-width: 430px; margin-bottom: 3px; color: var(--ink-soft); }
.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { position: relative; min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(14,105,112,.35); box-shadow: 0 17px 32px rgba(16,32,45,.08); }
.service-number { color: var(--amber-deep); font-size: .75rem; font-weight: 850; letter-spacing: .12em; }
.service-icon { display: grid; place-items: center; width: 45px; height: 45px; margin: 23px 0 20px; color: var(--teal); background: #e9f3f1; border-radius: 13px; }
.service-icon svg { width: 23px; height: 23px; }
.service-card h3 { margin-bottom: 9px; font-size: 1.25rem; letter-spacing: -.025em; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: .91rem; line-height: 1.55; }

.approach { background: var(--ink); color: var(--white); }
.approach .section-kicker { color: var(--amber); }
.approach h2 { color: var(--white); }
.approach .section-intro { color: rgba(255,255,255,.68); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 29px 0 0; border-top: 1px solid rgba(255,255,255,.2); }
.step-no { display: block; margin-bottom: 32px; color: var(--amber); font-size: .75rem; font-weight: 850; letter-spacing: .14em; }
.step h3 { margin-bottom: 11px; color: var(--white); font-size: 1.35rem; letter-spacing: -.02em; }
.step p { max-width: 300px; margin-bottom: 0; color: rgba(255,255,255,.62); font-size: .93rem; }

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.about-mark { position: relative; min-height: 380px; padding: 42px; border-radius: 29px; background: var(--amber); overflow: hidden; }
.about-mark::before { content: ""; position: absolute; width: 280px; height: 280px; right: -110px; bottom: -120px; border: 1px solid rgba(16,32,45,.32); border-radius: 50%; box-shadow: 0 0 0 30px rgba(16,32,45,.07), 0 0 0 60px rgba(16,32,45,.05); }
.about-mark strong { position: relative; z-index: 1; display: block; color: var(--ink); font-size: clamp(3.5rem, 8vw, 6.8rem); font-weight: 900; letter-spacing: -.11em; line-height: .8; }
.about-mark span { position: absolute; left: 43px; bottom: 38px; color: var(--ink); font-size: .73rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { color: var(--ink-soft); }
.about-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px 22px; margin: 27px 0 0; padding: 0; list-style: none; }
.about-list li { display: flex; gap: 10px; align-items: start; font-size: .91rem; font-weight: 750; }
.about-list svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; color: var(--teal); }

.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 88px; align-items: start; }
.contact-copy h2 { margin-bottom: 20px; }
.contact-copy > p { max-width: 410px; color: var(--ink-soft); }
.contact-note { display: flex; gap: 13px; align-items: start; margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.contact-note svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--teal); }
.contact-note strong { display: block; font-size: .9rem; }
.contact-note span { display: block; color: var(--muted); font-size: .83rem; }
.form-card { padding: 34px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 15px 40px rgba(16,32,45,.06); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--ink-soft); font-size: .78rem; font-weight: 800; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: var(--white); padding: 12px 13px; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,105,112,.12); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 21px; }
.form-help { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.form-status { margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; color: var(--teal-dark); background: #dff1ed; font-size: .88rem; font-weight: 700; }
.form-status.error { color: #8b351b; background: #fbe6dc; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.site-footer { padding: 54px 0 30px; color: rgba(255,255,255,.72); background: var(--ink); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 45px; }
.footer-brand { color: var(--white); }
.footer-brand .brand-mark { background: var(--white); color: var(--teal); box-shadow: 4px 4px 0 var(--amber); }
.footer-copy { max-width: 290px; margin: 17px 0 0; font-size: .85rem; }
.footer-links { display: flex; gap: 25px; align-items: start; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .86rem; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.43); font-size: .76rem; }

@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 72px; }
  .hero-art { min-height: 400px; }
  .art-panel { height: 360px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-mark { min-height: 300px; }
  .contact-grid { gap: 35px; }
}
@media (max-width: 700px) {
  .container { width: min(var(--container), calc(100% - 34px)); }
  .site-header { background: rgba(246,248,247,.96); }
  .nav { min-height: 72px; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 17px 18px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 30px rgba(16,32,45,.08); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 0; }
  .nav-cta { justify-content: center; margin-top: 6px; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero { padding: 58px 0 62px; }
  .hero-copy { font-size: 1.03rem; }
  .hero-art { min-height: 315px; }
  .art-panel { height: 300px; border-radius: 24px; }
  .art-bolt { top: 55px; left: 67px; }
  .art-bolt svg { width: 120px; height: 160px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:first-child { min-height: 70px; padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 78px 0; }
  .section-head { display: block; margin-bottom: 32px; }
  .section-intro { margin-top: 19px; }
  .service-grid, .steps { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 24px; }
  .step { padding-top: 22px; }
  .step-no { margin-bottom: 23px; }
  .about-list { grid-template-columns: 1fr; }
  .form-card { padding: 23px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field-full { grid-column: auto; }
  .form-actions, .footer-top, .footer-bottom { display: block; }
  .form-help { margin-top: 15px; }
  .footer-links { margin-top: 30px; flex-wrap: wrap; }
  .footer-bottom > * { margin: 7px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
