/* Ren's Wildlife Hospital */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --forest: #1f3a28;
  --forest-2: #2c4f36;
  --forest-tint: #eef1ea;
  --moss: #5c7a52;
  --cream: #faf7f0;
  --paper: #ffffff;
  --ink: #1c221c;
  --ink-soft: #4d574a;
  --line: #e2ddce;
  --terracotta: #c1602c;
  --terracotta-dark: #9c4a1f;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Tahoma, Verdana, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest);
  letter-spacing: -0.01em;
}

a {
  color: var(--forest);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--terracotta);
  color: #fff;
  padding: 0.6rem 1.1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.6rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn::after {
  content: "\2192";
  transition: transform 0.15s ease;
}

.btn:hover::after {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--terracotta);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
}

.btn-outline-light {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--forest) !important;
  border-color: var(--forest);
}

.btn-outline-dark:hover {
  background: var(--forest);
  color: #fff !important;
}

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.utility-bar {
  background: var(--forest);
  color: #cfe0d1;
  font-size: 0.82rem;
}

.utility-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.utility-bar a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.utility-bar a:hover {
  text-decoration: underline;
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--forest);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--line);
  width: 42px;
  height: 38px;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--terracotta);
  color: var(--forest);
}

.main-nav a.btn {
  border-bottom: none;
  padding: 0.6rem 1.25rem;
}

.main-nav a.btn:hover {
  color: #fff !important;
}

/* Hero */

.hero {
  background:
    linear-gradient(to right, rgba(20, 36, 25, 0.94) 0%, rgba(20, 36, 25, 0.82) 38%, rgba(20, 36, 25, 0.3) 68%, rgba(20, 36, 25, 0.1) 100%),
    var(--forest) url("../images/hero-fox.jpg") 0% 60% / 135% auto no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.25rem 7rem;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 600px;
}

.hero-inner h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin: 0 0 1rem;
}

.hero-inner p.tagline {
  font-size: 1.15rem;
  color: #d8e3d5;
  margin: 0 0 2rem;
  max-width: 30em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-wave {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px;
}

/* Trust / info strip */

.info-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.info-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.info-item .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
}

.info-item .value {
  font-weight: 600;
  color: var(--forest);
}

.info-item .value a {
  color: inherit;
  text-decoration: none;
}

.info-item .value a:hover {
  text-decoration: underline;
}

/* Generic layout */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-tight {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Full-bleed banded sections */

.band {
  width: 100%;
}

.band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.band-forest {
  background: var(--forest);
  color: #eef1ea;
}

.band-forest h2 {
  color: #fff;
}

.band-tint {
  background: var(--forest-tint);
}

.appeal {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.appeal h2 {
  margin: 0 0 1rem;
}

.appeal p {
  color: #d8e3d5;
  margin: 0 0 1rem;
}

.appeal .btn-primary {
  margin-top: 0.5rem;
}

/* Get involved split */

.involved-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.involved-panel {
  padding: 3rem 2.5rem;
  border-top: 4px solid var(--terracotta);
}

.involved-panel:nth-child(1) {
  background: var(--paper);
  border-top-color: var(--forest);
}

.involved-panel:nth-child(2) {
  background: var(--forest-tint);
}

.involved-panel h3 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.involved-panel p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* Page header (non-home pages) */

.page-header {
  background: var(--forest);
  color: #fff;
  padding: 3.5rem 1.25rem 3rem;
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.page-header p {
  color: #cfe0d1;
  margin: 0;
  max-width: 60ch;
}

/* Resource lists */

.resource-block + .resource-block {
  margin-top: 3rem;
}

.rescue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.rescue-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.rescue-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.rescue-species {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 0.85rem;
}

.rescue-meta {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.75rem;
  font-size: 0.92rem;
}

.rescue-meta dt {
  font-weight: 600;
  color: var(--ink-soft);
}

.rescue-meta dd {
  margin: 0;
  color: var(--forest);
}

.rescue-meta dd a {
  color: inherit;
  text-decoration: none;
}

.rescue-meta dd a:hover {
  text-decoration: underline;
}

.rescue-note {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-soft);
}

.rescue-card .rescue-note:first-of-type:not(:only-child) {
  margin-top: 0.4rem;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--forest-tint);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 1rem;
}

.disclaimer {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Volunteer roles */

.role-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.role-featured h3 {
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}

.role-featured dl {
  margin: 1.25rem 0 0;
}

.role-featured dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  margin-top: 1rem;
}

.role-featured dd {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

.role-featured ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.role-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.role-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.role-row h3 {
  font-size: 1.15rem;
  margin: 0;
}

.role-row p {
  margin: 0;
  color: var(--ink-soft);
}

.role-row ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.volunteer-cta {
  margin-top: 4rem;
}

/* Donate page */

.ways-to-give {
  border-top: 1px solid var(--line);
}

.way-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.way-row h3 {
  font-size: 1.1rem;
  margin: 0;
}

.way-row p {
  margin: 0;
  color: var(--ink-soft);
}

.direct-give-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.bank-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 2.25rem;
}

.bank-panel h3 {
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
}

.bank-panel p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.bank-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.bank-panel dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.bank-panel dt {
  font-weight: 600;
  color: var(--ink-soft);
}

.bank-panel dd {
  margin: 0;
  font-weight: 600;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--forest-tint);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border: 2px dashed var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* FAQs */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--forest);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--terracotta);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  max-width: 65ch;
}

.faq-item p + p {
  margin-top: 0.6rem;
}

/* News */

.news-list {
  display: flex;
  flex-direction: column;
}

.news-post {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.news-post:first-child {
  padding-top: 0;
}

.news-post time {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.6rem;
}

.news-post h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.news-post p {
  color: var(--ink-soft);
  max-width: 70ch;
}

/* Footer */

.site-footer {
  background: var(--forest);
  color: #cfe0d1;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-brand h4 {
  margin: 0;
}

.footer-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.footer-grid p,
.footer-grid li {
  color: #b9ccb8;
  font-size: 0.92rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-grid a {
  color: #d8e3d5;
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  font-size: 0.82rem;
  color: #9fb59d;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Responsive */

@media (max-width: 860px) {
  .appeal,
  .involved-grid,
  .role-featured,
  .direct-give-grid {
    grid-template-columns: 1fr;
  }

  .role-row,
  .way-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem;
    gap: 0.25rem;
    display: none;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-of-type {
    border-bottom: none;
  }

  .main-nav a.btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    border-bottom: none;
  }

  .nav-wrap {
    position: relative;
  }

  .utility-bar-inner {
    font-size: 0.78rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hero {
    background:
      linear-gradient(rgba(20, 36, 25, 0.62), rgba(20, 36, 25, 0.62)),
      var(--forest) url("../images/hero-fox.jpg") 75% 30% / cover no-repeat;
  }
}
