/* ─────────────────────────────────────────
   elecreport.com.au — Main Stylesheet
   Brand: Navy #1C3461 · Amber #D4631A
───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --navy:   #1C3461;
  --amber:  #D4631A;
  --slate:  #8A95A3;
  --light:  #F6F7F9;
  --white:  #FFFFFF;
  --dark:   #111827;
  --text:   #374151;
  --border: #E5E7EB;
  --navy-dark: #152848;
  --amber-dark: #B8541A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ──────────────────────────── */
h1, h2, h3, h4 { color: var(--dark); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { color: var(--text); }

/* ── Layout helpers ──────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover { background: var(--amber-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); }

/* ═══════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}
.nav-logo-name span { color: var(--amber); }

.nav-logo-tag {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta { margin-left: 8px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.2s;
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
  }
  .nav-cta { padding: 12px 24px; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  background: var(--navy);
  padding: 72px 0 88px;
}

.hero-inner {
  max-width: 900px;
}

.hero-service-title {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 24px;
  max-width: 860px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}
.hero-phone svg { color: var(--amber); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════ */
.trust-bar {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.trust-item svg { color: var(--amber); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.services { background: var(--white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 17px; color: var(--slate); max-width: 560px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--light);
  border-radius: 14px;
  padding: 36px 32px;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--amber);
  box-shadow: 0 4px 24px rgba(212,99,26,0.1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--amber);
}

.service-card h3 { margin-bottom: 10px; color: var(--navy); }
.service-card p  { font-size: 15px; line-height: 1.65; }

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ═══════════════════════════════════════════
   PROCESS / HOW IT WORKS
═══════════════════════════════════════════ */
.process { background: var(--light); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  background: var(--white);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
}

.step-connector {
  display: none;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.process-step h3 { margin-bottom: 8px; color: var(--navy); font-size: 1.1rem; }
.process-step p  { font-size: 15px; line-height: 1.65; }

.process-note {
  margin-top: 40px;
  padding: 20px 28px;
  background: var(--white);
  border-radius: 12px;
  border-left: 4px solid var(--amber);
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 860px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   OLDER HOMES
═══════════════════════════════════════════ */
.older-homes { background: var(--navy); }

.older-homes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.older-homes h2 { color: var(--white); margin-bottom: 16px; }
.older-homes .lead { font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.65; margin-bottom: 32px; }

.defect-list { display: flex; flex-direction: column; gap: 16px; }

.defect-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.defect-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  margin-top: 8px;
}
.defect-item-text {}
.defect-item-text strong { display: block; color: var(--white); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.defect-item-text span { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.5; }

.older-homes-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.older-homes-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

@media (max-width: 860px) {
  .older-homes-inner { grid-template-columns: 1fr; gap: 40px; }
  .older-homes-image { order: -1; }
  .older-homes-image img { height: 260px; }
}

/* ═══════════════════════════════════════════
   WHAT'S INCLUDED
═══════════════════════════════════════════ */
.included { background: var(--light); }

.included-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.included-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.included-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.included h2 { margin-bottom: 12px; }
.included .lead {
  font-size: 16px;
  color: var(--slate);
  margin-bottom: 32px;
  line-height: 1.65;
}

.checklist { display: flex; flex-direction: column; gap: 14px; }

.check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-icon svg { color: var(--white); }
.check-item-text strong { display: block; font-size: 15px; font-weight: 600; color: var(--dark); }
.check-item-text span { font-size: 14px; color: var(--slate); }

.included-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(28,52,97,0.06);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .included-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about { background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  position: relative;
}
.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about h2 { margin-bottom: 16px; }
.about p { font-size: 16px; line-height: 1.7; margin-bottom: 20px; }

.credentials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0;
  padding: 24px;
  background: var(--light);
  border-radius: 12px;
}
.credential {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.credential svg { color: var(--amber); flex-shrink: 0; }

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
  .about-image img { height: 280px; }
}

/* ═══════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════ */
.cta-banner {
  background: var(--amber);
  padding: 64px 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p  { color: rgba(255,255,255,0.8); font-size: 17px; }

.cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-white {
  background: var(--white);
  color: var(--amber);
}
.btn-white:hover { background: var(--light); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 700px) {
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-actions { justify-content: center; }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.footer-logo-name span { color: var(--amber); }

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.footer-contact-item svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════ */
.page-hero {
  background: var(--navy);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 17px; max-width: 500px; margin: 0 auto; }

.contact-section { background: var(--light); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: flex-start;
}

.contact-info h3 { margin-bottom: 8px; color: var(--navy); }
.contact-info > p { font-size: 15px; color: var(--text); line-height: 1.65; margin-bottom: 32px; }

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber);
}
.contact-method-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}
.contact-method-text a,
.contact-method-text span {
  font-size: 15px;
  color: var(--text);
}
.contact-method-text a:hover { color: var(--amber); }

.contact-creds {
  margin-top: 32px;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.contact-creds p {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}
.contact-creds ul { display: flex; flex-direction: column; gap: 6px; }
.contact-creds li {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-creds li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* Contact form */
.contact-form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.contact-form-card h3 { margin-bottom: 28px; color: var(--navy); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28,52,97,0.1);
}

textarea { resize: vertical; min-height: 120px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A95A3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-submit {
  margin-top: 8px;
}
.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--slate);
  margin-top: 12px;
}

/* Success message (shown after submit) */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success h3 { color: var(--navy); margin-bottom: 10px; }
.form-success p { color: var(--slate); }

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px 20px; }
}

/* ── Mobile optimisation ─────────────────── */

/* Tablet: tighten section padding and headers */
@media (max-width: 860px) {
  section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
}

/* Phone: compact hero, CTA, trust bar, nav tap target */
@media (max-width: 700px) {
  .hero { padding: 44px 0 52px; }
  .hero-sub { font-size: 16px; }
  .cta-banner { padding: 48px 0; }
  .trust-bar-inner { gap: 10px 24px; }
  .trust-item { font-size: 12px; }
  .nav-toggle { padding: 10px 8px; }
}

/* Small phones: reduce padding further */
@media (max-width: 500px) {
  section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .service-card { padding: 28px 24px; }
  .process-step { padding: 24px 20px; }
  .process-note { padding: 16px 18px; }
}

/* ── Utilities ────────────────────────────── */
.text-amber { color: var(--amber); }
.text-navy  { color: var(--navy); }
.text-white { color: var(--white); }
.mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
