/* ============================================
   Plumbers Newcastle - Main Stylesheet
   ============================================ */


:root {
  --navy: #0a1628;
  --blue: #1a3a6b;
  --steel: #2c5f8a;
  --sky: #4a9fd4;
  --gold: #d4891a;
  --amber: #f0a832;
  --white: #ffffff;
  --light: #f4f7fb;
  --muted: #8a9bb0;
  --text: #1e2d3d;
  --border: #dce6f0;
  --shadow: 0 4px 24px rgba(10,22,40,0.12);
  --shadow-lg: 0 12px 48px rgba(10,22,40,0.18);
  --radius: 6px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-weight: 400;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 500; }

p { margin-bottom: 1.2rem; font-size: 1.05rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--steel); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--light); }

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--navy);
  color: #a0b8d0;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--gold);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: #a0b8d0; }
.top-bar a:hover { color: var(--amber); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar span { display: flex; align-items: center; gap: 6px; }

/* ---- HEADER ---- */
header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(10,22,40,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 30px; height: 30px; fill: var(--amber); }
.logo-text { line-height: 1.15; }
.logo-text strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.logo-text span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-phone {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone svg { width: 20px; height: 20px; fill: var(--gold); }

/* ---- NAV ---- */
nav { background: var(--navy); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}
.nav-inner ul { display: flex; list-style: none; flex-wrap: wrap; }
.nav-inner ul li { position: relative; }
.nav-inner ul li a {
  display: block;
  color: #c5d8ea;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 14px 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-inner ul li a:hover,
.nav-inner ul li a.active { color: var(--amber); background: rgba(255,255,255,0.04); }
.nav-inner ul li.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
}
/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blue);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s;
  z-index: 100;
  border-top: 2px solid var(--gold);
}
.nav-inner ul li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  padding: 10px 18px;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--navy);
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.mobile-nav.open { max-height: 800px; }
.mobile-nav ul { list-style: none; padding: 10px 0 20px; }
.mobile-nav ul li a {
  display: block;
  color: #c5d8ea;
  padding: 11px 24px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav ul li a:hover { color: var(--amber); background: rgba(255,255,255,0.04); }
.mobile-nav .sub-links { padding-left: 16px; }
.mobile-nav .sub-links li a { font-size: 0.87rem; color: #8aaccc; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(26,58,107,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 20px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 16px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero p { color: #c5d8ea; font-size: 1.15rem; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-blue { background: var(--steel); color: var(--white); border-color: var(--steel); }
.btn-blue:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ---- TRUST BAR ---- */
.trust-bar { background: var(--steel); padding: 22px 0; }
.trust-bar .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--white); }
.trust-item svg { width: 24px; height: 24px; fill: var(--amber); flex-shrink: 0; }
.trust-item span { font-weight: 600; font-size: 0.92rem; }

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { max-width: 640px; margin: 0 auto; color: #556a80; font-size: 1.05rem; }
.divider {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 14px auto;
}

/* ---- SERVICE CARDS ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 56px; height: 56px; background: var(--light); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-icon svg { width: 28px; height: 28px; fill: var(--steel); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.93rem; color: #556a80; margin-bottom: 16px; }
.service-card a { font-size: 0.88rem; font-weight: 600; color: var(--steel); display: flex; align-items: center; gap: 5px; }
.service-card a:hover { color: var(--gold); }

/* ---- IMAGE GRID ---- */
.img-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.img-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.img-box { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.img-box-tall { aspect-ratio: 3/4; }

/* ---- CONTENT + SIDEBAR ---- */
.content-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
}
.sidebar-card h3 { color: var(--amber); font-size: 1.2rem; margin-bottom: 16px; }
.sidebar-card ul { list-style: none; }
.sidebar-card ul li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li::before { content: '✓'; color: var(--amber); font-weight: 700; flex-shrink: 0; }
.sidebar-phone { font-family: 'Oswald', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--amber); margin: 12px 0; display: block; }
.sidebar-card .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ---- BREADCRUMB ---- */
.breadcrumb { background: var(--light); padding: 12px 0; border-bottom: 1px solid var(--border); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; }
.breadcrumb ol li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb ol li::after { content: '/'; color: var(--border); }
.breadcrumb ol li:last-child::after { display: none; }
.breadcrumb ol li a { color: var(--steel); }
.breadcrumb ol li a:hover { color: var(--gold); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--navy);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  opacity: 0.95;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: #a0b8cf; font-size: 1.1rem; max-width: 620px; }
.page-hero .hero-badge { margin-bottom: 14px; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-q svg { width: 20px; height: 20px; fill: var(--steel); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding-top: 14px; color: #556a80; font-size: 0.97rem; }
.faq-item.open .faq-a { display: block; }

/* ---- TESTIMONIALS ---- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.review-stars { color: var(--amber); font-size: 1.1rem; margin-bottom: 12px; }
.review-text { font-style: italic; color: #445566; margin-bottom: 16px; font-size: 0.97rem; }
.review-author { font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.review-location { font-size: 0.82rem; color: var(--muted); }

/* ---- CONTACT FORM ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 400px; gap: 48px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--steel);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-message { padding: 14px 18px; border-radius: var(--radius); font-size: 0.95rem; margin-top: 12px; display: none; }
.form-message.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; display: block; }
.form-message.error { background: #fdecea; color: #c62828; border: 1px solid #f5a9a9; display: block; }
.privacy-note { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* ---- INFO BOXES ---- */
.info-box {
  background: var(--light);
  border-left: 4px solid var(--steel);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
  margin: 24px 0;
}
.info-box h4 { color: var(--navy); margin-bottom: 8px; }
.info-box p { font-size: 0.95rem; margin: 0; }
.warning-box { border-left-color: var(--gold); }
.warning-box h4 { color: var(--gold); }

/* ---- EMERGENCY BAND ---- */
.emergency-band {
  background: #b71c1c;
  color: var(--white);
  padding: 22px 0;
  text-align: center;
}
.emergency-band h2 { color: var(--white); margin-bottom: 6px; font-size: 1.6rem; }
.emergency-band p { color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.emergency-band a { color: #ffcc80; font-family: 'Oswald', sans-serif; font-size: 1.8rem; font-weight: 700; }

/* ---- FOOTER ---- */
footer { background: var(--navy); color: #8aacc0; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-family: 'Oswald', sans-serif; color: var(--amber); font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: #8aacc0; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--amber); }
.footer-about { font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.9rem; }
.footer-contact-item svg { width: 16px; height: 16px; fill: var(--amber); flex-shrink: 0; }
.footer-contact-item a { color: #8aacc0; }
.footer-contact-item a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
}
.footer-bottom a { color: #8aacc0; }
.footer-bottom a:hover { color: var(--amber); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- SCHEMA BADGES ---- */
.eeat-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.eeat-badge { display: flex; align-items: center; gap: 8px; background: var(--light); padding: 10px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--navy); border: 1px solid var(--border); }
.eeat-badge svg { width: 18px; height: 18px; fill: var(--steel); }

/* ---- TABLE ---- */
.styled-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.styled-table th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-family: 'Oswald', sans-serif; font-weight: 500; }
.styled-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.styled-table tr:last-child td { border-bottom: none; }
.styled-table tr:nth-child(even) td { background: var(--light); }

/* ---- LINKS PAGE ---- */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.link-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s;
}
.link-card:hover { box-shadow: var(--shadow); border-color: var(--steel); }
.link-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.link-card p { font-size: 0.9rem; color: #556a80; margin-bottom: 12px; }
.link-card a { font-size: 0.9rem; font-weight: 600; }

/* ---- SITEMAP PAGE ---- */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.sitemap-section h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.sitemap-section ul { list-style: none; }
.sitemap-section ul li { padding: 5px 0; }
.sitemap-section ul li a { font-size: 0.92rem; color: var(--steel); display: flex; align-items: center; gap: 6px; }
.sitemap-section ul li a::before { content: '→'; color: var(--gold); font-size: 0.8rem; }
.sitemap-section ul li a:hover { color: var(--gold); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .nav-inner { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .img-grid-2 { grid-template-columns: 1fr; }
  .img-grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .top-bar .container { justify-content: center; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
  .trust-bar .container { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .header-cta .btn { display: none; }
}
@media (max-width: 480px) {
  .img-grid-3 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
