/* ── Trinity AME Zion — Global Styles ─────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --teal:        #0D9488;
  --teal-light:  #5EEAD4;
  --teal-dark:   #0F766E;
  --teal-bg:     #F0FDFA;
  --white:       #FFFFFF;
  --grey-light:  #F3F4F6;
  --grey-mid:    #9CA3AF;
  --grey-dark:   #374151;
  --black:       #111827;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.14);
  --radius:      12px;
  --transition:  0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

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

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

/* ── Navigation ─────────────────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--teal);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

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

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo .church-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.nav-logo .church-sub {
  font-size: 0.72rem;
  color: var(--grey-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-dark);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--teal-bg);
  color: var(--teal-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--grey-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #1a9e8f 100%);
  color: var(--white);
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; max-width: 780px; margin: 0 auto; }

.hero-cross {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero .tagline {
  font-size: 1.1rem;
  opacity: 0.88;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--teal-dark);
}
.btn-primary:hover {
  background: var(--teal-bg);
  color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Sections ────────────────────────────────────────────────────────────────── */

.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--grey-light); }
.section-teal { background: var(--teal-bg); }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--black);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--grey-dark);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ── Service Times Cards ─────────────────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; color: var(--teal-dark); margin-bottom: 0.4rem; }
.service-card .time { font-size: 1.4rem; font-weight: 700; color: var(--black); }
.service-card p { color: var(--grey-dark); font-size: 0.9rem; margin-top: 0.4rem; }

/* ── Info Bar ────────────────────────────────────────────────────────────────── */

.info-bar {
  background: var(--teal-dark);
  color: var(--white);
  padding: 1.5rem;
}

.info-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}

.info-item { display: flex; flex-direction: column; gap: 0.2rem; }
.info-item .label { font-size: 0.75rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.1em; }
.info-item .value { font-weight: 600; font-size: 1rem; }

/* ── Cards Grid ──────────────────────────────────────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--teal-bg), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--teal);
}

.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--black); }
.card-body p { color: var(--grey-dark); font-size: 0.9rem; }

/* ── Scripture Quote ─────────────────────────────────────────────────────────── */

.scripture-block {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 3rem 0;
}

.scripture-block blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.scripture-block cite { font-size: 0.9rem; opacity: 0.8; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */

footer {
  background: var(--black);
  color: var(--grey-mid);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col p, .footer-col li {
  font-size: 0.875rem;
  line-height: 1.9;
}

.footer-col ul { list-style: none; }
.footer-col a { color: var(--grey-mid); }
.footer-col a:hover { color: var(--teal-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid #1f2937;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
}

/* ── Bible in a Year ─────────────────────────────────────────────────────────── */

.reading-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1rem;
  transition: transform var(--transition);
}
.reading-card:hover { transform: translateX(4px); }

.reading-week {
  background: var(--teal);
  color: var(--white);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  min-width: 70px;
  text-align: center;
  flex-shrink: 0;
}

.reading-info h3 { font-size: 1rem; margin-bottom: 0.2rem; color: var(--black); }
.reading-info p { font-size: 0.875rem; color: var(--grey-dark); }

/* ── Gallery ─────────────────────────────────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--teal-bg), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: white;
  padding: 1rem 0.75rem 0.6rem;
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ── Shop ────────────────────────────────────────────────────────────────────── */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.product-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--teal-bg), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-body { padding: 1.5rem; }
.product-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.product-body .price { font-size: 1.4rem; font-weight: 700; color: var(--teal-dark); margin: 0.5rem 0; }
.product-body p { font-size: 0.875rem; color: var(--grey-dark); margin-bottom: 1rem; }

.btn-teal {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn-teal:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); }

/* ── Pastor Page ─────────────────────────────────────────────────────────────── */

.pastor-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.pastor-photo {
  width: 300px;
  height: 370px;
  border-radius: var(--radius);
  object-fit: cover;
  background: linear-gradient(135deg, var(--teal-bg), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--teal-light);
}

.pastor-name { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--teal-dark); }
.pastor-title { color: var(--grey-mid); font-size: 1rem; margin: 0.25rem 0 1.5rem; }
.pastor-bio p { color: var(--grey-dark); margin-bottom: 1rem; }

.fun-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.fact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--teal);
}

.fact-card .fact-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.fact-card h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-mid); }
.fact-card p { font-weight: 600; color: var(--black); }

/* ── Page Hero (non-home) ────────────────────────────────────────────────────── */

.page-hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; max-width: 600px; margin: 0 auto; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 3px solid var(--teal);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

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

  .pastor-hero {
    grid-template-columns: 1fr;
  }

  .pastor-photo {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}
