/* -------------------------------------------------------
   The Bloom Again Project — base styles
   ------------------------------------------------------- */

:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Quattrocento Sans', -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif;

  --color-bg: #faf7f2;
  --color-bg-alt: #f1ece3;
  --color-text: #2b2b28;
  --color-text-muted: #5c5850;
  --color-accent: #6f7d68;
  --color-accent-dark: #55614f;
  --color-on-accent: #ffffff;
  --color-border: rgba(43, 43, 40, 0.12);

  --radius: 8px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --max-width: 1180px;
  --max-width-small: 760px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a {
  color: var(--color-accent-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent-dark);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-small {
  max-width: var(--max-width-small);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 90px 0;
}
@media screen and (max-width: 780px) {
  section {
    padding: 60px 0;
  }
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 620px;
}

/* Buttons / links -------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
}
.btn-secondary {
  background: transparent;
  color: var(--color-on-accent);
  border: 2px solid var(--color-on-accent);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}
.btn-danger {
  background: #a94442;
  color: #fff;
}
.btn-danger:hover {
  background: #8b3532;
}

.link-arrow {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-accent-dark);
}
.link-arrow:hover {
  text-decoration: underline;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
@media screen and (max-width: 460px) {
  .cta-group .btn {
    width: 100%;
    text-align: center;
  }
}

/* Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--color-text);
}
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
}
.main-nav a:hover {
  color: var(--color-accent-dark);
}
.main-nav a.nav-cta {
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 10px 20px;
  border-radius: 999px;
}
.main-nav a.nav-cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-on-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.mobile-nav {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
}

@media screen and (max-width: 780px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}
@media screen and (min-width: 781px) {
  .mobile-nav { display: none !important; }
}

/* Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--color-accent-dark);
  padding: 160px 0;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 18, 0.55), rgba(20, 20, 18, 0.35));
}
.hero-content {
  position: relative;
  color: #fff;
  text-align: center;
}
.hero-content h1 {
  color: #fff;
}
.hero-content .lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
}
@media screen and (max-width: 780px) {
  .hero { padding: 110px 0; }
}

/* Page hero (subpages) -------------------------------------------------- */

.page-hero {
  background: var(--color-bg-alt);
  text-align: left;
  padding: 100px 0 60px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

/* Our story ------------------------------------------------------------ */

.story {
  background: var(--color-bg);
}
.story p {
  color: var(--color-text-muted);
}

/* How it works ----------------------------------------------------------- */

.steps {
  background: var(--color-bg-alt);
}
.steps-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.step img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.step p {
  color: var(--color-text-muted);
}
@media screen and (max-width: 780px) {
  .steps-list { grid-template-columns: 1fr; gap: 36px; }
}

/* Get involved -------------------------------------------------------- */

.involve-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.involve-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--color-bg-alt);
  padding: 24px 28px;
  border-radius: var(--radius);
}
.involve-card .involve-text {
  flex: 1 1 320px;
}
.involve-card h3 {
  margin-bottom: 4px;
}
.involve-card p {
  margin: 0;
  color: var(--color-text-muted);
}
.involve-card .link-arrow {
  margin-top: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Gallery ---------------------------------------------------------- */

.gallery {
  background: var(--color-bg);
}
.gallery-intro {
  margin-bottom: 40px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.photo-tile {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-bg-alt);
}
.photo-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.photo-tile figcaption {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
@media screen and (max-width: 780px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
}

/* Updates ---------------------------------------------------------------- */

.updates-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.update-card {
  background: var(--color-bg-alt);
  padding: 28px;
  border-radius: var(--radius);
}
.update-card .update-date {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.update-card img {
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.update-card p {
  color: var(--color-text-muted);
}
@media screen and (max-width: 780px) {
  .updates-grid { grid-template-columns: 1fr; }
}

/* FAQ ------------------------------------------------------------------- */

.faq {
  background: var(--color-bg-alt);
}
.question {
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
}
.question:last-of-type {
  border-bottom: 1px solid var(--color-border);
}
.question summary {
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.question p {
  margin-top: 14px;
  color: var(--color-text-muted);
}

/* Final CTA --------------------------------------------------------------- */

.final-cta {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
}
.final-cta h2,
.final-cta p {
  color: #fff;
}
.final-cta .btn-primary {
  background: #fff;
  color: var(--color-accent-dark);
  margin-top: 20px;
}
.final-cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.85);
}
.final-cta .social-links {
  justify-content: center;
  margin-top: 20px;
}
.final-cta .social-links a {
  color: #fff;
}
.final-cta .social-links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* Contact ------------------------------------------------------------------ */

.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
}
.social-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 700;
}
.social-links a:hover {
  color: var(--color-accent-dark);
}

/* Footer --------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-inner .social-links {
  justify-content: flex-end;
  margin: 0;
}

/* Forms (manage dashboard, volunteer signup) ---------------------------- */

.form-page {
  background: var(--color-bg);
}
.gform-embed {
  width: 100%;
}
.gform-embed iframe {
  width: 100%;
  height: 1600px;
  border: none;
  display: block;
}
form.styled-form p {
  margin-bottom: 18px;
}
form.styled-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
form.styled-form input[type="text"],
form.styled-form input[type="email"],
form.styled-form input[type="tel"],
form.styled-form input[type="file"],
form.styled-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
}
form.styled-form textarea {
  min-height: 120px;
}
form.styled-form .donation-types {
  margin-bottom: 18px;
}
form.styled-form .donation-types-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
form.styled-form .checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 10px;
}
form.styled-form .checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  margin-bottom: 0;
}
form.styled-form .checkbox-row input[type="checkbox"] {
  width: auto;
}

.messages {
  list-style: none;
  margin: 0;
  padding: 14px 24px;
  background: var(--color-accent);
  color: #fff;
}

.coming-soon {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

/* Manage dashboard -------------------------------------------------------- */

.manage-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.manage-card {
  display: block;
  background: var(--color-bg-alt);
  padding: 28px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
}
.manage-card h3 {
  margin-bottom: 6px;
}
.manage-card p {
  color: var(--color-text-muted);
  margin: 0;
}
.manage-list {
  margin-top: 40px;
}
.manage-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
}
.manage-item-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}
.manage-item-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manage-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
@media screen and (max-width: 780px) {
  .manage-grid { grid-template-columns: 1fr; }
}
