/*
Theme Name: GC Electrical Safety 2026
Theme URI: https://gcelectricalsafety.com.au/
Author: GC Electrical Safety
Description: A fast, mobile-first WordPress theme for GC Electrical Safety's local Test & Tag service.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: gces
*/

:root {
  --navy: #001e8e;
  --navy-2: #00186f;
  --ink: #102a3a;
  --muted: #5b7180;
  --cream: #f7f4ec;
  --white: #fff;
  --yellow: #ff4600;
  --yellow-dark: #d93c00;
  --green: #001e8e;
  --line: #dce5e9;
  --shadow: 0 20px 55px rgba(8, 47, 73, .12);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 780px; font-size: clamp(2.65rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.3rem; }
p { margin-top: 0; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.button:hover { background: #e73f00; transform: translateY(-2px); }
.button--outline { border-color: rgba(255,255,255,.4); background: transparent; color: var(--white); }
.button--outline:hover { background: rgba(255,255,255,.08); }
.button--dark { border-color: var(--navy); background: var(--navy); color: var(--white); }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.97);
  color: var(--ink);
}
.header-row { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 49px; height: 44px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: 1rem; }
.brand-text span { margin-top: 4px; color: var(--muted); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; margin: 0; padding: 0; align-items: center; gap: 24px; list-style: none; }
.site-nav a { font-size: .91rem; font-weight: 720; text-decoration: none; }
.site-nav a:hover { color: var(--yellow); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--navy); font-weight: 800; }

.hero { position: relative; overflow: hidden; padding: clamp(78px, 11vw, 140px) 0 86px; background: var(--navy); color: var(--white); }
.hero::after {
  position: absolute;
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  border: 90px solid rgba(255,70,0,.14);
  border-radius: 50%;
  content: "";
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 60px; align-items: end; }
.hero h1 span { color: var(--yellow); }
.hero .lead { color: #c9d9e2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin: 18px 0 0; color: #abc2cf; font-size: .88rem; }
.price-card { padding: 30px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.price-card small { color: #bdd0da; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.price { margin: 8px 0 2px; color: #ff6a31; font-size: 3.5rem; font-weight: 950; line-height: 1; }
.price-card ul { margin: 22px 0 0; padding: 0; list-style: none; }
.price-card li { position: relative; margin-top: 9px; padding-left: 25px; color: #dce8ee; }
.price-card li::before { position: absolute; left: 0; color: var(--yellow); content: "✓"; font-weight: 900; }
.price-link { display: inline-block; margin-top: 20px; color: white; font-size: .88rem; font-weight: 800; text-underline-offset: 4px; }

.trust-strip { background: var(--cream); border-bottom: 1px solid #ebe6d9; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 23px 25px; border-right: 1px solid #e1ddd1; font-size: .9rem; font-weight: 780; }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }

.section { padding: clamp(72px, 9vw, 115px) 0; }
.section--soft { background: var(--cream); }
.section-head { display: flex; margin-bottom: 42px; align-items: end; justify-content: space-between; gap: 30px; }
.section-head h2 { max-width: 720px; margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards--four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 35px rgba(8,47,73,.05); }
.card-number { display: grid; width: 42px; height: 42px; margin-bottom: 28px; place-items: center; border-radius: 50%; background: var(--yellow); font-weight: 900; }
.card p { margin-bottom: 0; color: var(--muted); }

.fit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.tick-list { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; }
.tick-list li { padding: 17px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 720; }
.tick-list li::before { margin-right: 9px; color: var(--green); content: "✓"; font-weight: 900; }

.proof { padding: 38px; border-radius: var(--radius); background: var(--navy); color: white; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center; }
.proof h2 { margin-bottom: 16px; }
.proof p { color: #c3d6df; }
.equipment-list { display: grid; margin: 0; padding: 0; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; }
.equipment-list li { padding: 13px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.05); font-size: .9rem; }
.equipment-side { display: grid; grid-template-columns: 1fr 150px; gap: 18px; align-items: center; }
.mascot-card { overflow: hidden; aspect-ratio: 1; border: 3px solid rgba(255,255,255,.18); border-radius: 50%; background: #000; }
.mascot-card img { width: 100%; height: 100%; object-fit: cover; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.post-card-media { display: grid; aspect-ratio: 16/10; place-items: center; overflow: hidden; background: var(--navy); color: var(--yellow); font-size: 2rem; font-weight: 950; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card-body time { color: var(--green); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.post-card-body h3 { margin: 9px 0; }
.post-card-body a { text-decoration: none; }
.post-card-body p { margin-bottom: 0; color: var(--muted); font-size: .93rem; }

.quote-section { background: var(--cream); }
.quote-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.quote-points { margin: 28px 0 0; padding: 0; list-style: none; }
.quote-points li { margin: 11px 0; font-weight: 720; }
.quote-points li::before { margin-right: 10px; color: var(--green); content: "✓"; }
.quote-form { padding: 34px; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-field { display: grid; gap: 6px; }
.form-field--wide { grid-column: 1 / -1; }
.form-field label { font-size: .83rem; font-weight: 800; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #b9c8d0;
  border-radius: 9px;
  background: white;
  color: var(--ink);
}
.form-field textarea { min-height: 112px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(244,196,48,.35); border-color: var(--yellow-dark); }
.form-status { margin-bottom: 18px; padding: 12px 14px; border-radius: 8px; background: #e7f7ef; color: #155c3f; font-weight: 700; }
.form-status--error { background: #ffeded; color: #8c2424; }
.form-privacy { margin: 12px 0 0; color: var(--muted); font-size: .76rem; }
.website-field { position: absolute !important; left: -9999px !important; }

.content-wrap { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 75px 0 100px; }
.content-wrap h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.content-wrap h2 { margin-top: 45px; font-size: 2rem; }
.content-wrap a { color: #0f6d91; }
.content-wrap--wide { width: min(calc(100% - 40px), 980px); }
.pricing-table { width: 100%; margin: 30px 0; border-collapse: collapse; font-size: .95rem; }
.pricing-table th, .pricing-table td { padding: 15px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.pricing-table th { background: var(--navy); color: white; }
.pricing-table tr:nth-child(even) td { background: var(--cream); }
.info-box { margin: 30px 0; padding: 24px; border-left: 5px solid var(--yellow); border-radius: 0 12px 12px 0; background: var(--cream); }
.example-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0; }
.example-box { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.example-box h3 { margin-bottom: 10px; }
.example-box ul { margin-bottom: 0; }
.entry-meta { margin-bottom: 28px; color: var(--muted); }
.page-hero { padding: 70px 0; background: var(--navy); color: white; }
.page-hero h1 { margin-bottom: 0; }

.site-footer { padding: 55px 0 95px; background: #062538; color: #d3e1e8; }
.footer-logo { width: 175px; padding: 10px; border-radius: 12px; background: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.site-footer h3 { color: white; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-small { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #96b0bd; font-size: .78rem; }
.mobile-call { display: none; }

@media (max-width: 920px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 77px; left: 0; right: 0; padding: 22px 20px; background: var(--navy); }
  .site-nav { color: var(--white); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; }
  .site-nav .button { margin-top: 16px; }
  .hero-grid, .fit-grid, .proof-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .cards, .posts-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid #e1ddd1; }
  .quote-grid { gap: 35px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
  .brand-text span { display: none; }
  .header-row { min-height: 70px; }
  .site-nav { top: 69px; }
  .hero { padding-top: 65px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .price-card { padding: 24px; }
  .trust-grid, .cards, .posts-grid, .tick-list, .equipment-list, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 16px 0; border-right: 0; border-bottom: 1px solid #e1ddd1; }
  .section-head { align-items: start; flex-direction: column; }
  .proof { padding: 26px; }
  .quote-form { padding: 24px 18px; }
  .equipment-side { grid-template-columns: 1fr; }
  .mascot-card { width: 160px; }
  .form-field--wide { grid-column: auto; }
  .mobile-call {
    display: flex;
    position: fixed;
    z-index: 50;
    right: 14px;
    bottom: 14px;
    left: 14px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--white);
    box-shadow: 0 10px 35px rgba(0,0,0,.25);
    font-weight: 900;
    text-decoration: none;
  }
}

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