
:root {
  --sage-100: #f4f5f0;
  --sage-200: #e0e5dc;
  --sage-300: #cdd5c6;
  --sage-400: #9dad96;
  --sage-500: #5a6b5c;
  --sage-600: #3f4d42;
  --earth-500: #c07f45;
  --earth-600: #8f5e2e;
  --cream: #fffdf7;
  --shadow: 0 15px 30px rgba(45, 56, 48, 0.15);
  --radius: 1rem;
  --font-heading: "Marcellus", serif;
  --font-body: "Karla", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--sage-600);
  background: radial-gradient(circle at top, var(--cream), var(--sage-100));
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 0.75rem;
}

a {
  color: var(--earth-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--earth-600);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--sage-600);
  margin-top: 0;
}

p {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.1rem;
}

.container {
  width: min(1100px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--earth-500);
  color: white;
  border-radius: 0.5rem;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--sage-600);
  color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.nav-toggle {
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
  z-index: 1101;
}

.nav-toggle__icon {
  display: grid;
  gap: 6px;
}

.nav-toggle__bar {
  width: 28px;
  height: 3px;
  background: white;
  display: block;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 1.1rem;
  color: white;
}

.site-nav a[aria-current="page"] {
  color: var(--earth-500);
}

@media (max-width: 767px) {
  .brand,
  .nav-toggle {
    transform: translateX(-30px);
  }

  .nav-toggle[aria-expanded="true"] {
    position: fixed;
    top: 1rem;
    right: 1rem;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    background: var(--sage-600);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem 2.25rem;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
  }

  .site-nav a {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.2px;
  }

  .site-nav .button {
    width: min(340px, 100%);
  }

  .about-grid article {
    text-align: center;
  }

  .about-grid .icon-list {
    width: fit-content;
    margin-inline: auto;
    text-align: left;
  }

  .about-grid .service-callout {
    text-align: center;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: var(--earth-500);
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(192, 127, 69, 0.25);
  transition: transform 0.2s ease;
}

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

.button--ghost {
  background: transparent;
  color: var(--earth-600);
  border: 1px solid rgba(192, 127, 69, 0.6);
  box-shadow: none;
}

.hero {
  padding: clamp(4rem, 12vw, 6rem) 0 clamp(2.5rem, 8vw, 4rem);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-areas:
    "head"
    "aside"
    "body";
}

.hero-head {
  grid-area: head;
  text-align: center;
}

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

.hero-body {
  grid-area: body;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.75rem;
  color: var(--earth-500);
}

.lead {
  font-size: 1.2rem;
}

.hero-card {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}


.hero-aside {
  grid-area: aside;
  display: grid;
  gap: 1.25rem;
  max-width: 520px;
  margin-inline: auto;
}

.hero-figure {
  margin: 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(63, 77, 66, 0.12);
}

.hero-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: clamp(280px, 60vw, 500px);
  transition: transform 0.4s ease;
}

.hero-figure figcaption {
  padding: 0.85rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--sage-500);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
  justify-content: center;
  align-items: center;
}

.hero-actions .button,
.cta-actions .button {
  width: min(320px, 100%);
}

.hero-scroll a {
  color: var(--sage-500);
  font-weight: 600;
  text-decoration: underline;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.section {
  padding: clamp(3rem, 10vw, 4.5rem) 0;
}

.section--accent {
  background: linear-gradient(120deg, var(--sage-100), var(--sage-200));
}

.section--cta {
  background: var(--sage-600);
  color: white;
  padding: 3rem 0 2rem;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--cards .card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 25px rgba(90, 107, 92, 0.1);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

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

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.process-steps li {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 5px 15px rgba(63, 77, 66, 0.08);
}

.grid--testimonials {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.grid--testimonials article {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.t-name {
  font-weight: 600;
  display: block;
  margin-top: 0.5rem;
}

.site-footer {
  background: var(--sage-600);
  color: white;
  padding: 2rem 0 1.5rem;
}

.site-footer a {
  color: white;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-grid > div:nth-child(2) ul,
.footer-grid > div:nth-child(3) ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-grid > div:nth-child(2),
.footer-grid > div:nth-child(3) {
  padding-right: 1.25rem;
}

.footer-grid > div:nth-child(2) li,
.footer-grid > div:nth-child(3) li {
  margin-bottom: 0.35rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    text-align: center;
  }

  .footer-grid > div {
    padding-right: 0;
  }
}

.footer-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: var(--earth-500);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.back-to-top.is-visible {
  display: flex;
}

.page-hero {
  padding: 6rem 0 3rem;
  background: linear-gradient(90deg, var(--sage-100), var(--cream));
}

.narrow {
  width: min(720px, 92vw);
  text-align: center;
}

.timeline {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.timeline div {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(76, 84, 76, 0.08);
}

.timeline span {
  font-weight: 600;
  color: var(--earth-500);
  display: block;
  margin-bottom: 0.5rem;
}

.gallery-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid figure {
  margin: 0;
  background: white;
  padding: 0.85rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 18px rgba(63, 77, 66, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gallery-grid figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius) - 0.35rem);
}

@media (min-width: 768px) {
  .gallery-grid figure img {
    cursor: zoom-in;
  }
}

.gallery-grid figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(63, 77, 66, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  z-index: 2000;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: min(1100px, 92vw);
  max-height: 88vh;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: none;
  background: var(--earth-500);
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.lightbox-close:hover {
  background: var(--earth-600);
}

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

.contact-panel {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.input-group input,
.input-group textarea,
.input-group select {
  border: 1px solid var(--sage-300);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: white;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-color: var(--earth-500);
}

.input-group.error input,
.input-group.error textarea,
.input-group.error select {
  border-color: #c0392b;
}

.input-group .error-text {
  color: #c0392b;
  font-size: 0.9rem;
}

.input-hint {
  font-size: 0.9rem;
  color: var(--sage-500);
}

.form-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-controls {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .form-controls .button {
    margin-left: auto;
    order: 1;
  }

  .form-controls .form-status {
    flex-basis: 100%;
    order: 2;
    text-align: left;
  }
}

.form-status {
  min-height: 1.4rem;
  font-size: 0.95rem;
}

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

.contact-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-hero strong {
  color: var(--earth-600);
}

.code-ref {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  background: rgba(63, 77, 66, 0.1);
}

.error-page {
  background: radial-gradient(circle, var(--sage-100), var(--sage-200));
  display: grid;
  min-height: 100vh;
}

.error-wrapper {
  margin: auto;
  text-align: center;
  padding: 2rem;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.icon-list li::before {
  content: "•";
  color: var(--earth-500);
  margin-right: 0.5rem;
}

.service-callout {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--earth-500);
  color: white;
  border: 1px dashed rgba(255, 255, 255, 0.6);
}

.service-callout a {
  color: white;
}

.service-callout a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.service-callout .eyebrow {
  color: white;
}

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

.hero-card dl {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.hero-card dt {
  font-weight: 600;
}

.hero-card dd {
  margin: 0;
  color: var(--sage-500);
}

.section--cta .cta-card h2,
.section--cta .cta-card p {
  color: white;
}

.section--cta .button--ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 0;
  }

  .site-nav {
    position: static;
    transform: none;
    background: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 1.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "head aside"
      "body aside";
    gap: 3rem;
  }

  .hero-head,
  .hero-body {
    text-align: left;
  }

  .hero-aside {
    max-width: none;
    margin-inline: 0;
    align-self: start;
  }

  .cta-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
  }

  .cta-card > div:first-child {
    flex: 1 1 420px;
    min-width: 320px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: row;
    align-items: center;
  }

  .hero-actions {
    justify-content: flex-start;
    text-align: left;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: auto;
  }

  .cta-actions {
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .cta-actions .button {
    white-space: nowrap;
  }

  .contact-grid {
    grid-template-columns: 2fr 1fr;
  }

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

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2.75rem 0 2.25rem;
  }

  .hero-grid {
    gap: 1.25rem;
  }

  .hero-actions,
  .cta-actions {
    margin: 1.1rem 0;
  }

  .hero-card {
    margin-bottom: 1.1rem;
  }

  .process-grid > div {
    padding-inline: 1.25rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .header-inner {
    display: grid;
    grid-template-columns: 3.5rem 1fr 3.5rem;
    align-items: center;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 0.6rem;
  }

  .brand-copy {
    align-items: flex-start;
    gap: 0.1rem;
  }

  .brand-copy strong {
    font-size: 1.05rem;
    letter-spacing: 0.3px;
  }

  .brand-copy span {
    font-size: 0.85rem;
    opacity: 0.95;
  }

  .brand-mark {
    padding: 2px;
  }

  .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.45);
    transform-origin: center;
  }

  .nav-toggle {
    grid-column: 3;
    justify-self: end;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.75rem;
    margin-right: 0;
  }

  .section--cta .cta-card {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-figure img {
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  body {
    color: black;
  }

  .site-header,
  .card,
  .contact-panel,
  .timeline div {
    border: 1px solid rgba(0, 0, 0, 0.6);
    box-shadow: none;
  }
}

@media (forced-colors: active) {
  a,
  .button {
    forced-color-adjust: none;
    border: 1px solid ButtonText;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .site-nav,
  .hero-actions,
  .back-to-top,
  .cta-actions,
  footer,
  button {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section,
  .hero,
  .page-hero {
    padding: 1rem 0;
  }
}
