/* ============================================================
   LALE – Los Altos Library Endowment
   Main Stylesheet
   ============================================================ */

/* ----- Font imports (uncomment one block at a time) ----- */

/* ACTIVE: Merriweather + Lato */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&family=Lato:wght@400;600;700&display=swap');

/* OPTION: EB Garamond + Inter
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;600;700&display=swap');
*/

/* ORIGINAL: Georgia + Helvetica Neue — no import needed */


/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {

  /* ----------------------------------------------------------
     Fonts
     ---------------------------------------------------------- */

  /* ACTIVE: Merriweather (serif) + Lato (sans) */
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans:  'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* OPTION: EB Garamond + Inter
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;
  */

  /* ORIGINAL: system fonts
  --font-serif: Georgia, serif;
  --font-sans:  'Helvetica Neue', Arial, sans-serif;
  */

  /* ----------------------------------------------------------
     Type scale
     ---------------------------------------------------------- */
  --text-fine:      0.82rem;              /* footer small print */
  --text-small:     0.85rem;              /* captions, secondary labels */
  --text-ui:        0.9rem;               /* nav, buttons, footer body */
  --text-body:      1.05rem;              /* paragraph text */
  --text-sub:       1.1rem;               /* newsletter links */
  --text-h3:        1.25rem;              /* section h3 */
  --text-pullquote: 1.4rem;              /* blockquotes */
  --text-banner:    1.5rem;              /* anniversary banner */
  --text-project:   1.6rem;              /* project h3 */
  --text-h2:        1.8rem;              /* section h2 */
  --text-page-h1:   2.5rem;              /* page title bars */
  --text-hero-h1:   2.8rem;              /* full-page hero */
  --text-tagline:   clamp(1.6rem, 5vw, 2.4rem); /* home taglines */

  /* ----------------------------------------------------------
     Colors — ACTIVE: blue / orange scheme
     ---------------------------------------------------------- */
  --color-dark:        #1a375c;  /* dark navy — headers, footer, headings */
  --color-accent:      #2563a8;  /* medium blue — buttons, links, accents */
  --color-accent-dark: #1a4f8a;  /* blue hover */
  --color-cta:         #e07030;  /* orange — Donate button */
  --color-cta-dark:    #c25c20;  /* orange hover */

  /* Colors — COMMENTED OUT: original green scheme
  --color-dark:        #1a3a2a;
  --color-accent:      #3a7d44;
  --color-accent-dark: #2e6337;
  --color-cta:         #3a7d44;  (same as accent — no separate donate color)
  --color-cta-dark:    #2e6337;
  */

  /* Neutral / content colors */
  --color-text:        #2c2c2c;
  --color-text-muted:  #444;
  --color-text-dim:    #666;
  --color-text-faint:  #777;
  --color-border:      #e5e5e5;
  --color-bg-alt:      #f5f5f0;
  --color-white:       #fff;

  /* Tinted backgrounds (derived from accent) */
  --color-highlight-bg:    #eef3fa;  /* green: #f0f7f2 */
  --color-btn-white-hover: #e8f0f8;  /* green: #e8f0eb */

  /* Footer palette (derived from --color-dark) */
  --color-footer-text:   #c8ddf0;  /* green: #cde4d4 */
  --color-footer-muted:  #b0c8e0;  /* green: #b8d9c3 */
  --color-footer-border: #3a5a8a;  /* green: #4a8a5a */
  --color-footer-dim:    #6a8ab0;  /* green: #7aaa8a */
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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


/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.text-center { text-align: center; }


/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 2rem;
}

.site-logo img { height: 60px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.site-nav .nav-donate a {
  background: var(--color-cta);
  color: var(--color-white);
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
  transition: background 0.2s;
}

.site-nav .nav-donate a:hover { background: var(--color-cta-dark); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
}


/* ============================================================
   HERO & BANNERS
   ============================================================ */

/* Full-page hero (interior pages) */
.page-hero {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: var(--text-hero-h1);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-style: italic;
}

/* Anniversary banner (home page, above images) */
.home-anniversary {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 1.25rem 2rem;
}

.home-anniversary h1 {
  font-size: var(--text-banner);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Home hero images */
.home-hero { overflow: hidden; }

.home-hero-images {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--color-white);
}

.home-hero-images img {
  width: 50%;
  height: 420px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 3px;
}

/* Page title bar (interior pages) */
.page-title {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
}

.page-title h1 {
  font-size: var(--text-page-h1);
  font-weight: 400;
}


/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.section { padding: 4rem 0; }

.section-alt { background: var(--color-bg-alt); }

.section h2 {
  font-size: var(--text-h2);
  font-weight: 400;
  margin-bottom: 1.25rem;
  color: var(--color-dark);
}

.section h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.section p {
  margin-bottom: 1rem;
  font-size: var(--text-body);
}

.section p:last-child { margin-bottom: 0; }


/* ============================================================
   BUTTONS & CTAs
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-accent-dark); text-decoration: none; }

.btn-outline {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent); color: var(--color-white); text-decoration: none; }

.btn-white {
  background: var(--color-white);
  color: var(--color-dark);
}
.btn-white:hover { background: var(--color-btn-white-hover); text-decoration: none; }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cta-group.centered { justify-content: center; }


/* ============================================================
   HOME PAGE
   ============================================================ */
.home-taglines {
  text-align: center;
  padding: 3rem 0 2rem;
}

.home-taglines h2 {
  font-size: var(--text-tagline);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  color: var(--color-dark);
  margin-bottom: 0.3rem;
}

.home-taglines p {
  font-size: var(--text-body);
  max-width: 720px;
  margin: 1.5rem auto 0;
  color: var(--color-text-muted);
}


/* ============================================================
   BOARD OF DIRECTORS
   ============================================================ */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.board-member { text-align: center; }

.board-member a { display: block; }

.board-member img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  transition: opacity 0.2s;
}

.board-member a:hover img { opacity: 0.85; }

.board-member strong {
  display: block;
  font-size: 1rem;
  color: var(--color-dark);
}

.board-member .board-title {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--color-text-dim);
}


/* ============================================================
   PROJECTS
   ============================================================ */
.project {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.project:last-child { border-bottom: none; }

.project h3 {
  font-size: var(--text-project);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.project .project-subtitle {
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
}

.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.project-images img {
  width: 100%;
  border-radius: 4px;
}

.project-caption {
  font-size: var(--text-small);
  color: var(--color-text-faint);
  font-style: italic;
  margin-top: -1rem;
  margin-bottom: 1rem;
}

.donor-highlight {
  background: var(--color-highlight-bg);
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.donor-photo {
  text-align: center;
  margin: 1.5rem auto;
  max-width: 420px;
}

.donor-photo img { border-radius: 4px; margin: 0 auto; }
.donor-photo figcaption {
  font-size: var(--text-small);
  color: var(--color-text-dim);
  margin-top: 0.5rem;
}


/* ============================================================
   HISTORY IMAGES
   ============================================================ */
.history-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.history-images img { border-radius: 4px; }


/* ============================================================
   NEWSLETTERS
   ============================================================ */
.newsletter-list {
  list-style: none;
  margin: 2rem 0;
}

.newsletter-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.newsletter-list li:first-child { border-top: 1px solid var(--color-border); }

.newsletter-list a {
  font-size: var(--text-sub);
  font-weight: 600;
  color: var(--color-dark);
}

.newsletter-list a:hover { color: var(--color-accent); }


/* ============================================================
   LGL FORM EMBED
   ============================================================ */
.form-embed { margin: 2rem 0; }

.form-embed a.lgl-form-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  border-radius: 3px;
}

.form-embed a.lgl-form-link:hover { background: var(--color-accent-dark); text-decoration: none; }


/* ============================================================
   DONATE PAGE
   ============================================================ */
.donate-image {
  max-width: 700px;
  margin: 0 auto 2rem;
  border-radius: 4px;
  overflow: hidden;
}


/* ============================================================
   PULLQUOTE
   ============================================================ */
blockquote.pullquote {
  font-size: var(--text-pullquote);
  font-style: italic;
  color: var(--color-dark);
  border-left: 4px solid var(--color-accent);
  padding: 0.5rem 1.5rem;
  margin: 2rem 0;
}

blockquote.pullquote cite {
  display: block;
  font-size: var(--text-ui);
  font-style: normal;
  color: var(--color-text-dim);
  margin-top: 0.5rem;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-dark);
  color: var(--color-footer-text);
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  padding: 3rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-logo img { height: 60px; width: auto; margin-bottom: 1rem; }

.footer-address {
  line-height: 1.8;
  color: var(--color-footer-muted);
}

.footer-address strong { color: var(--color-white); }

.footer-nav h4 {
  font-size: var(--text-fine);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a { color: var(--color-footer-muted); }
.footer-nav a:hover { color: var(--color-white); }

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  font-size: var(--text-small);
  color: var(--color-footer-muted);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--color-footer-border);
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
}

.footer-social a:hover { color: var(--color-white); border-color: var(--color-white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--color-accent-dark);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: var(--text-fine);
  color: var(--color-footer-dim);
}

.footer-bottom a { color: var(--color-footer-dim); }
.footer-bottom a:hover { color: var(--color-footer-text); }

.footer-tax {
  font-size: var(--text-fine);
  color: var(--color-footer-dim);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: flex; }

  .home-hero-images img { height: 220px; }
  .home-anniversary h1 { font-size: var(--text-ui); }

  .two-col, .three-col, .footer-inner { grid-template-columns: 1fr; }
  .project-images, .history-images { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  .page-title h1 { font-size: 1.8rem; }
  .section h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .home-hero-images { flex-direction: column; gap: 0.5rem; padding: 0.5rem; }
  .home-hero-images img { width: 100%; height: 200px; }
}
