/* Mile High GSP Rescue — site styles */
:root {
  --liver: #4a2c1d;        /* GSP liver brown */
  --liver-2: #6b4330;
  --ticked: #f6f1ea;       /* warm white, like a ticked coat */
  --cream: #fffaf3;
  --sky: #2f6f8f;          /* Colorado sky */
  --sky-2: #e3f0f6;
  --donate: #e8590c;       /* warm orange: the donate color, used nowhere else */
  --donate-2: #c94a06;
  --text: #2b211b;
  --muted: #6d5f55;
  --line: #e6dccf;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(74, 44, 29, .12);
  --wrap: 1140px;
  --head: "Fraunces", Georgia, serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--sky); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--liver); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .8rem; color: var(--sky); margin-bottom: .4em; display: block; }
.section { padding: 72px 0; }
.section.tint { background: var(--ticked); }
.section.sky { background: var(--sky-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; text-decoration: none; font-size: 1rem; cursor: pointer;
  font-family: var(--body); transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--liver); color: #fff; }
.btn-primary:hover { background: var(--liver-2); }
.btn-outline { border-color: currentColor; color: var(--liver); background: transparent; }
.btn-light { background: #fff; color: var(--liver); }
.btn-donate { background: var(--donate); color: #fff; box-shadow: 0 6px 18px rgba(232, 89, 12, .35); }
.btn-donate:hover { background: var(--donate-2); }
.btn-lg { font-size: 1.15rem; padding: 1em 2em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.topbar { background: var(--liver); color: #f3e6da; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 243, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--liver); font-family: var(--head); font-size: 1.6rem; line-height: 1.05; margin-right: auto; }
.brand img { width: auto; height: 80px; flex: none; border-radius: 4px; }
.brand small { display: block; font-family: var(--body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.main-nav { display: flex; gap: 4px; }
.site-header .wrap { max-width: 1320px; }
.brand { flex: none; }
.brand span { white-space: nowrap; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 700; padding: 8px 10px; border-radius: 8px; font-size: .96rem; white-space: nowrap; }
.btn { white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--ticked); color: var(--liver); }
.site-header .btn-donate { padding: .7em 1.4em; font-size: 1.05rem; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: 8px 12px; font: 800 .95rem var(--body); color: var(--liver); cursor: pointer; }

@media (max-width: 1300px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; font-size: 1.05rem; }
}
@media (max-width: 760px) {
  .brand { font-size: 1.3rem; }
  .brand img { height: 62px; }
}
@media (max-width: 520px) {
  .site-header .btn-donate { padding: .6em 1em; font-size: .95rem; }
  .brand small { display: none; }
  /* On phones the logo (which already says the name) stands alone; the name stays for screen readers */
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand img { height: 62px; }
  .nav-wrap { gap: 10px; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: clamp(620px, 38vw, 1100px); display: flex; align-items: flex-end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 18, 10, .05) 20%, rgba(30, 18, 10, .78) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 64px; padding-top: 140px; width: 100%; }
.hero h1 { color: #fff; max-width: 15em; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero p { font-size: 1.25rem; max-width: 34em; color: #fdf3ea; }
.page-hero { position: relative; color: #fff; min-height: clamp(340px, 30vw, 1000px); display: flex; align-items: flex-end; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 18, 10, .1), rgba(30, 18, 10, .75)); }
.page-hero .wrap { position: relative; z-index: 1; padding-bottom: 40px; padding-top: 100px; width: 100%; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #fdf3ea; font-size: 1.15rem; max-width: 36em; margin: .4em 0 0; }

/* ---------- Stats ---------- */
.stats { background: var(--liver); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.stat b { display: block; font-family: var(--head); font-size: 1.7rem; color: #ffd9bf; line-height: 1.1; }
.stat span { font-size: .95rem; color: #f0e2d6; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: 1fr 1fr; } }

/* ---------- Grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 28px; } .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card .body .btn { margin-top: auto; align-self: flex-start; }
.card p { color: var(--muted); }

.rounded-photo { border-radius: 22px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.photo-stack { position: relative; }
.photo-stack .small { position: absolute; width: 45%; bottom: -30px; right: -14px; border: 6px solid var(--cream); border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
@media (max-width: 900px) { .photo-stack .small { right: 8px; } }

/* Traits */
.trait { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 4px 14px rgba(74, 44, 29, .07); }
.trait .ico { font-size: 1.8rem; line-height: 1; margin-bottom: 8px; }
.trait h3 { font-size: 1.15rem; margin-bottom: .3em; }
.trait p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; font-weight: 800; font-size: .95rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } }

/* Featured dog */
.dog-feature { display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); overflow: clip; align-items: start; }
.dog-feature > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; position: sticky; top: 110px; }
.dog-feature .body { padding: 36px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.tags li { background: var(--sky-2); color: var(--sky); font-weight: 800; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }
.quote { font-family: var(--head); font-style: italic; font-size: 1.3rem; color: var(--liver-2); border-left: 4px solid var(--donate); padding-left: 16px; margin: 18px 0; }
@media (max-width: 860px) { .dog-feature { grid-template-columns: 1fr; } .dog-feature .body { padding: 26px 22px; } .dog-feature > img { position: static; aspect-ratio: 4 / 3; max-height: 460px; } }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.thumbs a { display: block; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.thumbs img { display: block; width: 100%; border-radius: 10px; aspect-ratio: 1; object-fit: cover; transition: transform .2s; }
.thumbs a:hover img, .thumbs a:focus-visible img { transform: scale(1.05); }
.lightbox { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(20, 12, 7, .92); align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); cursor: default; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .3); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { background: #fff; border-radius: var(--radius); padding: 26px 22px 22px; position: relative; box-shadow: 0 4px 14px rgba(74, 44, 29, .07); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sky); color: #fff; font-weight: 900; margin-bottom: 12px; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { background: #fff; border-radius: 12px; padding: 16px 18px 16px 56px; position: relative; box-shadow: 0 3px 10px rgba(74, 44, 29, .06); }
.checklist li::before { content: "✓"; position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: #e2f2e6; color: #2f7d45; font-weight: 900; display: grid; place-items: center; }
.checklist b { color: var(--liver); }

/* Fees */
.fees { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fees th, .fees td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.fees th { background: var(--liver); color: #fff; }
.fees td:last-child { font-weight: 800; color: var(--liver); }

/* Callout */
.callout { background: var(--sky-2); border-left: 6px solid var(--sky); padding: 18px 22px; border-radius: 12px; margin: 0 0 24px; }
.callout.warm { background: #fff1e6; border-color: var(--donate); }

/* ---------- Donate band (every page) ---------- */
.donate-band { position: relative; color: #fff; overflow: hidden; min-height: clamp(0px, 30vw, 1000px); display: flex; align-items: center; }
.donate-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.donate-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(74, 44, 29, .95) 30%, rgba(74, 44, 29, .55)); }
.donate-band .wrap { position: relative; z-index: 1; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.donate-band h2 { color: #fff; max-width: 16em; }
.donate-band p { max-width: 34em; color: #f6e7da; font-size: 1.1rem; }
.donate-band .gifts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; padding: 0; list-style: none; }
.donate-band .gifts li { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 8px 14px; border-radius: 10px; font-size: .95rem; }
.donate-band .gifts b { color: #ffd9bf; }

/* Floating donate button on phones */
.donate-float { display: none; }
@media (max-width: 760px) {
  .donate-float { display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60; justify-content: center; font-size: 1.1rem; padding: .9em; }
  body { padding-bottom: 80px; }
}

/* ---------- Footer ---------- */
.site-footer { background: #24160e; color: #d9c8ba; padding: 48px 0 28px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .fine { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; font-size: .82rem; color: #a8968a; }
.site-footer .fine a { color: #d9c8ba; text-decoration: underline; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px; position: sticky; top: 84px; z-index: 5; box-shadow: 0 4px 14px rgba(74, 44, 29, .07); }
.form-tools .note { font-size: .88rem; color: var(--muted); margin-left: auto; }
.form-tools .btn { padding: .6em 1.2em; }
@media (max-width: 760px) { .form-tools { position: static; } .form-tools .note { margin-left: 0; } }

form.paper { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
@media (max-width: 600px) { form.paper { padding: 22px 16px; } }
.print-head { display: none; }
fieldset { border: 0; padding: 0; margin: 0 0 30px; }
legend { font-family: var(--head); font-size: 1.45rem; color: var(--liver); padding: 0; margin-bottom: 14px; border-bottom: 3px solid var(--ticked); width: 100%; padding-bottom: 6px; }
.fields { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 18px; }
.f { grid-column: span 6; display: flex; flex-direction: column; gap: 5px; }
.f.half { grid-column: span 3; }
.f.third { grid-column: span 2; }
@media (max-width: 640px) { .f.half, .f.third { grid-column: span 6; } }
.f > label, .f > .q { font-weight: 700; font-size: .97rem; color: var(--text); }
.req::after { content: " *"; color: var(--donate); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], textarea, select {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1.5px solid #d6cabd; border-radius: 9px; background: #fffdfa; color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(47, 111, 143, .3); border-color: var(--sky); }
textarea { min-height: 84px; resize: vertical; overflow: hidden; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choices label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; cursor: pointer; }
.choices input { width: 18px; height: 18px; accent-color: var(--liver); }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.agreement { background: var(--ticked); border-radius: 12px; padding: 20px 22px; font-size: .96rem; }
.agreement h3 { font-size: 1.1rem; margin-top: 1em; }
.agreement h3:first-child { margin-top: 0; }
.agreement ul { padding-left: 1.2em; }
.sig-block { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; margin-top: 22px; }
.sig-line { border-bottom: 2px solid var(--text); height: 48px; }
.sig-label { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.office { border: 2px dashed var(--line); border-radius: 12px; padding: 18px 20px; margin-top: 18px; break-inside: avoid; page-break-inside: avoid; }
.office h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--body); }

.infographic { margin: 18px 0 0; }
.infographic img { display: block; width: 100%; max-width: 520px; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; cursor: zoom-in; }
.infographic figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* ---------- Typed signature + sending ---------- */
.esign { background: var(--sky-2); border-radius: 12px; padding: 18px 20px 20px; }
.esign legend { float: left; border-bottom-color: rgba(47, 111, 143, .25); }
.esign .fields { clear: both; }
input.sig-input { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; font-size: 1.35rem; padding: 6px 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.f.missing > label, .f.missing > .q { color: #b3261e; }
.f.missing input:not([type=radio]):not([type=checkbox]), .f.missing textarea, .f.missing select { border-color: #b3261e; background: #fff6f5; }
.f.missing .choices { outline: 2px solid #b3261e; outline-offset: 6px; border-radius: 6px; }
.send-row { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 28px; }
.send-row button[disabled] { opacity: .65; cursor: wait; }
.send-status { margin-top: 18px; padding: 16px 20px; border-radius: 12px; border-left: 6px solid var(--sky); background: var(--sky-2); }
.send-status.success { background: #e9f6ec; border-color: #2e7d46; }
.send-status.error { background: #fff1ef; border-color: #b3261e; }
.linklike { font: inherit; color: var(--sky); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; }

/* ---------- Print ---------- */
@media print {
  @page { margin: 0.6in; }
  body { background: #fff; font-size: 11pt; padding: 0; }
  .topbar, .site-header, .site-footer, .donate-band, .donate-float, .page-hero, .no-print, .form-tools { display: none !important; }
  .section { padding: 0; background: #fff !important; }
  .wrap { max-width: none; padding: 0; }
  form.paper { box-shadow: none; padding: 0; border-radius: 0; }
  .print-head { display: block; text-align: center; margin-bottom: 14pt; border-bottom: 2pt solid #000; padding-bottom: 8pt; }
  .print-head h1 { font-size: 18pt; margin: 0; color: #000; }
  .print-head p { margin: 2pt 0 0; font-size: 9.5pt; }
  legend { font-size: 13pt; color: #000; border-bottom: 1pt solid #000; margin-bottom: 8pt; }
  fieldset { margin-bottom: 14pt; break-inside: auto; }
  .esign { background: none; padding: 0; break-inside: avoid; }
  .f.missing > label, .f.missing > .q { color: inherit; }
  .f { break-inside: avoid; gap: 2pt; }
  .fields { gap: 8pt 14pt; }
  .f > label, .f > .q { font-size: 10pt; }
  input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], textarea, select {
    border: 0; border-bottom: 1pt solid #555; border-radius: 0; padding: 2pt 0; background: none; font-size: 10.5pt; min-height: 0;
  }
  textarea { min-height: 40pt; border: 1pt solid #888; padding: 3pt; resize: none; }
  .choices input { width: 11pt; height: 11pt; }
  .agreement { background: none; border: 1pt solid #999; padding: 8pt 10pt; font-size: 9.5pt; }
  .office { border: 1pt dashed #777; }
  .hint { color: #444; }
  a { color: #000; text-decoration: none; }
}
