/* =================
   ROOT VARIABLES
   ================= */

:root {
  --color-bg: #fafafa;
  --color-bg-alt: #f5f5f5;
  --color-bg-soft: #fcfcfc;
  --color-surface: #ffffff;

  /* TARA blue palette */
  --color-accent: #038dff;       /* main blue from logo */
  --color-accent-soft: #e1f1ff;  /* soft light blue */

  --color-text: #222222;
  --color-muted: #666666;
  --color-border: #dddddd;
  --color-frame: #e5e5e5;

  --radius-soft: 0.75rem;
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* =================
   GLOBAL RESET
   ================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
}

/* Container */

.container {
  width: min(1100px, 100% - 2.5rem);
  margin: 0 auto;
}

/* =================
   ALERT BAR
   ================= */

.site-alert {
  background: #015499; /* darker TARA blue */
  color: #f5f5f5;
  font-size: 0.9rem;
}

.site-alert-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  gap: 0.75rem;
}

.site-alert-text {
  opacity: 0.9;
}

.site-alert-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}

/* =================
   HEADER / NAV
   ================= */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

/* brand with logo */

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
}

.brand-subtitle {
  margin: 0.1rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.brand-motto {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-accent);
}

/* Nav */

.main-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
}

.nav-link:hover {
  background: var(--color-accent-soft);
}

.nav-link--primary {
  background: var(--color-accent);
  color: #ffffff;
}

.nav-link--primary:hover {
  filter: brightness(0.95);
}

.is-active {
  font-weight: 600;
}

/* =================
   HERO
   ================= */

.hero {
  background: linear-gradient(
    135deg,
    var(--color-accent-soft),
    #f7fbff
  );
  padding: 2.5rem 0 2.75rem;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* hero layout pieces */

.hero-text h1 {
  font-size: clamp(1.9rem, 2.4vw + 1.4rem, 2.5rem);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero-subtext,
.hero-subtitle {
  font-size: 0.98rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* image column in hero */

.hero-media {

  max-width: 360px;
  justify-self: center;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* =================
   BUTTONS
   ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

/* For HTML that uses class="btn primary" and class="btn outline" */
.btn.primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn.primary:hover {
  filter: brightness(0.95);
}

.btn.outline {
  background: var(--color-surface);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn.outline:hover {
  background: var(--color-accent-soft);
}

/* Extra button variants if you want them elsewhere */

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent-soft);
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: var(--color-surface);
}

/* =================
   GENERIC SECTIONS
   ================= */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 0.5rem;
  border-radius: 10px;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

/* Framed containers */

.framed {
  background: var(--color-bg-soft);
  padding: 1.5rem;
  border: 1px solid var(--color-frame);
  border-radius: var(--radius-soft);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.framed-strong {
  background: #ffffff;
  padding: 1.75rem;
  border: 2px solid var(--color-accent-soft);
  border-radius: var(--radius-soft);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* =================
   CTA ROW
   ================= */

.section-cta-row {
  background: #ffffff;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.cta-grid {
  display: grid;
  gap: 1rem;
}

.cta-card {
  display: block;
  background: #ffffff;
  border-radius: var(--radius-soft);
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  padding: 0.9rem 1rem 1rem;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--color-accent-soft);
}

.cta-card h3 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1rem;
}

.cta-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.cta-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  font-size: 1.2rem;
}

/* badge on donate CTA */

.cta-badge {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* =================
   CARDS / GRID
   ================= */

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--color-bg-soft);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-soft);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.card h3 {
  margin-top: 0;
}

.card-tagline {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card-link {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-accent);
}

/* =================
   APPROACH SECTION
   ================= */

.section-approach {
  background: #f0f3f2; /* slight tint to separate from others */
}

.section-split {
  display: grid;
  gap: 1.75rem;
}

.section-photo img {
  border-radius: var(--radius-soft);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Bullet list styling */

.highlight-list {
  padding-left: 1.2rem;
}

.highlight-list li {
  margin-bottom: 0.35rem;
}

/* ======================
   ADOPTION INFO LAYOUT
   ====================== */

.section-inner {
  width: 100%;
}

/* Container that holds cards (left) + photos (right) */
.adoption-info-layout {
  display: grid;
  gap: 2rem;
}

/* Desktop: 2 columns */
@media (min-width: 900px) {
  .adoption-info-layout {
    grid-template-columns: 2fr 1fr;
  }
}

/* Photo column */
.adoption-photos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adoption-photos img {
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: cover;
}

/* For the nested vaccine list inside your main UL */
.data-list.nested {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
}

/* =================
   SUCCESS STORIES
   ================= */

.section-footer-link {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* =================
   FOSTER PAGE HELPERS
   ================= */

/* Two-column layout used on the Foster page */
.foster-grid {
  display: grid;
  gap: 2rem;
}

.card-image {
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* =================
   FOOTER
   ================= */

.site-footer {
  background: #111111;
  color: #eeeeee;
  padding: 2rem 0 1.25rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
}

.footer-title {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.footer-note {
  color: #bbbbbb;
}

.footer-columns {
  display: grid;
  gap: 1.25rem;
}

.footer-column h3 {
  margin-top: 0;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: #dddddd;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 0.5rem;
  color: #777777;
}

/* =================
   RESPONSIVE
   ================= */

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-split {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  /* For the approach section we flipped content: image left, text right */
  .section-split.section-split--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: flex-start;
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* foster two-column layout only on wider screens */
  .foster-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 767px) {
  .header-inner {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: 2.4rem;
    background: #ffffff;
    padding: 0.75rem;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: flex-start;
    display: none;
    min-width: 180px;
  }

  .nav-list--open {
    display: flex;
  }

  .hero {
    padding-top: 2rem;
  }
}
