/* Woof N' Wags — site styles
   Change a colour once here and it updates everywhere on the site. */

:root {
  --accent: #14708A;        /* every button, site-wide — matches the logo teal */
  --accent-dark: #0F5A6E;   /* button hover */
  --teal: #14708A;          /* deep band (footer CTAs) */
  --sky: #7FB8D9;           /* light band */
  --green: #067A22;         /* bright band + footer wordmark */
  --green-dark: #0B5720;
  --gold: #C2A263;          /* small section eyebrows */
  --ink: #333333;           /* body copy */
  --ink-head: #3A3A3A;      /* Fredericka headlines */
  --rule: #d8d8d8;
  --display: 'Fredericka the Great', Georgia, serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

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

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

/* ---------- layout ---------- */

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap--text { max-width: 620px; margin: 0 auto; padding: 0 24px; }
.wrap--mid { max-width: 860px; margin: 0 auto; padding: 0 24px; }

section { padding: 64px 0; }
.band-sky { background: var(--sky); color: #1c3d4e; }
.band-teal { background: var(--teal); color: #fff; }
.band-green { background: var(--green); color: #fff; }
.band-cta { padding: 42px 0; text-align: center; }

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
}

.site-header__logo { display: flex; align-items: center; gap: 10px; }
.site-header__logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header__logo img.mark { width: 54px; height: 54px; object-fit: cover; }
.site-header__logo img.wordmark { width: 132px; }

.site-nav { display: flex; flex-wrap: wrap; gap: 26px; }

.site-nav a {
  font-family: var(--display);
  font-size: 19px;
  color: var(--ink-head);
  text-decoration: none;
  letter-spacing: .02em;
}

.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink-head);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
  margin: 0 0 18px;
  text-wrap: pretty;
}

h1 { font-size: 48px; text-align: center; }
h2 { font-size: 34px; }
h3 { font-size: 24px; }

.page-title { text-align: center; margin-bottom: 10px; }

.page-sub {
  font-family: var(--display);
  font-size: 26px;
  color: var(--ink-head);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: .04em;
  line-height: 1.3;
  margin: 0 0 44px;
}

/* small gold section label */
.eyebrow {
  font-family: var(--display);
  font-size: 20px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 18px;
}

.band-teal h2, .band-green h2,
.band-teal h3, .band-green h3 { color: #fff; }

/* the light sky band needs dark ink to stay legible */
.band-sky h1, .band-sky h2, .band-sky h3 { color: #14384a; }
.band-sky a { color: #103b52; }
.band-sky a:hover { color: #06222f; }

.lede { font-size: 17px; }

p { margin: 0 0 18px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* ---------- buttons: one treatment site-wide ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 13px 30px;
  min-height: 44px;
  line-height: 1.4;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

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

/* on a coloured band, invert so it still reads */
.band-sky .btn, .band-teal .btn, .band-green .btn {
  background: #fff;
  border-color: #fff;
  color: var(--accent);
}

.band-sky .btn:hover, .band-teal .btn:hover, .band-green .btn:hover {
  background: #eef4f8;
  border-color: #eef4f8;
  color: var(--accent-dark);
}

.btn--lg { font-size: 15px; padding: 16px 40px; }

/* white surfaces nested inside a coloured band keep the solid treatment */
.card .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.card .btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* ---------- hero carousel ---------- */

.hero { position: relative; padding: 0; overflow: hidden; background: var(--sky); }

.carousel { position: relative; max-width: 1000px; height: 540px; margin: 0 auto; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease;
}

.slide[aria-hidden="false"] { opacity: 1; visibility: visible; }

.slide__media {
  display: grid;
  gap: 4px;
  height: 100%;
  overflow: hidden;
}

.slide__media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

/* panel 1: one tall photo left, two stacked right */
.slide__media--three {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}
.slide__media--three img:first-child { grid-row: 1 / span 2; }

/* panels 2-3: two photos side by side */
.slide__media--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* panels 4-6: one full-bleed photo */
.slide__media--one { grid-template-columns: minmax(0, 1fr); }

/* scrim so the white caption always clears contrast over any photo */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.60) 0%, rgba(0,0,0,.34) 42%, rgba(0,0,0,0) 72%);
  pointer-events: none;
}

.slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  z-index: 2;
  text-align: center;
  padding: 0 72px;
}

.slide__caption h2 {
  color: #fff;
  font-size: 40px;
  letter-spacing: .03em;
  margin: 0 0 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}

.slide__caption p {
  font-family: var(--display);
  font-size: 23px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.25;
  margin: 0 0 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}

.slide__caption .btn {
  background: #fff;
  border-color: #fff;
  color: var(--accent);
}

.slide__caption .btn:hover { background: #eef4f8; border-color: #eef4f8; color: var(--accent-dark); }

/* arrows */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 999px;
  cursor: pointer;
  padding: 0 0 3px;
}

.carousel__arrow:hover { background: rgba(0,0,0,.62); }
.carousel__arrow--prev { left: 14px; }
.carousel__arrow--next { right: 14px; }

/* dots */
.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.carousel__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.35);
  cursor: pointer;
}

.carousel__dots button[aria-current="true"] { background: #fff; }

/* ---------- cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }

.card {
  background: #fff;
  color: var(--ink);
  padding: 34px 28px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.card img { margin: -34px -28px 20px; width: calc(100% + 56px); max-width: none; aspect-ratio: 3 / 2; object-fit: cover; }
.card .eyebrow { margin-bottom: 14px; }
.card p { font-size: 15px; flex: 1; margin-bottom: 24px; }
.card .btn { margin-top: auto; }

/* two-up split: text one side, image the other */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--center { text-align: center; }

/* ---------- image placeholders (swap for real photos) ---------- */

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
  padding: 20px;
  background: #eceff2;
  border: 2px dashed #b6bfc9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6d7885;
}

.ph--tall { min-height: 380px; }
.ph--embed { min-height: 500px; max-width: 500px; margin: 0 auto; }

/* ---------- mailing list ---------- */

.signup { text-align: center; }
.signup h2 { font-size: 26px; margin-bottom: 4px; }

.signup__note {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1c3d4e;
  margin-bottom: 20px;
}

.signup__row { display: flex; flex-direction: column; align-items: center; gap: 16px; }

input[type="email"], input[type="text"], input[type="tel"], select, textarea {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  max-width: 380px;
  padding: 12px 14px;
  border: 1px solid #cfd6dd;
  border-radius: 3px;
  background: #fff;
}

/* ---------- footer ---------- */

.site-footer { padding: 48px 24px 40px; text-align: center; }

.site-footer__mark {
  font-family: var(--body);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--green-dark);
  margin: 10px 0 0;
}

.site-footer hr {
  border: 0;
  border-top: 1px solid var(--green);
  max-width: 430px;
  margin: 20px auto;
}

.pill {
  display: inline-block;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--sky);
  border-radius: 999px;
  padding: 5px 16px;
  margin: 0 4px;
}

.pill:hover { background: #f2f7fb; color: var(--accent-dark); }

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 22px 0;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}

.site-footer__social a:hover { background: var(--accent-dark); color: #fff; }

.site-footer__legal {
  max-width: 700px;
  margin: 26px auto 0;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6d7885;
}

.site-footer__legal p { margin: 0 0 6px; }

/* ---------- team + gallery grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.grid-2 img { width: 100%; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- third-party embeds ---------- */

.embeds { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; justify-items: center; align-items: start; }
.embed-col { width: 100%; max-width: 360px; }
.embed-col iframe { border: none; overflow: hidden; width: 100%; }
.gfm-embed { width: 100%; }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .embeds { grid-template-columns: 1fr; }
}

/* ---------- video embeds ---------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 880px;
  margin: 0 auto 40px;
  background: #000;
}

.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video--vertical { aspect-ratio: 9 / 16; max-width: 420px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  h1 { font-size: 38px; }
  .slide__caption h2 { font-size: 30px; }
  .slide__caption p { font-size: 18px; }
  .page-sub { font-size: 21px; }
}

@media (max-width: 620px) {
  .site-header { justify-content: center; padding: 16px 20px; }
  .site-nav { gap: 16px; justify-content: center; }
  .site-nav a { font-size: 17px; }
  .carousel { height: 400px; }
  .slide__media--three, .slide__media--two { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .slide__media--three img:first-child { grid-row: auto; }
  .slide__media--three img:not(:first-child), .slide__media--two img:not(:first-child) { display: none; }
  .slide__caption { padding: 0 20px; bottom: 38px; }
  .slide__caption h2 { font-size: 25px; }
  .slide__caption p { font-size: 16px; }
  .carousel__arrow { width: 38px; height: 38px; font-size: 22px; }
  section { padding: 48px 0; }
}

/* ---------- FAQ ---------- */

.faq { max-width: 620px; margin: 0 auto; }
.faq dt { font-weight: 700; margin: 26px 0 4px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0; }

/* ---------- blog ---------- */

.blog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 32px; }

.blog-card { border-top: 2px solid var(--teal); padding-top: 18px; }
.blog-card img { aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 14px; }
.blog-card img.fit { object-fit: contain; background: #eef4f8; }
.blog-card h3 { font-size: 21px; margin-bottom: 10px; }
.blog-card h3 a { color: var(--ink-head); text-decoration: none; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { font-size: 15px; margin-bottom: 14px; }

.post { max-width: 640px; margin: 0 auto; }
.post img { margin: 0 0 26px; }
.post .figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.post .figs img { margin: 0; aspect-ratio: 1; object-fit: cover; }
.post h2 { font-size: 22px; margin: 34px 0 12px; }
.post h2:first-of-type { margin-top: 26px; }
.post ol, .post ul { margin: 0 0 18px; padding-left: 22px; }
.post li { margin-bottom: 9px; }
.post .stats { list-style: none; padding: 0; }
.post .stats li { margin-bottom: 4px; }

/* ---------- video grids ---------- */

.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.video-grid .video { max-width: none; margin: 0; }

/* ---------- donate methods ---------- */

.methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; text-align: center; }
.methods > div { display: flex; flex-direction: column; }
.methods .logo { height: 44px; width: auto; object-fit: contain; margin: 0 auto; }
.methods h3 { font-size: 20px; margin: 14px 0 8px; }
.methods p { font-size: 13.5px; }
.methods .speed { font-style: italic; color: #6d7885; margin-bottom: 8px; }
.methods .desc { flex: 1; }
.methods .btn { margin-top: auto; align-self: center; }

.detail-box { max-width: 620px; margin: 0 auto; }
.detail-box dl { margin: 0; }
.detail-box dt { font-weight: 700; margin-top: 12px; }
.detail-box dd { margin: 0 0 2px; }

/* ---------- long printable form (adopt) ---------- */

.form-doc { max-width: 640px; margin: 0 auto; }
.form-doc h2 { font-size: 22px; margin: 34px 0 10px; }
.form-doc .field { margin: 0 0 14px; }
.form-doc .field span { display: block; }
.form-doc .note { font-style: italic; }

@media (max-width: 900px) {
  .blog-list, .video-grid { grid-template-columns: minmax(0, 1fr); }
  .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  .site-header, .site-footer, .band-cta, .btn { display: none; }
}
