:root {
  --forest: #083c22;
  --leaf: #0d6b3f;
  --mint: #dcefe2;
  --gold: #c9922c;
  --sun: #f4c542;
  --clay: #b8642f;
  --ink: #17201b;
  --muted: #627067;
  --paper: #fffaf0;
  --soft: #f3efe4;
  --line: #ded5c2;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(25, 35, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(8, 60, 34, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 60, 34, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(8, 60, 34, 0.12);
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--sun);
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  width: 100%;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a:hover {
  color: var(--forest);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-action,
.button.primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(8, 60, 34, 0.2);
}

.button.secondary {
  border: 1px solid rgba(8, 60, 34, 0.2);
  background: var(--white);
  color: var(--forest);
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
}

svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(38px, 7vw, 88px) clamp(18px, 5vw, 72px) 34px;
  background:
    linear-gradient(115deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0.72)),
    linear-gradient(155deg, rgba(220, 239, 226, 0.74), transparent 34%),
    linear-gradient(135deg, rgba(8, 60, 34, 0.12), transparent 38%);
}

.hero::after {
  position: absolute;
  right: 5vw;
  bottom: 20px;
  width: 220px;
  height: 68px;
  border-top: 3px solid rgba(201, 146, 44, 0.32);
  border-bottom: 3px solid rgba(8, 60, 34, 0.18);
  content: "";
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--forest);
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(2.85rem, 5.5vw, 6.4rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 1.08rem;
}

.hero-text,
.section p,
.site-footer span {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-text {
  max-width: 700px;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  max-width: 680px;
  overflow: hidden;
  border: 1px solid rgba(8, 60, 34, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.stats div {
  min-height: 96px;
  padding: 18px;
  border-right: 1px solid rgba(8, 60, 34, 0.12);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  color: var(--forest);
  font-size: 2rem;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  overflow: hidden;
  border: 10px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(8, 60, 34, 0.94);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(8, 60, 34, 0.24);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: clamp(54px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.intro-grid,
.service-grid,
.location-grid {
  display: grid;
  gap: 18px;
}

.intro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery {
  background: #f8f1df;
}

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

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(25, 35, 29, 0.08);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  background: var(--soft);
}

.gallery-grid figcaption {
  min-height: 70px;
  padding: 16px 18px 18px;
  color: var(--forest);
  font-weight: 800;
  line-height: 1.45;
}

.intro-grid article,
.service-card,
.location-grid article,
.scanner-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(25, 35, 29, 0.08);
}

.intro-grid article {
  padding: 26px;
}

.intro-grid svg,
.service-card svg,
.location-grid svg {
  color: var(--leaf);
}

.work,
.locations {
  background: var(--soft);
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--gold), var(--leaf));
  content: "";
}

.service-card:hover {
  border-color: rgba(13, 107, 63, 0.4);
  box-shadow: 0 20px 44px rgba(25, 35, 29, 0.13);
  transform: translateY(-4px);
}

.service-card svg {
  width: 30px;
  height: 30px;
}

.service-icon,
.care-panel-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--forest);
}

.service-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--leaf);
  font-weight: 900;
}

.care-guide {
  background:
    linear-gradient(120deg, rgba(8, 60, 34, 0.06), transparent 34%),
    var(--paper);
}

.care-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.care-menu,
.care-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(25, 35, 29, 0.08);
}

.care-menu {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.care-topic {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 12px 14px;
  text-align: left;
}

.care-topic:hover,
.care-topic.active {
  background: var(--forest);
  color: var(--white);
}

.care-panel {
  padding: clamp(22px, 4vw, 36px);
}

.care-panel-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.care-panel-icon {
  margin-bottom: 0;
  background: var(--forest);
  color: var(--sun);
}

.care-panel h3 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.care-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.care-columns div {
  padding: 18px;
  border-radius: 8px;
  background: #f8f3e7;
}

.care-columns h4 {
  margin: 0 0 10px;
  color: var(--forest);
}

.care-columns ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.emergency-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: #203321;
  color: var(--white);
}

.emergency-strip div {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}

.emergency-strip span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
}

.emergency-strip .button.primary {
  min-width: max-content;
  background: var(--sun);
  color: var(--forest);
}

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

.agenda-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  background: var(--white);
  font-weight: 700;
}

.agenda-list svg {
  color: var(--leaf);
}

.adoption-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--forest);
  color: var(--white);
}

.adoption-band h2,
.adoption-band p {
  color: var(--white);
}

.adoption-band p {
  max-width: 850px;
  opacity: 0.84;
}

.adoption-band .button.primary {
  min-width: 190px;
  background: var(--sun);
  color: var(--forest);
}

.donate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(220, 239, 226, 0.54), rgba(255, 250, 240, 0.9)),
    var(--paper);
}

.donation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.donation-options span {
  padding: 10px 14px;
  border-radius: 8px;
  background: #ece5d4;
  color: var(--forest);
  font-weight: 800;
}

.scanner-card {
  padding: 22px;
  border-color: rgba(13, 107, 63, 0.28);
}

.scanner-preview {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 12px;
  border: 1px solid rgba(8, 60, 34, 0.16);
  border-radius: 8px;
  background: #f4f7fc;
  color: var(--forest);
  text-align: center;
}

.scanner-preview img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 8px;
}

.scanner-card h3 {
  margin: 18px 0 8px;
  text-align: center;
}

.upi-id {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 0.98rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: center;
}

.fine-print {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.location-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-grid article {
  padding: 28px;
}

.location-grid a {
  color: var(--leaf);
  font-weight: 900;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(22px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    linear-gradient(135deg, rgba(244, 197, 66, 0.16), transparent);
}

.owner-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.owner-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--forest);
  color: var(--white);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 72px);
  background: #102318;
  color: var(--white);
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-action {
    margin-left: auto;
  }

  .hero,
  .donate,
  .care-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 420px;
  }

  .intro-grid,
  .service-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adoption-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .emergency-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: auto;
  }

  .brand {
    width: 100%;
  }

  .header-action {
    width: 100%;
    margin-left: 0;
  }

  .nav {
    gap: 16px;
    width: 100%;
  }

  h1 {
    font-size: 2.7rem;
  }

  .stats,
  .intro-grid,
  .service-grid,
  .gallery-grid,
  .care-columns,
  .agenda-list,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(8, 60, 34, 0.12);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .hero-media {
    min-height: 300px;
  }

  .care-menu {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
  }

  .care-topic {
    flex: 0 0 auto;
    min-width: 170px;
    scroll-snap-align: start;
  }

  .care-panel-top,
  .emergency-strip div {
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }
}
