/* ==========================================================================
   Big Yeti Treats: colors sampled from the client's cover artwork
   ========================================================================== */
:root {
  --navy: #132A4F;         /* header band, footer, Send button */
  --navy-2: #244675;       /* back mountain ridge */
  --navy-deep: #0B1C38;    /* button edge */
  --blue: #5D96DF;         /* "TREATS" blue: View documents button */
  --blue-dark: #3B74C0;    /* button edge */
  --link: #2F66B3;         /* links on light backgrounds */
  --ink: #14223D;          /* text */
  --muted: #4F6282;        /* secondary text */
  --page: #F6FBFF;         /* page background */
  --ice: #E9F4FF;          /* documents area */
  --line: #D3E1F2;
  --surface: #FFFFFF;
  --danger: #B42318;
  --danger-bg: #FDECEA;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --max: 1120px;
  color-scheme: light;
}

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

img, canvas { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; line-height: 1; }

/* Display headings echo the condensed capitals of the BIG YETI wordmark */
h1, h2 {
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

h2 { font-size: clamp(1.875rem, 7.5vw, 2.5rem); color: var(--navy); }

a { color: var(--link); text-underline-offset: 3px; }

a:focus-visible,
button:focus-visible,
h2:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

h2:focus:not(:focus-visible) { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  font-stretch: 87.5%;
  font-size: 1.1875rem;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--navy);
  box-shadow: 0 4px 0 var(--blue-dark);
}

.btn-brand {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 0 var(--navy-deep);
}

.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--blue-dark); }
.btn-brand:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy-deep); }

@media (hover: hover) {
  .btn-primary:hover { background: color-mix(in srgb, var(--blue) 88%, #fff); }
  .btn-brand:hover { background: color-mix(in srgb, var(--navy) 88%, #fff); }
}

.btn-ghost {
  background: transparent;
  color: var(--link);
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: 1.0625rem;
  min-height: 50px;
}

.btn[disabled] { opacity: .72; cursor: progress; transform: none; }

.btn-wide, .btn-full { width: 100%; }

/* ---------- Hero: navy band with mountain ridge ---------- */
.band {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
}

.band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px 22px;
  animation: settle .6s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* White frame around the sign, as on the printed cover */
.sign {
  background: #fff;
  padding: 7px;
  border-radius: 16px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55);
  max-width: 640px;
}

.logo {
  width: 100%;
  height: auto;
  border-radius: 9px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.375rem, 11vw, 4.5rem);
  line-height: .94;
  max-width: 13ch;
  margin: 30px 0 0 4px;
  text-wrap: balance;
}

.ridge {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: -4px;
}

.ridge-back { fill: var(--navy-2); }
.ridge-front { fill: var(--page); }

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6px 20px 40px;
  display: flex;
  flex-direction: column;
}

.hero-intro {
  font-size: 1.125rem;
  max-width: 36ch;
  margin: 0 0 24px;
}

/* On phones the button comes before the photo so it's on the first screen */
.hero-actions { order: 2; }
.hero-art { order: 3; margin: 36px 0 0; }

.hero-art img {
  width: min(100%, 340px);
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 18px 36px -18px rgba(19, 42, 79, .55);
}

.hero-note {
  margin: 14px 0 0;
  font-size: .9375rem;
  color: var(--muted);
}

@media (min-width: 600px) {
  .btn-wide { width: auto; min-width: 280px; }
  .band-inner { padding: 28px 32px 30px; }
  .hero-inner { padding: 10px 36px 56px; }
  .ridge { height: 72px; }
}

/* Large screens: copy on the left, machine photo rising into the band */
@media (min-width: 900px) {
  .band-inner { padding: 40px 40px 34px; }
  .band-inner > * { max-width: 600px; }
  .hero h1 { font-size: clamp(3.25rem, 5vw, 4.5rem); max-width: 16ch; margin-top: 34px; }
  .ridge { height: 96px; }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: "copy art" "actions art";
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    padding: 0 40px 80px;
  }

  .hero-copy { grid-area: copy; padding-top: 12px; }
  .hero-actions { grid-area: actions; }

  .hero-art {
    grid-area: art;
    position: relative;
    z-index: 1;
    margin: -330px 0 0;
  }

  .hero-art img { width: 100%; border-radius: 8px; box-shadow: 0 28px 48px -22px rgba(19, 42, 79, .6); }

  .no-art .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "actions";
  }

  .hero-intro { font-size: 1.25rem; margin-bottom: 32px; }
}

@media (min-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 420px; }
  .hero-art { margin-top: -380px; }
}

/* ---------- About: plain text for visitors and search engines ---------- */
.about {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.about-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 20px 52px;
}

.about h2 { max-width: 18ch; }

.about-lede {
  font-size: 1.125rem;
  max-width: 52ch;
  margin: 16px 0 32px;
}

.about h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  font-stretch: 87.5%;
  color: var(--navy);
  margin: 0 0 10px;
}

.about-cols { display: grid; gap: 28px; }

.about ul {
  margin: 0;
  padding-left: 1.15em;
}

.about li { margin-bottom: 6px; }
.about li::marker { color: var(--blue); }

.about-cols p { margin: 0 0 8px; }

.steps-title { margin-top: 40px !important; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin: 0;
  min-height: 40px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
}

.steps strong { display: block; color: var(--navy); }

.about-fine {
  margin: 22px 0 28px;
  font-size: .875rem;
  color: var(--muted);
  max-width: 60ch;
}

@media (min-width: 760px) {
  .about-inner { padding: 64px 36px 72px; }
  .about-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .steps li { padding: 52px 0 0; }
}

@media (min-width: 900px) {
  .about-inner { padding: 72px 40px 80px; }
  .about h2 { max-width: 26ch; }
}

/* ---------- Documents + contact section ---------- */
.docs-section {
  background: var(--ice);
  border-top: 1px solid var(--line);
  padding: 40px 12px 64px;
  animation: reveal .45s ease-out both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

.docs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 0 8px;
  margin-bottom: 22px;
}

.jump { font-weight: 600; font-size: 1rem; }

.doc + .doc { margin-top: 48px; }

.doc-title {
  font-size: 1.3125rem;
  font-weight: 700;
  font-stretch: 87.5%;
  margin: 0 8px 6px;
}

.doc-status {
  margin: 0 8px 14px;
  font-size: .9375rem;
  color: var(--muted);
}

.doc-error {
  margin: 0;
  padding: 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.doc-error strong { display: block; margin-bottom: 4px; }

.pages { display: grid; gap: 22px; }

.sheet { margin: 0; }

.sheet-paper {
  position: relative;
  aspect-ratio: 8.5 / 11;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(19, 42, 79, .10),
    0 12px 28px -14px rgba(19, 42, 79, .38);
}

.sheet-paper canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sheet-paper:not(.is-rendered) {
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%) 0 0 / 200% 100%,
    #DCE8F6;
  animation: sheen 1.4s linear infinite;
}

@keyframes sheen { to { background-position: -200% 0, 0 0; } }

.sheet figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: .8125rem;
  color: var(--muted);
}

/* ---------- Contact form ---------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 20px 24px;
}

.contact-card h2 { font-size: clamp(1.75rem, 7vw, 2.125rem); }

.contact-lede {
  margin: 12px 0 8px;
  max-width: 40ch;
}

.contact-call {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .9375rem;
}

.contact-call a { font-weight: 600; white-space: nowrap; }

.field { margin-bottom: 18px; }

legend + .field { clear: both; }

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

fieldset + fieldset {
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

legend {
  float: left;            /* keeps the legend out of the fieldset border */
  width: 100%;
  padding: 0;
  margin-bottom: 14px;
  font-weight: 700;
  font-stretch: 87.5%;
  font-size: 1.1875rem;
  color: var(--navy);
}

.field label {
  display: block;
  font-weight: 600;
  font-size: .9375rem;
  margin-bottom: 6px;
}

.optional { font-weight: 400; color: var(--muted); }

.field-hint {
  margin: -2px 0 8px;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem;       /* 16px stops iPhones zooming in on tap */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 50px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea { min-height: 96px; resize: vertical; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23132A4F' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  cursor: pointer;
}

.field ::placeholder { color: #8796AD; opacity: 1; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent);
}

.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 20%, transparent);
}

.field-error {
  margin: 6px 0 0;
  font-size: .875rem;
  color: var(--danger);
}

.field-error:empty { display: none; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#submit-btn { margin-top: 6px; }

.form-status { margin: 14px 0 0; font-size: .9375rem; }
.form-status:empty { display: none; }

.form-status.is-error {
  color: var(--danger);
  background: var(--danger-bg);
  padding: 12px 14px;
  border-radius: 10px;
}

.form-fine {
  margin: 14px 0 0;
  font-size: .8125rem;
  color: var(--muted);
}

.form-success { outline: none; }

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 80%;
  padding-left: 14px;
  border-left: 5px solid var(--blue);
  margin: 4px 0 12px;
}

.form-success p { margin: 0 0 22px; }

.form-success [data-out] { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Floating "Send us a message" (phones only) ---------- */
.mobile-cta {
  position: fixed;
  z-index: 20;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  min-height: 54px;
  font-size: 1.0625rem;
  transform: translateY(calc(100% + 40px));
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}

.mobile-cta.is-visible {
  transform: none;
  visibility: visible;
  transition: transform .25s ease, visibility 0s;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: #C9D8EC;
  font-size: .9375rem;
  text-align: center;
  padding: 32px 22px calc(32px + env(safe-area-inset-bottom, 0px));
}

.site-footer p { margin: 0 0 8px; }
.site-footer a { color: #fff; }
.site-footer a:focus-visible { outline-color: #fff; }

.footer-name {
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

.footer-copy { font-size: .8125rem; opacity: .8; margin-bottom: 0 !important; }

/* ---------- Large screens: documents left, form right ---------- */
@media (min-width: 960px) {
  .docs-section { padding: 64px 32px 88px; }

  .layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: start;
  }

  .contact-card { padding: 32px 28px 28px; }

  .mobile-cta { display: none; }
}

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
