/* ---------- tokens ---------- */
:root {
  --forest: #2F4A2B;
  --forest-deep: #16210F;
  --moss: #4A6741;
  --ochre: #C08A28;
  --sand: #ECDCB8;
  --stone: #DBC79A;
  --clay: #D8B888;
  --cream: #F7F4EC;
  --charcoal: #22221C;
  --line: rgba(34,34,28,0.12);

  --serif: 'Fraunces', serif;
  --sans: 'Work Sans', sans-serif;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--sand);
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  color: var(--forest-deep);
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}

/* holds the shared cactus / agave / mesa shapes; never rendered itself */
.desert-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--ochre);
  color: var(--forest-deep);
}
.btn-primary:hover { background: #d59b3a; }
.btn-ghost {
  border-color: rgba(247,244,236,0.5);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--cream); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(22,33,15,0.92);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
}
/* cream line-art logo (transparent PNG) sits directly on the dark green */
.logo-img {
  display: block;
  height: 100px;
  width: 359px;
  color: var(--cream);
  transition: transform 0.2s ease;
}
.brand:hover .logo-img {
  transform: translateY(-2px);
}
.logo-img-sm {
  height: 90px;
  width: 323px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  color: var(--stone);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--cream); }
.nav-cta {
  background: var(--ochre);
  color: var(--forest-deep) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
}
.nav-cta:hover { background: #d59b3a; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--cream);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 140% 55% at 50% 100%, rgba(192,138,40,0.32) 0%, rgba(192,138,40,0) 60%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 65%);
  overflow: hidden;
}
.hero-type {
  position: absolute;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  animation: heroTypeIn 1.1s ease 0.15s forwards;
}
.hero-type span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(4.5rem, 18vw, 13rem);
  color: rgba(247,244,236,0.06);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@keyframes heroTypeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Arizona desert at dusk: sun, mesas, then three layers of silhouettes.
   Each layer gets darker as it gets closer; the nearest matches the
   divider's background so the hero ends with no visible seam. */
.hero-desert {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  z-index: 1;
  pointer-events: none;
}
.hero-desert svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-desert .layer-far  { color: #4A3D27; }
.hero-desert .layer-mid  { color: #2A301A; }
.hero-desert .layer-near { color: var(--forest-deep); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  animation: heroContentIn 0.9s ease 0.4s forwards;
}
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-kicker {
  color: var(--ochre);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 600;
  margin-bottom: 1.3rem;
}
.hero-sub {
  color: rgba(247,244,236,0.78);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-stats {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 3rem;
  border-top: 1px solid rgba(247,244,236,0.15);
  padding-top: 1.6rem;
  opacity: 0;
  animation: heroContentIn 0.9s ease 0.6s forwards;
}
.stat { display: flex; flex-direction: column; }
.stat strong {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1.8rem;
  font-weight: 600;
}
.stat span {
  color: rgba(247,244,236,0.6);
  font-size: 0.85rem;
}

/* transition from hero into the sand-colored page below: a low desert
   horizon with plants growing up out of the sand */
.desert-divider {
  display: block;
  width: 100%;
  height: auto;
  min-height: 84px;
  margin-top: -2px;
  background: var(--forest-deep);
}
.desert-divider .dune-back {
  color: var(--sand);
  opacity: 0.38;
}
.desert-divider .dune-front {
  color: var(--sand);
}

/* ---------- section shared ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 0.9rem;
}
.section-head p {
  color: rgba(34,34,28,0.65);
  font-size: 1.05rem;
}
.section-head.light h2 { color: var(--cream); }
.section-head.light p { color: rgba(247,244,236,0.65); }

/* ---------- services ---------- */
.services {
  padding: 6rem 0;
}
.service-rows {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}
.service-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.service-row.in-view {
  opacity: 1;
  transform: translateY(0);
}
.service-row.reverse {
  grid-template-columns: 1fr 220px;
}
.service-row.reverse .service-media { order: 2; }
.service-media {
  color: var(--tint, var(--moss));
  background: color-mix(in srgb, var(--tint, var(--moss)) 12%, var(--cream));
  border-radius: 4px;
  padding: 2rem;
  aspect-ratio: 1;
}
.service-copy h3 {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}
.service-copy > p {
  color: rgba(34,34,28,0.68);
  max-width: 52ch;
  margin-bottom: 1.1rem;
}
.service-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}
.service-copy li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest);
  position: relative;
  padding-left: 1.1rem;
}
.service-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--ochre);
  border-radius: 50%;
}

/* ---------- work ---------- */
.work {
  background: var(--forest-deep);
  padding: 6rem 0;
}
.work-scroll {
  display: flex;
  gap: 1.3rem;
  overflow-x: auto;
  padding: 0 1.5rem 1rem;
  scroll-snap-type: x mandatory;
  max-width: var(--max);
  margin: 0 auto;
}
.work-scroll::-webkit-scrollbar { height: 6px; }
.work-scroll::-webkit-scrollbar-thumb { background: rgba(247,244,236,0.2); border-radius: 3px; }
.work-card {
  flex: 0 0 auto;
  width: min(340px, 78vw);
  aspect-ratio: 4/5;
  border-radius: 4px;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  position: relative;
  scroll-snap-align: start;
  margin: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  overflow: hidden;
}
.work-card figcaption h4 {
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.work-card figcaption span {
  color: rgba(247,244,236,0.7);
  font-size: 0.85rem;
}

/* ---------- process ---------- */
.process { padding: 6rem 0; }
.process-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}
.process-list li {
  border-top: 2px solid var(--forest);
  padding-top: 1.2rem;
  counter-increment: step;
}
.process-list h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.process-list p {
  color: rgba(34,34,28,0.65);
  font-size: 0.95rem;
}

/* ---------- contact ---------- */
.contact {
  background: var(--clay);
  padding: 6rem 0;
}
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-copy h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}
.contact-copy > p {
  color: rgba(34,34,28,0.68);
  max-width: 42ch;
  margin-bottom: 2.2rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-details span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--moss);
  margin-bottom: 0.2rem;
}
.contact-details a { font-weight: 500; }

.contact-form {
  background: var(--cream);
  border-radius: 6px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--charcoal);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--moss);
}
.form-row.error input,
.form-row.error select {
  border-color: #b3432f;
}
.form-error {
  font-size: 0.78rem;
  color: #b3432f;
  min-height: 1em;
}
.form-status {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--moss);
  min-height: 1.2em;
}

/* ---------- social links ---------- */
.social-links {
  display: flex;
  gap: 0.7rem;
}
.social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: var(--forest);
  color: var(--cream);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-links a:hover {
  background: var(--ochre);
  color: var(--forest-deep);
  transform: translateY(-3px);
}
.social-links svg {
  width: 20px;
  height: 20px;
}

/* footer version: smaller, sits on the dark green */
.social-links-sm a {
  width: 34px;
  height: 34px;
  background: rgba(247,244,236,0.08);
  color: var(--stone);
}
.social-links-sm svg {
  width: 17px;
  height: 17px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--forest-deep);
  padding: 2.5rem 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner p {
  color: rgba(247,244,236,0.55);
  font-size: 0.85rem;
}

/* ---------- responsive ---------- */
@media (max-width: 1050px) and (min-width: 901px) {
  .main-nav { gap: 1.2rem; }
  .logo-img { height: 84px; width: 302px; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 120px; left: 0; right: 0;
    background: var(--forest-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.2rem;
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }

  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
  }
  .service-media { order: -1 !important; width: 140px; margin: 0 auto; }

  .process-list { grid-template-columns: 1fr 1fr; }

  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-inner { padding: 0.6rem 1.2rem; }
  .logo-img { height: 72px; width: 258px; }
  .main-nav { top: 92px; }
  .logo-img-sm { height: 72px; width: 258px; }
  .hero { padding-top: 6rem; padding-bottom: 7rem; }
  .hero-stats { flex-wrap: wrap; row-gap: 1.2rem; }
  .hero-desert { height: 34%; }
  .desert-divider { min-height: 64px; }
  .process-list { grid-template-columns: 1fr; }
}