/* ============================================
   CPBS – Complete Plumbing & Building Services
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --royal-blue: #1A5BB5;
  --deep-navy: #0D2B5E;
  --electric-blue: #3B9EE8;
  --steel-silver: #B8C4CC;
  --black: #111111;
  --white: #FFFFFF;
  --section-divider: 4px solid var(--royal-blue);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  color: var(--black);
  line-height: 1.6;
  background: var(--white);
}

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

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section Divider --- */
.section-divider {
  border: none;
  height: 4px;
  background: var(--royal-blue);
  margin: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--royal-blue);
  color: var(--white);
  border-color: var(--royal-blue);
}
.btn-primary:hover {
  background: #154a96;
  border-color: #154a96;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--deep-navy);
}

.btn-white {
  background: var(--white);
  color: var(--deep-navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--steel-silver);
  border-color: var(--steel-silver);
}

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

/* --- Sticky Nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--deep-navy);
  padding: 0 20px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo img {
  height: 55px;
  width: auto;
}

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

.nav-links a {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--electric-blue);
}

.nav-phone {
  color: var(--electric-blue) !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
}

.nav-cta {
  padding: 10px 22px !important;
  font-size: 0.9rem !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --- */
.hero {
  background: var(--deep-navy);
  color: var(--white);
  text-align: center;
  padding: 64px 20px 56px;
}

.hero-logo {
  height: 90px;
  width: auto;
  margin: 0 auto 28px;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--steel-silver);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.trust-badges {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--electric-blue);
  letter-spacing: 0.5px;
}

.trust-badge svg {
  width: 22px;
  height: 22px;
  fill: var(--electric-blue);
  flex-shrink: 0;
}

/* --- Services Grid --- */
.services-grid-section {
  background: var(--deep-navy);
  color: var(--white);
  padding: 64px 20px;
  text-align: center;
}

.services-grid-section h2 {
  margin-bottom: 40px;
}

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

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid transparent;
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  transition: border-top-color 0.25s, background 0.25s;
}
.service-card:hover {
  border-top-color: var(--royal-blue);
  background: rgba(255,255,255,0.07);
}

.service-card svg {
  width: 44px;
  height: 44px;
  fill: var(--electric-blue);
  margin-bottom: 16px;
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--white);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--steel-silver);
  line-height: 1.5;
}

/* --- Service Area --- */
.service-area {
  background: var(--deep-navy);
  color: var(--white);
  padding: 64px 20px;
  text-align: center;
}

.service-area h2 {
  margin-bottom: 16px;
}

.service-area > .container > p {
  color: var(--steel-silver);
  max-width: 640px;
  margin: 0 auto 28px;
}

.suburb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.suburb-pill {
  background: var(--royal-blue);
  color: var(--white);
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.service-area-note {
  color: var(--steel-silver);
  font-size: 0.95rem;
}
.service-area-note a {
  color: var(--electric-blue);
  font-weight: 600;
}

/* --- Why Choose Us --- */
.why-us {
  background: var(--white);
  padding: 64px 20px;
  text-align: center;
}

.why-us h2 {
  margin-bottom: 40px;
  color: var(--deep-navy);
}

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

.why-card {
  padding: 24px 16px;
}

.why-card svg {
  width: 40px;
  height: 40px;
  fill: var(--royal-blue);
  margin-bottom: 14px;
}

.why-card h3 {
  color: var(--deep-navy);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* --- CTA Strip --- */
.cta-strip {
  background: var(--royal-blue);
  color: var(--white);
  text-align: center;
  padding: 48px 20px;
}

.cta-strip h2 {
  margin-bottom: 10px;
}

.cta-strip p {
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-strip-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--deep-navy);
  color: var(--white);
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 90px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--steel-silver);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact h3,
.footer-nav h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--electric-blue);
}

.footer-contact p,
.footer-contact a {
  font-size: 0.9rem;
  color: var(--steel-silver);
  line-height: 1.8;
}
.footer-contact a:hover {
  color: var(--white);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  font-size: 0.9rem;
  color: var(--steel-silver);
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: var(--steel-silver);
  font-size: 0.8rem;
}

/* --- Page Header (internal pages) --- */
.page-header {
  background: var(--deep-navy);
  color: var(--white);
  text-align: center;
  padding: 48px 20px;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  color: var(--steel-silver);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Services Page Rows --- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.service-row:nth-child(even) .service-row-color {
  order: 2;
}

.service-row-color {
  background: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.service-row-color svg {
  width: 80px;
  height: 80px;
  fill: var(--white);
  opacity: 0.3;
}

.service-row-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-row-content h2 {
  color: var(--deep-navy);
  margin-bottom: 16px;
}

.service-row-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.service-row-content li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* --- About Page --- */
.about-section {
  padding: 56px 20px;
}

.about-section:nth-child(odd) {
  background: #f8f9fa;
}

.about-section h2 {
  color: var(--deep-navy);
  margin-bottom: 16px;
}

.about-section p {
  max-width: 800px;
  line-height: 1.7;
}

.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-two-col h3 {
  color: var(--deep-navy);
  margin-bottom: 10px;
}

.about-two-col p {
  line-height: 1.7;
}

.licensing-note {
  background: var(--deep-navy);
  color: var(--white);
  padding: 32px 20px;
  text-align: center;
}

.licensing-note p {
  color: var(--steel-silver);
  font-size: 0.95rem;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Contact Page --- */
.contact-section {
  padding: 56px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-details h2 {
  color: var(--deep-navy);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.contact-phone {
  display: inline-block;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--royal-blue);
  margin-bottom: 20px;
}

.contact-info-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: #444;
}

.contact-info-line svg {
  width: 20px;
  height: 20px;
  fill: var(--royal-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-line a {
  color: var(--royal-blue);
  font-weight: 600;
}

.contact-urgent {
  margin-top: 24px;
  padding: 16px 20px;
  background: #f0f5ff;
  border-left: 4px solid var(--royal-blue);
  border-radius: 4px;
  font-weight: 600;
  color: var(--deep-navy);
}

/* Form */
.quote-form h2 {
  color: var(--deep-navy);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(26,91,181,0.12);
}

.form-group textarea {
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
}

/* --- Thank You --- */
.thankyou-section {
  text-align: center;
  padding: 80px 20px;
}

.thankyou-section h1 {
  color: var(--deep-navy);
  margin-bottom: 16px;
}

.thankyou-section p {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: #555;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .service-row {
    grid-template-columns: 1fr;
  }
  .service-row:nth-child(even) .service-row-color {
    order: 0;
  }
  .service-row-color {
    min-height: 160px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--deep-navy);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: sticky;
  }
  .nav-inner {
    flex-wrap: wrap;
  }

  .hero {
    padding: 48px 20px 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand img {
    margin: 0 auto 16px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }
  .cta-strip-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-strip-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}
