/* The Hope — gaylordchurch.com (static rebuild) */
:root {
  --orange: #f8ab59;
  --orange-dark: #e9953c;
  --black: #000;
  --white: #fff;
  --gray: #f5f5f5;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.25; }
h2 { font-size: clamp(28px, 3.2vw, 38px); }
h3 { font-size: clamp(22px, 2.5vw, 30px); }
h4 { font-size: 20px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 5vw; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 999; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: #000; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-black { background: #000; color: #fff; }
.btn-black:hover { background: #333; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  color: #fff;
}
.site-header.solid { position: relative; background: #000; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 4vw;
  gap: 24px;
}
.logo { font-size: 26px; font-weight: 500; text-decoration: none; color: #fff; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > ul { list-style: none; display: flex; gap: 24px; }
.main-nav li { position: relative; }
.main-nav a { color: #fff; text-decoration: none; font-size: 15px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { text-decoration: underline; text-underline-offset: 5px; }
.dropdown {
  list-style: none;
  position: absolute; top: 100%; left: -16px;
  background: #fff; min-width: 210px;
  padding: 10px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; color: #000; padding: 8px 18px; font-size: 14px; }
.dropdown a:hover { background: var(--gray); }
.socials { display: flex; gap: 16px; align-items: center; }
.socials a { display: inline-flex; color: inherit; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.menu-toggle {
  display: none; background: none; border: 0; color: inherit; cursor: pointer;
  width: 34px; height: 34px;
}
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; background: #fff; color: #000; z-index: 100;
  display: none; flex-direction: column; padding: 28px 6vw;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu .logo { color: #000; }
.mobile-menu .close { background: none; border: 0; font-size: 34px; line-height: 1; cursor: pointer; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { margin: 10px 0; }
.mobile-menu a { text-decoration: none; font-size: 24px; font-weight: 400; }
.mobile-menu .sub a { font-size: 18px; font-weight: 300; padding-left: 18px; display: block; }
.mobile-menu .mm-bottom { margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  color: #fff;
  background: #111 center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero .container { position: relative; width: 100%; padding-top: 110px; padding-bottom: 60px; }
.hero-content { max-width: 560px; }
.hero h2 { margin-bottom: 22px; }
.hero p { margin-bottom: 30px; }

.page-hero {
  position: relative; min-height: 62vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; background: #222 center/cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.page-hero .inner { position: relative; padding: 140px 5vw 70px; }
.page-hero h1, .page-hero h2 { font-size: clamp(36px, 5vw, 58px); letter-spacing: .06em; }
.page-hero h4 { margin-top: 14px; font-weight: 300; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section.center { text-align: center; }
.section.gray { background: var(--gray); }
.section h2 + p, .section h3 + p { margin-top: 14px; }
.narrow { max-width: 760px; margin: 0 auto; }

/* Service times */
.service h2 { margin-bottom: 18px; }

/* Card trio */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
  max-width: 960px; margin: 0 auto; text-align: center;
}
.card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; margin-bottom: 26px; }
.card h4 { margin-bottom: 10px; font-weight: 500; }
.card p { margin-bottom: 22px; }

/* Text blocks */
.text-block { max-width: 820px; margin: 0 auto; }
.text-block + .text-block { margin-top: 70px; }
.text-block h2 { margin-bottom: 18px; }
.text-block h3 { margin: 6px 0 14px; }
.text-block p + p { margin-top: 14px; }
.verses { margin-top: 14px; font-weight: 400; }

/* Ministries */
.ministry {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.ministry + .ministry { margin-top: 90px; }
.ministry:nth-child(even) .ministry-img { order: 2; }
.ministry img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ministry h2 { margin-bottom: 14px; }
.ministry p + p { margin-top: 10px; }
.ministry .btn { margin-top: 24px; }

/* Staff */
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px 70px; }
.staff h3 { margin-bottom: 2px; }
.staff .role { font-weight: 500; color: #666; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }

/* Events */
.events-list { display: grid; gap: 0; }
.event {
  display: grid; grid-template-columns: 110px 1fr; gap: 30px;
  padding: 36px 0; border-bottom: 1px solid #ddd;
}
.event:first-child { border-top: 1px solid #ddd; }
.event-date { text-align: center; }
.event-date .m { text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.event-date .d { font-size: 44px; font-weight: 500; line-height: 1.1; }
.event h3 { font-size: 24px; margin-bottom: 4px; }
.event .meta { color: #666; font-size: 14px; margin-bottom: 10px; }
.event.featured h3::after {
  content: "Featured"; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--orange); padding: 3px 8px; margin-left: 12px; vertical-align: middle;
}
.calendar-embed { width: 100%; height: 820px; border: 0; margin-top: 30px; }

/* Video */
.video-wrap { position: relative; padding-top: 56.25%; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Forms */
.form { display: grid; gap: 18px; text-align: left; margin-top: 40px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-weight: 400; font-size: 14px; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; font: inherit; border: 1px solid #ccc; background: #fafafa;
}
.form textarea { min-height: 160px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.form .check input { width: auto; margin-top: 5px; }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; margin-top: 30px; text-align: left; }
.notice.ok { background: #e8f6ea; }
.notice.err { background: #fdecea; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-grid h3 { margin-bottom: 18px; }
.contact-grid p { margin-bottom: 10px; }
.map { width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 60px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 50px; }
.site-footer h3 { margin-bottom: 18px; }
.site-footer .socials { margin-top: 22px; color: #000; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 30px; list-style: none; }
.footer-links a { text-underline-offset: 4px; }
.copyright { margin-top: 50px; font-size: 13px; color: #777; }

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #000; color: #fff; font-size: 13px;
  display: none; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 4vw;
}
.cookie-bar.show { display: flex; }
.cookie-bar .btn { padding: 8px 16px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .cards { grid-template-columns: 1fr; max-width: 420px; }
  .ministry, .contact-grid, .staff-grid, .footer-inner { grid-template-columns: 1fr; }
  .ministry:nth-child(even) .ministry-img { order: 0; }
  .ministry { gap: 26px; }
  .section { padding: 70px 0; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .event { grid-template-columns: 70px 1fr; gap: 18px; }
  .event-date .d { font-size: 34px; }
  .header-inner { padding: 22px 6vw; }
}

/* BoxCast player */
.boxcast-player { min-height: 300px; }
.boxcast-player .boxcast-well, .boxcast-player iframe { max-width: 100%; }

/* Dropdown parents (About, Events) are labels, not links */
.nav-parent {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 15px; color: #fff;
}
.nav-parent::after { content: " \25BE"; font-size: 11px; }
.nav-parent:hover, .nav-parent.active { text-decoration: underline; text-underline-offset: 5px; }
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu .mm-heading { font-size: 24px; font-weight: 400; margin-top: 18px; }

/* Staff photos */
.staff-photo { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; margin-bottom: 22px; background: #eee; }
