/* 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; }

/* Owner-uploaded pictures. Without explicit sizing an <img> renders at its natural size,
 * so a phone photo used as a logo would fill the whole header. */
.logo-mark { height: 2.5rem; width: auto; object-fit: contain; }
.hero-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: .5rem; }
.gallery-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem; }
.about-image { width: 100%; max-width: 420px; border-radius: .5rem; }

.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; }
.main-nav { display: block; }
.nav-list { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav-link { text-decoration: none; }
.nav-link:hover, .nav-link:focus { text-decoration: underline; }
.is-current { font-weight: 700; }

.hero, .page-hero { padding: 3rem 0; }

/* A photo sitting BEHIND the hero text instead of above it. The picture itself is set as
 * an inline `background-image` on the element, because it is per-business data the
 * stylesheet cannot know; these rules supply the darkening overlay and the stacking that
 * keep the heading readable over any photo, light or dark.
 *
 * Exists because an owner asked twice for exactly this and there was no way to express
 * it -- the only picture vocabulary was `.hero-image`, an <img> in the normal page flow. */
.hero-bg { position: relative; background-size: cover; background-position: center;
  padding: 5rem 0; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.hero-bg > * { position: relative; z-index: 1; }
.hero-bg .hero-title, .hero-bg .hero-subtitle { color: #fff; }
.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 items are <details>/<summary>: they expand on click with no JavaScript. */
html { scroll-behavior: smooth; }
.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; font-size: 1.05rem; font-weight: 700; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-weight: 700; flex: 0 0 auto; }
details[open] > .faq-question::after { content: "\2212"; }
.faq-answer { margin: .75rem 0 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 {
  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;
  --color-bg: #f5efe6;
  --color-surface: #eae1d5;
  --color-ink: #2c2c2c;
  --color-muted: #868480;
  --color-border: #d7d2ca;
  --color-accent: #7b3f00;
  --color-accent-ink: #ffffff;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-ink);
}

h1, h2, h3,
.hero-title, .section-title, .card-title, .cta-title, .step-title, .footer-title, .logo-text {
  font-family: var(--font-display);
}

:root {
  /* Colors */
  --color-bg: #f5efe6;
  --color-raised: #eae1d5;
  --color-text: #2c2c2c;
  --color-text-secondary: #868480;
  --color-border: #d7d2ca;
  --color-accent: #7b3f00;
  --color-accent-text: #ffffff;

  /* Typography */
  --font-heading: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radii */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-mid: 0.25s ease;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0s;
    --transition-mid: 0s;
  }
}

/* Global */
html { box-sizing: border-box; font-size: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}
a { color: var(--color-accent); text-decoration: underline; }
a:hover, a:focus { color: var(--color-accent); opacity: 0.8; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-top: 0;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h4 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
p { margin: 0 0 var(--space-sm); }

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.site-header {
  background: var-color-bg;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: var(--space-sm); }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent);
  text-decoration: none;
}
.main-nav { }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.nav-link {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}
.nav-link:hover,
.nav-link:focus,
.nav-link.is-current {
  color: var(--color-accent);
}
.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-accent);
}

/* Hero */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) 0;
  text-align: center;
}
.hero-bg,
.page-hero.hero-bg {
  inset: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  padding: 8rem;
}
.hero-inner,
.page-hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title,
.page-hero .hero-title {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.hero-subtitle,
.page-hero .hero-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

/* Sections */
.section,
.section-alt {
  position: relative;
  padding: var(--space-3xl) 0;
}
.section::after,
.section-alt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--color-accent);
}
.section-alt {
  background-color: var(--color-raised);
  margin-top: 2rem;
  position: static;
}
.section-title {
  text-align: center;
  margin-bottom: var(--space-sm);
}
.section-intro {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

/* Cards */
.card-grid {
  display: grid;
  gap: var(--space-lg);
}
.card-grid,
.card-grid { /* default 1 column */
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--color-raised);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-title {
  font-size: 1.25rem;
  margin: 0;
}
.card-text {
  flex-grow: 1;
}

/* Process steps */
.steps {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}
.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-accent);
  color: var(--color-accent-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
}
.step-title {
  margin: 0 0 var(--space-xs);
  font-size: 1.125rem;
}
.step-text {
  margin: 0;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}
.faq-question {
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-bg);
  font-weight: 600;
  cursor: pointer;
}
.faq-question::after {
  content: "▸";
  float: right;
  transition: transform var(--transition-fast);
}
.faq-item[open] .faq-question::after {
  transform: rotate(90deg);
}
.faq-answer {
  padding: var(--space-lg);
  background: var(--color-raised);
}

/* CTA */
.cta-band {
  background: var(--color-accent);
  color: var(--color-accent-text);
  text-align: center;
  padding: var(--space-lg) 0;
}
.cta-title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.cta-text {
  margin: 0 0 var(--space-lg);
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
  border: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #5c2e00;
}
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

/* Contact details */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}
.contact-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}
.contact-label {
  font-weight: 600;
  color: var(--color-text-secondary);
}
.contact-value {
  color: var(--color-text);
}

/* Footer */
.site-footer {
  background: var(--color-raised);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 600px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-title {
  font-size: 1.25rem;
  margin: 0 0 var(--space-xs);
}
.footer-note {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
.is-current {
  /* already styled via .nav-link.is-current */
}

/* Utility: hidden for JS reveals */
.is-hidden { display: none; }
.is-visible { display: block; }

/* Mobile nav toggle (if needed) - not required but we can style a burger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
@media (max-width: 600px) {
  .mobile-nav-toggle { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
}
</style>