:root {
  --bg-sand: #f4efe2;
  --bg-earth: #d6c3a2;
  --ink: #1f1a17;
  --clay: #bb5a2f;
  --moss: #3f5f45;
  --card: #f9f4e9;
  --border: rgba(31, 26, 23, 0.14);
  --shadow: 0 20px 50px rgba(31, 26, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 0%, #f9f1dc 0%, var(--bg-sand) 40%, #ecdfc8 100%);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 18%, rgba(187, 90, 47, 0.2) 0, rgba(187, 90, 47, 0) 42%),
    radial-gradient(circle at 8% 78%, rgba(63, 95, 69, 0.22) 0, rgba(63, 95, 69, 0) 38%);
}

.site-header,
main,
.site-footer {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.brand-text {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

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

.nav-list a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

main {
  padding: 2rem 0 4rem;
}

.hero h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  line-height: 1.15;
}

.hero {
  max-width: 760px;
  padding: 4rem 0 2rem;
  animation: rise-in 700ms ease-out;
}

.section-label,
.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 700;
}

.section-label {
  margin-bottom: 0.4rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  margin: 0.35rem 0 1rem;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 60ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--clay);
  color: #fff;
}

.button-secondary {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.panel,
.card {
  background: rgba(249, 244, 233, 0.86);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.panel {
  margin-top: 2.2rem;
  padding: 1.3rem 1.4rem;
}

.content-page {
  max-width: 820px;
}

.not-found-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1rem 5rem;
  animation: rise-in 700ms ease-out;
}

.not-found-glyph {
  width: min(220px, 55vw);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.not-found-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.not-found-heading {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.not-found-body {
  max-width: 44ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(31, 26, 23, 0.78);
  margin: 0 0 2rem;
}

.content-page h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-top: 0;
}

.content-page h2,
.content-page h3 {
  margin-top: 1.4rem;
}

.content-page p,
.content-page li {
  font-size: 1.03rem;
}

.content-page a {
  color: var(--clay);
  font-weight: 700;
}

.services-intro,
.contact-section {
  margin-top: 2.8rem;
}

.services-intro {
  max-width: 760px;
}

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

.card {
  padding: 1.2rem;
}

.card h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin: 0 0 0.6rem;
}

.service-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(31, 26, 23, 0.08);
  background: linear-gradient(135deg, rgba(214, 195, 162, 0.45), rgba(63, 95, 69, 0.15));
}

.card p {
  margin-bottom: 1rem;
}

.text-link {
  color: var(--clay);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.quote-panel {
  margin-top: 2.4rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(63, 95, 69, 0.95), rgba(31, 26, 23, 0.92));
  color: #f9f4e9;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.quote-panel blockquote {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
}

.quote-attribution {
  margin: 1rem 0 0;
  color: rgba(249, 244, 233, 0.86);
  font-weight: 600;
}

.contact-heading {
  max-width: 540px;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-card h3 {
  margin-top: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--moss), #263b2b);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(31, 26, 23, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(31, 26, 23, 0.24);
  background: linear-gradient(135deg, var(--clay), #8d4321);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.site-footer {
  margin-top: 2rem;
  padding-bottom: 2.2rem;
  color: rgba(31, 26, 23, 0.8);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 700ms ease-out forwards;
}

.grid.reveal {
  animation-delay: 120ms;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header,
  main,
  .site-footer {
    width: min(1100px, calc(100% - 1.5rem));
  }

  .hero {
    max-width: 100%;
    padding-top: 2.4rem;
  }

  .button {
    padding: 0.72rem 1rem;
  }

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

@media (max-width: 760px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: 0.9rem;
  }

  .brand {
    justify-content: center;
  }

  .brand-text {
    text-align: center;
    width: 100%;
    font-size: 1.02rem;
  }

  .site-header nav {
    width: 100%;
  }

  .nav-list {
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.45rem;
    justify-content: space-between;
  }

  .nav-list li {
    flex: 1;
  }

  .nav-list a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.55rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(249, 244, 233, 0.7);
    font-size: 0.93rem;
  }

  .hero {
    padding-top: 1rem;
    padding-bottom: 1.2rem;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .lead {
    font-size: 1rem;
    margin-inline: auto;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .services-intro,
  .contact-section {
    margin-top: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1rem;
  }

  .card h3 {
    font-size: 1.22rem;
  }

  .service-image {
    aspect-ratio: 16 / 10;
  }

  .quote-panel {
    padding: 1.4rem;
    margin-top: 1.8rem;
  }

  .quote-panel blockquote {
    font-size: clamp(1.2rem, 7vw, 1.55rem);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    margin-top: 1.1rem;
  }

  .social-link {
    width: 2.7rem;
    height: 2.7rem;
  }

  .site-footer {
    margin-top: 1.5rem;
    padding-bottom: 1.3rem;
    text-align: center;
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 1rem);
  }

  .nav-list {
    gap: 0.35rem;
  }

  .nav-list a {
    font-size: 0.86rem;
    padding: 0.5rem 0.3rem;
  }

  .hero h1 {
    margin-bottom: 0.8rem;
  }

  .eyebrow,
  .section-label {
    font-size: 0.72rem;
  }

  .card p {
    font-size: 0.96rem;
  }

  .content-page p,
  .content-page li {
    font-size: 0.98rem;
  }

  .social-links {
    gap: 0.6rem;
  }
}
