/*
Theme Name: Quality Building Greenacre
Theme URI: https://example.com/
Author: Quality Building Group
Author URI: https://example.com/
Description: A one-page WordPress theme for a construction and building services business in Greenacre, Australia.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quality-building-greenacre
*/

:root {
  --qbg-blue-900: #062b57;
  --qbg-blue-800: #0a3b73;
  --qbg-blue-700: #0e5ba8;
  --qbg-blue-500: #1683d8;
  --qbg-blue-100: #eaf5ff;
  --qbg-ink: #142033;
  --qbg-muted: #5f6f84;
  --qbg-line: #d9e4ef;
  --qbg-white: #ffffff;
  --qbg-soft: #f6f9fc;
  --qbg-gold: #f6b23b;
  --qbg-shadow: 0 18px 42px rgba(10, 59, 115, 0.14);
  --qbg-radius: 8px;
  --qbg-max: 1160px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--qbg-ink);
  background: var(--qbg-white);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 228, 239, 0.85);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(100% - 32px, var(--qbg-max));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--qbg-blue-900);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--qbg-white);
  background: var(--qbg-blue-700);
  border-radius: var(--qbg-radius);
  box-shadow: 0 10px 24px rgba(14, 91, 168, 0.22);
}

.brand-mark.has-logo {
  width: 76px;
  height: 76px;
  padding: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.brand-name {
  display: block;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.brand-location {
  display: block;
  color: var(--qbg-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--qbg-blue-900);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--qbg-blue-700);
}

.nav-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--qbg-white);
  background: var(--qbg-blue-700);
  border-radius: var(--qbg-radius);
  box-shadow: 0 10px 22px rgba(14, 91, 168, 0.18);
}

.hero {
  color: var(--qbg-white);
  background:
    linear-gradient(100deg, rgba(6, 43, 87, 0.95) 0%, rgba(10, 59, 115, 0.88) 47%, rgba(14, 91, 168, 0.66) 100%),
    url("assets/construction-hero.svg") center/cover no-repeat;
}

.hero-inner {
  width: min(100% - 32px, var(--qbg-max));
  min-height: 560px;
  margin: 0 auto;
  padding: 78px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 42px;
}

.simple-hero {
  grid-template-columns: minmax(0, 780px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #cfe7ff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--qbg-gold);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: #e7f3ff;
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--qbg-radius);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--qbg-blue-900);
  background: var(--qbg-gold);
}

.button-secondary {
  color: var(--qbg-white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--qbg-radius);
  box-shadow: var(--qbg-shadow);
  overflow: hidden;
}

.hero-panel-head {
  padding: 24px;
  color: var(--qbg-blue-900);
  background: var(--qbg-white);
  border-bottom: 1px solid var(--qbg-line);
}

.hero-panel-head h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-panel-head p {
  margin: 8px 0 0;
  color: var(--qbg-muted);
}

.credential-list {
  margin: 0;
  padding: 12px 24px 22px;
  list-style: none;
  color: var(--qbg-ink);
}

.credential-list li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--qbg-line);
}

.credential-list li:last-child {
  border-bottom: 0;
}

.check {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--qbg-white);
  background: var(--qbg-blue-700);
  border-radius: 50%;
  font-size: 0.84rem;
  font-weight: 900;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--qbg-soft);
}

.section-inner {
  width: min(100% - 32px, var(--qbg-max));
  margin: 0 auto;
}

.section-header {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-header h2,
.contact-copy h2 {
  margin: 0;
  color: var(--qbg-blue-900);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-header p,
.contact-copy p {
  margin: 14px 0 0;
  color: var(--qbg-muted);
  font-size: 1.04rem;
}

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

.service-card {
  min-height: 118px;
  padding: 20px;
  background: var(--qbg-white);
  border: 1px solid var(--qbg-line);
  border-radius: var(--qbg-radius);
  box-shadow: 0 12px 30px rgba(20, 32, 51, 0.06);
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--qbg-white);
  background: var(--qbg-blue-700);
  border-radius: var(--qbg-radius);
}

.service-icon svg {
  width: 25px;
  height: 25px;
}

.service-card h3 {
  margin: 0;
  color: var(--qbg-blue-900);
  font-size: 1.25rem;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--qbg-muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: process;
}

.process-step {
  position: relative;
  min-height: 190px;
  padding: 24px;
  background: var(--qbg-white);
  border: 1px solid var(--qbg-line);
  border-radius: var(--qbg-radius);
}

.process-step::before {
  counter-increment: process;
  content: counter(process, decimal-leading-zero);
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--qbg-blue-700);
  font-weight: 900;
}

.process-step h3 {
  margin: 0 0 8px;
  color: var(--qbg-blue-900);
  font-size: 1.1rem;
}

.process-step p {
  margin: 0;
  color: var(--qbg-muted);
  font-size: 0.96rem;
}

.contact-section {
  color: var(--qbg-white);
  background: var(--qbg-blue-900);
}

.contact-wrap {
  width: min(100% - 32px, var(--qbg-max));
  margin: 0 auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 42px;
  align-items: start;
}

.contact-copy h2,
.contact-copy p {
  color: var(--qbg-white);
}

.contact-copy p {
  color: #cfe7ff;
}

.contact-card {
  padding: 26px;
  color: var(--qbg-ink);
  background: var(--qbg-white);
  border-radius: var(--qbg-radius);
  box-shadow: var(--qbg-shadow);
  font-style: normal;
}

.contact-row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--qbg-line);
}

.contact-row:first-child {
  padding-top: 0;
}

.contact-row:last-of-type {
  border-bottom: 0;
}

.contact-label {
  color: var(--qbg-muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-value {
  color: var(--qbg-blue-900);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.chat-button {
  width: 100%;
  margin-top: 18px;
  color: var(--qbg-white);
  background: #128c7e;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px 0 14px;
  color: var(--qbg-white);
  background: #128c7e;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(18, 140, 126, 0.34);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  background: #0f7d70;
  box-shadow: 0 20px 40px rgba(18, 140, 126, 0.42);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.site-footer {
  padding: 24px 16px;
  color: #cfe7ff;
  background: #041f40;
  text-align: center;
  font-size: 0.92rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .hero-inner,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    width: min(100% - 24px, var(--qbg-max));
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-mark.has-logo {
    width: 62px;
    height: 62px;
  }

  .hero-inner,
  .section-inner,
  .contact-wrap {
    width: min(100% - 24px, var(--qbg-max));
  }

  .hero-inner {
    min-height: 470px;
    padding: 54px 0;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-step {
    min-height: auto;
  }

  .contact-wrap {
    padding: 58px 0;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    padding: 0;
    width: 52px;
    justify-content: center;
  }

  .floating-whatsapp span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
