/* RA Roofing — Brisbane. Clean tradie site. Mobile-first. */
:root {
  --navy: #1a2b3c;
  --navy-dark: #0f1a24;
  --blue: #2a5a8a;
  --blue-light: #3d7ab5;
  --orange: #d97706;
  --orange-hover: #b45309;
  --cream: #f7f5f2;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --border: #e5e7eb;
  --ok: #15803d;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(15, 26, 36, 0.1);
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--white); }
.logo span { color: var(--orange); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

.nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0 1rem;
  width: 100%;
}
.nav.open { display: flex; }
.nav a {
  color: rgba(255,255,255,0.92);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}

.header-cta {
  display: none;
  background: var(--orange);
  color: var(--white) !important;
  font-weight: 700;
  padding: 0.55rem 1rem !important;
  border-radius: 6px;
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--orange-hover) !important;
  text-decoration: none !important;
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    gap: 0.15rem;
  }
  .header-cta { display: inline-block; }
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--navy-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15,26,36,0.92) 0%, rgba(15,26,36,0.55) 70%, rgba(15,26,36,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 3rem;
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.92);
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-badge {
  display: inline-block;
  background: rgba(217,119,6,0.25);
  border: 1px solid rgba(217,119,6,0.55);
  color: #fcd34d;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p, .section-navy li { color: rgba(255,255,255,0.88); }

.section-head { margin-bottom: 2rem; max-width: 40em; }
.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Cards / grids */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.card p { color: var(--muted); font-size: 0.98rem; flex: 1; margin-bottom: 1rem; }
.card .link-more {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.95rem;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fef3c7;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
}
.feature h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.25rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Areas chips */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.area-chip {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3rem 0;
}
.cta-band h2 { margin-bottom: 0.75rem; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.cta-band p { margin-bottom: 1.5rem; max-width: 36em; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.phone-note {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}
.phone-soon {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.75rem 0 2.5rem;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.page-hero p { color: rgba(255,255,255,0.88); max-width: 40em; font-size: 1.05rem; }

/* Service detail blocks */
.service-block {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-block img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}
.service-block h2 { color: var(--navy); font-size: 1.45rem; margin-bottom: 0.6rem; }
.service-block p { color: var(--muted); margin-bottom: 0.75rem; }
.service-block ul { margin: 0.5rem 0 1rem; }
.service-block li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.service-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 800;
}
@media (min-width: 760px) {
  .service-block { grid-template-columns: 1fr 1.2fr; }
  .service-block.reverse { grid-template-columns: 1.2fr 1fr; }
  .service-block.reverse img { order: 2; }
  .service-block img { height: 280px; }
}

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; max-width: 800px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a {
  padding: 0 1.2rem 1.15rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}

/* Form */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: var(--cream);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--blue-light);
  outline-offset: 1px;
  background: var(--white);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
.contact-side {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-side h2 { color: var(--white); margin-bottom: 0.75rem; font-size: 1.3rem; }
.contact-side p { color: rgba(255,255,255,0.88); margin-bottom: 1rem; }
.contact-side .info-row {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.contact-side .info-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-side strong { display: block; margin-bottom: 0.2rem; color: #fcd34d; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

@media (min-width: 800px) {
  .contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.75rem; align-items: start; }
}

/* About */
.prose { max-width: 42em; }
.prose p { margin-bottom: 1rem; color: var(--muted); }
.prose h2 { color: var(--navy); margin: 1.75rem 0 0.75rem; font-size: 1.35rem; }
.prose ul { margin: 0.5rem 0 1.25rem; }
.prose li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.prose li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--orange);
  font-weight: 800;
}

.split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.split img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 760px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split img { height: 360px; }
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 2.75rem 0 1.5rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--white); }
.site-footer ul li { margin-bottom: 0.4rem; }
.footer-brand { font-weight: 800; font-size: 1.15rem; color: var(--white); margin-bottom: 0.5rem; }
.footer-brand span { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.mt-1 { margin-top: 0.75rem; }
.mb-1 { margin-bottom: 0.75rem; }
.text-center { text-align: center; }
