/* Perth Roof Replacement Guide — site styles */
:root {
  --navy: #1d2d44;
  --navy-deep: #131f33;
  --terracotta: #d95d39;
  --terracotta-dark: #b94a2c;
  --sand: #f8f6f1;
  --ink: #1f2630;
  --ink-soft: #5a6472;
  --line: #e7e1d6;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1120px;
  --font-head: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px rgba(20, 28, 45, 0.05), 0 2px 8px rgba(20, 28, 45, 0.05);
  --shadow-md: 0 4px 12px rgba(20, 28, 45, 0.08), 0 12px 32px rgba(20, 28, 45, 0.10);
  --shadow-btn: 0 6px 16px rgba(217, 93, 57, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--terracotta); }
nav.main { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
nav.main a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
nav.main a:hover { color: var(--navy); }
nav.main a.active { color: var(--navy); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(217, 93, 57, 0.4);
}
.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.btn.small { padding: 9px 18px; font-size: 0.88rem; box-shadow: none; }
.btn.small:hover { transform: none; box-shadow: var(--shadow-btn); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(217, 93, 57, 0.28), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(90, 130, 200, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e8edf5;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  max-width: 680px;
}
.hero p.lead {
  margin-top: 20px;
  font-size: 1.13rem;
  line-height: 1.75;
  color: #c6cfdd;
  max-width: 580px;
}
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .actions .btn.ghost { color: var(--white); border-color: rgba(255,255,255,0.45); }
.hero .actions .btn.ghost:hover { background: rgba(255,255,255,0.12); }
.hero-stats {
  margin-top: 44px;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 26px;
  max-width: 560px;
}
.hero-stats > div {
  flex: 1;
  min-width: 130px;
  padding-right: 20px;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
}
.hero-stats span { font-size: 0.85rem; color: #9fabbe; }

/* Sections */
section.band { padding: 76px 0; }
section.band.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 10px;
}
h2.section {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 10px;
}
p.section-sub { color: var(--ink-soft); max-width: 640px; margin-bottom: 40px; font-size: 1.02rem; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
section.band.alt .card { background: var(--sand); }
.card h3 {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.4;
}
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(217, 93, 57, 0.3);
}
.card a.more { font-weight: 600; font-size: 0.92rem; }

/* Blog cards */
.card.post { display: flex; flex-direction: column; gap: 10px; }
.card.post .tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta-dark);
  background: rgba(217, 93, 57, 0.1);
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
}
.card.post h3 a { color: var(--navy); text-decoration: none; }
.card.post h3 a:hover { color: var(--terracotta-dark); }

/* FAQ */
details.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
details.faq summary {
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.98rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--terracotta);
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { content: "−"; }
details.faq p { margin-top: 12px; color: var(--ink-soft); font-size: 0.96rem; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(217, 93, 57, 0.3), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
  padding: 76px 0;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-band p { color: #c6cfdd; margin-bottom: 30px; }

/* Forms */
form.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  max-width: 680px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) { form.lead-form { padding: 26px 20px; } }
form.lead-form fieldset { border: none; margin-bottom: 8px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 7px; font-size: 0.93rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.84rem; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d6cfc1;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(217, 93, 57, 0.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* Article */
article.post-body { max-width: 720px; }
article.post-body h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 12px;
}
article.post-body .meta { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 34px; }
article.post-body h2 {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 42px 0 14px;
}
article.post-body h3 {
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 30px 0 10px;
}
article.post-body p { margin-bottom: 17px; }
article.post-body ul, article.post-body ol { margin: 0 0 17px 24px; }
article.post-body li { margin-bottom: 7px; }
article.post-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: var(--white);
  font-size: 0.94rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
article.post-body th, article.post-body td {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
}
article.post-body tr:last-child td { border-bottom: none; }
article.post-body th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; }
article.post-body tr:nth-child(even) td { background: var(--sand); }
.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}
.callout strong { color: var(--navy); }

/* Footer */
footer.site {
  background: var(--navy-deep);
  color: #9fabbe;
  padding: 56px 0 34px;
  margin-top: 0;
  font-size: 0.92rem;
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
@media (max-width: 700px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 { color: var(--white); margin-bottom: 12px; font-size: 0.98rem; font-weight: 700; }
footer.site a { color: #c6cfdd; text-decoration: none; display: block; margin-bottom: 8px; transition: color 0.15s ease; }
footer.site a:hover { color: var(--white); }
footer.site .fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; }

/* Page header (inner pages) */
.page-head {
  background:
    radial-gradient(600px 240px at 90% -30%, rgba(217, 93, 57, 0.1), transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 46px;
}
.page-head h1 {
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-head p { color: var(--ink-soft); margin-top: 10px; max-width: 640px; }

.content-pad { padding: 52px 0 76px; }

/* Utility */
.center { text-align: center; }
.mt-2 { margin-top: 22px; }
