/* Dog Seva marketing site. Requires tokens.css to be linked first. */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
ul[role="list"], ol[role="list"] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { color: var(--primary-strong); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

button { font: inherit; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-control);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-strong);
  color: #fff;
}

.btn--ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover {
  background: #000;
  color: #fff;
}

.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 16px 26px; font-size: 16px; border-radius: var(--radius-button); }
.btn--raised { box-shadow: var(--shadow-primary); }
.btn--block { width: 100%; height: 56px; padding-block: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 14px;
}
.site-header__collapse {
  display: contents;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; }
.brand__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.brand--inverse { margin-right: 0; color: #fff; }
.brand--inverse .brand__name { color: #fff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: #374151;
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--primary); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars {
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Shared section furniture ---------- */
.section {
  padding-block: clamp(48px, 6vw, 88px);
}
.section--canvas { background: var(--canvas); }
.section--dark { background: var(--dark); }
.section--flush { padding-top: 0; }

.section[id],
#main > section[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

.section__head {
  max-width: 620px;
  margin-bottom: 44px;
}
.section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: none;
  margin-bottom: 34px;
}
.section__head--split > div { max-width: 560px; }

.eyebrow {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow--accent { color: var(--accent); }

.section__title {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
.section--dark .section__title { color: #fff; }
.section__title--plain {
  margin-bottom: 30px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.03em;
}
.section__head .section__title:last-child { margin-bottom: 0; }

.section__lede {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.section__lede--inverse { color: rgba(255, 255, 255, .66); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--secondary-wash);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--secondary);
}

/* ---------- Media placeholders ---------- */
.media {
  border-radius: 26px;
  overflow: hidden;
  background: var(--media-bg);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--tall { height: 260px; }
.media--short { height: 170px; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  gap: 56px;
  align-items: center;
  flex-wrap: wrap;
  padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px);
}
.hero__copy {
  flex: 1 1 440px;
  min-width: min(320px, 100%);
}
.hero__title {
  margin-block: 22px 20px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -.04em;
  text-wrap: pretty;
}
.hero__lede {
  margin-bottom: 32px;
  max-width: 520px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column-reverse; }
.stat__value {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.stat__label {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.hero__gallery {
  flex: 1 1 380px;
  min-width: min(300px, 100%);
  display: flex;
  gap: 16px;
}
.hero__column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero__column--offset { padding-top: 38px; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 0;
}
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 17px;
  font-size: 24px;
}
.card__icon--orange { background: var(--primary-tint); }
.card__icon--green { background: var(--secondary-tint); }
.card__icon--yellow { background: var(--accent-tint); }
.card__icon--indigo { background: var(--indigo-tint); }
.card__title {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.card__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---------- Adoption ---------- */
.dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 0;
}
.dog-card {
  position: relative;
  display: block;
  height: 300px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--media-bg);
  color: #fff;
}
.dog-card:hover { color: #fff; }
.dog-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.dog-card:hover .dog-card__photo { transform: scale(1.04); }
.dog-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  pointer-events: none;
}
.dog-card__caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.dog-card__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.dog-card__meta {
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
}

/* ---------- Ad slots ---------- */
.ad-leaderboard {
  padding-bottom: clamp(40px, 5vw, 64px);
}
.ad__label {
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}
.ad__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-dashed);
  background: #FAFBFC;
}
.ad__slot--leaderboard {
  height: 104px;
  border-radius: var(--radius-button);
}
.ad__slot--infeed {
  height: 200px;
  margin-bottom: 16px;
  border-radius: 22px;
}
.ad__note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-faint);
}
.ad__slot--infeed .ad__note { font-size: 12px; }

/* ---------- Rescue ---------- */
.rescue {
  display: flex;
  gap: 56px;
  align-items: center;
  flex-wrap: wrap;
}
.media--rescue {
  flex: 1 1 380px;
  min-width: min(300px, 100%);
  height: 400px;
  border-radius: 28px;
  background: #222;
}
.rescue__copy {
  flex: 1 1 400px;
  min-width: min(300px, 100%);
}
.rescue__copy .section__title { margin-bottom: 18px; }
.rescue__copy .section__lede { margin-bottom: 30px; line-height: 1.65; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
}
.step__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}
.step__text {
  font-size: 15.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}

/* ---------- Community ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.post__link { display: block; color: inherit; }
.post__link:hover { color: inherit; }
.post__photo {
  width: 100%;
  height: 200px;
  margin-bottom: 16px;
  border-radius: 22px;
  object-fit: cover;
  background: var(--media-bg);
  transition: transform .4s var(--ease);
}
.post__link:hover .post__photo { transform: translateY(-4px); }
.post__tag {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--secondary);
}
.post__title {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.post__link:hover .post__title { color: var(--primary-strong); }
.post__excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.post__excerpt--faint {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Support / donate ---------- */
.support {
  display: flex;
  gap: 44px;
  align-items: center;
  flex-wrap: wrap;
  padding: clamp(36px, 5vw, 64px);
  border-radius: var(--radius-sheet);
  background: linear-gradient(120deg, #FF6B35, #FF9558);
}
.support__copy {
  flex: 1 1 420px;
  min-width: min(280px, 100%);
}
.support__title {
  margin-bottom: 14px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: pretty;
}
.support__lede {
  max-width: 520px;
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
}

.donate {
  flex: 1 1 320px;
  min-width: min(280px, 100%);
  padding: 26px;
  border-radius: var(--radius-card);
  background: var(--surface);
}
.donate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.donate__legend {
  font-size: 13px;
  font-weight: 800;
  color: #374151;
}

.segmented {
  display: flex;
  padding: 3px;
  border-radius: 11px;
  background: var(--canvas-deep);
}
.segmented__option {
  padding: 6px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-faint);
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.segmented__option.is-active {
  background: var(--surface);
  color: var(--ink);
}

.donate__amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}
.amount {
  height: 56px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-button);
  background: var(--canvas);
  font-size: 16px;
  font-weight: 800;
  color: #374151;
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.amount:hover { border-color: var(--primary); }
.amount.is-active {
  background: #FFF1E9;
  border-color: var(--primary);
  color: var(--primary);
}

.donate__method {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 13px 15px;
  border: 1.5px solid var(--primary);
  border-radius: 14px;
  background: var(--primary-wash);
}
.donate__method-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}
.donate__method-handle {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: right;
}

.donate__note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
}
.donate__status {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  text-align: center;
}
.donate__status:empty { margin-top: 0; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.faq__item {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
}
.faq__q {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.faq__a {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  padding-block: clamp(44px, 5vw, 72px) 36px;
}
.site-footer__top {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.site-footer__brand {
  flex: 1 1 280px;
  min-width: min(240px, 100%);
}
.site-footer__brand .brand { margin-bottom: 16px; }
.site-footer__blurb {
  max-width: 280px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .5);
}
.site-footer__col {
  flex: 0 1 160px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.site-footer__heading {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}
.site-footer__col a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
}
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .nav-toggle { display: inline-flex; }

  .site-header__collapse {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-soft);
  }
  .site-header__collapse.is-open { display: flex; }
  .site-header__inner { flex-wrap: wrap; gap: 12px; }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-nav a {
    padding: 10px 4px;
    font-size: 16px;
  }
  .site-header__actions .btn { flex: 1; }

  .hero__gallery { order: -1; }
  .hero__column--offset { padding-top: 0; }
  .media--tall { height: 200px; }
  .media--short { height: 132px; }
  .media--rescue { height: 300px; }

  .stats { gap: 28px; }
}

@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .donate__amounts { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { gap: 32px; }
  .site-footer__col { flex-basis: calc(50% - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .ad-leaderboard, .post--ad, .nav-toggle { display: none; }
  body { color: #000; }
}
