:root {
  --bg: #faf9f7;
  --fg: #3d3428;
  --card: #ffffff;
  --primary: #7a5c3e;
  --primary-fg: #faf9f7;
  --secondary: #f0ede8;
  --muted: #6b5d4d;
  --border: #e5e0d8;
  --max: 64rem;
  --font: 'Libre Baskerville', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

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

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

.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a:not(.btn) {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-desktop a:not(.btn):hover,
.nav-desktop a:not(.btn)[aria-current='page'] {
  color: var(--fg);
}

.nav-desktop .btn-primary,
.nav-mobile .btn-primary {
  color: #faf9f7;
}

.nav-desktop .btn-primary:hover,
.nav-mobile .btn-primary:hover,
.nav-desktop .btn-primary:focus-visible,
.nav-mobile .btn-primary:focus-visible {
  color: #faf9f7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #faf9f7;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  opacity: 0.9;
  color: #faf9f7;
}

.btn-outline {
  border: 1px solid var(--fg);
  color: var(--fg);
  background: transparent;
}

.btn-outline:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn-lg {
  padding: 0.875rem 2rem;
}

.menu-toggle {
  display: inline-flex;
  padding: 0.5rem;
  background: none;
  border: 0;
  color: var(--fg);
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 0 0 1rem;
}

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

.nav-mobile a:not(.btn) {
  color: var(--muted);
}

.nav-mobile a:not(.btn):hover,
.nav-mobile a:not(.btn)[aria-current='page'] {
  color: var(--fg);
}

main {
  padding-top: 5.5rem;
}

.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
}

.lead {
  margin: 0 auto 2.5rem;
  max-width: 40rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--secondary);
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.heading-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.35em;
}

.heading-wrap span {
  white-space: nowrap;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.service-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card__body {
  padding: 2rem;
  flex: 1;
}

.service-card__body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.service-card__body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-grid li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.about-grid li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

.about-photo {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  line-height: 0;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-cards {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s;
}

.contact-card:hover {
  border-color: var(--primary);
}

.contact-card .label {
  margin: 0.5rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card .value {
  margin: 0;
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.gallery-masonry {
  --gallery-gap: 1.25rem;
  position: relative;
  width: 100%;
}

.gallery-item {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  line-height: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer .muted {
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none !important;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
