:root {
  --ink: #0f1a17;
  --ink-soft: #2a3b36;
  --paper: #e8efe9;
  --mist: #c5d4c9;
  --pine: #1f4d3d;
  --pine-deep: #14352b;
  --river: #3a6b5c;
  --sun: #d4a574;
  --glow: rgba(212, 165, 116, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Shared layout scale */
  --pad-x: clamp(1.25rem, 5vw, 2.75rem);
  --pad-y: clamp(3.25rem, 8vw, 5.5rem);
  --pad-y-sm: clamp(2.25rem, 5vw, 3.25rem);
  --gap: clamp(1.25rem, 3vw, 2rem);
  --gap-lg: clamp(1.75rem, 4vw, 2.75rem);
  --max: 68rem;
  --measure: 38rem;
  --radius: 0.35rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.shell {
  width: min(100% - (var(--pad-x) * 2), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: var(--pad-x);
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding-block: 1.15rem;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  min-width: 0;
}

.logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo img {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.45rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: rgba(232, 239, 233, 0.88);
}

.nav a:hover {
  color: #fff;
}

.nav-cta {
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(232, 239, 233, 0.35);
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Match darkest wave — only a fallback under the SVG, never a flat top bar */
  background: #14352b;
  overflow: hidden;
}

.hero-media picture,
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  /* Dark mid-band (#14352b) center ≈ 58.2% down both SVGs */
  --hero-focal-y: 58.2%;
  --hero-scale: 1.28;
  object-fit: cover;
  object-position: center center;
  /*
   * Scale enough that focal translate never reveals edges (that used to show
   * the hard #3a6b5c plate at the top of the viewport).
   * Translate so focal sits at center, then flip H+V around that center.
   */
  transform: scale(calc(-1 * var(--hero-scale))) translateY(calc(50% - var(--hero-focal-y)));
  animation: hero-drift 28s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  /* Side readability only — no dark band across the top of the art */
  background: linear-gradient(
    105deg,
    rgba(10, 22, 18, 0.45) 0%,
    rgba(10, 22, 18, 0.18) 38%,
    transparent 68%
  );
  pointer-events: none;
}

.hero-copy {
  position: relative;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-block: clamp(1.5rem, 4vh, 2.5rem);
}

.hero-copy .brand,
.hero-copy h1,
.hero-copy .lede,
.hero-copy .cta-row {
  max-width: var(--measure);
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.5vw, 3.65rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(8, 16, 13, 0.35);
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(232, 239, 233, 0.94);
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.lede {
  margin: 0 0 1.85rem;
  color: rgba(232, 239, 233, 0.74);
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes hero-drift {
  from {
    transform: scale(calc(-1 * var(--hero-scale))) translateY(calc(50% - var(--hero-focal-y)))
      translate3d(0, 0, 0);
  }
  to {
    transform: scale(calc(-1 * (var(--hero-scale) + 0.04)))
      translateY(calc(50% - var(--hero-focal-y))) translate3d(1%, 0.6%, 0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--sun);
  color: var(--ink);
}

.btn-primary:hover {
  background: #e0b588;
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(232, 239, 233, 0.4);
}

.btn-ghost:hover {
  border-color: rgba(232, 239, 233, 0.75);
}

.btn-secondary {
  background: transparent;
  color: var(--pine-deep);
  border-color: var(--mist);
}

.btn-secondary:hover {
  border-color: var(--river);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .hero h1,
  .lede,
  .cta-row,
  .reveal,
  .hero-art {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-art {
    transform: scale(calc(-1 * var(--hero-scale))) translateY(calc(50% - var(--hero-focal-y))) !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Sections */
.section {
  padding-block: var(--pad-y);
}


.section h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--pine-deep);
  line-height: 1.15;
}

.section-intro {
  max-width: var(--measure);
}

.section-intro p,
.about-copy p,
.contact > p {
  margin: 0;
  color: var(--ink-soft);
}

.about-copy p + p {
  margin-top: 1rem;
}

.contact > p {
  margin-top: 0.35rem;
  max-width: 32rem;
}

.layers {
  list-style: none;
  margin: var(--gap-lg) 0 0;
  padding: 0;
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layers li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--mist);
}

.layer-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--river);
  margin-bottom: 0.55rem;
}

.layers h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.2;
}

.layers p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.layers .layer-includes {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--river);
}

/* Valley + Sopris — native 640px print, no upscale */
.towns-section {
  background: rgba(31, 77, 61, 0.06);
  border-block: 1px solid var(--mist);
}

.towns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  gap: var(--gap-lg);
  align-items: center;
}

.towns-copy {
  max-width: 34rem;
}

.towns h2 {
  margin: 0 0 0.7rem;
  color: var(--pine-deep);
}

.town-list {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.towns-photo {
  display: block;
  width: 100%;
  max-width: 28rem;
  height: auto;
  justify-self: end;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(15, 26, 23, 0.08);
}

@media (max-width: 720px) {
  .towns {
    grid-template-columns: 1fr;
    gap: var(--gap);
  }

  .towns-photo {
    justify-self: start;
  }
}

.about {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  gap: var(--gap-lg);
  align-items: center;
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  filter: saturate(0.92) contrast(1.04);
}

.about-copy {
  max-width: 34rem;
}

.faq-list {
  margin: var(--gap-lg) 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
}

.faq-item {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--mist);
}

.faq-item dt {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ink);
}

.faq-item dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.faq-item a {
  color: var(--pine-deep);
  font-weight: 600;
  text-decoration: none;
}

.faq-item a:hover {
  text-decoration: underline;
}

.contact {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  align-items: start;
}

.contact-intro p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  max-width: 28rem;
}

.contact-avail {
  margin-top: 0.65rem !important;
  font-size: 0.9rem;
  color: var(--river) !important;
}

.contact-alt {
  margin-top: 1rem !important;
  font-size: 0.95rem;
}

.contact-alt a {
  color: var(--pine-deep);
  font-weight: 600;
  text-decoration: none;
}

.contact-alt a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 28rem;
  justify-self: end;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.optional {
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--river);
  box-shadow: 0 0 0 3px rgba(58, 107, 92, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.recaptcha-slot {
  min-height: 0;
}

/* Allowed when Privacy Policy + Terms links are shown (see contact form). */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.recaptcha-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.contact-status {
  margin: 0;
  font-size: 0.95rem;
}

.contact-status.is-error {
  color: #8a2f2f;
}

.contact-status.is-ok {
  color: var(--pine);
}

.contact-form .btn-primary {
  justify-self: start;
  background: var(--pine);
  color: var(--paper);
  border: none;
  cursor: pointer;
}

.contact-form .btn-primary:hover {
  background: var(--pine-deep);
}

.contact-form .btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* Footer — NitroMule marketing main-footer structure */
.site-footer {
  width: 100%;
  flex-shrink: 0;
  background: var(--pine-deep);
  color: var(--paper);
  padding: 3.5rem 0 4rem;
  box-sizing: border-box;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  text-decoration: none;
  color: var(--paper);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.footer-logo img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.45rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 5rem;
  width: 100%;
}

.footer-legal {
  flex: 1 1 0;
  min-width: 0;
  max-width: 34rem;
  font-size: 0.75rem;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(232, 239, 233, 0.88);
}

.footer-legal p {
  margin: 0 0 0.65rem;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

.footer-legal .recaptcha-note {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  max-width: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 0.75rem 1.75rem;
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}

.footer-nav a {
  color: var(--paper);
  text-decoration: none;
  max-width: 9.5rem;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 960px) {
  .site-footer {
    padding: 2.5rem 0 3rem;
  }

  .footer-inner {
    gap: 2rem;
  }

  .footer-logo {
    font-size: 0.98rem;
  }

  .footer-logo img {
    width: 2.15rem;
    height: 2.15rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-legal {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .footer-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.875rem;
    flex: none;
    width: 100%;
  }

  .footer-nav a {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 2rem 0 2.5rem;
  }

  .footer-inner {
    gap: 1.75rem;
  }

  .footer-bottom {
    gap: 1.75rem;
  }

  .footer-nav {
    gap: 0.75rem;
    font-size: 0.875rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Tablet / mobile — matches hero mobile SVG breakpoint */
@media (max-width: 900px) {
  .hero {
    /* Anchor copy from the top so we can land it on the dark ridge */
    align-items: flex-start;
    min-height: 100svh;
  }

  .hero-art {
    /*
     * Portrait SVG: pull the dark ridge into the upper-middle of the frame.
     */
    --hero-focal-y: 66%;
    --hero-scale: 1.55;
    object-position: center 30%;
  }

  .hero-veil {
    background: linear-gradient(
      180deg,
      rgba(10, 22, 18, 0.2) 0%,
      rgba(10, 22, 18, 0.38) 38%,
      rgba(10, 22, 18, 0.25) 100%
    );
  }

  .hero-copy {
    margin-top: 0;
    /* ~header clearance + sit on dark mid-band (~32–38% down) */
    padding-top: clamp(5.5rem, 32vh, 14rem);
    padding-bottom: 2rem;
  }

  .layers {
    grid-template-columns: 1fr;
    gap: var(--gap);
  }

  .about {
    grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
    gap: var(--gap);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .site-header {
    padding-block: 0.85rem;
  }

  .logo span {
    max-width: 8.75rem;
  }

  .nav {
    gap: 0.2rem 0.55rem;
    font-size: 0.8rem;
  }

  .nav-cta {
    padding: 0.32rem 0.65rem;
  }

  .hero-copy {
    padding-top: clamp(5.25rem, 30vh, 12rem);
  }

  .brand {
    font-size: clamp(1.95rem, 9.5vw, 2.4rem);
    margin-bottom: 0.75rem;
  }

  .hero h1 {
    font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  }

  .lede {
    margin-bottom: 1.35rem;
    font-size: 0.98rem;
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .about {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .about-portrait {
    width: min(100%, 13.5rem);
  }

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

  .contact-form {
    justify-self: stretch;
    max-width: none;
  }

  .contact-form .btn-primary {
    width: 100%;
    justify-self: stretch;
  }
}
