:root {
  --navy: #0f2838;
  --blue: #0560a1;
  --road-blue: #97afd5;
  --cream: #f7f3ed;
  --sand: #ede7db;
  --line: #d9d0c4;
  --muted: #8c9aa4;
  --pin: #670318;
  --pin-light: #f4b8c4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 66px;
  display: flex;
  align-items: center;
  background: rgba(247, 243, 237, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
}

.brand:hover .brand-logo{
  transform:scale(1.03);
}

.brand-logo{
  height: 32px;
  width: auto;
  display: block;
}

.brand-name {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--navy);
  margin-left: 3px;
  white-space: nowrap;
}

.brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.brand sup {
  color: #aab6be;
  font-size: 10px;
  margin-left: 2px;
  letter-spacing: 0;
}

.nav-link-custom {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 5px;
  font-weight: 700;
  color: #7f8d96;
}

.btn-download {
  background: var(--navy);
  color: white;
  padding: 14px 28px;
  border-radius: 5px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.btn-download:hover {
  background: #17384b;
  color: white;
}

/* HERO */

.hero-section {
  min-height: 760px;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  background: var(--cream);
  overflow: hidden;
}

.hero-section::before{
  display:none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: auto;
  padding-top: 40px;
}

.section-kicker,
.section-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #a5b1ba;
  margin-bottom: 24px;
}

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

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
}

.hero-logo span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  color: var(--navy);
  letter-spacing: -0.045em;
}

.hero-section h1 {
  font-size: clamp(58px, 8vw, 105px);
  line-height: 0.98;
  font-weight: 400;
}

.hero-section h1 strong {
  font-weight: 600;
}

.hero-text {
  max-width: 460px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.store-btn {
  min-width: 150px;
  height: 48px;
  border: 1px solid #c8c2b8;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}

.store-dark {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.store-btn:hover {
  transform: translateY(-2px);
  transition: 0.3s ease;
}

/* STATS */

.stats-row {
  width: 100%;
  max-width: 850px;
  margin: 64px auto 80px; 
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  text-align: center;
  padding: 0 60px;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--line);
}

.stat-item h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--navy);
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
  margin-bottom: 12px;
}

.stat-item span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a6b4bd;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 800;
}

/* LIVE MAP */

.live-map-section {
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.map-content {
  height: 100%;
  padding: 120px 90px 120px 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-content h2 {
  font-size: clamp(58px, 6vw, 96px);
  line-height: 0.96;
  font-weight: 500;
  margin-bottom: 36px;
}

.map-content h2 em {
  font-style: italic;
  font-weight: 400;
}

.map-content p {
  max-width: 570px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 54px;
}

.map-content ul {
  list-style: none;
  padding: 36px 0 0;
  margin: 0;
  max-width: 620px;
  border-top: 1px solid var(--line);
}

.map-content li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.map-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
}

.map-visual {
  height: 100%;
  min-height: 760px;
  position: relative;
  overflow: hidden;
  background: #f7f3ed;
}

.map-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.03) saturate(0.96) brightness(0.98);
  transform: scale(1.01);
  transition: transform 1.6s ease;
}

.map-visual:hover .map-image {
  transform: scale(1.045);
}

/* APP SECTION */

.app-section {
  padding: 120px 0 100px;
  background: var(--cream);
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 80px;
}

.section-heading h2 {
  font-size: clamp(52px, 6vw, 88px);
  line-height: 0.98;
  font-weight: 500;
  margin-bottom: 24px;
}

.section-heading h2 em {
  font-style: italic;
  font-weight: 400;
}

.section-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 520px;
  margin: auto;
}

.phone-large {
  height: 460px;
  transform: translateY(-34px);
}

.phone-screen {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #f8f6f1;
  position: relative;
}

.map-screen {
  background:
    linear-gradient(90deg, transparent 24%, white 25%, white 26%, transparent 27%),
    linear-gradient(0deg, transparent 24%, white 25%, white 26%, transparent 27%),
    #dedad2;
  background-size: 64px 64px;
}

.map-screen::before,
.map-screen::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ef4e42;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 62px 70px 0 #ef4e42, 102px -24px 0 #ef4e42;
  left: 36px;
  top: 130px;
}

.church-screen {
  background: var(--navy);
  color: white;
  padding: 42px 28px;
}

.church-screen h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 24px;
}

.church-screen p {
  color: #c0cbd1;
  font-size: 13px;
  line-height: 1.7;
}

.church-screen button {
  margin-top: 40px;
  border: 0;
  background: white;
  color: var(--navy);
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 800;
}

.event-screen {
  padding: 34px 16px;
}

.event {
  border-radius: 10px;
  color: white;
  padding: 20px 14px;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.event-dark {
  background: #111;
  color: #ffcd34;
}

.event-red {
  background: #8e1f1f;
}

.profile-screen {
  background: var(--navy);
  color: white;
  padding: 34px 18px;
  text-align: center;
}

.avatar {
  width: 52px;
  height: 52px;
  background: #28485c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-weight: 800;
}

.profile-screen h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.profile-screen p {
  font-size: 11px;
  color: #91a5b2;
}

.menu-item {
  background: white;
  color: var(--navy);
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  text-align: left;
  margin-top: 10px;
}

.app-screenshots {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 34px;
  width: 100%;
  margin: 70px auto 90px;
  flex-wrap: nowrap;
}

.app-screenshots img {
  width: 270px;
  height: auto;
  max-width: none;
  display: block;
  flex: 0 0 auto;
}


/* FEATURES */

.features-section {
  padding: 110px 0;
  background: var(--sand);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.feature-card {
  min-height: 245px;
  padding: 46px 40px;
  background: transparent;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-card:nth-child(3n) {
  border-right: none;
}

.feature-card:nth-child(n+4) {
  border-bottom: none;
}

.feature-icon {
  font-size: 34px;
  color: var(--navy);
  margin-bottom: 28px;
}

.feature-card h3 {
  font-size: 18px;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
  margin: 0;
}

/* DOWNLOAD */

.download-section {
  min-height: 650px;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

.download-section h2 {
  color: white;
  font-size: clamp(58px, 7vw, 100px);
  line-height: 0.98;
  font-weight: 500;
  margin-bottom: 28px;
}

.download-section h2 em {
  color: #7f96a5;
  font-style: italic;
  font-weight: 400;
}

.download-section p {
  color: #8fa5b2;
  max-width: 440px;
  margin: auto;
  line-height: 1.8;
}

.download-section .store-btn {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.socials {
  margin-top: 46px;
  display: flex;
  justify-content: center;
  gap: 36px;
}

.socials a {
  color: #5f7a8c;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  font-weight: 800;
}

/* CHURCHES */

.churches-section {
  background: var(--cream);
  padding: 110px 0;
}

.churches-box {
  max-width: 980px;
  margin: auto;
  padding-top: 80px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.churches-box h2 {
  font-size: clamp(50px, 5vw, 78px);
  line-height: 0.98;
  font-weight: 500;
  margin-bottom: 26px;
}

.churches-box h2 em {
  font-style: italic;
  font-weight: 400;
}

.churches-box p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 430px;
}

.email-btn {
  justify-self: end;
  display: inline-flex;
  min-width: 400px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8c2b8;
  border-radius: 7px;
  color: var(--navy);
  background: white;
  font-weight: 800;
  letter-spacing: 1px;
}

/* FOOTER */

.footer {
  background: var(--sand);
  border-top: 1px solid var(--line);
  color: #a8b4bd;
  font-size: 13px;
  padding: 28px 0;
}

.footer a {
  color: #a8b4bd;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
  .map-content {
    padding: 90px 60px;
  }

  .stat-item {
    padding: 0 38px;
  }
}

@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .stats-row {
    max-width: 520px;
  }

  .stat-item {
    padding: 0 20px;
  }

  .map-content {
    padding: 80px 40px;
  }

  .map-visual {
    min-height: 520px;
  }

  .phone-showcase {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 35px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card:nth-child(3n),
  .feature-card:nth-child(n+4) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .churches-box {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .email-btn {
    justify-self: start;
  }
}

@media (max-width: 576px) {
  .site-header{
    height: 95px;
    display:flex;
    align-items:center;
}

  .brand {
    font-size: 16px;
  }

  .brand-name {
    font-size: 15px;
    margin-left: 2px;
  }

  .btn-download {
    padding: 12px 16px;
    font-size: 11px;
  }

  .hero-section h1 {
    font-size: 54px;
  }

  .hero-logo {
    font-size: 32px;
  }

  .hero-logo span {
    width: 42px;
    height: 42px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
  }

  .stat-item {
    padding: 24px 0;
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .map-content {
    padding: 65px 24px;
  }

  .map-content h2,
  .section-heading h2,
  .churches-box h2 {
    font-size: 48px;
  }

  .map-content p {
    font-size: 16px;
  }

  .map-visual {
    min-height: 430px;
  }

  .phone-card {
    min-width: 200px;
  }

  /* Mobile screenshots carousel */
  .app-section .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .app-section .section-heading {
    padding-left: 24px;
    padding-right: 24px;
  }

  .app-screenshots {
    width: 100%;
    margin: 48px 0 40px;
    padding: 0 24px 20px;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .app-screenshots::-webkit-scrollbar {
    display: none;
  }

  .app-screenshots img {
    width: min(74vw, 270px);
    max-width: min(74vw, 270px);
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .features-section,
  .app-section,
  .churches-section {
    padding: 80px 0;
  }

  .download-section {
    padding: 90px 0;
    min-height: 560px;
  }

  .download-section h2 {
    font-size: 52px;
  }

  .email-btn {
    min-width: 100%;
  }
}

/* ===== Mobile screenshots fix ===== */
html,body{
width:100%;
max-width:100%;
overflow-x:hidden;
}

.site-header .logo img,
.navbar-brand img,
.logo img{
height:42px;
width:auto;
display:block;
}

.email-btn,
.contact-email,
.btn-email{
display:inline-flex;
align-items:center;
justify-content:center;
min-width:480px;
max-width:100%;
padding:16px 24px;
white-space:nowrap;
}

.app-screenshots{
display:flex;
justify-content:center;
align-items:flex-start;
gap:34px;
width:100%;
max-width:100%;
margin:70px auto 90px;
}

.app-screenshots img{
display:block;
width:270px;
height:550px;
object-fit:contain;
flex:0 0 auto;
}

@media (max-width:768px){
.app-section{overflow:hidden;}
.app-section .container{
padding-left:0;
padding-right:0;
max-width:100%;
}
.app-screenshots{
justify-content:flex-start;
gap:20px;
margin:50px 0 70px;
padding:0 24px 12px;
overflow-x:auto;
overflow-y:hidden;
scroll-snap-type:x mandatory;
-webkit-overflow-scrolling:touch;
scrollbar-width:none;
}
.app-screenshots::-webkit-scrollbar{display:none;}
.app-screenshots img{
width:calc(100vw - 48px);
max-width:300px;
height:auto;
flex:0 0 calc(100vw - 48px);
scroll-snap-align:start;
}
.email-btn,.contact-email,.btn-email{
min-width:0;
width:100%;
white-space:normal;
overflow-wrap:anywhere;
}
}

/* =========================================================
   FINAL HEADER AND CONTACT FIXES
   ========================================================= */

/* Keep the header content aligned with the viewport edges. */
.site-header .container-fluid {
  width: 100%;
}

.brand,
.brand:focus,
.brand:active {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.brand-logo {
  display: block;
  width: auto;
  height: 32px;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  border: 0;
  outline: 0;
  box-shadow: none;
}

/* The address stays on one line and scales down when space is limited. */
.email-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 470px);
  min-width: 0;
  min-height: 58px;
  height: auto;
  padding: 15px 14px;
  border: 1px solid #c8c2b8;
  border-radius: 7px;
  color: var(--navy);
  background: #fff;
  font-family: "Inter", sans-serif;
  font-size: clamp(12px, 1.15vw, 15px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

@media (max-width: 991px) {
  .email-btn {
    justify-self: start;
  }
}

@media (max-width: 576px) {
  .site-header {
    height: 95px;
  }

  .site-header .container-fluid {
    padding-left: 12px !important;
    padding-right: 16px !important;
  }

  .brand {
    margin: 0;
    padding: 0;
    transform: translateX(-4px);
  }

  .brand-logo {
    height: 27px;
  }

  .nav-link-custom {
    font-size: 11px;
    letter-spacing: 4px;
  }

  .churches-box {
    gap: 42px;
  }

  .email-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 14px 8px;
    font-size: clamp(11px, 3.35vw, 14px);
    letter-spacing: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 360px) {
  .email-btn {
    font-size: 11px;
    padding-left: 5px;
    padding-right: 5px;
  }
}
/* APP AVAILABILITY MODAL */
body.modal-open { overflow: hidden; }

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.app-modal.is-open { opacity: 1; visibility: visible; }

.app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 40, 56, .68);
  backdrop-filter: blur(8px);
}

.app-modal__dialog {
  position: relative;
  width: min(100%, 600px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 28px 90px rgba(15, 40, 56, .28);
  transform: translateY(18px) scale(.98);
  transition: transform .25s ease;
}

.app-modal.is-open .app-modal__dialog { transform: translateY(0) scale(1); }

.app-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.app-modal__dialog h2 {
  margin: 16px 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 500;
  line-height: 1;
}

.app-modal__dialog > p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.notify-form label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.notify-form__row { display: flex; gap: 10px; }

.notify-form input {
  min-width: 0;
  flex: 1;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #c8c2b8;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
}

.notify-form input:focus {
  outline: 3px solid rgba(5, 96, 161, .15);
  border-color: var(--blue);
}

.notify-form button {
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.notify-form button:disabled { opacity: .65; cursor: wait; }

.notify-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.notify-form__consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}

.notify-form__consent label {
  display: block;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}

.notify-form__consent label a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notify-form__status { min-height: 24px; margin: 10px 0 0; font-size: 14px; }
.notify-form__status.is-error { color: #a83232; }
.notify-form__status.is-success { color: #247044; }

.app-modal__privacy {
  display: inline-block;
  margin-top: 24px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 576px) {
  .app-modal__dialog { padding: 42px 24px 30px; }
  .notify-form__row { flex-direction: column; }
  .notify-form button { width: 100%; }
}
