:root {
  /* K9 Rescue Cork brand palette: cream, charcoal grey, blush pink, soft black */
  --ink: #2b2825;          /* soft black */
  --ink-soft: #615b54;
  --cream: #f8f2ea;        /* cream */
  --cream-alt: #efe6d9;    /* deeper cream */
  --charcoal: #3a3a3c;     /* charcoal grey */
  --charcoal-dark: #2b2b2d;
  --blush: #eab8c6;        /* blush pink */
  --blush-soft: #f6dee5;
  --rose: #bd6480;         /* deeper blush for buttons/contrast */
  --rose-dark: #a34e6a;
  --card: #ffffff;
  --line: #e7dccd;
  --shadow: 0 10px 30px rgba(70, 50, 55, 0.10);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); letter-spacing: -0.3px; }
h3 { font-size: 1.3rem; }

p { color: var(--ink-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 0.6rem;
}
.eyebrow-light { color: var(--blush); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 6px 18px rgba(189, 100, 128, 0.35); }
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.1rem; }
.btn-donate-sm { background: var(--rose); color: #fff; padding: 0.55rem 1.2rem; }
.btn-donate-sm:hover { background: var(--rose-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 242, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-logo { height: 104px; width: auto; display: block; }
.brand-mark { font-size: 1.8rem; }
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.15rem; line-height: 1.05; }
.brand-name small { display: block; font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--rose); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--rose); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--cream) 0%, var(--blush-soft) 120%); padding: clamp(3rem, 7vw, 6rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.2rem; margin: 1.2rem 0 2rem; max-width: 40ch; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-photo {
  width: 100%; aspect-ratio: 1; max-width: 360px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--blush-soft));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem;
  box-shadow: var(--shadow);
  border: 8px solid #fff;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- Stats ---------- */
.stats { background: var(--charcoal); color: #fff; padding: 2.2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-num { display: block; font-family: "Fraunces", serif; font-size: 2.2rem; font-weight: 600; color: var(--blush); }
.stat-label { font-size: 0.9rem; opacity: 0.9; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--cream-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-sub { font-size: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.feature-list { list-style: none; display: grid; gap: 1.1rem; }
.feature-list li { background: var(--card); padding: 1.3rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); }
.feature-list strong { color: var(--ink); }

/* ---------- Mission quote ---------- */
.mission-quote {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--rose-dark);
  border-left: 4px solid var(--blush);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin-top: 1.8rem;
  font-style: italic;
}

/* ---------- Dogs ---------- */
.dog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.dog-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform 0.18s ease; }
.dog-card:hover { transform: translateY(-4px); }
.dog-photo { height: 220px; background: linear-gradient(135deg, var(--blush-soft), #fff); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.dog-photo img { width: 100%; height: 100%; object-fit: cover; }
.dog-body { padding: 1.4rem; }
.dog-meta { color: var(--rose); font-weight: 600; font-size: 0.85rem; margin: 0.2rem 0 0.7rem; }
.link { color: var(--rose-dark); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 0.6rem; }
.link:hover { text-decoration: underline; }
.center-note { text-align: center; margin-top: 2.5rem; }
.center-note a { color: var(--rose); font-weight: 600; }

/* ---------- Dogs empty state ---------- */
.dogs-empty { text-align: center; max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 3rem 2rem; box-shadow: var(--shadow); }
.dogs-empty-emoji { font-size: 3rem; margin-bottom: 0.5rem; }
.dogs-empty h3 { margin-bottom: 0.6rem; }
.dogs-empty p { margin-bottom: 1.4rem; }

/* ---------- Happy Endings gallery ---------- */
.happy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.happy-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform 0.18s ease;
}
.happy-card:hover { transform: translateY(-4px); }
.happy-photo { aspect-ratio: 4 / 5; background: linear-gradient(135deg, var(--blush-soft), #fff); display: flex; align-items: center; justify-content: center; font-size: 3.4rem; }
.happy-photo img { width: 100%; height: 100%; object-fit: cover; }
.happy-body { padding: 1rem 1.1rem 1.2rem; }
.happy-body h3 { font-size: 1.05rem; }
.happy-body p { font-size: 0.9rem; margin-top: 0.2rem; }

/* ---------- Get involved ---------- */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.help-card { background: var(--card); padding: 1.8rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; }
.help-icon { font-size: 2.4rem; display: block; margin-bottom: 0.8rem; }
.help-card h3 { margin-bottom: 0.5rem; }

/* ---------- Donate ---------- */
.section-donate { background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-dark) 100%); color: #fff; text-align: center; }
.section-donate h2 { color: #fff; }
.donate-inner { max-width: 720px; margin: 0 auto; }
.donate-lead { color: #e9e2d8; font-size: 1.15rem; margin: 1rem 0 2rem; }
.donate-embed { margin-top: 2.5rem; background: rgba(255,255,255,0.10); border: 1px dashed rgba(255,255,255,0.4); border-radius: var(--radius); padding: 2rem; }
.embed-placeholder { color: #fff; font-size: 1rem; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; display: grid; gap: 0.7rem; margin: 1.3rem 0; font-size: 1.05rem; }
.contact-list a { color: var(--rose-dark); text-decoration: none; font-weight: 500; }
.socials { display: flex; gap: 0.8rem; }
.cta-box { background: var(--card); border-radius: var(--radius); padding: 2.2rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-box h3 { margin-bottom: 0.6rem; }
.cta-box p { margin-bottom: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9cfc4; padding: 2.5rem 0; text-align: center; }
.footer-inner p { color: #d9cfc4; }
.muted { opacity: 0.65; font-size: 0.9rem; margin-top: 0.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner, .grid-2 { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-photo { max-width: 240px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .dog-grid { grid-template-columns: 1fr; }
  .happy-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn-donate-sm) { display: none; }
}
@media (max-width: 480px) {
  .help-grid { grid-template-columns: 1fr; }
}

/* ---------- Dog status badge (Reserved / Adopted) ---------- */
.dog-status {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  background: var(--rose);
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.4rem;
}
