/* =====================================================
   home.css — Homepage-specific sections
   ===================================================== */

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #2d4a8a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(192, 154, 80, .08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .04) 0%, transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: ' ';
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28rem;
  color: rgba(255, 255, 255, .025);
  line-height: 1;
  pointer-events: none;
  font-family: serif;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 2rem 8rem;
}

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 8.8vw, 4.8rem);
  color: var(--white);
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .12em;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-service-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gold);
  z-index: 10;
  display: flex;
  align-items: stretch;
}

.service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.5rem;
  text-align: center;
}

.service-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-dark);
  opacity: .75;
}

.service-time {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-top: .2rem;
  font-family: var(--font-serif);
}

.service-divider {
  width: 1px;
  background: rgba(0, 0, 0, .15);
  margin: .6rem 0;
}

/* ======================================================
   FEATURED SECTION
   ====================================================== */
.featured-section {
  padding: 5rem 0;
  background: var(--off-white);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.5rem;
  margin-top: .5rem;
}

.featured-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.featured-card-img {
  background-size: cover;
  background-position: center;
}

.featured-card--large .featured-card-img {
  height: 280px;
}

.featured-card--small .featured-card-img {
  height: 160px;
}

.featured-card-body {
  padding: 1.75rem;
  flex: 1;
}

.featured-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.featured-card--large h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: .75rem;
  line-height: 1.25;
}

.featured-card--large p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.featured-card--small h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: .5rem;
}

.featured-card--small p {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ======================================================
   INTRODUCTION
   ====================================================== */
.intro-section {
  padding: 6rem 0;
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: .5rem;
}

.intro-main h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.intro-lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.75;
}

.intro-main p {
  color: var(--text-light);
}

.intro-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.intro-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  transition: box-shadow var(--transition);
}

.intro-card:hover {
  box-shadow: var(--shadow-sm);
}

.intro-card-icon {
  font-size: 1.6rem;
  margin-bottom: .6rem;
}

.intro-card h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: .4rem;
}

.intro-card p {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ======================================================
   SERMONS (homepage widget)
   ====================================================== */
.sermons-section {
  padding: 6rem 0;
  background: var(--navy-dark);
}

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

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

.sermons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: .5rem;
  align-items: start;
}

.sermon-card {
  background: var(--navy-mid);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.sermon-card-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sermon-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, .5));
}

.sermon-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: all var(--transition);
  padding-left: 4px;
}

.sermon-play:hover {
  background: var(--gold);
  transform: scale(1.08);
}

.sermon-card-body {
  padding: 1.75rem;
}

.sermon-series {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .6rem;
}

.sermon-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.sermon-pastor {
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 1.25rem;
}

.sermon-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sermon-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sermon-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.sermon-item-date {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  background: var(--gold);
  border-radius: 4px;
  padding: .4rem .3rem;
}

.sermon-item-date .month {
  display: block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--navy-dark);
  text-transform: uppercase;
}

.sermon-item-date .day {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1;
  font-family: var(--font-serif);
}

.sermon-item-info {
  flex: 1;
}

.sermon-item-info h4 {
  font-size: .9rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: .2rem;
  line-height: 1.35;
}

.sermon-item-info p {
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}

.sermon-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.sermon-item:hover .sermon-arrow {
  transform: translateX(4px);
}

.sermon-cta {
  padding-top: 1.5rem;
}

/* ======================================================
   MINISTRIES
   ====================================================== */
.ministries-section {
  padding: 6rem 0;
  background: var(--off-white);
}

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

.ministry-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: block;
  border-bottom: 3px solid transparent;
}

.ministry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--gold);
}

.ministry-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ministry-icon svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.ministry-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: .5rem;
}

.ministry-card p {
  font-size: .875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ministry-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
}

.ministry-card--give .ministry-icon {
  background: var(--gold);
}

.ministry-card--give .ministry-icon svg {
  color: var(--navy-dark);
}

/* ======================================================
   EVENTS
   ====================================================== */
.events-section {
  padding: 6rem 0;
  background: var(--white);
}

.events-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.event-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--light-gray);
  transition: background var(--transition);
}

.event-item:first-child {
  border-top: 1px solid var(--light-gray);
}

.event-item:hover {
  background: var(--off-white);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.event-date-block {
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  text-align: center;
  padding: .8rem .5rem;
  flex-shrink: 0;
}

.event-month {
  display: block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.event-day {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.1;
}

.event-info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: .3rem;
}

.event-time {
  font-size: .82rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .04em;
  display: block;
  margin-bottom: .4rem;
}

.event-info p {
  font-size: .9rem;
  color: var(--text-light);
}

/* ======================================================
   LEADERSHIP
   ====================================================== */
.leadership-section {
  padding: 6rem 0;
  background: var(--navy-dark);
}

.leadership-section .section-label {
  color: var(--gold);
}

.leadership-section .section-title {
  color: var(--white);
}

.leadership-section .section-subtitle {
  color: rgba(255, 255, 255, .6);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.leader-card {
  background: var(--navy-mid);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition);
}

.leader-card:hover {
  transform: translateY(-4px);
}

.leader-card--primary {
  grid-column: 1 / -1;
  width: min(100%, 420px);
  justify-self: center;
}

.leader-img {
  background-size: cover;
  background-position: center top;
  height: 260px;
  width: 100%;
  display: block;
}

.leader-info {
  padding: 1rem;
  margin-top: auto;
}

.leader-info h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: .2rem;
}

.leader-title {
  font-size: .75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.leader-bio {
  margin-top: .75rem;
  color: rgba(255, 255, 255, .75);
  font-size: .85rem;
  line-height: 1.6;
}

.leadership-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ======================================================
   CONTACT
   ====================================================== */
.contact-section {
  padding: 6rem 0;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(680px, 1.28fr);
  gap: 3.5rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-info>p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-detail-item svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: .15rem;
}

.contact-detail-item div {
  display: flex;
  flex-direction: column;
}

.contact-detail-item strong {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: .15rem;
}

.contact-detail-item span {
  font-size: .95rem;
  color: var(--text-light);
}

.contact-detail-item a {
  color: var(--gold);
}

.contact-detail-item a:hover {
  color: var(--navy);
}

.contact-form-wrap {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-form h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .4rem;
  letter-spacing: .02em;
}

.required {
  color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #d8d4ce;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192, 154, 80, .15);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-note {
  margin-top: 1rem;
  font-size: .875rem;
  color: #2d7a2d;
  text-align: center;
  font-weight: 600;
}

.form-note:empty {
  display: none;
}

.form-note--error {
  color: #a33a2b;
}

.planning-center-mobile-cta {
  margin-top: 1rem;
  border: 1px solid #ebe7df;
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  text-align: center;
}

.planning-center-mobile-cta p {
  margin: 0 0 .85rem;
  color: var(--text-light);
  font-size: .92rem;
}

.planning-center-mobile-cta .btn {
  width: 100%;
}

.planning-center-frame-wrap {
  margin-top: 1.5rem;
  border-top: 1px solid #ebe7df;
  overflow: hidden;
  background: var(--white);
}

.planning-center-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: 820px;
  border: 0;
}

/* ======================================================
   MAP
   ====================================================== */
.map-section {
  line-height: 0;
}

.map-section iframe {
  display: block;
}

/* ======================================================
   ANNOUNCEMENTS CAROUSEL
   ====================================================== */
.announcements-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 74, 138, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.featured-card-img:hover .announcements-overlay {
  opacity: 1;
}

.announcements-click-text {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
  background: var(--gold);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
}

/* ======================================================
   ANNOUNCEMENT NOTIFICATION MODAL
   ====================================================== */
.announcement-modal[hidden] {
  display: none;
}

.announcement-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.announcement-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 27, 48, .78);
  backdrop-filter: blur(4px);
}

.announcement-modal-dialog {
  position: relative;
  width: min(1200px, 100%);
  max-height: min(760px, calc(100vh - 3rem));
  overflow-y: auto;
  padding: 2.5rem;
  background: var(--off-white);
  border-top: 5px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.announcement-modal-dialog h2 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.announcement-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 39, 68, .08);
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.announcement-modal-close:hover {
  background: var(--gold);
}

.announcement-modal-list {
  display: grid;
  gap: 1rem;
}

.announcement-modal-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.announcement-modal-image {
  min-height: 160px;
  background-position: center;
  background-size: cover;
}

.announcement-modal-content h3 {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: .5rem;
}

.announcement-modal-content p {
  color: var(--text-light);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: .85rem;
}

.announcement-modal-content .btn {
  padding: .55rem 1rem;
  font-size: .78rem;
}

body.announcement-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .announcement-modal {
    padding: 1rem;
  }

  .announcement-modal-dialog {
    padding: 2rem 1.25rem 1.25rem;
    max-height: calc(100vh - 2rem);
  }

  .announcement-modal-dialog h2 {
    font-size: 1.65rem;
    padding-right: 2rem;
  }

  .announcement-modal-item {
    grid-template-columns: 1fr;
    gap: .9rem;
  }

  .announcement-modal-image {
    min-height: 150px;
  }
}