/* ==========================================================================
   DUSTYWALKS77 — HEADER, HERO, SECTION SHELLS, FOOTER
   ========================================================================== */

/* ==========================================================================
   1. HEADER / NAVIGATION
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid rather than a blurred glass panel: cheaper to paint, and it keeps
     nav text at full contrast over whatever is scrolling underneath. */
  background: var(--c-white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-base) var(--e-soft),
              box-shadow var(--d-base) var(--e-soft);
}
/* main.js toggles this once the page has scrolled past the hero top. */
.header.is-stuck {
  border-bottom-color: var(--c-line);
  box-shadow: var(--sh-sm);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

/* ---- Logo lockup: circular artwork + wordmark + tagline ---------------- */
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--c-ink);
  flex: none;
  margin-right: auto;
}

/* The circular crop of the original artwork. object-position frames Dusty
   and the sun; the source file itself is never modified. */
.logo__mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 58% 46%;
  background: var(--c-sky);
  box-shadow: 0 0 0 2px var(--c-white), 0 0 0 3.5px var(--c-charcoal);
  flex: none;
  transition: transform var(--d-base) var(--e-out);
}
.logo:hover .logo__mark { transform: rotate(-4deg) scale(1.04); }

.logo__text { display: flex; flex-direction: column; line-height: 1; }

.logo__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.logo__tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--c-ink-faint);
  margin-top: 0.28rem;
}
@media (max-width: 26rem) {
  .logo__tagline { display: none; }
  .logo__name { font-size: 1.05rem; }
}

/* ---- Desktop nav ------------------------------------------------------- */
.nav { display: flex; align-items: center; gap: var(--s-1); }

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border-radius: var(--r-sm);
  color: var(--c-ink);
  font-size: var(--t-sm);
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--d-fast) var(--e-soft),
              color var(--d-fast) var(--e-soft);
}
.nav__link:hover { background: var(--c-surface-2); color: var(--c-sky-ink); }

.nav__cta { margin-left: var(--s-3); }

/* Scoped to .header so these beat the .btn display rule in components.css. */
@media (max-width: 60rem) {
  .header .nav,
  .header .nav__cta { display: none; }
}

/* ---- Mobile menu ------------------------------------------------------- */
.menu-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 0.85rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-ink);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 60rem) { .menu-btn { display: inline-flex; } }

.menu-btn__bars { width: 1.05rem; height: 0.75rem; position: relative; flex: none; }
.menu-btn__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--d-base) var(--e-out), opacity var(--d-fast) linear;
}
.menu-btn__bars span:nth-child(1) { top: 0; }
.menu-btn__bars span:nth-child(2) { top: 50%; margin-top: -1px; }
.menu-btn__bars span:nth-child(3) { bottom: 0; }

.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--c-line);
  background: var(--c-white);
}
.mobile-nav.is-open { display: block; }
@media (min-width: 60.0625rem) { .mobile-nav { display: none !important; } }

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: var(--s-3) 0 var(--s-5);
}
.mobile-nav__link {
  display: block;
  padding: 0.85rem var(--s-2);
  min-height: 2.75rem;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav__link:hover { color: var(--c-sky-ink); }
.mobile-nav .btn { width: 100%; margin-top: var(--s-5); }

/* ==========================================================================
   2. HERO
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      #7ec7ea 0%,
      var(--c-sky) 42%,
      #67b7de 100%);
  padding-block: clamp(2.5rem, 6vw, 5rem) 0;
  isolation: isolate;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
@media (max-width: 62rem) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
    text-align: center;
    padding-bottom: clamp(3rem, 10vw, 5rem);
  }
}

/* min-width:0 stops the unbreakable "DUSTYWALKS77" wordmark from forcing
   these grid columns wider than the screen. */
.hero__copy { position: relative; z-index: 2; min-width: 0; }

.hero__title {
  /* "DUSTYWALKS77" is one 12-character word that cannot wrap, so it is sized
     against the viewport rather than the global --t-4xl step. 11.5vw keeps it
     inside the gutters at 320px and still fills the column on a laptop. */
  font-size: clamp(2.25rem, 11.5vw, 5.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  color: var(--c-charcoal);
  margin-bottom: var(--s-4);
  /* Keeps the wordmark readable over the sky at every size. */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero__tagline {
  /* White-on-sky fails contrast, so the tagline sits on a soft paper chip.
     Reads as a hand-stuck label and keeps charcoal text at ~6.8:1. */
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-charcoal);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-organic-alt);
  box-shadow: 0 2px 10px rgba(16, 20, 25, 0.1);
  margin: 0 0 var(--s-5);
}
/* Each of the three promises gets its own line on narrow screens without
   ever breaking mid-phrase. */
.hero__tagline span { display: inline-block; }

.hero__lede {
  max-width: 34rem;
  font-size: var(--t-lg);
  color: var(--c-charcoal);
  margin-bottom: var(--s-6);
}
@media (max-width: 62rem) { .hero__lede { margin-inline: auto; } }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
@media (max-width: 62rem) { .hero__actions { justify-content: center; } }
@media (max-width: 30rem) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* ---- Hero artwork ------------------------------------------------------ */
.hero__art {
  position: relative;
  z-index: 2;
  min-width: 0;
  justify-self: center;
  width: min(100%, 30rem);
}

.hero__art-frame {
  position: relative;
  border-radius: var(--r-organic);
  overflow: hidden;
  background: var(--c-sky);
  box-shadow: var(--sh-lg), 0 0 0 6px rgba(255, 255, 255, 0.55);
  aspect-ratio: 1 / 1;
}
.hero__art-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Small handwritten credit to the artist. */
.hero__art-credit {
  margin-top: var(--s-3);
  font-size: var(--t-xs);
  color: var(--c-charcoal);
  text-align: center;
}

/* ---- Drifting clouds --------------------------------------------------- */
.hero__clouds {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.cloud {
  position: absolute;
  fill: #fff;
  opacity: 0.55;
  will-change: transform;
}
.cloud--1 { top: 12%;  left: -14%; width: 18rem; animation: drift 78s linear infinite; }
.cloud--2 { top: 46%;  left: -26%; width: 11rem; opacity: 0.4;  animation: drift 112s linear infinite 8s; }
.cloud--3 { top: 4%;   left: -40%; width: 14rem; opacity: 0.32; animation: drift 145s linear infinite 22s; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(190vw); }
}
@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
  .cloud--1 { left: 6%; }
  .cloud--2 { left: 62%; }
  .cloud--3 { left: 34%; }
}

/* ==========================================================================
   3. SKY → GRASS CURVE
   The soft hill edge from the artwork, reused as the section transition.
   ========================================================================== */

.curve {
  display: block;
  width: 100%;
  height: clamp(3rem, 7vw, 6rem);
  position: relative;
  z-index: 3;
  margin-top: -1px;
}
.curve svg { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   4. SECTION BACKGROUNDS
   ========================================================================== */

.section--tint   { background: var(--c-surface-2); }
.section--grass  { background: linear-gradient(180deg, #eaf7ee 0%, var(--c-white) 100%); }

.is-dark {
  background: var(--c-dark-bg);
  color: var(--c-dark-text);
}
.is-dark h2, .is-dark h3, .is-dark h4 { color: #fff; }
.is-dark .lede, .is-dark p { color: var(--c-dark-faint); }
.is-dark .eyebrow { color: var(--c-dark-faint); }
.is-dark a { color: #8fd3f0; }

/* ==========================================================================
   5. FOOTER
   ========================================================================== */

.footer { background: var(--c-dark-bg); color: var(--c-dark-faint); }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--s-7) var(--s-6);
  padding-block: var(--s-8) var(--s-7);
}
@media (max-width: 52rem) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 30rem) {
  .footer__top { grid-template-columns: 1fr; gap: var(--s-6); }
}

.footer__brand .logo { color: #fff; }
.footer__brand .logo__tagline { color: var(--c-dark-faint); }
.footer__brand p {
  margin-top: var(--s-4);
  max-width: 26rem;
  font-size: var(--t-sm);
  color: var(--c-dark-faint);
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 var(--s-4);
}

.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li + li { margin-top: 0.1rem; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;   /* 44px tap target */
  color: var(--c-dark-faint);
  font-size: var(--t-sm);
  text-decoration: none;
}
.footer__list a:hover { color: #fff; text-decoration: underline; }

.footer__bottom {
  border-top: 1px solid var(--c-dark-line);
  padding-block: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-xs);
}
.footer__credit { color: #6f7c8a; }
.footer__credit a { color: #8b98a6; text-decoration: none; }
.footer__credit a:hover { color: #fff; text-decoration: underline; }
