/* ============================================
   GREAT MERCY ORPHANAGE — Dedicated stylesheet
============================================ */

:root {
  --green: #176b59;
  --dark: #103f35;
  --gold: #f0b429;
  --light: #f4f8f6;
  --text: #263b35;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 500 16px/1.65 Montserrat, sans-serif;
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.container {
  width: min(1120px, 90%);
  margin: auto;
}

.section {
  padding: 70px 0;
}

.center {
  text-align: center;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--green);
}

h3 {
  font-size: 1.1rem;
  color: var(--green);
}

/* ===== Header ===== */
.header {
  background: var(--dark);
  color: #fff;
}

.header-inner,
.brand,
.nav,
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-inner {
  justify-content: space-between;
  min-height: 86px;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav {
  gap: 22px;
  font-size: 0.88rem;
}

.nav a:hover {
  color: var(--gold);
}

.nav a[aria-current="page"] {
  color: var(--gold);
  font-weight: 700;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 40px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  background: #ffcb48;
}

.btn-outline {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--dark);
}

.btn-outline-dark {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--green);
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 460px;
  max-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #176b59, #103f35);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active { opacity: 1; }
.hero-slide:first-child { opacity: 1; }

.hero > .container {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}

.hero h1,
.hero p {
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero p {
  max-width: 650px;
  margin: 0 auto 28px;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero .btn {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* ===== Stats ===== */
.stats {
  padding: 42px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.stat strong {
  display: block;
  font-size: 2.2rem;
  color: var(--green);
}

.stat span {
  font-size: 0.85rem;
}

/* ===== Mission ===== */
.mission {
  background: var(--light);
}

.eyebrow {
  color: #9c6c00;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-intro {
  margin-bottom: 34px;
}

.card {
  padding: 30px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.card p + p { margin-top: 12px; }

.card .symbol {
  display: block;
  margin-bottom: 12px;
  font-size: 2rem;
}

.card a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--green);
  text-decoration: underline;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #eef2f7;
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }

/* ===== Help ===== */
.help {
  background: #f8e2a2;
}

.help .card { box-shadow: none; }

/* ===== CTA ===== */
.cta {
  background: var(--green);
  color: #fff;
}

.cta h2 { color: #fff; }
.cta p { margin-bottom: 26px; }

/* ===== Lists ===== */
ul li { margin-bottom: 4px; }

/* ===== Footer ===== */
.footer {
  padding: 28px 0;
  background: var(--dark);
  color: #fff;
  font-size: 0.8rem;
}

.footer p { margin: 6px 0; }
.footer a:hover { text-decoration: underline; }

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px 0;
  }
  .nav {
    justify-content: center;
    flex-wrap: wrap;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    height: 65vh;
    min-height: 380px;
    max-height: 560px;
  }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .hero > .container { padding: 30px 16px; }

  .grid[style*="repeat(3"] { grid-template-columns: 1fr !important; }
  .grid[style*="repeat(2"] { grid-template-columns: 1fr !important; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 560px) {
  .section { padding: 50px 0; }
  .grid { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { gap: 14px; }
  .nav { gap: 12px; font-size: 0.8rem; }
  .brand { font-size: 0.95rem; }
  .brand img { width: 40px; height: 40px; }
  .stat strong { font-size: 1.7rem; }
  .btn { padding: 10px 18px; }

  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 480px) {
  .hero {
    height: 60vh;
    min-height: 340px;
    max-height: 500px;
  }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}