:root {
  --bg: #fcfcfc;
  --ink: white;
  --muted: #475569;
  --brand: #c40000;
  --brand-2: #52b788;
  --accent: #8a8a8a46;
  --card: #8a8a8a46;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

body {
  background: none;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url(./images/church_mobile2.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: translateZ(0);
}

.site_wrapper {
  position: relative;
  z-index: 1;
}

.notice {
  background: var(--accent);
  color: #ffffff;
}

.landing_background {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  height: 100vh;
  width: 100%;
  filter: blur(2px);
}

.notice .inner {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

a {
  color: var(--brand);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10 20px;
  height: 100vh;
}

.container2 {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.123);
  backdrop-filter: saturate(180%) blur(9px);
  margin: 0 auto;
  padding: 5px 20px;
}

.container3 {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--brand);
  color: #fff;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.2s;
  border: 1px solid transparent;
}

.btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.btn.alt {
  background: #fff;
  color: black;
  border-color: #e8eef1;
}

.tag {
  display: inline-block;
  background: var(--accent);
  color: var(--brand);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.123);
  backdrop-filter: saturate(180%) blur(9px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: white;
}

.logo-badge {
  width: 70px;
  height: 70px;
  display: grid;
  object-fit: cover;
  place-content: center;
  color: #ff0000;
  font-family: Poppins, system-ui, sans-serif;
}

.logo-badge span {
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
}

button {
  font-weight: bold;
  color: white;
  border-radius: 2rem;
  cursor: pointer;
  width: 95.02px;
  height: 42.66px;
  border: none;
  background-color: #c40000;
  display: flex;
  justify-content: center;
  align-items: center;
}

button .span-mother {
  display: flex;
  overflow: hidden;
}

button:hover .span-mother {
  position: absolute;
}

button:hover .span-mother span {
  transform: translateY(1.2em);
}

button .span-mother span:nth-child(1) {
  transition: 0.2s;
}

button .span-mother span:nth-child(2) {
  transition: 0.3s;
}

button .span-mother span:nth-child(3) {
  transition: 0.4s;
}

button .span-mother span:nth-child(4) {
  transition: 0.5s;
}

button .span-mother span:nth-child(5) {
  transition: 0.6s;
}

button .span-mother span:nth-child(6) {
  transition: 0.7s;
}

button .span-mother2 {
  display: flex;
  position: absolute;
  overflow: hidden;
}

button .span-mother2 span {
  transform: translateY(-1.2em);
}

button:hover .span-mother2 span {
  transform: translateY(0);
}

button .span-mother2 span {
  transition: 0.2s;
}

button .span-mother2 span:nth-child(2) {
  transition: 0.3s;
}

button .span-mother2 span:nth-child(3) {
  transition: 0.4s;
}

button .span-mother2 span:nth-child(4) {
  transition: 0.5s;
}

button .span-mother2 span:nth-child(5) {
  transition: 0.6s;
}

button .span-mother2 span:nth-child(6) {
  transition: 0.7s;
}

/*.menu-toggle {
  display: none;
  background: #c40000;
  border: 1px solid #e7edf1;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
}*/

.menu-toggle {
  display: none;
  background: #c4000000;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  width: 20% !important;
}

.hero {
  padding: 56px 0 20px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-family: Poppins, system-ui, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0.35rem 0 1rem;
  color: white;
}

.hero p {
  color: white;
  font-size: 1.06rem;
}

.hero-card video {
  width: 100%;
  border-radius: 2%;
  box-shadow: 0 20px 50px rgba(253, 0, 0, 0.445);
}

section {
  padding: 44px 0;
}

h2 {
  font-family: Poppins, system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
  color: white;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: rgba(255, 255, 255, 0.123);
  backdrop-filter: saturate(180%) blur(9px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border-radius: 5px;
}

.card-livestream {
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  width: 80%;
  height: 80%;
  align-items: center;
}

.livestream {
  position: relative;
  width: 80%;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  padding: 20px;
}

.livestream iframe {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 0;
}

.card .media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card .media img,
.card .media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.card .body {
  padding: 14px 16px;
}

.body a {
  color: #ffffff;
  text-decoration: underline;
}

.pill {
  font-size: 0.88rem;
  color: var(--muted);
}

.pill2 {
  position: absolute;
  right: 20px;
  font-size: 0.88rem;
  color: white;
}

.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  color: #fcfcfc;
}

.info .pane {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.123);
  backdrop-filter: saturate(180%) blur(9px);
  padding: 20px;
  color: #fcfcfc;
}

.pill {
  color: var(--bg);
}

.sermons .item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 10px;
}

.sermons .thumb {
  width: 120px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.events .event {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.active {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  max-width: 500px;
  width: 90%;
  margin: 5vh auto;
  border-radius: 16px;
  padding: 1px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.modal-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea,
select {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #e3ebf0;
  background: #fff;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 4px var(--ring);
  border-color: var(--brand);
}

footer {
  margin-top: 44px;
  padding: 22px 0;
  border-top: 1px solid #ebf1f5;
  color: var(--muted);
}

@media (max-width: 900px) {
  body {
    background-image: url(./images/church_mobile2.png);
    /*background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;*/
    background-attachment: fixed;
  }

  .container,
  .container2 {
    height: auto !important;
    min-height: auto !important;
    padding: 16px 16px !important;
  }

  .container3 {
    height: auto !important;
    min-height: auto !important;
    padding: 16px 5px !important;
  }

  section {
    padding: 24px 0 !important;
  }

  .hero {
    padding: 28px 0 10px !important;
  }

  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.4rem) !important;
    line-height: 1.12 !important;
    padding-left: 10px;
  }

  .hero p {
    font-size: 0.98rem !important;
    padding-left: 10px;
  }

  .hero-card video {
    border-radius: 14px !important;
    padding: 10px;
    box-shadow: none;
  }

  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    padding-left: 10px;
  }

  #seriesFilter {
    width: 100% !important;
  }

  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr !important;
  }

  .info {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .info .pane {
    border-radius: 18px !important;
    padding: 16px !important;
  }

  .card-livestream {
    width: 100% !important;
    height: auto !important;
  }

  .livestream {
    width: 100% !important;
    padding: 12px !important;
    height: auto !important;
  }

  .livestream iframe {
    width: 100% !important;
    height: 220px !important;
    border-radius: 12px !important;
  }

  .btn {
    padding: 0.8rem 1rem !important;
  }

  .modal-content {
    width: calc(100% - 24px) !important;
    max-width: 520px !important;
    margin: 10vh auto !important;
    padding: 8px !important;
  }

  .modal-content img {
    max-height: 72vh !important;
  }

  .pill2 {
    position: static !important;
    right: auto !important;
  }

  .nav.open .nav-links {
    top: 72px !important;
    padding: 12px !important;
    gap: 10px !important;
  }

  .nav-links a {
    width: 100% !important;
  }

  .landing_background {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  .nav.open .nav-links {
    display: flex;
    width: min(320px, 70vw);
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    border-radius: 5%;
    top: 50px;
    right: 10px;
    left: auto;
    background: rgba(0, 0, 0, 0.671);
    backdrop-filter: saturate(180%) blur(10px);
    padding: 10px;
    flex-wrap: wrap;
  }

  .nav.open .nav-links a {
    display: block;
    width: 100%;
    padding: 0;
  }

  button {
    font-weight: bold;
    margin: 0 auto;
    color: white;
    border-bottom: 1px solid white;
    border-radius: 0;
    cursor: pointer;
    width: 90% !important;
    height: 42.66px;
    background-color: #685e5e00;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .livestream iframe {
    height: 200px !important;
  }

  button {
    width: 88px !important;
    height: 40px !important;
  }

  .logo-badge {
    width: 56px !important;
    height: 56px !important;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  .nav.open .nav-links {
    display: flex;
    width: min(320px, 70vw);
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    border-radius: 5%;
    top: 50px;
    right: 10px;
    left: auto;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(10px);
    padding: 10px;
    flex-wrap: wrap;
  }

  .nav.open .nav-links a {
    display: block;
    width: 100%;
    padding: 0;
  }

  button {
    margin: 0 auto;
    font-weight: bold;
    color: white;
    border-bottom: 1px solid white;
    border-radius: 0;
    cursor: pointer;
    width: 72% !important;
    height: 42.66px;
    background-color: #c4000000;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
