
:root {
  --ink: #1a1f2b;
  --ink-soft: #4a5568;
  --paper: #ffffff;
  --paper-soft: #f7f8fa;
  --line: #e2e5ea;
  /* One accent color, used consistently: CTA buttons, links, and section
     accents (h2 underline, hero band, nav hover) — never AI-generated,
     the same three values everywhere this stylesheet is used. */
  --accent: #1f3a5f;
  --accent-tint: #e9edf3;
  --accent-ink: #ffffff;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: var(--accent); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.site-header__name {
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
}

.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--accent); }

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* A styled text-only band, not an empty image box — no real photos exist
   yet in v1 (see .hero__image-placeholder below). Background is a tint of
   --accent, derived from the same one accent color as everything else. */
.hero {
  padding: 2.5rem 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--accent-tint);
  border-radius: var(--radius);
}

.hero__image-placeholder {
  /* Reserved for a real photo later (a background-image or <img> swapped
     in here) — collapsed to zero size for now rather than rendering as a
     large empty gray box with nothing in it. */
  display: none;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0;
}

h2 {
  font-size: 1.375rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

section + section { margin-top: 1.5rem; }

.page-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.site-footer__grid {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
}

.booking-form-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.booking-form {
  display: grid;
  gap: 1rem;
  max-width: 480px;
}

.form-field {
  display: grid;
  gap: 0.375rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.form-field textarea {
  min-height: 6rem;
  resize: vertical;
}

.booking-form button.cta-button {
  border: none;
  cursor: pointer;
  justify-self: start;
  font: inherit;
}

.service-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.service-links--grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.service-links--grid a {
  display: block;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}

.service-links--grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.service-links--list a {
  text-decoration: none;
  font-weight: 600;
}

/* Shown only when the URL fragment matches this element's id — set by
   /api/leads' post-submit redirect (?submitted=1#lead-submitted). Pure
   CSS, no JS: works even with JS disabled, and degrades to "no banner"
   (not broken) if the fragment is ever absent. Lives directly before the
   form inside .booking-form-section (templates/page.ts), so landing here
   scrolls the visitor right to it instead of a banner at the top of an
   unrelated part of the page. */
.submitted-banner {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink);
}

.submitted-banner:target {
  display: block;
}

/* Swap, not stack: once the banner is showing, hide the now-redundant
   empty form below it rather than inviting a confused second submission.
   Requires the banner and form to be siblings under the same section. */
#lead-submitted:target ~ form {
  display: none;
}

@media (min-width: 640px) {
  .site-nav { font-size: 1rem; }
  main { padding-top: 3rem; }
}
