/* ── 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 {
  /* Primary - Teal (kept) */
  --teal:        #0D9488;
  --teal-light:  #5EEAD4;
  --teal-dark:   #0F766E;
  --teal-bg:     #F0FDFA;
  
  /* Accent - Warm Gold */
  --gold:        #B8860B;
  --gold-light:  #DAA520;
  --gold-bg:     #FFFBEB;
  
  /* Neutral - Rich Navy */
  --navy:        #1E3A5F;
  --navy-light:  #2C5282;
  --navy-dark:   #1A365D;
  
  /* Base */
  --white:       #FFFFFF;
  --cream:       #FAFAF9;
  --grey-light:  #F3F4F6;
  --grey-mid:    #9CA3AF;
  --grey-dark:   #374151;
  --black:       #111827;
  
  /* Effects */
  --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(--navy);
}

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

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-dark);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--grey-dark);
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}

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

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, var(--teal-dark) 100%);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  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.03'%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");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-cross {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 20px rgba(255,255,255,0.2));
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero .tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  color: var(--teal-light);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

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

/* ── Buttons ───────────────────────────────────────────────────────────────── */

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

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13,148,136,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-teal {
  background: var(--teal);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}

.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* ── Announcements ─────────────────────────────────────────────────────────── */

.announcements {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, var(--gold-bg) 0%, var(--cream) 100%);
  border-top: 3px solid var(--gold);
}

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
  transition: all var(--transition);
}

.announcement-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.announcement-badge {
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.15rem;
}

.announcement-badge-gold {
  background: var(--gold);
}

.announcement-badge-navy {
  background: var(--navy);
}

.announcement-content h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.announcement-content p {
  font-size: 0.9rem;
  color: var(--grey-mid);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.announcement-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-dark);
}

@media (max-width: 600px) {
  .announcement-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  .announcement-badge {
    align-self: flex-start;
  }
}

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

.info-bar {
  background: var(--navy);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.info-item .label {
  font-size: 0.72rem;
  color: var(--teal-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-item .value {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
}

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

.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: linear-gradient(135deg, var(--cream) 0%, var(--teal-bg) 100%);
}

.section-sermons {
  background: var(--navy);
}

.section-sermons .section-label,
.section-sermons .section-title,
.section-sermons .section-desc {
  color: var(--white);
}

.section-sermons .section-label {
  color: var(--teal-light);
}

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

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--navy);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--grey-mid);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ── Sermons Grid ─────────────────────────────────────────────────────────── */

.sermons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sermon-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.sermon-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.sermon-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.sermon-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sermon-info {
  padding: 1rem;
}

.sermon-info h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.sermon-info p {
  font-size: 0.85rem;
  color: var(--teal-light);
}

@media (max-width: 900px) {
  .sermons-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ── Services Grid ─────────────────────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13,148,136,0.1);
  transition: all var(--transition);
}

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

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.service-card .time {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--grey-mid);
}

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

/* ── Scripture Block ───────────────────────────────────────────────────────── */

.scripture-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.scripture-block blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.scripture-block cite {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 600;
}

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-light);
  transition: all var(--transition);
}

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

.card-img {
  background: linear-gradient(135deg, var(--teal-bg), var(--teal-light));
  padding: 2.5rem;
  text-align: center;
  font-size: 3rem;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.card-body p {
  font-size: 0.85rem;
  color: var(--grey-mid);
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

footer {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--teal-light);
  padding: 4rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--teal-light);
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--grey-mid);
}

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

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

/* ── Page Hero (for inner pages) ─────────────────────────────────────────── */

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

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1rem;
  color: var(--teal-light);
  max-width: 600px;
  margin: 0 auto;
}

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

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-light);
  transition: all var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
}

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

.product-body {
  padding: 1.5rem;
}

.product-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.product-body p {
  font-size: 0.9rem;
  color: var(--grey-mid);
  margin-bottom: 1rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}