
: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), either the untouched
     default, or a curated set picked as a matched trio (see
     ACCENT_PALETTES above), never assembled from an arbitrary hex. */
  --accent: #1f3a5f;
  --accent-tint: #e9edf3;
  --accent-ink: #ffffff;
  --radius: 10px;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  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-family: var(--font-heading);
  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-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  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 designed, token-driven band, not an empty image box, no real photos
   exist yet in v1 (see .hero__image-placeholder below), and none are
   fabricated here either. Every color derives from --accent/--accent-tint/
   --paper, the same tokens everything else on the page already uses, so
   the shape/gradient automatically varies by brand direction with zero
   new inputs. ::before is a soft circular highlight, ::after a left-edge
   accent stripe, both purely decorative, both z-index'd below the
   heading via h1's own position/z-index below. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent-tint) 0%, var(--paper) 65%);
  border-radius: var(--radius);
}

.hero::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -15%;
  width: 65%;
  aspect-ratio: 1;
  background: var(--accent);
  opacity: 0.08;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
  pointer-events: none;
}

.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 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin: 2.5rem 0 0.875rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

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

.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;
}

/* Mirrors .site-nav's wrapping so multi-word module labels in the
   footer don't break mid-phrase on a narrow screen. */
.site-footer__grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-details {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.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;
}

/* pricing_packages' tier cards, previously unstyled (bare divs, no
   wrapping container), the least-designed of the 4 renderable module
   pages. Mirrors .service-links--grid's card/grid pattern rather than
   inventing a new one. */
.pricing-tiers {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.5rem 0;
}

.pricing-tier {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.pricing-tier h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin: 0;
}

.pricing-tier__price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.pricing-tier ul {
  margin: 0;
  padding-left: 1.125rem;
  display: grid;
  gap: 0.375rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* 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; }
  .hero { padding: 3.5rem 3rem; }
}
