:root {
  --page-width: 1180px;
  --page-gutter: clamp(1rem, 4vw, 2rem);

  --brick: #8f3f32;
  --brick-dark: #522720;
  --cream: #fff8e9;
  --cream-deep: #f2e3c7;
  --butter: #f3c86a;
  --blue: #2d6f8d;
  --blue-dark: #1f5168;
  --green: #557b58;
  --ink: #2d2926;
  --muted: #6d625c;
  --white: #ffffff;
  --line: #e2d5c3;
  --surface-soft: #f8f0e4;

  --font-display: Georgia, "Times New Roman", serif;
  /* System stack only. Inter was previously listed first but was never loaded,
     so it silently resolved to the next entry for everyone without it
     installed. Add an @font-face rule before naming a webfont here. */
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;

  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --shadow: 0 1rem 2.5rem rgba(45, 41, 38, 0.1);
}

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

/* The hidden attribute is only `display: none` in the user-agent stylesheet,
   so any author rule that sets display beats it. That silently un-hid a login
   form and a PIN pad. Make the attribute mean what it says, everywhere. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.4rem;
  line-height: 1.15;
}

p {
  color: var(--muted);
}

.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-width));
  margin-inline: auto;
}

.section-shell {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  transform: translateY(-200%);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--butter);
}

.lead {
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--brick);
  color: var(--white);
  box-shadow: 0 0.8rem 1.6rem rgba(143, 63, 50, 0.24);
}

.button--primary:hover {
  background: var(--brick-dark);
}

.button--secondary {
  border-color: rgba(82, 39, 32, 0.28);
  background: rgba(255, 255, 255, 0.55);
  color: var(--brick-dark);
}

.button--secondary:hover {
  background: var(--white);
}

.button--light {
  background: var(--cream);
  color: var(--brick-dark);
}

.button--dark {
  background: var(--brick-dark);
  color: var(--white);
}

.announcement-bar {
  background: var(--brick-dark);
  color: var(--cream);
  font-size: 0.82rem;
}

.announcement-bar__inner {
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.announcement-bar a {
  color: var(--butter);
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(82, 39, 32, 0.12);
  background: rgba(255, 248, 233, 0.95);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  box-shadow: 0 0.75rem 2rem rgba(45, 41, 38, 0.1);
}

.site-header__inner {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brick-dark);
  text-decoration: none;
}

.site-logo__mark {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  transform: rotate(-7deg);
  border-radius: 52% 48% 50% 43%;
  background: var(--brick);
  color: var(--cream);
  font-size: 1.25rem;
}

.site-logo__text {
  display: grid;
  line-height: 1.05;
}

.site-logo__text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.site-logo__text small {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.6vw, 1.25rem);
}

.primary-nav a {
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--brick);
}

.primary-nav__cta {
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  background: var(--brick);
  color: var(--white) !important;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(243, 200, 106, 0.4) 0 7rem, transparent 7.1rem),
    radial-gradient(circle at 90% 85%, rgba(45, 111, 141, 0.15) 0 10rem, transparent 10.1rem),
    linear-gradient(135deg, var(--cream) 0%, #fffdf8 60%, #f4e7d1 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.hero h1 {
  max-width: 10ch;
  margin-bottom: 1.35rem;
  color: var(--brick-dark);
  font-size: clamp(3.7rem, 8vw, 7.4rem);
}

.hero h1 span {
  display: block;
  color: var(--brick);
}

.hero__intro {
  max-width: 40rem;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero__phone {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero__phone > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: #cfe5ed;
  color: var(--blue);
}

.hero__phone div {
  display: grid;
}

.hero__phone small {
  color: var(--muted);
}

.hero__phone a {
  color: var(--brick-dark);
  font-weight: 800;
  text-decoration: none;
}

.hero__photo {
  width: min(100%, 35rem);
  margin: 0;
  justify-self: end;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 4.1;
  object-fit: cover;
  border: 0.7rem solid var(--white);
  border-radius: 2rem 2rem 6rem 2rem;
  box-shadow: var(--shadow);
}

.hero__photo figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.quick-facts {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
}

.quick-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-facts article {
  display: grid;
  gap: 0.3rem;
  padding: 1.35rem;
  border-right: 1px solid var(--line);
}

.quick-facts article:last-child {
  border-right: 0;
}

.quick-facts strong {
  color: var(--brick-dark);
}

.quick-facts span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section--cream {
  background: var(--cream);
}

.section--grid {
  background:
    linear-gradient(rgba(82, 39, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 39, 32, 0.035) 1px, transparent 1px),
    var(--surface-soft);
  background-size: 2rem 2rem;
}

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

.section--blue h2,
.section--blue strong {
  color: var(--white);
}

.section--blue p {
  /* 0.82 white on the blue measured 4.34:1; 0.95 clears WCAG AA. */
  color: rgba(255, 255, 255, 0.95);
}

.section--yellow {
  background: var(--butter);
}

.section--contact {
  background: var(--brick);
  color: var(--white);
}

.section--contact h2 {
  color: var(--white);
}

.section--contact p {
  color: rgba(255, 255, 255, 0.8);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  align-items: start;
}

.content-column {
  border-left: 3px solid var(--butter);
  padding-left: clamp(1.4rem, 4vw, 2.5rem);
}

.section-heading {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.program-card {
  min-height: 18rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  background: var(--white);
  box-shadow: 0 0.5rem 1.5rem rgba(45, 41, 38, 0.05);
}

.program-card__number {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 3.5rem;
  border-radius: 1rem;
  background: var(--cream-deep);
  color: var(--brick);
  font-weight: 900;
}

.program-card:nth-child(2) .program-card__number {
  background: #cfe5ed;
  /* The brand blue on this tint measured 4.27:1; this reads 6.2:1. */
  color: #1d556e;
}

.program-card:nth-child(3) .program-card__number {
  background: #f6e3d9;
}

.program-card:nth-child(4) .program-card__number {
  background: #e0eadf;
  /* The brand green on this tint fell short of 4.5:1; this clears it. */
  color: #3d5c40;
}

.step-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem;
}

.step-list li > span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--butter);
  color: var(--brick-dark);
  font-weight: 900;
}

.step-list p {
  margin-bottom: 0;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.policy-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  background: var(--white);
}

.employment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.employment-card h2 {
  max-width: 14ch;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.4rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  padding-left: 2rem;
}

.contact-details div {
  display: grid;
}

.contact-details small {
  margin-bottom: 0.25rem;
  color: var(--butter);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details address {
  font-style: normal;
}

.contact-details a {
  font-size: 1.25rem;
  font-weight: 850;
  text-decoration: none;
}

.site-footer {
  background: var(--brick-dark);
  color: var(--cream);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr;
  gap: 3rem;
  padding-block: 4rem 3rem;
}

.site-footer p {
  max-width: 30rem;
  color: rgba(255, 248, 233, 0.72);
}

.site-logo--footer {
  color: var(--cream);
}

.site-logo--footer .site-logo__mark {
  background: var(--butter);
  color: var(--brick-dark);
}

.site-logo--footer .site-logo__text small {
  color: rgba(255, 248, 233, 0.65);
}

.site-footer nav,
.site-footer address {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  font-style: normal;
}

.site-footer nav strong,
.site-footer address strong {
  margin-bottom: 0.35rem;
  color: var(--butter);
}

.site-footer nav a,
.site-footer address a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.2rem;
  color: rgba(255, 248, 233, 0.65);
  font-size: 0.78rem;
}

@media (max-width: 1020px) {
  .primary-nav {
    position: fixed;
    top: 7.9rem;
    right: 1rem;
    left: 1rem;
    display: none;
    max-height: calc(100vh - 9rem);
    overflow: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.7rem;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    border-radius: 0.6rem;
    padding: 0.8rem;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
  }

  .menu-button__icon,
  .menu-button__icon::before,
  .menu-button__icon::after {
    display: block;
    width: 1.4rem;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .menu-button__icon {
    position: relative;
  }

  .menu-button__icon::before {
    position: absolute;
    top: -0.42rem;
  }

  .menu-button__icon::after {
    position: absolute;
    top: 0.42rem;
  }

  .hero__grid,
  .split-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero__photo {
    justify-self: start;
  }

  .card-grid,
  .quick-facts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-facts article:nth-child(2) {
    border-right: 0;
  }

  .quick-facts article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .employment-card {
    grid-template-columns: 1fr;
  }

  .contact-details {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 680px) {
  .announcement-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-block: 0.45rem;
  }

  .site-header__inner {
    min-height: 4.8rem;
  }

  .site-logo__text small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 5.2rem);
  }

  .quick-facts {
    margin-top: 0;
  }

  .quick-facts__grid,
  .card-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-facts article:last-child {
    border-bottom: 0;
  }

  .content-column {
    border-left: 0;
    border-top: 3px solid var(--butter);
    padding-top: 1.5rem;
    padding-left: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}


.section--applications {
  background:
    radial-gradient(circle at 8% 18%, rgba(243, 200, 106, 0.22) 0 8rem, transparent 8.1rem),
    var(--surface-soft);
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.application-card {
  display: flex;
  min-height: 29rem;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: var(--white);
  box-shadow: var(--shadow);
}

.application-card--parent {
  border-top: 0.45rem solid var(--brick);
}

.application-card--employee {
  border-top: 0.45rem solid var(--blue);
}

.application-card__top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.7rem;
}

.application-card__icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 1rem;
  background: var(--cream-deep);
  color: var(--brick);
  font-size: 1.35rem;
}

.application-card--employee .application-card__icon {
  background: #cfe5ed;
  color: var(--blue);
}

.application-card h3 {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.application-card .button {
  margin-top: auto;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: #e5efe4;
  color: #315e36;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section--portals {
  background: var(--blue-dark);
  color: var(--white);
}

.section--portals h2 {
  color: var(--white);
}

.section--portals p {
  color: rgba(255, 255, 255, 0.78);
}

.portal-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: center;
}

.portal-preview > * {
  min-width: 0;
}

.portal-preview__cards {
  display: grid;
  gap: 1rem;
}

.portal-link-card {
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-decoration: none;
}

.portal-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--butter);
  background: rgba(255, 255, 255, 0.13);
}

.portal-link-card span {
  color: var(--butter);
  font-size: 1.2rem;
  font-weight: 850;
}

.portal-link-card small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .application-grid,
  .portal-preview {
    grid-template-columns: 1fr;
  }
}


/* V3 navigation and content fixes */
.program-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
}

.program-facts span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.82rem;
}

.admissions-callout {
  margin: 1.25rem 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.09);
}

.admissions-callout p {
  margin: 0.35rem 0 0;
  /* The translucent panel lightens the blue behind this text; full white
     keeps it above the 4.5:1 contrast floor. */
  color: var(--white);
}

.button--outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.button--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.application-warning {
  max-width: 50rem;
  margin: 1rem auto 0;
  border-left: 0.35rem solid var(--butter);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1rem;
  background: #fff4cd;
  color: var(--brick-dark);
  text-align: left;
}

.application-warning--compact {
  grid-column: 1 / -1;
  max-width: none;
  width: 100%;
  margin: 0;
}

.application-warning a {
  font-weight: 850;
}

.portal-link-card--disabled {
  cursor: default;
}

.portal-link-card--disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.portal-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.portal-card-heading b {
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  background: var(--butter);
  color: var(--brick-dark);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 1050px) {
  .application-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 4.6rem;
  }

  .application-grid {
    grid-template-columns: 1fr;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 0.6rem;
    border-top: 1px solid rgba(82, 39, 32, 0.18);
    padding: 0.65rem max(0.8rem, env(safe-area-inset-right))
      calc(0.65rem + env(safe-area-inset-bottom))
      max(0.8rem, env(safe-area-inset-left));
    background: rgba(255, 248, 233, 0.97);
    box-shadow: 0 -0.5rem 1.5rem rgba(45, 41, 38, 0.12);
    backdrop-filter: blur(12px);
  }

  .mobile-action-bar a {
    display: flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
  }

  .mobile-action-bar__call {
    border: 2px solid var(--brick);
    color: var(--brick);
  }

  .mobile-action-bar__apply {
    background: var(--brick);
    color: var(--white);
  }
}


/* V4 rates and service content */
.section--rates {
  background:
    radial-gradient(circle at 90% 12%, rgba(45, 111, 141, 0.11) 0 9rem, transparent 9.1rem),
    #fffdf8;
}

.rate-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.rate-card {
  display: grid;
  /* A grid item refuses to shrink below its content unless told; without
     this a long figure widens the card into its neighbor. */
  min-width: 0;
  min-height: 12rem;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--white);
  text-align: center;
  box-shadow: 0 0.5rem 1.3rem rgba(45, 41, 38, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

/* Hovering any tier dresses it like the first card and tips it toward you. */
.rate-card:hover {
  border-color: var(--brick);
  background: var(--brick);
  transform: perspective(50rem) translateY(-0.45rem) rotateX(5deg) scale(1.03);
  box-shadow: 0 1.2rem 2.2rem rgba(45, 41, 38, 0.3);
}

.rate-card:hover span {
  color: var(--white);
}

.rate-card:hover strong {
  color: var(--white);
}

.rate-card:hover small {
  color: rgba(255, 255, 255, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .rate-card {
    transition: none;
  }

  .rate-card:hover {
    transform: none;
  }
}

.rate-card span {
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rate-card strong {
  margin-block: 0.35rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--brick-dark);
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.6vw + 0.8rem, 3.4rem);
  line-height: 1;
}

.rate-card small {
  color: var(--muted);
  line-height: 1.3;
}

.service-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-note-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: var(--surface-soft);
}

.service-note-grid h3 {
  color: var(--brick-dark);
}

.service-note-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.service-note-grid li + li {
  margin-top: 0.45rem;
}

.service-hours-card {
  background: #e4f0f4 !important;
}

.service-hours-card p {
  color: var(--ink);
}

.portal-card-heading b {
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .rate-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .rate-card-grid,
  .service-note-grid {
    grid-template-columns: 1fr;
  }

  .rate-card {
    min-height: 9rem;
  }
}


.primary-nav__login {
  border: 1px solid rgba(82, 39, 32, 0.3);
  border-radius: 999px;
  padding: 0.68rem 0.9rem;
  color: var(--brick-dark) !important;
}

.primary-nav__login:hover {
  border-color: var(--brick);
  background: var(--white);
}

.home-destination-section{background:var(--surface-soft)}
.destination-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.destination-card{display:grid;min-height:12rem;align-content:end;gap:.35rem;border:1px solid var(--line);border-radius:var(--radius-md);padding:1.25rem;background:var(--white);color:var(--ink);text-decoration:none;box-shadow:0 .5rem 1.5rem rgba(45,41,38,.05)}
.destination-card:hover{transform:translateY(-3px);border-color:var(--brick);box-shadow:var(--shadow)}
.destination-card span{color:var(--brick);font-size:.75rem;font-weight:900;letter-spacing:.1em}
.destination-card strong{color:var(--brick-dark);font-family:var(--font-display);font-size:1.5rem}
.destination-card small{color:var(--muted);line-height:1.45}
@media(max-width:900px){.destination-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.destination-grid{grid-template-columns:1fr}}

.dynamic-service-notes {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: var(--white);
}
.dynamic-service-notes h3 { color: var(--brick-dark); }
.dynamic-service-notes ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.dynamic-service-notes li + li { margin-top: 0.45rem; }


/* Photo gallery */
.gallery-hero {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background:
    radial-gradient(circle at top left, rgba(243, 200, 106, 0.38), transparent 35%),
    linear-gradient(135deg, #fff8e9, #f7ede0);
}

.gallery-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(20rem, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.gallery-hero h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  color: var(--brick-dark);
  font-size: clamp(3rem, 7vw, 6rem);
}

.gallery-hero__image {
  overflow: hidden;
  border: 0.6rem solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.gallery-hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-section {
  background: #f7f2eb;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-heading h2 {
  margin-bottom: 0;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gallery-filter button {
  border: 1px solid #ccbfae;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.gallery-filter button:hover,
.gallery-filter button.is-active {
  border-color: var(--brick);
  background: var(--brick);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  grid-column: span 4;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 0.65rem 1.8rem rgba(45, 41, 38, 0.07);
}

.gallery-card:nth-child(1),
.gallery-card:nth-child(2) {
  grid-column: span 6;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card__image {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #eee7dc;
  cursor: zoom-in;
}

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

.gallery-card:nth-child(4n + 3) .gallery-card__image img,
.gallery-card:nth-child(4n + 4) .gallery-card__image img {
  aspect-ratio: 3 / 4;
}

.gallery-card:hover .gallery-card__image img {
  transform: scale(1.035);
}

.gallery-card figcaption {
  padding: 1rem 1.05rem 1.15rem;
}

.gallery-card figcaption span {
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-card figcaption h2 {
  margin: 0.25rem 0 0.45rem;
  color: var(--brick-dark);
  font-family: var(--font-body);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.gallery-card figcaption p {
  margin: 0;
  font-size: 0.9rem;
}

.gallery-empty {
  margin-top: 2rem;
  border: 1px dashed #cdbfae;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: var(--white);
  text-align: center;
}

.gallery-lightbox {
  width: min(92vw, 64rem);
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  background: #11191d;
  color: var(--white);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.4);
}

.gallery-lightbox::backdrop {
  background: rgba(12, 20, 24, 0.8);
  backdrop-filter: blur(4px);
}

.gallery-lightbox > img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #0a1013;
}

.gallery-lightbox__close {
  position: sticky;
  z-index: 2;
  top: 0.75rem;
  float: right;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0.75rem 0.75rem -3.35rem 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(15, 25, 30, 0.78);
  color: var(--white);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.gallery-lightbox__caption {
  padding: 1.1rem 1.25rem 1.35rem;
}

.gallery-lightbox__caption h2 {
  margin-bottom: 0.4rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.35rem;
  letter-spacing: 0;
}

.gallery-lightbox__caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 900px) {
  .gallery-hero__grid {
    grid-template-columns: 1fr;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-card,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2) {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .gallery-card,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2) {
    grid-column: 1 / -1;
  }
}

/* Contact form ------------------------------------------------------------
   Self-contained so pages/contact does not have to pull in the whole of
   forms.css, which exists for the printable application packets. */

.contact-form-shell {
  display: grid;
  gap: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  max-width: 46rem;
  /* The heading above is centered; without these margins the form hugs the
     left edge and the page looks lopsided. */
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.15rem, 3vw, 1.85rem);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form .field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form .field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.contact-form .field--full {
  grid-column: 1 / -1;
}

.contact-form label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-form .field-optional {
  color: var(--muted);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  background: var(--white);
}

/* Honeypot: off-screen rather than display:none, because some bots skip
   fields that are not rendered at all. */
.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.contact-form__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-form__status[data-message-type="success"] {
  color: var(--green);
  font-weight: 700;
}

.contact-form__status[data-message-type="error"] {
  color: var(--brick);
  font-weight: 700;
}

@media (max-width: 620px) {
  .contact-form .field-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Touch target floor --------------------------------------------------
   The accessibility suite measures every control against the WCAG 2.2
   24px minimum. Standalone navigation links get padding to clear it;
   links inside sentences are exempt by the standard. */

.primary-nav a,
.announcement-bar a,
.site-footer__bottom a,
.site-footer address a,
.site-footer nav a,
.back-link {
  display: inline-block;
  padding-block: 0.3rem;
}

/* Inline links that stand alone inside notice boxes still need the 24px
   floor; checkboxes get it everywhere, which also makes them easier to tap. */
.application-warning a,
.login-alt a {
  display: inline-block;
  padding-block: 0.3rem;
}

input[type="checkbox"],
input[type="radio"] {
  /* flex: none because these sit inside flex label rows all over the forms,
     and a shrinking check box is a check box nobody can hit. */
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  accent-color: var(--brick, #8f3f32);
}
