:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #8a8a8a;
  --muted-2: #6b6b6b;
  --navy: #16245c;
  --navy-hover: #142055;
  --lavender: #ececf8;
  --line: #e5e5e5;
  --card: #f6f6fb;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  padding: 1.75rem 1.5rem 0.5rem;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

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

.nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.site-main {
  flex: 1;
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.site-footer {
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
}

.copyright {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.5rem;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.btn:hover {
  background: var(--navy-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn-block {
  width: 100%;
}

/* HOME */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 0;
  min-height: min(64vh, 580px);
  margin-top: 2rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.home-visual {
  position: relative;
  z-index: 1;
  padding-right: 0;
}

.home-visual img {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  object-fit: contain;
}

.home-card {
  position: relative;
  z-index: 2;
  margin-left: -2.5rem;
  background: var(--lavender);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2.25rem);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fade-up 700ms ease both;
}

.home-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

.home-card .lede {
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
  color: var(--muted-2);
  max-width: 18rem;
}

.home-card .btn {
  align-self: flex-start;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ABOUT */
.about-intro {
  max-width: 40rem;
  margin: 1.5rem auto 3rem;
  text-align: left;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.about-intro h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
}

.about-intro p {
  margin: 0 0 1.5rem;
  color: var(--muted-2);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 34rem;
}

.section-label {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.about-card {
  background: var(--card);
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.about-card img {
  max-height: 180px;
  width: auto;
  margin-bottom: 0.75rem;
}

.about-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}

.about-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted-2);
  line-height: 1.5;
  max-width: 22rem;
}

.connect {
  text-align: center;
  margin: 1rem 0 0.5rem;
}

.connect .section-label {
  margin-bottom: 1rem;
}

.social-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.social-link svg {
  width: 28px;
  height: 28px;
}

/* GALLERY */
.gallery-page {
  padding-top: 1rem;
}

.gallery-heading {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

.gallery-grid {
  columns: 3 240px;
  column-gap: 0.75rem;
}

.gallery-item {
  margin: 0 0 0.75rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  background: #f3f3f3;
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-item img:hover {
  opacity: 0.92;
}

.show-more {
  display: block;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
}

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

.show-more[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .gallery-grid {
    columns: 2 140px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    columns: 1;
  }
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.contact-label {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form h2 {
  margin: 0 0 1.25rem;
  font-size: 1.65rem;
  font-weight: 500;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted-2);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(26, 42, 108, 0.25);
  border-color: var(--navy);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.form-note a {
  text-decoration: underline;
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--navy);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.contact-aside h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.hours-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}

.hours {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hours .is-emphasis {
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 860px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-card {
    margin: -2rem 0 0;
  }

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }
}

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