:root {
  --background: #f5f1e8;
  --surface: #fffdf9;
  --surface-dark: #25261f;
  --text: #24251f;
  --text-muted: #68695f;
  --accent: #a27c2c;
  --accent-dark: #76591e;
  --border: #ddd6c8;
  --shadow: 0 18px 50px rgb(42 39 30 / 10%);
  --radius-small: 0.75rem;
  --radius-medium: 1.25rem;
  --radius-large: 2rem;
  --content-width: 1180px;
  --header-height: 5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--surface-dark);
  border-radius: var(--radius-small);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  background: rgb(245 241 232 / 88%);
  border-bottom: 1px solid rgb(221 214 200 / 75%);
  backdrop-filter: blur(18px);
}

.header-inner,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: 50%;
}

.brand-name,
.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.primary-navigation a {
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-navigation a:not(.nav-cta) {
  text-underline-offset: 0.4rem;
}

.primary-navigation a:not(.nav-cta):hover,
.primary-navigation a:not(.nav-cta):focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.nav-cta {
  padding: 0.7rem 1.1rem;
  color: white;
  background: var(--surface-dark);
  border-radius: 999px;
}

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}

.menu-button span[aria-hidden="true"] {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

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

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  min-height: calc(100svh - var(--header-height));
}

.hero-copy {
  max-width: 56ch;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

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

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface);
  border-color: var(--accent);
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 650;
  list-style: none;
}

.hero-details li {
  position: relative;
}

.hero-details li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -0.9rem;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.hero-media {
  position: relative;
}

.hero-media > img {
  width: 100%;
  max-height: 690px;
  object-fit: cover;
  border-radius: min(12vw, 8rem) min(12vw, 8rem) 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  right: -1.5rem;
  bottom: 2rem;
  display: grid;
  max-width: 16rem;
  gap: 0.2rem;
  padding: 1rem 1.2rem;
  color: white;
  background: rgb(37 38 31 / 92%);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
}

.hero-note span {
  color: rgb(255 255 255 / 72%);
  font-size: 0.82rem;
}

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 10vw, 9rem);
  border-top: 1px solid var(--border);
}

.about-copy {
  max-width: 680px;
  font-size: 1.04rem;
}

.about-copy .lead {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
}

.services {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100% - var(--content-width)) / 2));
  background: var(--surface-dark);
}

.services .section-heading h2,
.services .service-card h3 {
  color: white;
}

.services .section-heading > p:last-child,
.services .service-card p {
  color: rgb(255 255 255 / 65%);
}

.services .eyebrow {
  color: #d0ad62;
}

.section-heading-centered {
  width: min(100%, 700px);
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.section-heading-centered h2 {
  max-width: none;
}

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

.service-card {
  overflow: hidden;
  background: #303128;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: var(--radius-medium);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.service-card:hover {
  border-color: rgb(208 173 98 / 55%);
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-card-content {
  padding: 1.5rem;
}

.service-card-content p {
  margin-bottom: 0;
}

.contact {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 8vw, 7rem);
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  max-width: 13ch;
}

.contact-details {
  display: grid;
  align-content: center;
  gap: 1.75rem;
  font-style: normal;
}

.contact-details div {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-details a {
  color: var(--text);
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-block: 3rem;
  border-top: 1px solid var(--border);
}

.footer-brand {
  color: var(--text);
  text-decoration: none;
}

.site-footer p {
  max-width: 52ch;
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
}

.footer-meta {
  text-align: right;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .primary-navigation {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    padding: 1rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .primary-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-navigation a {
    padding: 1rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .menu-button[aria-expanded="true"] span[aria-hidden="true"]:nth-of-type(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span[aria-hidden="true"]:nth-of-type(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span[aria-hidden="true"]:nth-of-type(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

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

  .hero {
    padding-top: 3.5rem;
  }

  .hero-content {
    max-width: 720px;
  }

  .hero-media {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .about {
    gap: 2rem;
  }

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

@media (max-width: 620px) {
  .header-inner,
  .section,
  .site-footer {
    width: min(calc(100% - 1.25rem), var(--content-width));
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-logo {
    width: 2.75rem;
    height: 2.75rem;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .hero {
    gap: 3rem;
  }

  .hero-note {
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .hero-details {
    display: grid;
    gap: 0.35rem;
  }

  .hero-details li::after {
    display: none;
  }

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

  .contact-panel {
    padding: 1.5rem;
    border-radius: var(--radius-medium);
  }

  .button-group {
    align-items: stretch;
    flex-direction: column;
  }

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

  .footer-meta {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
