/* Gobyahan website styles */
:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-accent: #A4BBB0;
  --color-accent-dark: #83968D;
  --color-soft: #E7EEE9;
  --color-border: #e6e6e6;
  --max-width: 1200px;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text);
  letter-spacing: 0.5px;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: normal;
  color: var(--color-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--color-text);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.site-nav a:hover { color: var(--color-accent); text-decoration: none; }
.site-nav a.donate {
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 2px;
}
.site-nav a.donate:hover { background: var(--color-accent-dark); }

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
              url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero-inner { padding: 80px 24px; max-width: 800px; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin: 0 0 16px;
  line-height: 1.15;
}
.hero p {
  font-size: 1.15rem;
  margin: 0 0 32px;
  opacity: 0.95;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-accent);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--color-accent-dark); text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--color-accent); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--color-soft); }
.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin: 0 0 16px;
  text-align: center;
}
.section-lead {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 auto 48px;
}

/* Page header (sub-pages) */
.page-header {
  background: var(--color-soft);
  padding: 56px 0;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin: 0 0 8px;
}
.page-header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 32px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 28px;
  border-radius: 2px;
}
.card h3 {
  font-family: var(--font-serif);
  margin-top: 0;
  font-size: 1.35rem;
}
.card p { color: var(--color-muted); margin-bottom: 0; }

/* Two-column content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-top: 0;
}
.placeholder-image {
  background: linear-gradient(135deg, #d6c5a8 0%, var(--color-accent) 100%);
  min-height: 320px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Board members */
.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.board-member {
  text-align: center;
}
.board-member .avatar,
.board-member .avatar-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 20px;
}
.board-member .avatar {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3.5rem;
  font-family: var(--font-serif);
}
.board-member .avatar-img {
  object-fit: cover;
  display: block;
}
.board-member h4 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}
.board-role {
  display: block;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Board card (opens full-profile modal) */
.board-card {
  cursor: pointer;
  border-radius: 6px;
  padding: 24px 16px;
  margin: -24px -16px;
  transition: background 0.15s ease;
}
.board-card:hover,
.board-card:focus-visible {
  background: var(--color-soft);
  outline: none;
}
.board-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  padding: 9px 20px;
  border: 1.5px solid var(--color-accent-dark);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
  transition: background 0.15s ease, color 0.15s ease;
}
.board-card:hover .board-toggle-label,
.board-card:focus-visible .board-toggle-label {
  background: var(--color-accent-dark);
  color: #fff;
}
.board-toggle-label .chevron { font-size: 1rem; }

/* Board full-profile modal */
.board-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.board-modal[hidden] { display: none; }
.board-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 22, 0.6);
}
.board-modal-panel {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 920px;
  max-height: 85vh;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
}
.board-modal-media {
  position: relative;
  min-height: 360px;
}
.board-modal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.board-modal-body {
  padding: 48px 44px;
  overflow-y: auto;
  max-height: 85vh;
}
.board-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.board-modal-close:hover { background: var(--color-soft); }
.board-modal-body h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin: 0 0 4px;
}
.board-modal-body .board-role { text-align: left; margin-bottom: 20px; }
.board-modal-body p {
  color: var(--color-muted);
  margin: 0 0 14px;
}
.board-modal-body p:last-child { margin-bottom: 0; }
body.modal-open { overflow: hidden; }
@media (max-width: 640px) {
  .board-modal-panel {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .board-modal-media { min-height: 260px; }
  .board-modal-body { padding: 32px 24px; max-height: none; overflow-y: visible; }
}

/* Our Story */
.story-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.story-grid .story-media {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 110px;
}
.story-image {
  width: 100%;
  max-height: 300px;
  border-radius: 4px;
  display: block;
  object-fit: cover;
}
@media (max-width: 880px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-grid .story-media { position: static; margin-top: 24px; }
  .story-image { max-height: none; }
}

/* Forms */
form {
  max-width: 640px;
  margin: 0 auto;
}
.form-row {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-muted);
}
input[type=text],
input[type=email],
input[type=tel],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: inherit;
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: var(--color-accent);
}

/* Donate */
.donate-amounts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}
.donate-amounts button {
  flex: 1 1 100px;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--color-border);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px;
}
.donate-amounts button:hover,
.donate-amounts button.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #cfcfcf;
  padding: 56px 0 24px;
  font-size: 0.92rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-serif);
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* Our Story letter */
.letter {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 56px;
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.06);
  font-family: var(--font-serif);
}
.letter p {
  margin: 0 0 20px;
  color: var(--color-text);
  font-size: 1.05rem;
}
.letter .letter-salutation {
  font-size: 1.15rem;
  margin-bottom: 28px;
}
.letter .letter-signoff {
  margin-top: 32px;
  margin-bottom: 0;
  font-style: italic;
}
.letter .letter-signature {
  margin-top: 4px;
  font-size: 1.1rem;
}
.letter .letter-signature small {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Bootcamp recap */
.bootcamp-recap {
  scroll-margin-top: 96px;
}
.bootcamp-recap .section-title { margin-bottom: 4px; }
.bootcamp-recap .bootcamp-location {
  color: var(--color-muted);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-top: 0;
  margin-bottom: 28px;
}
.bootcamp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.bootcamp-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.card-link {
  color: inherit;
  display: block;
}
.card-link:hover h3 { color: var(--color-accent); text-decoration: none; }

/* Stats bar */
.stats-section { padding: 48px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-accent-dark);
}
.stat-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-top: 4px;
}

/* Photo slideshow */
.slideshow {
  position: relative;
  max-width: 900px;
  margin: 32px auto 0;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
}
.slideshow-track {
  position: relative;
  aspect-ratio: 16 / 10;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.slideshow-arrow:hover { background: rgba(0, 0, 0, 0.65); }
.slideshow-arrow.prev { left: 16px; }
.slideshow-arrow.next { right: 16px; }
.slideshow-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.slideshow-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}
.slideshow-dots button.active { background: #fff; }

/* Toast notification */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: var(--color-accent-dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
  max-width: calc(100% - 48px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.toast-error { background: #b3261e; }

/* Responsive */
@media (max-width: 880px) {
  .grid-3, .grid-2, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .bootcamp-gallery { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .letter { padding: 32px 28px; }
  .hero h1 { font-size: 2.25rem; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 16px;
  }
}
