/*
Theme Name:   Nero Plumbing Services
Theme URI:    https://nero-plumbing.com.au
Description:  Standalone theme for Nero Plumbing Services Pty Ltd — Runcorn/Brisbane Southside residential & commercial plumber lead-gen site. Navy/aqua palette matching the existing Nero logo.
Author:       David Rich
Author URI:   https://davejrich.com
Version:      1.0.0
*/

/* ── VARIABLES ──
   Navy pulled from Nero's existing logo (nero-navy-transparent.png), paired
   with an aqua/water-blue accent — distinct from other builds, still reads
   "plumbing/water" rather than a generic trade palette. */
:root {
  --navy:     #0B1F33;
  --navy2:    #14314F;
  --blue:     #0EA5E9;
  --teal:     #06B6D4;
  --brand-gradient: linear-gradient(120deg, var(--blue), var(--teal));
  --white:    #FFFFFF;
  --light:    #F4F9FB;
  --mid:      #E3EDF2;
  --grey:     #5B6B79;
  --text:     #1B2733;
  --border:   #DCE6EC;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  margin: 0;
  padding: 0;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--teal); }

/* ── CUSTOM NAV ── */
.nps-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: #0B1F33 !important;
  border-bottom: 3px solid transparent !important;
  border-image: var(--brand-gradient) 1 !important;
  padding: 0 2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 64px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.nps-nav-logo {
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.nps-nav-logo span {
  background: var(--brand-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: var(--teal) !important;
}

.nps-nav-right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1.5rem !important;
}

.nps-nav-links,
.nps-nav-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1.5rem !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nps-nav-actions { gap: 0.75rem !important; }

.nps-nav-links li,
.nps-nav-actions li {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
}

.nps-nav-links li::before,
.nps-nav-links li::marker,
.nps-nav-actions li::before,
.nps-nav-actions li::marker {
  display: none !important;
  content: none !important;
}

.nps-nav-links a {
  color: #C3D4DE !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

.nps-nav-links a:hover { color: #FFFFFF !important; }

.nps-nav-cta {
  background: rgba(14,165,233,0.18) !important;
  color: #5CC8EE !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 4px !important;
}

.nps-nav-phone {
  background: var(--teal) !important;
  color: #FFFFFF !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.nps-nav-phone:hover { background: #0891A8 !important; opacity: 0.9; }

/* ── NAV — TIERED MOBILE LAYOUT ── */
@media (max-width: 760px) {
  .nps-nav {
    flex-wrap: wrap !important;
    height: auto !important;
    padding: 0.75rem 1.25rem !important;
    row-gap: 0.6rem !important;
  }

  .nps-nav-right {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.6rem !important;
  }

  .nps-nav-actions {
    order: 1 !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .nps-nav-links {
    order: 2 !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem 1.1rem !important;
    width: 100% !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
  }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-accent { background: var(--brand-gradient); color: var(--white); }
.btn-accent:hover { background: var(--teal); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #1B3A5C; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ── HERO ──
   Background is a generated plumbing photo (assets/hero-plumber.jpg) — swap
   for a real job photo any time, no CSS changes needed. Dark gradient overlay
   keeps the hero text readable over the photo. */
.nps-hero {
  background:
    linear-gradient(180deg, rgba(11,31,51,0.55) 0%, rgba(11,31,51,0.78) 55%, rgba(11,31,51,0.96) 100%),
    url('assets/hero-plumber.jpg') center center / cover no-repeat;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nps-hero .container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.nps-hero .tag {
  display: inline-block;
  background: rgba(14,165,233,0.18);
  color: #5CC8EE;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.nps-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 1.25rem;
}

.nps-hero h1 span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--teal);
}

.nps-hero .sub {
  font-size: 1.1rem;
  color: #AEC3D1;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ── TRUST BADGE BAR ── */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-badge {
  font-size: 0.9rem;
  font-weight: 600;
  color: #E4EEF2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── SECTIONS ── */
.nps-section { padding: 5rem 1.5rem; }
.nps-section.bg-light { background: var(--light); }
.nps-section.bg-navy { background: var(--navy); }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  background: rgba(11,31,51,0.08);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.bg-navy .section-label { background: rgba(6,182,212,0.15); color: var(--teal); }

.section-heading {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.75px;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.bg-navy .section-heading { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 640px;
  line-height: 1.7;
  margin: 0 0 3rem;
}

.bg-navy .section-sub { color: #AEC3D1; }

/* ── SERVICES GRID ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(6,182,212,0.15); }

.service-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 0 0 0.6rem; }
.service-card p { font-size: 0.88rem; color: var(--grey); line-height: 1.6; margin: 0; }

/* ── WHY US ── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.why-card { padding: 1.5rem; border-left: 3px solid var(--blue); background: var(--light); border-radius: 0 8px 8px 0; }
.why-card h4 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--navy); }
.why-card p { margin: 0; font-size: 0.9rem; color: var(--grey); line-height: 1.6; }

/* ── SERVICE AREA ── */
.suburbs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 1.5rem; }

.suburb-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
}

/* ── HOURS ── */
.hours-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  max-width: 420px;
}
.hours-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.hours-row:last-child { border-bottom: none; }
.hours-row span:first-child { color: var(--text); font-weight: 600; }
.hours-row span:last-child { color: var(--grey); }

/* ── GALLERY / REVIEWS CTA ── */
.gallery-cta {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
}

.gallery-cta p { color: var(--grey); font-size: 0.98rem; max-width: 520px; margin: 0 auto 1.5rem; line-height: 1.6; }

/* ── QUOTE FORM ── */
.nps-form { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--teal); }

.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-success {
  background: #e7f8fb;
  border: 1px solid #b3e6ef;
  color: #0c6e80;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.form-error {
  background: #fdecea;
  border: 1px solid #f3c2bd;
  color: #a3291b;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.5;
  text-align: left;
}

/* ── EMERGENCY BANNER ── */
.emergency-banner {
  background: var(--navy2);
  color: #fff;
  text-align: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.emergency-banner a { color: #5CC8EE; font-weight: 800; }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.blog-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow 0.2s; background: var(--white); }
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.blog-card-img {
  background: var(--mid);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body { padding: 1.5rem; }

.blog-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
  display: block;
}

.bg-navy .blog-card-cat { color: var(--teal); }

.blog-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0 0 0.6rem; line-height: 1.4; }
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--teal); }
.blog-card p { font-size: 0.875rem; color: var(--grey); line-height: 1.6; margin: 0 0 1rem; }
.blog-card-meta { font-size: 0.8rem; color: #8CA0AC; }

/* ── SINGLE BLOG POST ── */
.nps-post { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; }

.nps-post h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.75px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.nps-post .entry-content { line-height: 1.8; font-size: 1.05rem; }
.nps-post .entry-content h2 { color: var(--navy); margin-top: 2.5rem; }
.nps-post .entry-content h3 { color: var(--navy); margin-top: 2rem; }

.post-cta-box {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 3rem;
  text-align: center;
}

.post-cta-box h3 { color: var(--white); margin: 0 0 0.5rem; }
.post-cta-box p { color: #AEC3D1; margin: 0 0 1.25rem; font-size: 0.9rem; }

/* ── FOOTER ── */
.nps-footer { background: #081726; color: #AEC3D1; padding: 3rem 1.5rem; }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .site-name { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; margin: 0; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #AEC3D1; font-size: 0.875rem; }
.footer-col ul li a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #1C3348;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .suburbs-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .trust-bar { gap: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
}
