/* ============================================
   Household of David London — base styles
   Brand colours extracted directly from the logo
   ============================================ */

:root {
  --red: #d40014;
  --red-deep: #a8000f;
  --navy: #001448;
  --navy-deep: #000a2e;
  --cream: #faf5eb;
  --white: #ffffff;
  --ink: #0b0b0d;
  color-scheme: light;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px), (hover: none) {
  body { cursor: auto; }
  .cursor-dot { display: none; }
}

a { color: inherit; text-decoration: none; }

/* ---------- custom cursor ---------- */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: difference;
}

.cursor-dot.hovering {
  width: 48px;
  height: 48px;
  background: var(--white);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  mix-blend-mode: normal;
}

.header-logo img {
  height: 54px;
  display: block;
}

.menu-toggle {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
}

/* ---------- fullscreen nav ---------- */

.fullscreen-nav {
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: var(--navy);
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 0.6s;
  visibility: hidden;
  pointer-events: none;
}

.fullscreen-nav.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
  cursor: pointer;
}

.nav-list {
  list-style: none;
}

.nav-list li {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  position: relative;
  overflow: hidden;
}

.nav-list li:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.nav-list a {
  display: block;
  color: transparent;
  font-size: clamp(32px, 7vw, 90px);
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
  -webkit-text-stroke: 1px rgba(255,255,255,0.35);
  transition: color 0.25s ease, -webkit-text-stroke 0.25s ease, padding-left 0.3s ease;
}

.nav-list a:hover {
  color: var(--white);
  -webkit-text-stroke: 0px transparent;
  padding-left: 20px;
}

.nav-list a::after {
  content: attr(data-label);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-text-stroke: 0;
}

.nav-list a:hover::after {
  opacity: 1;
}

/* ---------- hero / film strips ---------- */

.hero-scroll {
  position: relative;
  height: 360vh; /* extra scroll runway so the film strips keep drifting
                    before the rest of the homepage is revealed; the
                    strips loop infinitely so this can be as long as
                    the feel calls for without ever running out */
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.filmrow-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.filmrow {
  width: 140%;
  margin-left: -20%;
  transform: rotate(-4deg);
  will-change: transform;
}

.filmrow-right {
  transform: rotate(3deg);
}

/* the top row is wide and tilted, so its far left edge swings up past
   the header on some screens, pushed down a bit so the logo in the
   top-left corner is never interrupted by a film frame */
.filmrow-wrap .filmrow:first-child {
  margin-top: 56px;
}

.filmstrip {
  display: flex;
  gap: 14px;
  width: max-content;
}

.frame {
  position: relative;
  width: 150px;
  height: 190px;
  flex-shrink: 0;
  background: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  height: 10px;
  background:
    repeating-linear-gradient(90deg,
      var(--ink) 0 6px,
      transparent 6px 16px);
}

.frame::before { top: -14px; }
.frame::after { bottom: -14px; }

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
  width: min(92%, 620px);
  background: rgba(250, 245, 235, 0.92);
  padding: 44px 36px;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.hero-logo {
  height: 110px;
  margin-bottom: 20px;
}

.hero-mission {
  font-size: clamp(16px, 2.4vw, 21px);
  line-height: 1.6;
  letter-spacing: 0.3px;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 26px;
}

.hero-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 13px;
  padding: 16px 34px;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-cta:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--navy);
  opacity: 0.6;
  z-index: 20;
}

/* ---------- generic sections ---------- */

.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 110px 32px;
  text-align: center;
}

.section h2 {
  font-size: clamp(28px, 4vw, 46px);
  color: var(--navy);
  margin-bottom: 22px;
}

.section p {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  max-width: 640px;
  margin: 0 auto;
}

.section-welcome {
  background: var(--white);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}

.event-card {
  background: var(--navy);
  color: var(--white);
  padding: 28px 24px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.event-date {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.event-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.event-link {
  display: inline-block;
  margin-top: 14px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 10px 18px;
  border-radius: 999px;
}

.event-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  max-width: none;
}

/* ---------- closing video ---------- */

.video-section {
  background: var(--navy-deep);
  padding: 0;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 720; /* matches the video, so nothing is cropped */
  overflow: hidden;
}

.video-wrap::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,10,46,0.85), rgba(0,10,46,0));
  pointer-events: none;
}

.closing-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-unmute {
  position: absolute;
  bottom: 28px;
  right: 28px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.video-caption {
  position: absolute;
  left: 32px;
  bottom: 28px;
  color: var(--white);
  max-width: 480px;
}

.video-caption h2 {
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 8px;
}

.video-caption p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 50px 24px;
  font-size: 13px;
}

.footer-logo {
  height: 46px;
  margin-bottom: 16px;
}

/* ---------- inner pages: shared page hero ---------- */

.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 170px 32px 70px;
  text-align: center;
  overflow: hidden;
}

.page-hero-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(36px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.page-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 44px;
  flex-wrap: wrap;
}

.page-strip .frame {
  width: 86px;
  height: 108px;
}

.page-strip .frame::before,
.page-strip .frame::after {
  left: -6px;
  right: -6px;
  height: 7px;
}

/* ---------- about page ---------- */

.belief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
  text-align: left;
}

.belief-card {
  background: var(--cream);
  border-left: 4px solid var(--red);
  padding: 24px 26px;
  border-radius: 6px;
}

.belief-card h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 8px;
}

.belief-card p {
  font-size: 14px;
  color: #444;
  max-width: none;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.leader-card {
  text-align: center;
}

.leader-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  border: 4px solid var(--red);
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-card h3 {
  font-size: 17px;
  color: var(--navy);
}

.leader-card span {
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---------- sermons page ---------- */

.sermon-section { max-width: 1100px; }

.sermon-note {
  font-size: 13px;
  color: #777;
  margin: 0 auto 40px;
}

/* film-frame video thumbnail, 16:9, used for both the featured
   sermon and every card in the grid */
.sermon-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.sermon-thumb::before,
.sermon-thumb::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 16px);
}
.sermon-thumb::before { top: -14px; }
.sermon-thumb::after { bottom: -14px; }

.sermon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sermon-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.sermon-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent var(--white);
}

.sermon-featured-wrap { margin-bottom: 70px; }

.sermon-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  width: 100%;
  cursor: pointer;
  padding: 18px 0;
}

.sermon-featured:hover .sermon-thumb,
.sermon-card:hover .sermon-thumb {
  transform: translateY(-5px) rotate(-0.6deg);
}

.sermon-featured:hover .sermon-play,
.sermon-card:hover .sermon-play {
  transform: scale(1.15);
  background: var(--red-deep);
}

.sermon-label {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.sermon-featured h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--navy);
  margin-bottom: 12px;
}

.sermon-watch {
  display: inline-block;
  margin-top: 22px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 13px;
  padding: 14px 30px;
  border-radius: 999px;
}

.sermon-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  text-align: left;
}

.sermon-tools h2 { margin: 0; }

.sermon-search {
  width: min(100%, 320px);
  border: none;
  border-bottom: 2px solid rgba(0,20,72,0.2);
  background: transparent;
  padding: 10px 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
}

.sermon-search:focus { outline: none; border-color: var(--red); }

.sermon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 32px;
  text-align: left;
}

.sermon-card {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 18px 0 0;
  display: block;
  width: 100%;
}

.sermon-card .sermon-thumb { margin-bottom: 26px; }

.sermon-meta {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 6px;
}

.sermon-card h3 {
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 4px;
}

.sermon-card p,
.sermon-featured p.sermon-speaker {
  font-size: 14px;
  color: #555;
  max-width: none;
  margin: 0;
}

.sermon-more {
  margin-top: 56px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 13px;
  padding: 16px 38px;
  border-radius: 999px;
  cursor: pointer;
}

.sermon-empty { color: #777; padding: 40px 0; grid-column: 1 / -1; text-align: center; }

/* pop-up player */
.sermon-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,10,46,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sermon-modal.open { display: flex; }

.sermon-modal-box {
  position: relative;
  width: min(100%, 1000px);
}

.sermon-modal-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}

.sermon-modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sermon-modal-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  line-height: 1.6;
}

.sermon-modal-title {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-top: 16px;
}

.sermon-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 800px) {
  .sermon-featured { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- give page ---------- */

.give-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 44px;
  text-align: left;
}

.give-card {
  background: var(--navy);
  color: var(--white);
  padding: 32px 28px;
  border-radius: 10px;
}

.give-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--white);
}

.give-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  max-width: none;
  line-height: 1.7;
}

.give-scripture {
  margin-top: 56px;
  font-size: clamp(18px, 2.6vw, 26px);
  font-style: italic;
  color: var(--navy);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 44px;
  text-align: left;
  align-items: start;
}

.contact-details h3 {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 8px;
}

.contact-details p {
  font-size: 16px;
  color: var(--navy);
  max-width: none;
  margin-bottom: 26px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid rgba(0,20,72,0.2);
  background: transparent;
  padding: 12px 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 8px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 13px;
  padding: 16px 34px;
  border-radius: 999px;
  cursor: pointer;
}

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

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .frame { width: 100px; height: 128px; }
  .hero-center {
    width: min(80%, 320px);
    padding: 16px 14px;
    background: rgba(250, 245, 235, 0.86);
    backdrop-filter: none;
  }
  .hero-logo { height: 52px; margin-bottom: 10px; }
  .hero-mission { font-size: 14px; line-height: 1.45; margin-bottom: 14px; }
  .hero-cta { font-size: 11px; padding: 11px 22px; }
  .site-header { padding: 16px 20px; }

  /* the caption and the unmute button both sit at the bottom corners
     on desktop, too narrow a screen runs the caption text straight
     under the button, so the button moves up out of its way */
  /* on a phone the video is only about 140px tall, so the caption
     sits underneath it instead of on top */
  .video-wrap {
    aspect-ratio: auto;
    overflow: visible;
  }
  .video-wrap::before { display: none; }
  .closing-video { height: auto; aspect-ratio: 1920 / 720; }
  .video-caption {
    position: static;
    padding: 28px 20px 36px;
    max-width: none;
  }
  .video-unmute {
    top: 12px;
    right: 12px;
    bottom: auto;
  }
}

/* ---------- events page: Mercy Conference ---------- */

.conference-band {
  background: var(--navy);
  color: var(--white);
  padding: 90px 32px;
}

.conference-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.conference-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
}

.conference-text h2 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 18px;
}

.conference-text p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
}

.conference-register {
  display: inline-block;
  margin-top: 28px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 13px;
  padding: 16px 34px;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.conference-register:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
}

.conference-note {
  display: none;
  margin-top: 16px;
  font-size: 13px !important;
  color: rgba(255,255,255,0.6) !important;
}

.conference-strip {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.conference-strip .frame {
  width: 110px;
  height: 140px;
  border-color: #000;
}

.conference-strip .frame:nth-child(2) { margin-top: 28px; }

@media (max-width: 800px) {
  .conference-inner { grid-template-columns: 1fr; gap: 40px; }
  .conference-strip .frame { width: 88px; height: 112px; }
}

/* ---------- contact: email button ---------- */

.contact-cta {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  align-self: start;
}

.contact-cta h3 {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 12px;
}

.contact-cta p {
  color: #444;
  margin-bottom: 24px;
}

.contact-email-btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 14px;
  padding: 16px 40px;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-email-btn:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
}

.contact-cta .contact-cta-addr {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--navy);
}
