/* =============================================
   KOFIPSY — Single Page Site
   Mobile-first, clean, accessible
   ============================================= */

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

:root {
  --teal:      #2A7F8F;
  --teal-dark: #1E6070;
  --teal-light:#E8F4F7;
  --text:      #1E2D3A;
  --text-muted:#5A6A78;
  --bg:        #FFFFFF;
  --bg-alt:    #F4F8FA;
  --border:    #D4E4EB;
  --radius:    12px;
  --shadow:    0 2px 16px rgba(42,127,143,0.10);
  --font:      'Inter', system-ui, sans-serif;
}

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

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

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

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ---- BUTTON ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-full {
  width: 100%;
  text-align: center;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #3DA0B3 100%);
  color: #fff;
  padding: 6rem 1.25rem;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

.hero-sub br { display: none; }

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text);
}

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.value-card {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.value-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--teal-dark);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- ACTIONS ---- */
.actions-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.action-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.year-label {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  border-bottom: 2px solid var(--teal-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.action-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.action-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.action-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.action-toggle {
  margin-top: 0.75rem;
  background: none;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.action-toggle:hover {
  background: var(--teal);
  color: #fff;
}

/* hidden — only shown inside the modal */
.action-photos { display: none; }

/* ---- ACTION PHOTOS MODAL ---- */
.action-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.action-modal.open {
  display: flex;
}

.action-modal-box {
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 860px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
}

.action-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.action-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.action-modal-close:hover { color: var(--text); }

.action-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.action-modal-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
}

@media (min-width: 600px) {
  .action-modal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- PHOTOS ---- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.photo-slot {
  background: var(--teal-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 0.35rem 0.5rem;
  text-align: center;
  pointer-events: none;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) - 2px);
}


/* ---- LIGHTBOX ---- */
.photo-slot {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
  padding: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
}

.lightbox-prev {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox-next {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

/* ---- MEDIA / VIDEOS ---- */
.media-grid {
  display: grid;
  gap: 1.5rem;
}

.video-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}

.video-card:hover {
  box-shadow: 0 6px 24px rgba(42,127,143,0.18);
  transform: translateY(-2px);
  text-decoration: none;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.video-card:hover .video-thumb img {
  opacity: 0.7;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  pointer-events: none;
}

.video-caption {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-item a {
  color: var(--text-muted);
}

.contact-item a:hover {
  color: var(--teal);
}

/* ---- FORM ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,127,143,0.12);
}

.form-note {
  font-size: 0.9rem;
  color: var(--teal-dark);
  min-height: 1.4em;
  text-align: center;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.footer p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  margin: 0.75rem 0;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 0.75rem;
}

/* ---- STATS STRIP ---- */
.stats-strip {
  background: var(--teal);
  color: #fff;
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
}

.stat-suffix {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* ---- LIGHTBOX CAPTION ---- */
.lightbox-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  text-align: center;
  max-width: 80vw;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  pointer-events: none;
  white-space: normal;
  display: none;
}

.lightbox.open .lightbox-caption {
  display: block;
}

/* ---- JOIN SECTION ---- */
.join-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.join-section .section-title {
  color: #fff;
}

.join-section .section-sub {
  color: rgba(255, 255, 255, 0.82);
}

.join-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.join-cards {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.join-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.6rem 1.25rem;
}

.join-card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
}

.join-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #fff;
}

.join-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.btn-white {
  background: #fff;
  color: var(--teal-dark);
  font-weight: 700;
}

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

.join-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---- PARTNERS STRIP ---- */
.partners-strip {
  background: var(--bg-alt);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.partners-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.partner-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.partner-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
  text-decoration: none;
}

/* ---- PDF REPORT LINK ---- */
.report-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1.1rem;
  background: var(--teal-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-dark);
  transition: background 0.2s;
}

.report-link:hover {
  background: var(--border);
  text-decoration: none;
}

/* =============================================
   TABLET — 640px+
   ============================================= */
@media (min-width: 640px) {
  .hero-sub br { display: block; }

  .actions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .join-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   DESKTOP — 900px+
   ============================================= */
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
  }

  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   MOBILE NAV — up to 700px
   ============================================= */
@media (max-width: 699px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .values-list {
    grid-template-columns: 1fr;
  }
}
