/*
Theme Name: Western Sydney Concreters
Theme URI: https://www.westernsydneyconcreters.com/
Author: Western Sydney Concreters
Description: Custom theme built for the WSC WordPress migration. Staged build, not yet deployed to live hosting.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: wsc
*/

:root {
  --charcoal: #191b1e;
  --charcoal-soft: #2a2d31;
  --concrete-50: #f6f5f3;
  --concrete-100: #ece9e4;
  --concrete-200: #d9d4cc;
  --concrete-500: #8a8478;
  --concrete-700: #514c43;
  --amber: #e2790f;
  --amber-dark: #b85e08;
  --white: #ffffff;
  --ok-green: #2f7a4f;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(25,27,30,0.06), 0 1px 1px rgba(25,27,30,0.04);
  --shadow-md: 0 8px 24px rgba(25,27,30,0.10);
  --max-w: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p { margin: 0 0 16px; color: var(--charcoal-soft); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.78rem; font-weight: 700; color: var(--amber-dark);
  background: #fbe8d2; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 8px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-secondary { background: var(--white); color: var(--charcoal); border-color: var(--concrete-200); }
.btn-secondary:hover { border-color: var(--charcoal); }
.btn-block { width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--concrete-100);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; }
.logo span { color: var(--amber-dark); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 0.95rem; }
.nav-links a { text-decoration: none; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone svg { flex: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .header-phone span.label { display: none; }
}

.hero { position: relative; overflow: hidden; background: var(--charcoal); color: var(--white); padding: 72px 0 96px; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero p.lead { color: #d7d3ca; font-size: 1.1rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 30px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 18px 28px; padding: 0; margin: 0; list-style: none; }
.trust-strip li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: #e8e5df; font-weight: 600; }
.trust-strip svg { flex: none; color: var(--amber); }
.hero-visual {
  aspect-ratio: 4/3; border-radius: var(--radius); background:
    linear-gradient(160deg, #3a3d41 0%, #26282b 55%, #1c1e21 100%);
  position: relative; box-shadow: var(--shadow-md); overflow: hidden;
  display: flex; align-items: flex-end; padding: 18px;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: overlay;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.5) 0, transparent 2%),
    radial-gradient(circle at 70% 55%, rgba(255,255,255,0.4) 0, transparent 1.6%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.4) 0, transparent 1.8%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.35) 0, transparent 1.4%),
    radial-gradient(circle at 10% 65%, rgba(255,255,255,0.35) 0, transparent 1.5%);
  background-size: 40px 40px;
}
.hero-visual .tag { position: relative; z-index: 1; background: rgba(20,21,23,0.65); color: #cfd0d2; font-size: 0.78rem; padding: 8px 12px; border-radius: 6px; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

.problem { background: var(--concrete-50); }
.problem .container { max-width: 780px; text-align: left; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.service-card {
  border: 1px solid var(--concrete-100); border-radius: var(--radius); padding: 24px;
  background: var(--white); box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
  display: block; text-decoration: none; color: inherit;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-icon {
  width: 42px; height: 42px; border-radius: 8px; background: #fbe8d2; color: var(--amber-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.3rem;
}
.service-card p { margin-bottom: 0; font-size: 0.95rem; }

.steps { background: var(--charcoal); color: var(--white); }
.steps h2 { color: var(--white); }
.steps-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-top: 36px; counter-reset: step; }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--amber); color: var(--charcoal); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step h3 { color: var(--white); font-size: 1.02rem; }
.step p { color: #c7c4bd; font-size: 0.92rem; margin-bottom: 0; }

.areas { text-align: center; }
.areas .container { max-width: 760px; }
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0; }
.area-chips span { background: var(--concrete-100); padding: 8px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; }

.cost { background: var(--concrete-50); }
.cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; }
.cost-factor { background: var(--white); border: 1px solid var(--concrete-100); border-radius: var(--radius); padding: 18px; }
.cost-factor strong { display: block; margin-bottom: 6px; }
.cost-factor p { font-size: 0.9rem; margin-bottom: 0; }
.cost-cta { background: var(--charcoal); color: var(--white); border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cost-cta p { color: #d7d3ca; margin: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 28px; }
.gallery-tile {
  aspect-ratio: 4/3; border-radius: 8px; margin: 0; position: relative; overflow: hidden;
  background: var(--concrete-100);
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
figure.gallery-tile span {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 20px 10px 10px;
  background: linear-gradient(to top, rgba(20,21,23,0.85), rgba(20,21,23,0));
  color: var(--white); font-size: 0.78rem; font-weight: 600; text-align: center;
}

.faq-list { max-width: 780px; margin-top: 28px; }
.faq-item { border-bottom: 1px solid var(--concrete-100); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--amber-dark); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding-bottom: 18px; color: var(--charcoal-soft); font-size: 0.95rem; }

.quote { background: var(--charcoal); color: var(--white); }
.quote .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.quote h2 { color: var(--white); }
.quote p.lead { color: #d7d3ca; }
.quote-benefits { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.quote-benefits li { display: flex; gap: 10px; font-size: 0.94rem; color: #e8e5df; }
.quote-benefits svg { color: var(--amber); flex: none; }
.form-card { background: var(--white); color: var(--charcoal); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-md); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.form-row input, .form-row select {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--concrete-200);
  font-size: 0.96rem; font-family: var(--font); background: var(--white);
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--amber); }
.consent { font-size: 0.78rem; color: var(--concrete-500); margin: 14px 0 18px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
@media (max-width: 900px) { .quote .container { grid-template-columns: 1fr; } }

.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none;
  grid-template-columns: 1fr 1fr; height: 60px; box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.call-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; text-decoration: none; font-size: 0.98rem; }
.call-bar .call { background: var(--charcoal); color: var(--white); }
.call-bar .quote-link { background: var(--amber); color: var(--white); }
@media (max-width: 768px) {
  .call-bar { display: grid; }
  body { padding-bottom: 60px; }
}

footer.site-footer { background: #101214; color: #d7d9dc; padding: 48px 0 90px; font-size: 0.88rem; }
footer.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer.site-footer p { color: #d7d9dc; }
footer.site-footer a { text-decoration: none; color: #d7d9dc; }
footer.site-footer a:hover { color: var(--amber); text-decoration: underline; }
footer.site-footer .foot-brand { color: var(--white); font-weight: 800; margin-bottom: 8px; }
@media (max-width: 768px) { footer.site-footer { padding-bottom: 90px; } }

.ty-hero { background: var(--concrete-50); text-align: center; padding: 72px 0 48px; }
.ty-check { width: 64px; height: 64px; border-radius: 50%; background: #e3f2e8; color: var(--ok-green); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.ty-next { max-width: 640px; margin: 0 auto; background: var(--white); border: 1px solid var(--concrete-100); border-radius: var(--radius); padding: 22px 26px; text-align: left; }
.error-banner { background:#fdecea; border:1px solid #f3c2bb; color:#8a2c1f; border-radius:8px; padding:14px 16px; margin-bottom:18px; font-size:0.9rem; }

/* ===== Layout grid: content column + floating quote sidebar ===== */
.layout-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; padding-top: 48px; }
.content-col { min-width: 0; }
.content-col > section { padding: 48px 0; }
.content-col > section:first-child { padding-top: 0; }

/* Sections that were full-bleed bands become bounded cards inside the content column */
.content-col .problem,
.content-col .steps,
.content-col .cost {
  border-radius: calc(var(--radius) + 6px);
  padding: 40px 32px;
}
.content-col .problem { background: var(--concrete-50); }
.content-col .steps { background: var(--charcoal); }
.content-col .cost { background: var(--concrete-50); }
.content-col .problem .container,
.content-col .steps .container,
.content-col .cost .container { padding: 0; max-width: none; }

@media (min-width: 1100px) {
  .layout-grid { grid-template-columns: 1fr 340px; gap: 40px; }
}

/* Floating quote form, sticky sidebar on desktop, normal in-flow card on mobile/tablet */
.floating-quote {
  background: var(--white); border: 1px solid var(--concrete-100); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 22px; max-width: 480px; margin: 0 auto;
}
.fq-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.fq-header h2 { font-size: 1.3rem; margin-bottom: 4px; }
.fq-toggle {
  display: none; border: none; background: var(--concrete-100); color: var(--charcoal);
  width: 28px; height: 28px; border-radius: 50%; font-size: 1rem; font-weight: 800; cursor: pointer; flex: none;
}
.fq-benefits { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; gap: 8px; }
.fq-benefits li { display: flex; gap: 8px; font-size: 0.85rem; color: var(--charcoal-soft); }
.fq-benefits svg { color: var(--amber); flex: none; }

@media (min-width: 1100px) {
  .floating-quote {
    position: sticky; top: 92px; max-width: none; margin: 0;
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .fq-toggle { display: flex; align-items: center; justify-content: center; }
  .floating-quote.collapsed .fq-body { display: none; }
  .floating-quote.collapsed { padding-bottom: 14px; }
}

/* Hero + gallery illustrations (flat-style graphics, not photos, real or stock; see README) */
.hero-visual { padding: 0; }
.hero-illustration { width: 100%; height: 100%; display: block; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.illustration-note {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  background: rgba(20,21,23,0.65); color: #cfd0d2; font-size: 0.7rem; padding: 6px 10px; border-radius: 6px;
}
.gallery-tile.illustrated {
  background: var(--concrete-50); border: 1px solid var(--concrete-100); border-style: solid;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px;
}
.gallery-tile.illustrated svg { width: 56px; height: 56px; }
.gallery-tile.illustrated span { font-size: 0.76rem; color: var(--concrete-700); font-weight: 600; text-align: center; }

/* Suburb landing page service list */
.suburb-services { list-style: none; padding: 0; display: grid; gap: 14px; }
.suburb-services li { padding-left: 18px; position: relative; line-height: 1.6; }
.suburb-services li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; background: var(--amber); border-radius: 2px; }
