/* ===== Friends of Paoli Library — shared styles ===== */

/* Change these colors to restyle the whole site */
:root {
  --blue: #15427A;        /* main brand color */
  --blue-dark: #0e2e56;   /* hover / darker shade */
  --blue-light: #eef3f9;  /* soft tint for page background */
  --white: #ffffff;
  --text: #1f2a37;
  --muted: #4a5a6e;
  --card: #ffffff;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--blue-light);
}

h1, h2, h3 {
  color: var(--blue);
  line-height: 1.25;
}

a { color: var(--blue); }

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

.container {
  width: min(960px, 92%);
  margin: 0 auto;
}

/* ----- Header / navigation ----- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--blue);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue);
  text-decoration: none;
}
.logo img { height: 64px; width: 64px; object-fit: contain; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a.active { border-bottom-color: var(--blue); }

/* ----- Hero ----- */
.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 0.5rem; }
.hero p { color: var(--muted); font-size: 1.2rem; margin: 0 auto; max-width: 70ch; }
.hero img {
  margin: 2rem auto 0;
  border-radius: var(--radius);
  max-height: 380px;
  object-fit: cover;
  object-position: center 17%;   /* which part of the photo shows: 0% = top, 100% = bottom */
  width: 100%;
}

/* ----- Sections ----- */
section { padding: 2rem 0; }
section h2 { font-size: 1.7rem; margin-top: 0; }

.statement {
  background: var(--card);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.statement h2 { margin-bottom: 0.5rem; }
.statement p { margin: 0 0 0.5rem; font-size: 1.2rem; }
.statement p:last-child { margin-bottom: 0; }

.values ul { margin: 0; padding-left: 1.2rem; }
.values li { margin-bottom: 0.9rem; font-size: 1.2rem; }
.values li:last-child { margin-bottom: 0; }

/* ----- Card grids (values, tiers) ----- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.card h3 { margin-top: 0; }
.card .tagline { font-weight: 600; color: var(--blue); }

/* Membership tier cards */
.tier { text-align: center; display: flex; flex-direction: column; }
.tier .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0.25rem 0 1rem;
}
.tier .price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.tier ul { text-align: left; padding-left: 1.2rem; margin: 0; }
.tier.featured { border: 3px solid var(--blue); }
.tier .note { color: var(--muted); font-size: 0.95rem; margin-top: auto; padding-top: 1rem; }
.fine-print { color: var(--muted); font-size: 1rem; }

/* ----- Buttons ----- */
.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.button:hover { background: var(--blue-dark); }

/* ----- GiveButter embed area ----- */
.embed-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

givebutter-widget {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ----- Contact form ----- */
.form { display: grid; gap: 1rem; max-width: 560px; margin: 0 auto; }
.form label { font-weight: 600; display: block; margin-bottom: 0.25rem; }
.form input,
.form textarea {
  width: 100%;
  padding: 0.7rem;
  font: inherit;
  border: 1px solid #ccd3cf;
  border-radius: 6px;
  background: #fff;
}
.form textarea { min-height: 150px; }
.hidden { display: none; }

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--blue);
  color: #e3ebf5;
  font-size: 0.95rem;
  padding: 2rem 0;
  margin-top: 3rem;
}
.site-footer a { color: #fff; }
.site-footer p { margin: 0.25rem 0; }
.footer-inner { display: flex; align-items: center; gap: 1.5rem; }
/* 120px ≈ the height of the four footer lines */
.footer-logo { width: 120px; height: 120px; object-fit: contain; flex-shrink: 0; }
.footer-text { flex: 1; }

/* Footer buttons */
.footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}
.footer-btn {
  display: block;
  text-align: center;
  min-width: 190px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, transform 0.05s;
}
.site-footer a.footer-btn-primary { background: #ffffff; color: var(--blue); }
.site-footer a.footer-btn-primary:hover { background: #d6e3f3; border-color: #d6e3f3; color: var(--blue-dark); }
.site-footer a.footer-btn-primary:active { background: #b3cbe8; border-color: #b3cbe8; color: var(--blue-dark); transform: translateY(1px); }

.site-footer a.footer-btn-outline { background: transparent; color: #ffffff; }
.site-footer a.footer-btn-outline:hover { background: #ffffff; color: var(--blue); }
.site-footer a.footer-btn-outline:active { background: #d6e3f3; border-color: #d6e3f3; color: var(--blue-dark); transform: translateY(1px); }

.footer-btn:focus-visible { outline: 3px solid #d6e3f3; outline-offset: 3px; }

/* Tablet: buttons drop below, side by side */
@media (max-width: 860px) {
  .footer-inner { flex-wrap: wrap; }
  .footer-buttons { flex-direction: row; width: 100%; }
  .footer-btn { flex: 1; min-width: 0; }
}
/* Phone: logo, then buttons, then the small print */
@media (max-width: 600px) {
  .site-footer { padding: 2.5rem 0 6rem; }   /* extra bottom room so the Netlify badge doesn't cover anything */
  .footer-inner { flex-direction: column; text-align: center; gap: 1.75rem; }
  .footer-logo { width: 96px; height: 96px; }
  .footer-buttons { order: 2; flex-direction: column; width: 100%; max-width: 340px; }
  .footer-btn { padding: 0.7rem 1.25rem; }
  .footer-text { order: 3; font-size: 0.85rem; line-height: 1.5; }
  .footer-text p { margin: 0 0 0.75rem; }
  .footer-text p:last-child { margin-bottom: 0; }
  .sep { display: none; }
  .m-block { display: block; }
}
