/* Hopkinson Electrical — sample homepage styles
   Mobile-first, trustworthy tradie look */

:root {
  /* Brand from hopkinsonelectrical.com.au logo + site: black + red */
  --navy: #141414;
  --charcoal: #1a1a1a;
  --ink: #11062b;
  --accent: #fa001e;
  --accent-hover: #c40018;
  --amber: #f5a623;
  --white: #ffffff;
  --off-white: #f7f7f8;
  --muted: #5a5a61;
  --border: #e4e4e8;
  --success: #1a7a4c;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(20, 20, 20, 0.08);
  --shadow-lg: 0 12px 40px rgba(20, 20, 20, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* —— Sample banner —— */
.sample-banner {
  background: #2a2a2e;
  color: #dce3eb;
  text-align: center;
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  letter-spacing: 0.02em;
}

/* —— Header —— */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none;
  max-width: min(220px, 52vw);
}
.logo:hover { text-decoration: none; color: var(--navy); }
.logo span { color: var(--accent); }
.logo-img {
  height: 40px;
  width: auto;
  max-width: 100%;
  display: block;
}
.logo-fallback {
  display: none;
}
.logo-img[src=""],
.logo:not(:has(.logo-img)) .logo-fallback,
.logo.logo-text-only .logo-fallback {
  display: inline;
}
@supports not selector(:has(*)) {
  .logo-fallback { display: none; }
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent); }

.header-phone {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
}
.header-phone:hover { color: var(--accent); text-decoration: none; }

/* —— Buttons —— */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  cursor: pointer;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

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

.btn-lg {
  padding: 1rem 1.85rem;
  font-size: 1.1rem;
}

.btn-block { width: 100%; }

/* —— Hero —— */
.hero {
  background: linear-gradient(145deg, #080808 0%, var(--navy) 45%, #11062b 100%);
  color: var(--white);
  padding: 2.75rem 1.25rem 3.25rem;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(250, 0, 30, 0.18);
  color: #ff7a8a;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(1.75rem, 5.5vw, 2.65rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 18em;
}

.hero-lead {
  font-size: 1.05rem;
  color: #c8c8cc;
  max-width: 32em;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-nap {
  font-size: 0.9rem;
  color: #9a9aa0;
}
.hero-nap strong { color: #f0f0f2; }
.hero-nap a { color: #ff7a8a; }

/* —— Reviews strip —— */
.reviews-strip {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  text-align: center;
}

.reviews-strip p {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stars {
  color: var(--amber);
  letter-spacing: 0.05em;
  font-size: 1.1rem;
}

/* —— Sections —— */
.section {
  padding: 3rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-intro {
  color: var(--muted);
  max-width: 38em;
  margin-bottom: 2rem;
}

/* —— Service cards —— */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #f5a0a8;
  text-decoration: none;
  color: inherit;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(250, 0, 30, 0.1);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.service-card .card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

/* —— Why / Trust —— */
.why {
  background: var(--off-white);
}

.trust-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.trust-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.trust-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(26, 122, 76, 0.12);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.trust-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

.licence-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.85rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* —— CTA band —— */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 1.25rem;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: #b0b0b6;
  margin-bottom: 1.5rem;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-primary {
  background: var(--accent);
}

.cta-contact {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: #9a9aa0;
}
.cta-contact a { color: #ff7a8a; font-weight: 600; }

/* —— Contact strip —— */
.contact-strip {
  padding: 2.5rem 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--white);
}

.contact-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.contact-card p,
.contact-card a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.contact-card a:hover { color: var(--accent); }

/* —— Footer —— */
.site-footer {
  background: var(--charcoal);
  color: #a0a0a6;
  padding: 2rem 1.25rem;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: #a0a0a6;
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  color: #6e6e74;
  font-size: 0.8rem;
}

/* —— Inner / stub pages —— */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.25rem 1.25rem;
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: #b0b0b6;
  max-width: 36em;
}

.page-content {
  padding: 2.5rem 1.25rem 3.5rem;
}
.page-content-inner {
  max-width: 720px;
  margin: 0 auto;
}
.page-content h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.65rem;
  font-weight: 700;
}
.page-content p,
.page-content li {
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.page-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.page-content a { font-weight: 600; }

.breadcrumb {
  font-size: 0.85rem;
  color: #9a9aa0;
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: #ff7a8a; }

/* —— Tablet+ —— */
@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .btn-block { width: auto; }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-list {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .header-inner { padding: 0.9rem 1.5rem; }
  .hero { padding: 4rem 1.5rem 4.5rem; }
  .section { padding: 4rem 1.5rem; }
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}


/* —— Brand team / job photo —— */
.team-photo-wrap {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.team-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 320px;
}
.team-photo-caption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.65rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* Focus visibility */
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
