/* ==========================================================================
   Mindful Care Living — Website styles
   --------------------------------------------------------------------------
   You rarely need to edit this file.
   To change the site's colors or fonts, edit the values in the ":root"
   block just below. Every page uses them.
   ========================================================================== */

:root {
  /* Brand colors (matched to the logo) */
  --navy: #163a5f;        /* headings, header text, dark sections */
  --blue: #255a8a;        /* links */
  --blue-soft: #e8f0f7;   /* light blue section backgrounds */
  --green: #2c6a4f;       /* main buttons */
  --green-dark: #1f4f3a;  /* main buttons when hovered */
  --sage: #87a77c;        /* decorative accents */
  --sage-soft: #ebf2e6;   /* light green section backgrounds */
  --heart: #8a4a6e;       /* small accents (from the heart in the logo) */
  --cream: #fbf8f2;       /* page background */
  --white: #ffffff;
  --text: #1c2a35;        /* main text */
  --text-soft: #3b4a56;   /* secondary text */
  --border: #c9d5de;
  --field-border: #5f6f7c;
  --error: #b42318;
  --success-bg: #e6f2ea;
  --focus: #0b2540;          /* keyboard focus ring on light backgrounds */
  --focus-on-dark: #ffd24d;  /* keyboard focus ring on dark backgrounds */

  /* Fonts */
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Verdana, Arial, sans-serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;

  /* Shapes and spacing */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(22, 58, 95, 0.12);
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(3rem, 7vw, 5.5rem);
}

/* --------------------------------------------------------------------------
   Base
   Text is intentionally large: 18px on phones, up to 20px on computers.
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%; /* 18px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html { font-size: 118.75%; } /* 19px */
}

@media (min-width: 1100px) {
  html { font-size: 125%; } /* 20px */
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

svg.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: normal; /* never split a word across lines */
}

h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem); }

p,
ul,
ol {
  margin: 0 0 1.1em;
  max-width: 68ch;
}

a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
  text-decoration-thickness: 3px;
}

strong { font-weight: 700; }

/* Clear, thick focus ring for keyboard users */
:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.topbar :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--focus-on-dark);
}

/* Hidden visually but still read by screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--white);
  outline-color: var(--focus-on-dark);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Buttons — large, clearly labeled, easy to tap
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0.75em 1.5em;
  border: 3px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.btn-secondary:hover {
  background: var(--blue-soft);
  color: var(--navy);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--sage-soft);
  color: var(--navy);
}

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (max-width: 479px) {
  .btn-group .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Top bar — phone number on every page (tap to call on phones)
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--navy);
  color: var(--white);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.5rem;
}

.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem;
  color: var(--white);
  font-size: 1.1rem;
  text-decoration: none;
}

.topbar__phone strong {
  font-size: 1.15em;
  letter-spacing: 0.01em;
}

.topbar__phone:hover {
  color: var(--white);
  text-decoration: underline;
}

.topbar__hours {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .topbar__hours { display: none; }
  .topbar__phone { flex: 1 1 auto; }
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--navy);
  text-decoration: none;
}

.brand:hover { color: var(--navy); }

.brand img {
  width: 64px;
  height: auto;
}

.brand__name {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.15;
}

.brand__tag {
  display: block;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.3;
}

.header-cta { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5em;
  min-height: 3rem;
  padding: 0.5em 1.1em;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: 700 1rem/1.2 var(--font-body);
  cursor: pointer;
}

.menu-toggle:hover { background: var(--blue-soft); }

.site-nav {
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li a {
  display: block;
  padding: 0.85rem 0.25rem;
  border-top: 1px solid var(--border);
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav li a:hover {
  background: var(--blue-soft);
  text-decoration: underline;
}

.site-nav li a[aria-current="page"] {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--sage);
  text-underline-offset: 0.35em;
}

.site-nav__cta {
  margin-top: 1rem;
  width: 100%;
}

/* With JavaScript on, the menu folds away on small screens */
.js .menu-toggle { display: inline-flex; }

.js .site-nav { display: none; }

.js .site-nav.is-open {
  display: block;
  padding-bottom: 0.5rem;
}

@media (min-width: 1024px) {
  .header-cta { display: inline-flex; }

  .js .menu-toggle { display: none; }

  .site-nav,
  .js .site-nav {
    display: block;
    border-top: 1px solid var(--border);
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .site-nav li a {
    padding: 0.8rem 0.6rem;
    border-top: 0;
    border-radius: var(--radius-sm);
  }

  .site-nav__cta { display: none; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-space);
}

.section--white { background: var(--white); }
.section--blue { background: var(--blue-soft); }
.section--sage { background: var(--sage-soft); }

.section__header {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section__header--center {
  margin-inline: auto;
  text-align: center;
}

.section__header--center p { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 0.75rem;
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 3px;
  border-radius: 3px;
  background: var(--sage);
}

.lead {
  color: var(--text-soft);
  font-size: 1.2rem;
}

/* Home page hero */
.hero {
  overflow-x: clip;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background: linear-gradient(160deg, var(--cream) 0%, var(--blue-soft) 100%);
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.25rem;
  color: var(--text-soft);
  font-size: 1rem;
}

.hero__media {
  position: relative;
  margin: 0;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  z-index: 0;
  border-radius: var(--radius);
  background: var(--sage-soft);
  border: 2px solid var(--sage);
}

.hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

/* Inner page title area */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(160deg, var(--blue-soft) 0%, var(--sage-soft) 100%);
}

.page-hero h1 { margin-bottom: 0.4em; }

.page-hero .lead {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
}

/* Highlights row */
.highlights {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
}

.highlights li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.highlights h3 {
  margin-bottom: 0.25em;
  font-family: var(--font-body);
  font-size: 1.1rem;
}

.highlights p {
  margin: 0;
  color: var(--text-soft);
}

@media (min-width: 640px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .highlights li { flex-direction: column; }
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--green-dark);
}

.icon-badge svg.icon {
  width: 1.6rem;
  height: 1.6rem;
}

.section--sage .icon-badge { background: var(--white); }

/* Picture + text side by side */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split__media {
  margin: 0;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split .icon-badge { margin-bottom: 1rem; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split--reverse .split__media { order: 2; }
}

.split + .split { margin-top: var(--section-space); }

/* Cards */
.cards {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards--4 .card { padding: 1.5rem; }
  .cards--4 .card h3 { font-size: 1.3rem; }
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card .icon-badge { margin-bottom: 1rem; }

.card p {
  color: var(--text-soft);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: auto;
  min-height: 2.75rem;
  font-weight: 700;
}

/* Lists with check marks */
.check-list {
  margin: 0 0 1.25em;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 0.6em;
  padding-left: 2.1em;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Two audiences: families and referring professionals */
.audience {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .audience { grid-template-columns: 1fr 1fr; }
}

.audience__panel {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.audience__panel .icon-badge { margin-bottom: 1rem; }

.audience__panel .btn-group { margin-top: auto; padding-top: 0.5rem; }

.contact-lines {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.contact-lines li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.5em;
}

.contact-lines svg.icon { color: var(--green-dark); }

/* Placeholder box for information still to be added */
.placeholder-note {
  padding: 1rem 1.25rem;
  border: 2px dashed var(--heart);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
}

.placeholder-note strong { color: var(--heart); }

/* Pull quote */
.quote {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.quote svg.icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  color: var(--heart);
}

.quote blockquote {
  margin: 0;
}

.quote p {
  max-width: none;
  margin: 0;
  font-weight: 500;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
}

/* Values row */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: none;
  list-style: none;
}

@media (min-width: 640px) {
  .values { grid-template-columns: repeat(4, 1fr); }
}

.values li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}

/* "On this page" jump links */
.jump-links {
  margin-top: 2rem;
}

.jump-links h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.jump-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
}

.jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5em 1.2em;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.jump-links a:hover { background: var(--blue-soft); }

/* Sections that are jump-link targets leave room at the top */
[id] { scroll-margin-top: 1rem; }

/* Call-to-action band */
.cta-band {
  padding-block: var(--section-space);
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.cta-band h2 { color: var(--white); }

.cta-band p {
  margin-inline: auto;
  font-size: 1.15rem;
}

.cta-band .btn-group { justify-content: center; }

/* Help box */
.help-box {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 2px solid var(--sage);
  border-radius: var(--radius);
}

.help-box p:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .help-box { grid-template-columns: 1.4fr auto; }
  .help-box .btn-group { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

.gallery figure {
  margin: 0;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery a:hover img { transform: scale(1.03); }

.gallery a:focus-visible {
  outline-offset: -4px;
}

.gallery figcaption {
  padding: 0.9rem 1.1rem;
  color: var(--navy);
  font-weight: 700;
}

.gallery__hint {
  display: block;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 400;
}

.lightbox {
  width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(11, 37, 64, 0.85);
}

.lightbox img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--navy);
}

.lightbox__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.lightbox__caption {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   Contact page and tour form
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.contact-grid > *,
.info-list li > div { min-width: 0; }

.info-list a { overflow-wrap: anywhere; }

@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
}

.info-card,
.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

.info-list li:first-child { padding-top: 0; }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.info-label {
  margin: 0 0 0.15em;
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.info-list p { margin: 0; }

.info-list .big-phone {
  font-size: 1.35rem;
  font-weight: 700;
}

.map {
  margin-top: 1.5rem;
}

.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.map p { margin-top: 0.75rem; }

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
}

.form-field .tag {
  margin-left: 0.4em;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 400;
}

.form-hint {
  margin: 0 0 0.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.form-field input {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.6em 0.85em;
  border: 2px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font: 1.1rem/1.4 var(--font-body);
}

.form-field input:focus-visible {
  border-color: var(--focus);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.form-field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: 0.4rem 0 0;
  color: var(--error);
  font-weight: 700;
}

.field-error:empty { display: none; }

.field-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 1.3em;
  height: 1.3em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--error);
  color: var(--white);
  font-size: 0.85em;
}

.form-privacy {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.form-card .btn {
  width: 100%;
}

.form-card .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.form-status:empty { display: none; }

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.form-status.is-success {
  background: var(--success-bg);
  border: 2px solid var(--green);
  color: var(--green-dark);
}

.form-status.is-error {
  background: #fdecea;
  border: 2px solid var(--error);
  color: #7a1a12;
}

.form-status:focus { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Honeypot field that catches spam bots — hidden from people */
.hp-field {
  position: absolute;
  left: -9999px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-top: 3.5rem;
  background: #0f2a45;
  color: #e9eef3;
}

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

.site-footer a:hover { color: #d7e7f5; }

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 0.8fr; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 64px;
  padding: 6px;
  background: var(--white);
  border-radius: 14px;
}

.footer-brand span {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.footer-heading {
  margin-bottom: 0.75rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.15rem;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  display: flex;
  gap: 0.6em;
  margin-bottom: 0.65em;
}

.footer-list svg.icon {
  margin-top: 0.2em;
  color: #b9d3a9;
}

.footer-list a {
  display: inline-block;
}

.footer-bottom {
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
}

.footer-bottom p { margin-bottom: 0.4em; max-width: none; }

/* --------------------------------------------------------------------------
   Respect people who prefer less motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Printing (e.g. families printing the contact page)
   -------------------------------------------------------------------------- */

@media print {
  .topbar,
  .menu-toggle,
  .site-nav,
  .header-cta,
  .cta-band,
  .map,
  .form-card { display: none !important; }

  body { background: #fff; font-size: 12pt; }
}
