/*
Theme Name: IDC Custom Theme
Theme URI: https://idccog.org
Author: Claude Code
Description: A custom theme for Independence Drive Church of God, designed from the prototype.
Version: 1.0
Text Domain: idc-theme
*/

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

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #FFFDF9;
  color: #2C2A22;
  width: 100%;
  overflow-x: hidden;
}

/* ── NAV ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #EDE8DC;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: #2C2A22; line-height: 1.2; text-decoration: none; }
.nav-logo img { height: 45px; width: auto; object-fit: contain; }
.nav-logo span { display: block; font-size: 10px; font-weight: 400; font-family: 'DM Sans', sans-serif; color: #8B7D6B; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links-list { display: flex; gap: 2rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links-list li { margin: 0; padding: 0; }
.nav-links a, .nav-links-list a { font-size: 14px; color: #5C5040; text-decoration: none; font-weight: 400; letter-spacing: 0.02em; position: relative; padding-bottom: 2px; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #B5720A;
  transition: width 0.25s ease;
}
.nav-links a:hover { color: #B5720A; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: #B5720A; color: #fff; border: none; padding: 8px 20px; border-radius: 40px; font-size: 13px; font-family: 'DM Sans', sans-serif; font-weight: 500; cursor: pointer; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.nav-cta:hover { background: #9A5E08; transform: translateY(-1px); }

/* ── MOBILE NAV ── */
.mobile-only { display: none; }
.desktop-only { display: flex; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 20;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2C2A22;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(255, 253, 249, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.08);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #EDE8DC;
}
.mobile-menu-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #1E1A10;
  font-weight: 700;
}
.mobile-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #8B7D6B;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.mobile-close:hover { background: #F7F3EC; color: #B5720A; }

.mobile-menu-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}
.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu-list li { margin: 0; }
.mobile-menu-list a {
  display: block;
  font-size: 18px;
  color: #2C2A22;
  text-decoration: none;
  font-weight: 400;
  padding: 0.75rem 0;
  border-bottom: 1px solid #EDE8DC;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu-list a:hover { color: #B5720A; padding-left: 8px; }

.mobile-menu-footer {
  padding: 1.5rem;
  border-top: 1px solid #EDE8DC;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.mobile-menu-footer a {
  font-size: 13px;
  color: #8B7D6B;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu-footer a:hover { color: #B5720A; }

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 5, 0.4);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.show { opacity: 1; pointer-events: auto; }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 2.5rem;
  background: linear-gradient(135deg, #FEF6E8 0%, #FFFDF9 100%);
}
.hero-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: #B5720A; margin-bottom: 1rem; }
.hero-title { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 700; line-height: 1.15; color: #1E1A10; margin-bottom: 1.2rem; }
.hero-title em { font-style: italic; color: #B5720A; }
.hero-sub { font-size: 15px; color: #5C5040; line-height: 1.7; max-width: 400px; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary { background: #B5720A; color: #fff; border: none; padding: 12px 24px; border-radius: 40px; font-size: 14px; font-family: 'DM Sans', sans-serif; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: #9A5E08; }
.btn-secondary { background: transparent; color: #B5720A; border: 1.5px solid #B5720A; padding: 12px 24px; border-radius: 40px; font-size: 14px; font-family: 'DM Sans', sans-serif; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-secondary:hover { background: #FEF0D6; }

.hero-photo { position: relative; overflow: hidden; min-height: 480px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hero-photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,15,5,0.55) 0%, rgba(20,15,5,0.1) 60%, transparent 100%); }
.hero-photo-badge { position: absolute; bottom: 1.5rem; left: 1.5rem; background: rgba(255,253,249,0.93); border-radius: 12px; padding: 1rem 1.2rem; max-width: 240px; }
.hero-photo-badge p { font-family: 'Playfair Display', serif; font-size: 14px; font-style: italic; color: #2C2A22; line-height: 1.5; margin-bottom: 4px; }
.hero-photo-badge span { font-size: 11px; color: #B5720A; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }

/* ── SERVICE BAR ── */
.service-bar { background: #1E1A10; color: #F5E8CC; display: flex; justify-content: center; gap: 2.5rem; padding: 1.1rem 2rem; flex-wrap: wrap; }
.service-item { text-align: center; }
.service-item .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: #B5720A; font-weight: 500; }
.service-item .value { font-size: 14px; font-weight: 400; margin-top: 2px; }

/* ── SECTIONS ── */
.section { padding: 3rem 2rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: #1E1A10; margin-bottom: 0.4rem; }
.section-sub { font-size: 14px; color: #8B7D6B; margin-bottom: 2rem; }

/* ── WELCOME ── */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.slider-container {
  background: #2C2A22;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F5E8CC;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  text-align: center;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  width: 100%;
}

.welcome-text p { font-size: 15px; line-height: 1.8; color: #3D3526; margin-bottom: 1rem; }
.welcome-text strong { color: #B5720A; font-weight: 500; }

.pastor-card { background: #FEF6E8; border-radius: 16px; padding: 2rem; border: 1px solid #EDE0C4; text-align: center; }
.pastor-photo { width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; border: 3px solid #D4A84B; }
.pastor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pastor-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: #1E1A10; margin-bottom: 4px; }
.pastor-card .ptitle { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #B5720A; margin-bottom: 1rem; font-weight: 500; }
.pastor-card p { font-size: 13px; color: #5C5040; line-height: 1.6; font-style: italic; }

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 2rem; }
.photo-strip-item { aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.photo-strip-item img:hover { transform: scale(1.05); }

/* ── MINISTRIES ── */
.ministries-section { background: #F7F3EC; }
.ministry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ministry-card { background: #FFFDF9; border-radius: 12px; overflow: hidden; border: 1px solid #EDE8DC; cursor: pointer; transition: border-color 0.2s; }
.ministry-card:hover { border-color: #B5720A; }
.ministry-card-img { height: 100px; overflow: hidden; }
.ministry-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ministry-card-body { padding: 1rem; }
.ministry-icon { font-size: 18px; margin-bottom: 6px; }
.ministry-card h4 { font-size: 14px; font-weight: 500; color: #1E1A10; margin-bottom: 4px; }
.ministry-card p { font-size: 12px; color: #8B7D6B; line-height: 1.5; }

/* ── EVENTS ── */
.events-section { background: #FFFDF9; }
.events-list { display: flex; flex-direction: column; gap: 1rem; }
.event-row { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 1.2rem; background: #FFFDF9; border: 1px solid #EDE8DC; border-radius: 12px; }
.event-date { background: #B5720A; color: #fff; border-radius: 10px; padding: 8px 12px; text-align: center; min-width: 52px; }
.event-date .day { font-size: 20px; font-weight: 700; font-family: 'Playfair Display', serif; line-height: 1; }
.event-date .month { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.event-info h4 { font-size: 14px; font-weight: 500; color: #1E1A10; }
.event-info p { font-size: 12px; color: #8B7D6B; margin-top: 2px; }
.event-tag { margin-left: auto; background: #FEF0D6; color: #8B5E1E; font-size: 11px; padding: 4px 10px; border-radius: 20px; font-weight: 500; white-space: nowrap; }

/* ── CONNECT ── */
.connect-section { background: #1E1A10; padding: 3rem 2rem; text-align: center; }
.connect-section h2 { font-family: 'Playfair Display', serif; font-size: 28px; color: #F5E8CC; margin-bottom: 0.6rem; }
.connect-section > p { font-size: 14px; color: #9A8E78; margin-bottom: 2rem; line-height: 1.6; }
.connect-grid { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.connect-card { background: #2C2820; border: 1px solid #3D3526; border-radius: 12px; padding: 1.2rem 1.6rem; text-align: center; min-width: 140px; text-decoration: none; display: block; transition: border-color 0.2s; }
.connect-card:hover { border-color: #B5720A; }
.connect-card .icon { font-size: 22px; margin-bottom: 8px; }
.connect-card h4 { font-size: 13px; color: #F5E8CC; font-weight: 500; margin-bottom: 4px; }
.connect-card p { font-size: 12px; color: #7A6E5C; }

/* ── FOOTER ── */
.footer { background: #14120A; padding: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 14px; color: #F5E8CC; font-weight: 700; }
.footer-logo span { display: block; font-size: 11px; font-weight: 300; font-family: 'DM Sans', sans-serif; color: #6B5E4A; margin-top: 2px; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { font-size: 12px; color: #6B5E4A; text-decoration: none; }
.footer-links a:hover { color: #B5720A; }

/* ── PAGE HERO ── */
.page-hero { position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(20,15,5,0.55); }
.page-hero-content { position: relative; z-index: 1; padding: 4rem 2rem; color: #F5E8CC; }
.page-hero-content h1 { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; margin-bottom: 0.5rem; }
.page-hero-content p { font-size: 15px; color: #C8B89A; max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* ── VISION & MISSION ── */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 960px; margin: 0 auto; }
.vm-card { background: #FFFDF9; border: 1px solid #EDE8DC; border-radius: 16px; padding: 2rem; }
.vm-card h2 { font-family: 'Playfair Display', serif; font-size: 22px; color: #1E1A10; margin-bottom: 1rem; }
.vm-card p { font-size: 14px; color: #3D3526; line-height: 1.7; }
.vm-card strong { color: #B5720A; font-weight: 500; }

/* ── LEADERSHIP ── */
.leadership-section { background: #F7F3EC; }
.leadership-card { background: #FFFDF9; border: 1px solid #EDE0C4; border-radius: 16px; padding: 2rem; max-width: 800px; margin: 0 auto; text-align: center; }
.leadership-card h2 { font-family: 'Playfair Display', serif; font-size: 22px; color: #1E1A10; margin-bottom: 1rem; }
.leadership-card p { font-size: 14px; color: #3D3526; line-height: 1.7; }
.leadership-card strong { color: #B5720A; font-weight: 500; }

/* ── CONTACT ── */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 1000px; margin: 0 auto; padding: 3rem 2rem; }
.contact-info h2 { font-family: 'Playfair Display', serif; font-size: 22px; color: #1E1A10; margin-bottom: 1.5rem; }
.info-item { margin-bottom: 1.2rem; }
.info-item .label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: #B5720A; font-weight: 500; margin-bottom: 4px; }
.info-item .value { font-size: 14px; color: #3D3526; line-height: 1.6; }
.info-item a { color: #B5720A; text-decoration: none; }
.info-item a:hover { text-decoration: underline; }
.map-container { border-radius: 16px; overflow: hidden; border: 1px solid #EDE8DC; }
.map-container iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ── GIVING ── */
.give-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 1000px; margin: 0 auto; padding: 3rem 2rem; align-items: start; }
.give-image img { width: 100%; border-radius: 16px; display: block; }
.give-text h2 { font-family: 'Playfair Display', serif; font-size: 22px; color: #1E1A10; margin-bottom: 1rem; }
.give-text p { font-size: 14px; color: #3D3526; line-height: 1.7; margin-bottom: 1.5rem; }
.give-methods { display: flex; flex-direction: column; gap: 1rem; }
.method-card { display: flex; align-items: flex-start; gap: 1rem; background: #F7F3EC; border: 1px solid #EDE8DC; border-radius: 12px; padding: 1.2rem; }
.method-icon { font-size: 24px; line-height: 1; }
.method-info h4 { font-size: 14px; font-weight: 500; color: #1E1A10; margin-bottom: 4px; }
.method-info p { font-size: 13px; color: #5C5040; line-height: 1.5; margin: 0; }

/* Ministry card image fallback */
.ministry-card-img { height: 100px; overflow: hidden; background: #EDE8DC; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── CALENDAR ── */
.mini-calendar-wrap { background: #FFFDF9; border: 1px solid #EDE8DC; border-radius: 16px; padding: 1.5rem; }
.mini-cal-grid > div { transition: background 0.15s; }
.mini-cal-grid > div:hover { background: #FEF0D6 !important; }
.cal-month { animation: fadeIn 0.4s ease; }
.cal-day { transition: background 0.15s; cursor: default; }
.cal-day:hover { background: #FEF0D6 !important; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 260px; }
  .welcome-grid { grid-template-columns: 1fr; }
  .ministry-grid { grid-template-columns: 1fr 1fr; }
  .nav { padding: 0.75rem 1rem; }
  .nav-logo { font-size: 22px; }
  .nav-logo img { height: 36px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .hamburger { display: flex; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .service-bar { gap: 1.2rem; }
  .vm-grid { grid-template-columns: 1fr; }
  .contact-container { grid-template-columns: 1fr; }
  .give-container { grid-template-columns: 1fr; }
  .page-hero-content h1 { font-size: 28px; }
  .detail-layout { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .detail-main { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .events-section > div { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .ministry-grid { grid-template-columns: 1fr; }
  .nav-logo { font-size: 18px; }
  .nav-logo span { font-size: 9px; }
  .mobile-menu { width: 100%; max-width: 100%; }
}
