/* ==========================================================================
   WRAPT Wildlife Carers — Shared Site Theme
   Extracted from the main homepage (wrapt.org.au/index.html) so every
   page shares the same look. Load this on any page alongside its own
   page-specific styles.
   ========================================================================== */

:root {
  --wrapt-blue: #456EEC;
  --wrapt-blue-light: #38B6FF;
  --wrapt-yellow: #FFDE59;
  --wrapt-orange: #FC993B;
  --wrapt-text: #333333;
  --wrapt-text-muted: #666666;
  --wrapt-radius: 12px;
  --wrapt-radius-pill: 40px;
  --wrapt-shadow: 0 4px 12px rgba(0,0,0,0.1);
  --wrapt-shadow-soft: 0 4px 12px rgba(0,0,0,0.05);
  --wrapt-transition: all 0.3s ease;
}

body.wrapt-theme {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  color: var(--wrapt-text);
  background: linear-gradient(180deg, #ffffff 0%, #eaf0ff 40%, #d6e4ff 100%);
}

/* ---- Header ---- */
.wrapt-header {
  background: var(--wrapt-blue);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.wrapt-header img {
  max-width: 200px;
  margin-bottom: 1rem;
}
.wrapt-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 600;
}
.wrapt-header p {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ---- Site Nav ---- */
.wrapt-nav {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  position: relative;
}
/* Use when a page's nav should also carry the logo (most inner pages —
   pages that don't already show a large logo of their own right below
   the nav, like the homepage's big blue header does). */
.wrapt-nav.with-logo {
  justify-content: flex-start;
}
.wrapt-nav .nav-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.wrapt-nav .nav-logo img {
  height: 42px;
  width: auto;
  display: block;
}
.wrapt-nav .nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.wrapt-nav a {
  color: var(--wrapt-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}
.wrapt-nav a:hover {
  color: var(--wrapt-blue-light);
}
.wrapt-nav a.active {
  border-bottom: 3px solid var(--wrapt-blue-light);
  padding-bottom: 4px;
}
@media (max-width: 640px) {
  .wrapt-nav.with-logo {
    flex-direction: column;
    align-items: center;
  }
  .wrapt-nav .nav-logo {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* ---- Section Cards ---- */
.wrapt-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: var(--wrapt-radius);
  box-shadow: var(--wrapt-shadow-soft);
}
.wrapt-section h2 {
  color: var(--wrapt-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

/* Utility: for a full-width section with a long list, split it into
   columns instead of one tall single-file list. */
.wrapt-list-columns {
  columns: 2;
  column-gap: 2rem;
}
.wrapt-list-columns li {
  break-inside: avoid;
}
@media (max-width: 640px) {
  .wrapt-list-columns {
    columns: 1;
  }
}

/* Utility: pairs a photo with text side-by-side inside a .wrapt-section
   (e.g. a supporting photo next to a list of items). Stacks on mobile. */
.wrapt-section-with-photo {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.wrapt-section-with-photo .photo-col {
  flex: 1 1 280px;
}
.wrapt-section-with-photo .photo-col img {
  width: 100%;
  height: auto;
  border-radius: var(--wrapt-radius);
  box-shadow: var(--wrapt-shadow-soft);
  display: block;
}
.wrapt-section-with-photo .content-col {
  flex: 2 1 380px;
}

/* Utility: a small gallery of captioned photo tiles, for illustrating a
   handful of examples (e.g. items that aren't accepted) without needing
   a photo for every single item in an accompanying list. */
.wrapt-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.wrapt-photo-tile {
  background: #fafbff;
  border-radius: var(--wrapt-radius);
  overflow: hidden;
  box-shadow: var(--wrapt-shadow-soft);
  text-align: center;
}
.wrapt-photo-tile img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
  background: #fff;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.wrapt-photo-tile img:hover {
  transform: scale(1.04);
}
.wrapt-photo-tile .caption {
  padding: 0.5rem 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wrapt-text-muted);
}

/* Utility: one large, prominent "hero-style" clickable photo — for
   spotlighting a single item category with real visual weight, rather
   than a small grid tile. Still opens in the lightbox on click. */
.wrapt-photo-hero {
  margin: 1.5rem 0;
  text-align: center;
}
.wrapt-photo-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--wrapt-radius);
  box-shadow: var(--wrapt-shadow);
  display: block;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}
.wrapt-photo-hero img:hover {
  transform: scale(1.015);
}
.wrapt-photo-hero .caption {
  margin-top: 0.85rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--wrapt-blue);
}
@media (max-width: 640px) {
  .wrapt-photo-hero img {
    max-height: 260px;
  }
  .wrapt-photo-hero .caption {
    font-size: 1.1rem;
  }
}

/* ---- Lightbox: click a .wrapt-photo-tile image to enlarge it ----
   Markup + a couple of lines of JS are needed on the page itself (see
   README-style comment in donate-items.html) — this is just the visual
   styling, matching the site's existing modal pattern (e.g. the
   Report Wildlife popup on the homepage). */
.wrapt-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.wrapt-lightbox.show {
  display: flex;
}
.wrapt-lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  cursor: default;
}
.wrapt-lightbox img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: var(--wrapt-radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  background: #fff;
  transform: scale(0.96);
  opacity: 0;
  transition: all 0.2s ease;
  display: block;
}
.wrapt-lightbox.show img {
  transform: scale(1);
  opacity: 1;
}
.wrapt-lightbox-reason {
  margin-top: 1rem;
  color: #fff;
  background: rgba(0,0,0,0.35);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  max-width: 600px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}
.wrapt-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}
.wrapt-lightbox-close:hover {
  color: var(--wrapt-yellow);
}

/* Grid of cards, for pages with multiple options side by side
   (donate, volunteer, membership, etc.) — intended for cards with
   roughly comparable content ("action cards"). If you have one card
   with dramatically more content than its neighbours (e.g. a long
   list), pull it out into its own full-width .wrapt-section instead of
   putting it in this grid — that's what keeps this grid's stretching
   behaviour looking clean rather than ballooning short cards with
   empty space. */
.wrapt-card-grid {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.wrapt-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--wrapt-radius);
  box-shadow: var(--wrapt-shadow-soft);
  /* Flex column so a .wrapt-btn inside always sits flush at the bottom
     of the card (via margin-top: auto below), instead of trailing right
     after whatever text happens to precede it — this is what keeps
     buttons aligned across a row of cards with slightly different
     amounts of text. */
  display: flex;
  flex-direction: column;
}
.wrapt-card h2 {
  color: var(--wrapt-blue);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.wrapt-card .wrapt-btn {
  margin-top: auto;
  align-self: flex-start;
}
.wrapt-card form .wrapt-btn {
  /* Forms usually want their submit button to stay directly under the
     form fields, not pinned to the card bottom. */
  margin-top: 0.5rem;
  align-self: stretch;
}

/* ---- Buttons ---- */
.wrapt-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--wrapt-radius-pill);
  text-decoration: none;
  font-weight: 700;
  transition: var(--wrapt-transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.wrapt-btn-primary {
  background: var(--wrapt-blue);
  color: #fff;
}
.wrapt-btn-primary:hover {
  background: var(--wrapt-blue-light);
  transform: scale(1.05);
}
.wrapt-btn-accent {
  background: var(--wrapt-yellow);
  color: #333;
}
.wrapt-btn-accent:hover {
  background: var(--wrapt-orange);
  color: #fff;
  transform: scale(1.05);
}

/* ---- Hero (page intro banner) ---- */
.wrapt-hero {
  text-align: center;
  padding: 2.5rem;
  background: #fff;
  border-radius: var(--wrapt-radius);
  max-width: 1000px;
  margin: 2rem auto;
  box-shadow: var(--wrapt-shadow);
}
.wrapt-hero h2 {
  font-size: 1.8rem;
  color: var(--wrapt-blue);
  margin-bottom: 1rem;
  margin-top: 0;
}

/* ---- Mission-style gradient banner (for reuse if needed) ---- */
.wrapt-gradient-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  background: linear-gradient(90deg, var(--wrapt-blue) 0%, var(--wrapt-blue-light) 100%);
  padding: 1.5rem;
  margin: 2rem auto;
  border-radius: var(--wrapt-radius);
  max-width: 920px;
  box-shadow: var(--wrapt-shadow);
  text-transform: uppercase;
}

/* ---- Forms ---- */
.wrapt-section input[type="text"],
.wrapt-section input[type="email"],
.wrapt-section input[type="tel"],
.wrapt-card input[type="text"],
.wrapt-card input[type="email"],
.wrapt-card input[type="tel"],
.wrapt-section textarea,
.wrapt-card textarea,
.wrapt-section select,
.wrapt-card select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
}
.wrapt-section label,
.wrapt-card label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wrapt-text-muted);
}

/* ---- Notice / callout box (e.g. important stipulations) ---- */
.wrapt-notice {
  background: #fff8e1;
  border-left: 6px solid var(--wrapt-yellow);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: #7a5c00;
}

/* ---- Footer ---- */
.wrapt-footer {
  background: var(--wrapt-blue);
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
.wrapt-footer p {
  margin: 0.5rem 0;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .wrapt-header h1 {
    font-size: 1.8rem;
  }
  .wrapt-gradient-banner {
    font-size: 1.4rem;
    gap: 0.75rem;
  }
}
