/* ============================================================
   Shared CSS — Adelaide Lead Generation Sites
   Mobile-first, fast, no frameworks, < 15KB gzipped
   Palette: Trust blue #1a56db, Dark #1e293b, Light #f8fafc
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1a56db;
  --blue-dark: #1e429f;
  --blue-light: #e8f0fe;
  --green: #057a55;
  --green-light: #e6f4ea;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --red: #dc2626;
  --yellow: #f59e0b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1100px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: var(--gray-900); }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.3rem); }

p { margin-bottom: 1rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  line-height: 1.2;
}
.logo span { color: var(--blue); display: block; font-size: 0.75rem; font-weight: 400; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.header-phone:hover { background: #046c47; text-decoration: none; color: var(--white); }
.header-phone svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 3rem 1rem;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.hero .disclosure {
  font-size: 0.8rem;
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

.hero-cta {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.hero-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); text-decoration: none; }

/* --- Sections --- */
.section {
  padding: 3rem 1rem;
}

.section-alt {
  background: var(--gray-50);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-card a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--gray-600); font-size: 0.95rem; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1rem;
}

.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; }

.cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}
.cta-button:hover { transform: translateY(-1px); text-decoration: none; }

/* --- Suburb Grid --- */
.suburb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.suburb-link {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--gray-700);
}

.suburb-link:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

/* --- Contact Form --- */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: #046c47; }

.form-disclosure {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  text-align: center;
  font-style: italic;
}

/* --- FAQ Accordion (pure CSS) --- */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  display: block;
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--gray-800);
  position: relative;
  user-select: none;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--gray-50); }

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gray-400);
  transition: transform 0.2s;
}

.faq-item input[type="checkbox"] { display: none; }

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1rem;
}

.faq-item input[type="checkbox"]:checked ~ .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Content Pages --- */
.content-page {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.content-page h1 { margin-bottom: 1.5rem; }
.content-page h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content-page h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content-page ul, .content-page ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content-page li { margin-bottom: 0.35rem; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem 0;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span { color: var(--gray-700); }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--gray-50);
  padding: 1.5rem 1rem;
  text-align: center;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}

.trust-icon {
  width: 24px;
  height: 24px;
  color: var(--green);
}

/* --- Footer --- */
.site-footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-col a {
  color: var(--gray-300);
  display: block;
  margin-bottom: 0.35rem;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-700);
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* --- Disclosures --- */
.disclosure-banner {
  background: var(--yellow);
  color: var(--gray-900);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* --- Thank You Page --- */
.thank-you {
  text-align: center;
  padding: 4rem 1rem;
}

.thank-you h1 { color: var(--green); margin-bottom: 1rem; }

.thank-you p { color: var(--gray-600); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

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

/* --- Mobile Nav --- */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-700); padding: 0.25rem; }

.main-nav { display: flex; gap: 1.25rem; align-items: center; }

.main-nav a {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

.main-nav a:hover { color: var(--blue); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }

  .main-nav.active { display: flex; }

  .nav-toggle { display: block; }

  .trust-items { gap: 1rem; }

  .hero { padding: 2rem 1rem; }

  .section { padding: 2rem 1rem; }

  .contact-form-wrapper { padding: 1.5rem; }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .cta-banner, .disclosure-banner, .nav-toggle { display: none; }
  body { font-size: 12pt; }
}