/* style.css — Site styles for Fundashon Abram Edgardo Salas */

/* ── Custom properties ─────────────────────────────────────── */
:root {
  --color-bg:        #fafaf8;
  --color-surface:   #ffffff;
  --color-border:    #e4e0d8;
  --color-text:      #1a1a18;
  --color-muted:     #6b6860;
  --color-accent:    #2d5a3d;
  --color-accent-lt: #e8f2eb;
  --color-gold:      #a07830;

  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;

  --max-width: 900px;
  --radius:    4px;
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: normal;
  line-height: 1.25;
  color: var(--color-text);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-top: var(--space-lg); margin-bottom: var(--space-xs); }
h3 { font-size: 1.1rem; margin-bottom: var(--space-xs); }

p { margin-bottom: var(--space-sm); }
ul, ol { margin-bottom: var(--space-sm); padding-left: 1.4rem; }
li { margin-bottom: 0.25rem; }
strong { font-weight: 600; }

/* ── Hero (banner + topbar overlay) ───────────────────────── */
.site-hero {
  position: relative;
}

.site-topbar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  padding: 0 var(--space-lg);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.75em;
  line-height: 1;
  font-style: italic;
  color: #1a3d2a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 1px 2px 6px rgba(0,0,0,0.18);
}

/* ── Banner ────────────────────────────────────────────────── */
.site-banner {
  width: 100%;
  height: 160px;
  position: relative;
  background-color: #a8cfe0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 40%, transparent 65%),
    url('curacao-waterfront2.jpg');
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: left center;
}

/* ── Layout wrapper ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Header ────────────────────────────────────────────────── */
header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0;
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.site-name {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}

.site-name a { color: inherit; }
.site-name a:hover { text-decoration: none; opacity: 0.8; }

/* ── Nav ───────────────────────────────────────────────────── */
nav { display: flex; gap: var(--space-md); flex-wrap: wrap; }

nav a {
  font-size: 0.9rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}

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

/* ── Main content ──────────────────────────────────────────── */
main {
  flex: 1;
  padding: var(--space-sm) 0;
}

/* ── Hero (home page) ──────────────────────────────────────── */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.hero p { font-size: 1.1rem; color: var(--color-muted); max-width: 620px; }

.hero-links { margin-top: var(--space-md); display: flex; gap: var(--space-md); flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: background 0.15s;
}
.btn:hover { background: #1e3d2a; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent-lt); }

/* ── Content page ──────────────────────────────────────────── */
.content-page h1 { margin-bottom: var(--space-md); }

.content-body { max-width: 680px; }

/* ── Grants grid ───────────────────────────────────────────── */
.grants-header { margin-bottom: var(--space-lg); }
.grants-header h1 { margin-bottom: var(--space-xs); }
.grants-header p { color: var(--color-muted); }

.grants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.grant-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.grant-card h3 { font-family: var(--font-serif); }

.grant-meta {
  margin-top: var(--space-xs);
  font-size: 0.82rem;
  color: var(--color-muted);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.grant-type {
  background: var(--color-accent-lt);
  color: var(--color-accent);
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.grant-body { margin-top: var(--space-sm); font-size: 0.92rem; color: var(--color-muted); }

/* ── Board page ────────────────────────────────────────────── */
.board-page h1 { margin-bottom: var(--space-md); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-md);
}

.person-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.person-photo {
  width: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin: var(--space-sm) auto 0;
  border-radius: 50%;
}

.person-card-body {
  padding: var(--space-sm);
}

.person-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.person-bio {
  font-size: 0.88rem;
  color: var(--color-muted);
  text-align: left;
}

.person-bio p { margin-bottom: 0; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-inner a { color: var(--color-muted); }
.footer-inner a:hover { color: var(--color-accent); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.8rem; }
  .header-inner { flex-direction: column; gap: var(--space-xs); }
  .grants-grid { grid-template-columns: 1fr; }
}
