:root {
  --white: #ffffff;
  --snow: #f6f4f3;
  --mist: #ebe6e4;
  --ink: #1c1412;
  --ink-soft: #5a4f4c;
  --red: #b71c2b;
  --red-deep: #8f1220;
  --red-soft: rgba(183, 28, 43, 0.08);
  --line: rgba(28, 20, 18, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --content: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(183, 28, 43, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(183, 28, 43, 0.04), transparent 50%),
    linear-gradient(180deg, var(--white) 0%, var(--snow) 48%, var(--white) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--space);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 1;
  min-width: 0;
}

.brand-mark:hover {
  color: var(--ink);
}

.brand-mark-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 14rem;
}

.logo {
  display: block;
  height: auto;
}

.logo-header {
  width: auto;
  height: 2.85rem;
  max-width: min(10rem, 28vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--red);
}

.nav-cta {
  padding: 0.55rem 1rem;
  background: var(--red);
  color: var(--white) !important;
  border-radius: 0.2rem;
}

.nav-cta:hover {
  background: var(--red-deep);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.media-frame {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(183, 28, 43, 0.03) 12px,
      rgba(183, 28, 43, 0.03) 24px
    ),
    linear-gradient(145deg, #efecea 0%, #f8f5f4 50%, #e8e2df 100%);
  border: 1.5px dashed rgba(183, 28, 43, 0.28);
  color: var(--ink-soft);
}

.media-frame--hero {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(
      to top,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.72) 28%,
      rgba(255, 255, 255, 0.15) 55%,
      transparent 72%
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 18px,
      rgba(183, 28, 43, 0.05) 18px,
      rgba(183, 28, 43, 0.05) 36px
    ),
    linear-gradient(160deg, #d9cfcb 0%, #f0ebe9 40%, #c4b4b0 100%);
  animation: hero-drift 22s var(--ease) infinite alternate;
  transform-origin: center center;
}

.media-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(90, 79, 76, 0.75);
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(183, 28, 43, 0.25);
  background: rgba(255, 255, 255, 0.65);
}

.media-frame--hero .media-label {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content);
  width: 100%;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) var(--space) clamp(2.5rem, 6vh, 4rem);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--red);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 500;
  max-width: 22ch;
  margin-bottom: 1rem;
}

.hero-lede {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.2rem;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 20, 18, 0.22);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Sections */
.section {
  padding: clamp(4rem, 10vh, 7rem) 0;
}

.section-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.section-copy p:not(.section-label) {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-reverse .section-copy {
  order: 2;
}

.split-reverse .media-frame {
  order: 1;
}

.media-frame--section {
  min-height: min(52vw, 24rem);
  aspect-ratio: 4 / 3;
}

.section-community {
  background: linear-gradient(180deg, transparent, var(--snow) 20%, var(--snow) 80%, transparent);
}

.section-visit {
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.visit-lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 32rem;
  margin-bottom: 2rem;
}

.visit-details {
  margin: 0 0 2rem;
  display: grid;
  gap: 1.25rem;
}

.visit-details div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.visit-details dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.visit-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.visit-details a {
  color: var(--ink);
  text-decoration: none;
}

.hero-actions .btn-call {
  display: none;
}

.visit-details a:hover {
  color: var(--red);
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.schedule-list li {
  display: grid;
  gap: 0.1rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.schedule-list span {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.media-frame--map {
  min-height: 22rem;
  aspect-ratio: 1 / 1;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
}

.logo-footer {
  width: auto;
  height: 4.25rem;
  max-width: 16rem;
  object-fit: contain;
  object-position: center;
}

.footer-tag,
.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Motion */
.reveal-hero {
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) forwards;
}

.reveal-hero:nth-child(1) {
  animation-delay: 0.1s;
}

.reveal-hero:nth-child(2) {
  animation-delay: 0.28s;
}

.reveal-hero:nth-child(3) {
  animation-delay: 0.44s;
}

.reveal-hero:nth-child(4) {
  animation-delay: 0.58s;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-hero,
  .reveal,
  .media-frame--hero {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .split-reverse .section-copy,
  .split-reverse .media-frame {
    order: initial;
  }

  .media-frame--map {
    position: static;
    aspect-ratio: 16 / 10;
    min-height: 16rem;
  }

  .section h2,
  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--space) 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 0;
  }

  .hero-brand {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .logo-header {
    height: 2.4rem;
    max-width: min(7.5rem, 30vw);
  }

  .brand-mark-text {
    max-width: 11rem;
  }

  .visit-phone {
    display: none;
  }

  .hero-actions .btn-call {
    display: inline-flex;
  }
}
