/* ==========================
   Revival Ark - Static Site
   ========================== */

:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #4b4b4b;
  --dark: #0b0b0b;
  --line: #e9e9e9;
  --accent: #e31b23; /* red */
  --shadow: 0 12px 28px rgba(0,0,0,.10);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* Header / Nav */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: #141414;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.brand-logo{
  height: 32px;
  width: auto;
  display: block;
}

.brand-mark{
  width:28px; height:28px;
  display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
}
.brand-text{ font-size: 14px; }

.nav-links{
  display:flex;
  align-items:center;
  gap: 28px;
  font-size: 13px;
  opacity: .95;
}
.nav-links a{ padding: 8px 0; }
.nav-links a.active,
.nav-links a:hover{
  color: #fff;
  border-bottom: 2px solid var(--accent);
}

/* Mobile nav toggle */
.nav-toggle{
  display:none;
  width:44px; height:40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  cursor:pointer;
  padding: 8px;
}
.nav-toggle span{
  display:block;
  height:2px;
  background:#fff;
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 860px){
  .nav-toggle{ display:block; }
  .nav-links{
    position: absolute;
    left: 0; right: 0;
    top: 62px;
    background:#141414;
    display:none;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links a{
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open{ display:flex; }
}

/* Helpers */
.section{ padding: 70px 0; }
.center{ text-align:center; }
.maxw{ max-width: 820px; margin-left:auto; margin-right:auto; }
.strong{ font-weight: 800; }

.script{
  font-family: "Playball", "Brush Script MT", cursive;
  letter-spacing: .02em;
}
.accent{ color: var(--accent); }
.kicker{
  margin:0 0 8px;
  font-size: 26px;
}
.h2{
  margin: 0 0 16px;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
}
.body{ color: var(--muted); margin: 0 0 12px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor:pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn-primary{
  background: var(--accent);
  color:#fff;
  box-shadow: 0 10px 20px rgba(227,27,35,.25);
}

/* Hero */
.hero{
  padding: 56px 0 38px;
  border-bottom: 1px solid var(--line);
}
.hero-inner{ display:flex; flex-direction: column; gap: 18px; }
.hero-top{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-logo{
  width: 90px; height: 90px;
  border-radius: 26px;
  border: 2px solid #111;
  background:
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,.02));
  box-shadow: var(--shadow);
}
.hero-title{
  margin:0;
  font-size: 54px;
  letter-spacing: .03em;
  font-weight: 900;
  text-align:center;
}
.hero-tagline{
  margin: 6px 0 0;
  font-size: 28px;
  text-align:center;
}
.hero-intro{
  max-width: 980px;
  margin: 0 auto;
  text-align:center;
  color: var(--muted);
  font-size: 15px;
}

.hero-banner{
  position: relative;
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid #dcdcdc;
}
.hero-image{
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.hero-image:hover{
  filter: grayscale(0%);
}

.verse-card{
  position:absolute;
  left: 18px;
  bottom: 18px;
  width: min(520px, calc(100% - 36px));
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.verse-head{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.verse-title{
  background: var(--accent);
  color:#fff;
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .02em;
}
.verse-ref{
  font-weight: 800;
  font-size: 12px;
}
.verse-badge{
  margin-left: auto;
  border: 1px solid rgba(0,0,0,.15);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
}
.verse-text{ margin:0; color: #2a2a2a; font-size: 13px; }
.donate-btn{
  position:absolute;
  right: 18px;
  bottom: 18px;
  min-width: 140px;
}

@media (max-width: 720px){
  .hero-title{ font-size: 42px; }
  .h2{ font-size: 38px; }
  .hero-image{ height: 320px; }
  .donate-btn{ position: static; width: 100%; border-radius: 0; }
  .hero-banner{ padding-bottom: 0; }
}

/* About */
.two-col{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: start;
}
.media-card{
  border-radius: 26px;
  overflow: hidden;              /* IMPORTANT */
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.media-image{
  width: 100%;
  height: 400px;                 /* match your layout */
  position: relative;
}

.media-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;             /* key fix */
  display: block;
}

.link{ font-weight: 800; display:inline-flex; margin-top: 10px; }

@media (max-width: 920px){
  .two-col{ grid-template-columns: 1fr; }
}

/* Stats bar */
.stats{
  background: #111;
  color: #fff;
}
.stats-inner{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 18px 0;
}
.stat{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 6px;
  justify-content:center;
  text-align:left;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat:last-child{ border-right: none; }
.stat-icon{ font-size: 22px; opacity: .95; }
.stat-number{ font-weight: 900; }
.stat-label{ font-size: 12px; opacity: .85; }

@media (max-width: 920px){
  .stats-inner{ grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2){ border-right: none; }
}
@media (max-width: 520px){
  .stats-inner{ grid-template-columns: 1fr; }
  .stat{ border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat:last-child{ border-bottom: none; }
}

/* Gallery*/
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.gallery-card{
  border-radius: 22px;
  overflow: hidden;                /* IMPORTANT */
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #f2f2f2;
}

.gallery-card img{
  width: 100%;
  height: 210px;                   /* match your design */
  object-fit: cover;               /* key fix */
  display: block;
}


.gallery-img{
  height: 210px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
  position: relative;
}
.gallery-img::after{
  content: attr(data-label);
  position:absolute;
  left: 14px;
  bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.12);
  padding: 6px 10px;
  border-radius: 999px;
}

.thumb-strip{
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.thumb{
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0,0,0,.07), rgba(0,0,0,.02));
  cursor:pointer;
}
.see-all{
  margin-left: auto;
  color: var(--accent);
  font-weight: 800;
  padding: 6px 0;
}

@media (max-width: 920px){
  .gallery-grid{ grid-template-columns: 1fr; }
}

/* Support */
/* ---- Support layout ---- */
.support-inner{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
  align-items: start;
}

.support-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Card */
.support-card{
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);

  display: flex;
  flex-direction: column;
}

/* ---- IMAGE: spans full width and sits right above button ---- */
.support-img{
  width: 100%;
  height: 220px;              /* control the image block height */
  overflow: hidden;
  background: #f2f2f2;
}

.support-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;          /* important: fills the area */
  display: block;             /* removes bottom whitespace gap */
  filter: grayscale(100%);    /* your site’s B&W look */
}

/* ---- BUTTON: consistent sizing + always visible ---- */
.support-card .btn{
  margin: 16px auto 18px;
  width: 82%;
  height: 50px;               /* same height across all buttons */
  display: flex;              /* centers text vertically/horizontally */
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 14px;
  font-weight: 800;
  white-space: nowrap;
}

/* If you want "Let's Collaborate" to wrap nicely instead of overflowing: */
@media (max-width: 420px){
  .support-card .btn{
    white-space: normal;
    height: auto;
    padding: 14px 18px;
  }
}

/* ---- Mobile: cards stack and buttons stay visible ---- */
@media (max-width: 980px){
  .support-inner{
    grid-template-columns: 1fr;
  }

  .support-cards{
    grid-template-columns: 1fr;
  }

  .support-img{
    height: 260px;            /* taller image on mobile like your mock */
  }

  .support-card .btn{
    width: 86%;
    margin: 18px auto 22px;
  }
}


/* Footer */
.footer{
  background: #0c0c0c;
  color: #fff;
  padding: 44px 0 0;
}
.footer-inner{ display:flex; flex-direction: column; gap: 24px; }
.footer-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  margin-bottom: 8px;
}
.footer-logo{
  width: 48px; height: 48px;
  display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
}
.footer-logo-img{
  height: 48px;
  width: auto;
  display: block;

  /* Footer is dark — make black logo white */
  filter: invert(1);
}
.footer-cols{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 12px 0 26px;
}
.footer-col h3{
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .08em;
  opacity: .9;
}
.footer-col a{
  display:block;
  padding: 8px 0;
  font-size: 13px;
  opacity: .88;
}
.footer-col a:hover{ opacity: 1; color: #fff; }
.footer-text{ margin: 0 0 8px; opacity: .88; font-size: 13px; }

.social{
  display:flex;
  gap: 10px;
  margin-top: 10px;
}
.social a{
  width: 38px; height: 38px;
  display:grid; place-items:center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  opacity: .9;
}
.social a:hover{ opacity: 1; border-color: rgba(255,255,255,.28); }

/* ===== Gallery Viewer (add to css/styles.css) ===== */
.gallery-viewer{
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 28px;
  align-items: center;
}

.gv-main{
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #f2f2f2;
  aspect-ratio: 16 / 9;
}

.gv-main img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gv-side{
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #f2f2f2;
  aspect-ratio: 16 / 9;
  transition: transform .18s ease, opacity .18s ease;
}

.gv-bottom .thumb-strip{
  flex-wrap: nowrap;
}


.gv-side:hover{ transform: translateY(-2px); }
.gv-side:active{ transform: translateY(0); }

.gv-side img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .92;
}

/* Bottom row: thumbs + see all */
.gv-bottom{
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.thumb-strip{
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 2px;
  flex: 1;
}
.thumb-strip::-webkit-scrollbar{ height: 8px; }
.thumb-strip::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.18); border-radius: 999px; }

.thumb{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  background-color: #f2f2f2;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  cursor: pointer;
  opacity: .55;
  flex: 0 0 auto;
  transition: opacity .18s ease, transform .18s ease, outline-color .18s ease;
}

.thumb:hover{ opacity: .85; transform: translateY(-1px); }
.thumb.active{
  opacity: 1;
  outline: 3px solid rgba(0, 102, 255, .65); /* selection ring like your screenshot */
  outline-offset: 2px;
}

.see-all{
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.see-all:hover{ text-decoration: underline; }

@media (max-width: 980px){
  .gallery-viewer{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .gv-side{ display: none; } /* hide previews on small screens */
  .gv-main{ aspect-ratio: 4 / 3; }
}


.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 14px 0;
  opacity: .85;
}

@media (max-width: 920px){
  .footer-cols{ grid-template-columns: 1fr; }
}
