/* =========================================================================
   sydneyroofers.com — styles
   Palette: deep slate/navy + terracotta/amber accent (roofing feel)
   ========================================================================= */

:root {
  --navy: #0f1f33;
  --navy-2: #16283f;
  --slate: #64748b;
  --ink: #1e293b;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e6ebf2;
  --amber: #f59e0b;
  --terracotta: #ea580c;
  --green: #16a34a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 31, 51, .06), 0 8px 24px -12px rgba(15, 31, 51, .18);
  --shadow-lg: 0 12px 40px -12px rgba(15, 31, 51, .28);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Manrope", "Inter", sans-serif; line-height: 1.2; color: var(--navy); margin: 0 0 .5rem; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--slate); }
.small { font-size: .85rem; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 31, 51, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-family: "Manrope", sans-serif; font-size: 1.2rem; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--terracotta));
  color: #fff; font-size: 1.1rem; font-weight: 900;
}
.brand span em { color: var(--amber); font-style: normal; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: #cbd5e1; padding: 8px 14px; border-radius: 9px; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta {
  background: var(--amber); color: var(--navy) !important; font-weight: 700;
  border-radius: 9px; padding: 9px 16px; white-space: nowrap;
}
.nav-cta:hover { background: #fbbf24; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ------------------------------------------------------------------ hero */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(245,158,11,.22), transparent 60%),
    radial-gradient(900px 400px at 10% 110%, rgba(234,88,12,.18), transparent 60%),
    var(--navy);
  color: #e2e8f0; padding: 72px 0 60px; position: relative; overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; max-width: 720px; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero .sub { font-size: 1.15rem; max-width: 620px; margin-top: 14px; color: #cbd5e1; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.stat {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 10px 16px; display: flex; align-items: center; gap: 10px;
}
.stat b { color: #fff; font-size: 1.25rem; font-family: "Manrope", sans-serif; }
.stat span { font-size: .8rem; color: #94a3b8; }
.search-panel {
  margin-top: 30px; background: #fff; border-radius: var(--radius); padding: 14px;
  display: flex; gap: 10px; flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.search-panel input, .search-panel select {
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font-size: 1rem;
  font-family: inherit; color: var(--ink); outline: none; background: #fbfcfe;
}
.search-panel input { flex: 1 1 260px; }
.search-panel select { flex: 0 1 200px; }
.search-panel input:focus, .search-panel select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.search-btn {
  background: var(--terracotta); color: #fff; border: 0; border-radius: 10px; padding: 13px 24px;
  font-size: 1rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.search-btn:hover { background: #c2410c; }

/* ------------------------------------------------------------------ ad slots */
.ad-slot {
  text-align: center; background: #f1f5f9; border: 1px dashed #cbd5e1; border-radius: 12px;
  padding: 12px; min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.ad-slot .ad-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #94a3b8; }
.ad-slot ins { display: block; }
.ad-leaderboard { min-height: 110px; }
.ad-mpu { min-height: 250px; }
.ad-native { min-height: 120px; margin: 0; }

/* ------------------------------------------------------------------ sections */
section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.kicker { color: var(--terracotta); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.link-more { color: var(--terracotta); font-weight: 600; font-size: .95rem; }

/* ------------------------------------------------------------------ listing cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #fcd9a8; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card .avatar {
  width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff; font-weight: 800; font-size: 1.1rem; font-family: "Manrope", sans-serif;
}
.card h3 { font-size: 1.12rem; font-weight: 700; }
.card h3 a:hover { color: var(--terracotta); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em;
}
.badge.featured { background: #fef3c7; color: #92400e; }
.badge.verified { background: #dcfce7; color: #166534; }
.badge.score { background: #eef2ff; color: #4338ca; }
.rating { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); }
.stars { color: var(--amber); letter-spacing: 1px; }
.meta { font-size: .88rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.meta .loc { font-weight: 600; color: var(--ink); }
.services { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .78rem; background: #f1f5f9; border: 1px solid var(--line); color: #475569; padding: 3px 10px; border-radius: 999px; }
.card p.blurb { font-size: .9rem; color: var(--slate); margin: 0; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: .92rem; cursor: pointer; border: 1px solid transparent;
  font-family: inherit; text-align: center;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: #c2410c; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #fbbf24; }

/* ------------------------------------------------------------------ regions */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.region-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); transition: transform .15s ease;
}
.region-card:hover { transform: translateY(-2px); border-color: #fcd9a8; }
.region-card .ic { width: 40px; height: 40px; border-radius: 10px; background: #fff7ed; color: var(--terracotta); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.region-card b { display: block; color: var(--navy); }
.region-card span { font-size: .82rem; color: var(--slate); }

/* ------------------------------------------------------------------ how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step .num { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--amber); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .92rem; color: var(--slate); margin: 0; }

/* ------------------------------------------------------------------ cta band */
.cta-band {
  background: linear-gradient(135deg, var(--navy), #1e3a5f);
  color: #e2e8f0; border-radius: 20px; padding: 44px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { max-width: 560px; margin: 10px auto 24px; color: #cbd5e1; }

/* ------------------------------------------------------------------ FAQ */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 18px 20px; font-weight: 700; cursor: pointer; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--terracotta); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .a { padding: 0 20px 18px; color: var(--slate); font-size: .95rem; }

/* ------------------------------------------------------------------ detail page */
.crumb { font-size: .85rem; color: var(--slate); padding: 18px 0 0; }
.crumb a { color: var(--terracotta); }
.detail-head { background: var(--navy); color: #e2e8f0; padding: 44px 0 56px; position: relative; overflow: hidden; }
.detail-head h1 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.detail-head .meta { color: #cbd5e1; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-top: -28px; position: relative; }
.profile-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 28px; position: relative; z-index: 2;
}
.side-col { display: flex; flex-direction: column; gap: 18px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; position: relative; z-index: 2; }
.contact-card .row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .row .ic { color: var(--terracotta); }
.big-stars { font-size: 1.5rem; color: var(--amber); letter-spacing: 2px; }
.score-ring { display: inline-flex; align-items: center; gap: 10px; }
.score-ring .ring { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-family: "Manrope", sans-serif; font-size: 1.1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-block h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); margin: 0 0 10px; }
.info-block ul { margin: 0; padding: 0; list-style: none; }
.info-block li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.info-block li:last-child { border-bottom: 0; }
.info-block li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ------------------------------------------------------------------ footer */
footer { background: var(--navy); color: #94a3b8; padding: 56px 0 32px; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
footer a { display: block; color: #94a3b8; padding: 4px 0; font-size: .92rem; }
footer a:hover { color: var(--amber); }
.footer-brand { color: #fff; font-weight: 800; font-family: "Manrope", sans-serif; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .logo { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--amber), var(--terracotta)); display: grid; place-items: center; color: #fff; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* ------------------------------------------------------------------ prose (blog articles) */
.prose { font-size: 1.06rem; color: #334155; line-height: 1.75; }
.prose h2 { font-size: 1.35rem; margin: 1.7em 0 .5em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--navy); }
.prose a { color: var(--terracotta); font-weight: 600; }
.prose .btn { display: inline-flex; margin-top: 4px; }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 13px 22px; border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 100; font-size: .95rem; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .search-panel { flex-direction: column; }
  .search-panel input, .search-panel select, .search-btn { width: 100%; flex: none; }
  .hero { padding: 48px 0 44px; }
  section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 20px; }
}
