/* Minimal fallback rules for every class in the shared contract.
 *
 * Always prepended to the model-generated stylesheet, which overrides it via the normal
 * later-wins cascade. This exists because the stylesheet and the pages are generated by
 * separate model calls, so the stylesheet can omit a contract class -- which used to fail
 * the whole build (a real business, find-dog, died on a missing `btn-primary`). With this
 * in place a missed rule degrades to plain-but-styled instead of destroying the build.
 *
 * Keep these deliberately neutral and low-specificity: they are a safety net, not a design.
 */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.site-header { padding: 1rem 0; }
.header-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; }
.logo-text { font-weight: 700; }
.is-current { font-weight: 700; }

.hero, .page-hero { padding: 3rem 0; }
.hero-inner { display: flex; flex-direction: column; gap: 1rem; }
.hero-title { margin: 0; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; }
.hero-subtitle { margin: 0; font-size: 1.125rem; }

.section { padding: 3rem 0; }
.section-alt { padding: 3rem 0; }
.section-title { margin: 0 0 1rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.section-intro { margin: 0 0 1.5rem; max-width: 60ch; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { padding: 1.25rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: .5rem; }
.card-title { margin: 0 0 .5rem; font-size: 1.125rem; }
.card-text { margin: 0; }

.steps { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-number { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid currentColor; font-weight: 700; }
.step-title { margin: 0 0 .25rem; font-size: 1.05rem; }
.step-text { margin: 0; }

.faq-list { display: grid; gap: 1rem; margin: 0; padding: 0; }
.faq-item { padding: 1rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: .5rem; }
.faq-question { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; }
.faq-answer { margin: 0; }

.cta-band { padding: 3rem 0; text-align: center; }
.cta-title { margin: 0 0 .5rem; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.cta-text { margin: 0 0 1.25rem; }

.btn { display: inline-block; padding: .7rem 1.4rem; border-radius: .4rem; text-decoration: none;
  border: 1px solid currentColor; cursor: pointer; }
.btn:hover, .btn:focus { opacity: .85; }
.btn-primary { font-weight: 600; }
.btn-secondary { font-weight: 500; background: transparent; }

.contact-list { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.contact-item { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-label { font-weight: 600; }
.contact-value { }

.site-footer { padding: 2rem 0; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.footer-col { }
.footer-title { margin: 0 0 .5rem; font-size: 1rem; }
.footer-note { margin: 0; font-size: .9rem; }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .step { flex-direction: column; }
}

/* ---- generated ---- */
:root {
  /* Colour palette */
  --bg-cream: #FAF8F0;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --text-muted: #666666;
  --accent: #8B0000;          /* deep red / burgundy */
  --accent-dark: #5A0000;
  --section-alt-bg: #F5F5F0;
  --card-bg: #FFFFFF;
  --border-light: #DDDDDD;
  --footer-bg: #2E2E2E;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);

  /* Typography */
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Global reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Header */
.site-header {
  background-color: lightgray;
  color: var(--text-light);
  padding: var(--space-4) 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: var(--font-serif);
}

/* Hero */
.hero,
.page-hero {
  background: linear-gradient(135deg, lightgray, lightgray);
  color: var(--text-light);
  text-align: center;
  padding: var(--space-8) var(--space-3);
}
.hero-inner,
.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.hero-title,
.page-hero-title {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  margin: 0 0 var(--space-2);
}
.hero-subtitle,
.page-hero-subtitle {
  font-size: 1.25rem;
  margin: 0 0 var(--space-3);
}

/* Sections */
.section {
  padding: var(--space-6) 0;
}
.section-alt {
  background-color: var(--section-alt-bg);
}
.section-title {
  font-size: 2rem;
  font-family: var(--font-serif);
  text-align: center;
  margin: 0 0 var(--space-3);
}
.section-intro {
  max-width: 800px;
  margin: 0 auto var(--space-5);
  text-align: center;
  color: var(--text-muted);
}

/* Cards */
.card-grid {
  display: grid;
  gap: var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-title {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  margin: 0 0 var(--space-2);
}
.card-text {
  flex-grow: 1;
  margin: 0;
}

/* Process steps */
.steps {
  display: grid;
  gap: var(--space-4);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.step {
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: lightgray;
  color: var(--text-light);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: var(--space-2);
}
.step-title {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  margin: 0 0 var(--space-1);
}
.step-text {
  margin: 0;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto var(--space-5);
}
.faq-item {
  border-top: 1px solid var(--border-light);
  padding: var(--space-3) 0;
}
.faq-item:first-child {
  border-top: none;
}
.faq-question {
  margin: 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-question::after {
  content: "▾";
  transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: var(--space-2);
  color: var(--text-muted);
}
.faq-item[open] .faq-answer {
  max-height: 200px;
}

/* Call to action */
.cta-band {
  background-color: lightgray;
  color: var(--text-light);
  text-align: center;
  padding: var(--space-6) 0;
}
.cta-title {
  font-size: 2rem;
  font-family: var(--font-serif);
  margin: 0 0 var(--space-2);
}
.cta-text {
  max-width: 800px;
  margin: 0 auto;
}

/* Buttons / links */
.btn {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  background-color: lightgray;
  color: var(--text-light);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background-color 0.2s;
}
.btn:hover,
.btn:focus {
  background-color: lightgray;
}
.btn-secondary {
  background-color: var(--bg-cream);
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: lightgray;
  color: var(--text-light);
}

/* Contact details */
.contact-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}
.contact-item {
  display: flex;
  align-items: flex-start;
}
.contact-label {
  font-weight: 600;
  min-width: 80px;
}
.contact-value {
  margin: 0;
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--text-light);
  padding: var(--space-5) 0;
}
.footer-inner {
  display: grid;
  gap: var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-title {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  margin: 0 0 var(--space-2);
}
.footer-note {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
}
@media (max-width: 768px) {
  .hero-title,
  .page-hero-title {
    font-size: 2rem;
  }
  .hero-subtitle,
  .page-hero-subtitle {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .cta-title {
    font-size: 1.75rem;
  }
}
@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
  .card-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}