/* Unleashed Project Rescue — warm, mobile-first rescue site */

:root {
  --cream: #FBF6EF;
  --cream-dark: #F0E6D8;
  --teal: #0F5C5C;
  --teal-dark: #0A4545;
  --teal-soft: #1A7373;
  --terracotta: #C45C26;
  --terracotta-hover: #A84A1C;
  --terracotta-soft: #E8A87C;
  --ink: #1F2A2A;
  --ink-muted: #4A5858;
  --white: #FFFFFF;
  --card-shadow: 0 8px 28px rgba(15, 92, 92, 0.08);
  --radius: 1rem;
  --radius-sm: 0.625rem;
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 10.5rem;
  --focus: 0 0 0 3px var(--cream), 0 0 0 5px var(--teal);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--teal-dark);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1rem; }

a {
  color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--terracotta); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  background: var(--teal);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  box-shadow: var(--focus);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, 100% - 2rem);
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 92, 92, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--header-h);
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
  gap: 1rem;
}

.nav .logo { order: 1; }
.nav .nav-links { order: 2; margin-left: auto; }
.nav .nav-actions { order: 3; margin-left: 0.75rem; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.logo:hover { color: var(--teal); }

.logo-mark {
  font-size: 1.35rem;
  line-height: 1;
}

.logo-img {
  display: block;
  height: 9rem;
  width: auto;
  max-width: min(640px, 85vw);
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid rgba(15, 92, 92, 0.25);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}

.lang-btn {
  min-width: 4.75rem;
  padding-inline: 0.65rem;
  font-size: 0.8rem;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  min-width: 2.75rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.lang-btn + .lang-btn {
  min-width: 4.75rem;
  padding-inline: 0.65rem;
  font-size: 0.8rem;
  border-left: 1.5px solid rgba(15, 92, 92, 0.18);
}

.lang-btn:hover {
  color: var(--teal);
  background: rgba(15, 92, 92, 0.06);
}

.lang-btn.is-active {
  background: var(--teal);
  color: var(--white);
}

.lang-btn.is-active:hover {
  background: var(--teal-soft);
  color: var(--white);
}

.lang-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--terracotta);
  position: relative;
  z-index: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem 1.25rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.15rem;
  border-radius: 0.25rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.btn--primary:hover {
  background: var(--terracotta-hover);
  border-color: var(--terracotta-hover);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn--secondary:hover {
  background: var(--teal);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: rgba(15, 92, 92, 0.35);
}

.btn--outline:hover {
  border-color: var(--teal);
  background: rgba(15, 92, 92, 0.06);
  color: var(--teal-dark);
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  background: linear-gradient(165deg, #FBF6EF 0%, #F5E8D6 45%, #E8D4C0 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.hero-blob--1 {
  width: min(480px, 70vw);
  height: min(480px, 70vw);
  background: radial-gradient(circle, #7FB3A8 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.hero-blob--2 {
  width: min(360px, 55vw);
  height: min(360px, 55vw);
  background: radial-gradient(circle, #E8A87C 0%, transparent 70%);
  bottom: -15%;
  left: 5%;
}

.hero-paws {
  position: absolute;
  right: 8%;
  bottom: 18%;
  display: flex;
  gap: 1.5rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
  opacity: 0.2;
  transform: rotate(-12deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  background: rgba(15, 92, 92, 0.1);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
}

.hero h1 .accent {
  color: var(--terracotta);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.section-intro {
  color: var(--ink-muted);
  margin: 0;
}

/* —— About —— */
.about {
  background: var(--white);
}

.about p {
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.about-stats li {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 92, 92, 0.08);
}

.about-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.2;
}

.about-stats span {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* —— Dogs —— */
.dogs {
  background: var(--cream);
}

.dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.dog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid rgba(15, 92, 92, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 92, 92, 0.12);
}

.dog-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  font-size: 3.5rem;
  background: var(--avatar-bg, var(--cream-dark));
}
.dog-avatar.dog-avatar--photo {
  padding: 0;
  overflow: visible;
  background: var(--cream-dark);
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto;
  align-items: stretch;
  flex-shrink: 0;
}

.dog-avatar.dog-avatar--photo img {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center;
  display: block;
}


.dog-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dog-card-body h3 {
  margin-bottom: 0.25rem;
}

.dog-meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-soft);
}

.dog-bio {
  flex: 1;
  margin-bottom: 1.15rem;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

.dog-card-body .btn {
  align-self: flex-start;
}

/* —— Adopt steps —— */
.adopt {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--cream);
}

.adopt .section-label { color: var(--terracotta-soft); }
.adopt h2 { color: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: 50%;
}

.step h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step p {
  margin: 0;
  color: rgba(251, 246, 239, 0.85);
  font-size: 0.98rem;
}

/* —— Donate / Volunteer —— */
.donate {
  background: var(--cream-dark);
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin-inline: auto;
}

.cta-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(15, 92, 92, 0.06);
  text-align: center;
}

.cta-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.cta-card p {
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

/* —— Contact —— */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info p {
  color: var(--ink-muted);
}

.contact-details {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.contact-details a {
  font-weight: 600;
  text-decoration: none;
  color: var(--teal);
}

.contact-details a:hover {
  text-decoration: underline;
  color: var(--terracotta);
}

.contact-form {
  background: var(--cream);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 92, 92, 0.08);
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-dark);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(15, 92, 92, 0.2);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}

.form-row input:hover,
.form-row textarea:hover {
  border-color: rgba(15, 92, 92, 0.4);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 92, 92, 0.15);
}

.form-row textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-success {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: rgba(15, 92, 92, 0.1);
  color: var(--teal-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.contact-form .btn {
  width: 100%;
}

/* —— Footer —— */
.site-footer {
  background: var(--teal-dark);
  color: rgba(251, 246, 239, 0.85);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
}

.footer-brand p {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: rgba(251, 246, 239, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--terracotta-soft);
}

.footer-copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* —— Responsive —— */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav .logo { order: 1; }
  .nav .nav-actions { order: 2; margin-left: auto; }
  .nav .nav-links { order: 3; margin-left: 0; }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(15, 92, 92, 0.1);
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.25s ease, opacity 0.2s, visibility 0.2s;
  }

  .nav-links.is-open {
    max-height: 320px;
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    border-top: 1px solid rgba(15, 92, 92, 0.06);
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.25rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-paws {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-ctas .btn {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dog-card,
  .btn,
  .nav-links {
    transition: none;
  }
}


@media (max-width: 720px) {
  :root { --header-h: 9.5rem; }
  .logo-img {
    height: 8rem;
    max-width: min(560px, 88vw);
  }
}


.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.3;
}
.whatsapp-icon {
  width: 1em;
  height: 1em;
  min-width: 1em;
  min-height: 1em;
  max-width: 1em;
  max-height: 1em;
  flex: 0 0 1em;
  color: #25D366;
  vertical-align: -0.125em;
}
.whatsapp-link:hover .whatsapp-icon {
  color: #1ebe57;
}
