/* ============================================
   ADDIS KIDAN — COMPONENTS
   Navigation, Footer, Shared UI
   ============================================ */

/* ─── HEADER / NAV ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: var(--purple-deep);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav-logo-text {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 140px;
}

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

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
  letter-spacing: 0.02em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 70%; }

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a.active { color: var(--gold-light); }

.nav-cta {
  background: var(--gradient-gold) !important;
  color: var(--charcoal) !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.1rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s ease !important;
  flex-shrink: 0;
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(212,160,23,0.5) !important;
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--purple-deep);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
  border-top: 1px solid rgba(212,160,23,0.2);
}

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

.nav-mobile a {
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--gold); }

.nav-mobile .nav-cta {
  background: var(--gradient-gold) !important;
  color: var(--charcoal) !important;
  border-radius: 50px !important;
  padding: 0.75rem 1.5rem !important;
  text-align: center !important;
  margin-top: 0.5rem;
  justify-content: center;
  border-bottom: none !important;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.8);
  border-top: 4px solid var(--gold);
}

.footer-main {
  padding: 4rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {}

.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-amharic {
  font-family: 'Noto Serif Ethiopic', serif;
  color: var(--gold);
  font-size: 1rem;
  display: block;
  margin-top: 1rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

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

.footer-times li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.footer-times strong {
  color: var(--white);
  display: block;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-social-link:hover { color: var(--gold); }

.footer-social-link i { width: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom span { color: var(--gold-light); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ─── PAGE WRAPPER ─── */
.page-content { padding-top: 0; }

/* ─── SERMON CARDS ─── */
.sermon-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-top: 3px solid var(--gold);
}

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

.sermon-thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 3rem;
  position: relative;
}

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

.sermon-body {
  padding: 1.25rem;
}

.sermon-meta {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 0.3rem;
}

.sermon-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
}

/* ─── TABLE STYLES ─── */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.styled-table th {
  background: var(--purple-deep);
  color: var(--white);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.styled-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
}

.styled-table tr:last-child td { border-bottom: none; }

.styled-table tr:hover td { background: rgba(212,160,23,0.04); }

.styled-table .time-cell {
  color: var(--purple-mid);
  font-weight: 700;
}

/* ─── GIVING WIDGET PLACEHOLDER ─── */
#giving-widget {
  min-height: 280px;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 2px dashed rgba(212,160,23,0.3);
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

#giving-widget i { font-size: 2rem; color: var(--gold); opacity: 0.5; }
