:root {
  --paper: #F6F1E5;
  --paperdeep: #EAE1CB;
  --ink: #1B2620;
  --bottle: #243C2C;
  --bottledark: #172821;
  --olive: #57633C;
  --brass: #A9824A;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Assistant', sans-serif;
}

h1, h2, h3, .font-serif-display {
  font-family: 'Frank Ruhl Libre', Georgia, serif;
}

/* grain texture */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* cadastral grid - survey / parcel boundary lines */
.survey-grid {
  background-image:
    linear-gradient(rgba(169,130,74,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,130,74,0.16) 1px, transparent 1px);
  background-size: 64px 64px;
}
.survey-grid-dark {
  background-image:
    linear-gradient(rgba(246,241,229,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,241,229,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* layered, color-tinted shadows */
.shadow-card {
  box-shadow:
    0 1px 2px rgba(27,38,32,0.06),
    0 8px 24px -8px rgba(27,38,32,0.18),
    0 24px 48px -24px rgba(36,60,44,0.22);
}
.shadow-deep {
  box-shadow:
    0 2px 6px rgba(23,40,33,0.18),
    0 18px 40px -12px rgba(23,40,33,0.45);
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* header states */
#site-header { transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease; }

.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--brass);
  transition: width 0.35s cubic-bezier(.16,1,.3,1);
}
.nav-link:hover::after, .nav-link:focus-visible::after { width: 100%; }

.btn-primary {
  transition: transform 0.25s cubic-bezier(.16,1,.3,1), box-shadow 0.25s cubic-bezier(.16,1,.3,1), background-color 0.25s ease;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.mobile-menu { transition: transform 0.4s cubic-bezier(.16,1,.3,1), opacity 0.3s ease; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid rgba(36,60,44,0.12); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  font-family: 'Frank Ruhl Libre', Georgia, serif;
  font-size: 1.18rem;
  color: var(--bottle);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  position: relative;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
  color: var(--brass);
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 0 1.4rem;
  color: rgba(27,38,32,0.78);
  line-height: 1.9;
  font-size: 1.02rem;
}

/* service hero icon tile */
.svc-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(169,130,74,0.12);
  border: 1px solid rgba(169,130,74,0.4);
}

/* prose lists on service pages */
.svc-prose p { line-height: 1.9; color: rgba(27,38,32,0.82); }
.svc-prose ul { margin-top: 0.5rem; }
.svc-prose li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin-bottom: 0.7rem;
  line-height: 1.8;
  color: rgba(27,38,32,0.82);
}
.svc-prose li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  background: var(--brass);
  transform: rotate(45deg);
}
