/* ==========================================================================
   Breakthrough Church — mybreakthrough.online
   ========================================================================== */

:root {
  --ink: #16222e;          /* deep navy — text & dark sections */
  --ink-soft: #3c4a58;
  --brand: #4e7fa5;        /* slate blue from brand art */
  --brand-dark: #3a627f;
  --brand-tint: #e8eff5;
  --paper: #ffffff;
  --paper-soft: #f5f8fa;
  --line: #dde5ec;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 34, 46, .10);
  --font-display: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
}

.wrap {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { height: 44px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: .35rem .55rem;
}

.site-nav { display: flex; align-items: center; gap: 1.4rem; }

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--brand-dark); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand-dark); }

.site-nav .btn { border-bottom: 0; padding: .6rem 1.25rem; font-size: .82rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  white-space: nowrap;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }

.btn-dark { background: var(--ink); color: #fff; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .75);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.btn-light { background: #fff; color: var(--ink); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    linear-gradient(165deg, rgba(22, 34, 46, .82) 0%, rgba(29, 49, 66, .72) 55%, rgba(39, 69, 94, .68) 100%),
    url("../assets/hero-bg.jpg") center 35% / cover no-repeat;
  color: #fff;
  overflow: hidden;
  text-align: center;
}

/* Drone flyover loop behind the homepage hero; the gradient overlay sits above it */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(22, 34, 46, .82) 0%, rgba(29, 49, 66, .72) 55%, rgba(39, 69, 94, .68) 100%);
  z-index: 1;
}

.hero .wrap { position: relative; z-index: 2; }

@media (max-width: 700px) {
  /* Skip the video on phones — the photo background already covers it */
  .hero-video { display: none; }
}

.hero .wrap { position: relative; padding: 6.5rem 0 5.5rem; }

.hero-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: .85rem;
  color: #b8cfe1;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.2rem;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #d8e4ee;
  max-width: 640px;
  margin: 0 auto 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Page hero (interior pages) — each page gets its own photo */
.page-hero {
  --banner: url("../assets/hero-bg.jpg");
  background:
    linear-gradient(165deg, rgba(22, 34, 46, .86) 0%, rgba(29, 49, 66, .78) 60%, rgba(39, 69, 94, .72) 100%),
    var(--banner) center 38% / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 4rem 0 3.2rem;
}

.page-hero.banner-about { --banner: url("../assets/banner-about.jpg"); }
.page-hero.banner-media { --banner: url("../assets/banner-media.jpg"); }
.page-hero.banner-podcast { --banner: url("../assets/banner-podcast.jpg"); }
.page-hero.banner-prayer { --banner: url("../assets/banner-prayer.jpg"); }
.page-hero.banner-give { --banner: url("../assets/banner-give.jpg"); }
.page-hero.banner-missions { --banner: url("../assets/banner-missions.jpg"); }
.page-hero.banner-contact { --banner: url("../assets/banner-contact.jpg"); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; letter-spacing: .08em; }
.page-hero p { color: #c9d9e6; max-width: 620px; margin: .8rem auto 0; }

/* --------------------------------------------------------------------------
   Info strip (service times)
   -------------------------------------------------------------------------- */

.info-strip { background: var(--brand); color: #fff; }

.info-strip .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  padding: 0;
}

.info-cell { padding: 1.4rem 1.6rem; text-align: center; }

.info-cell strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: #d7e5f0;
  margin-bottom: .25rem;
}

.info-cell span { font-size: 1.1rem; font-weight: 600; }
.info-cell a { color: #fff; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 4.5rem 0; }
.section.alt { background: var(--paper-soft); }
.section.dark { background: var(--ink); color: #fff; }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 2.8rem; }

.section-head .eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .8rem;
  color: var(--brand);
  margin-bottom: .6rem;
}

.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); text-transform: uppercase; letter-spacing: .06em; }
.section-head p { color: var(--ink-soft); margin-top: .8rem; }
.section.dark .section-head p { color: #c0cedb; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 14px rgba(22, 34, 46, .05);
}

.card h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .7rem; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card p:not(:last-child) { margin-bottom: 1.2rem; }
.card .card-icon { font-size: 1.9rem; margin-bottom: .9rem; display: block; }

/* Action links and buttons pin to the card bottom so a row of cards lines up */
.card a.more { font-weight: 600; margin-top: auto; align-self: flex-start; }
.card .btn { margin-top: auto; align-self: center; }
.card.center { text-align: center; }
.card.center a.more { align-self: center; }

/* --------------------------------------------------------------------------
   Video embeds & media tabs
   -------------------------------------------------------------------------- */

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0e161e;
}

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

.tabs { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }

.tab-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .6rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.tab-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.tab-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --------------------------------------------------------------------------
   Podcast episode list
   -------------------------------------------------------------------------- */

.episode-list {
  display: grid;
  gap: 1.2rem;
  max-width: 820px;
  margin-inline: auto;
}

.episode {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: 0 4px 14px rgba(22, 34, 46, .05);
}

.episode h3 { font-size: 1.1rem; letter-spacing: .03em; margin-bottom: .3rem; }

.episode-meta {
  font-size: .85rem;
  color: var(--brand-dark);
  font-weight: 600;
  margin-bottom: .7rem;
}

.episode-desc {
  color: var(--ink-soft);
  font-size: .95rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.episode audio { width: 100%; height: 40px; }

/* --------------------------------------------------------------------------
   Split layout (about, location)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.split p { color: var(--ink-soft); margin-bottom: 1rem; }

.split .media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-frame { width: 100%; height: 380px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   Quote / mission band
   -------------------------------------------------------------------------- */

.mission-band { text-align: center; }

.mission-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto;
}

.mission-band cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: .9rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #9fb6c8;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem;
  max-width: 720px;
  margin: 0 auto;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
}

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--paper-soft);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  background: #fff;
}

textarea { min-height: 140px; resize: vertical; }

.checks { display: grid; gap: .5rem; margin: 1.1rem 0; }
.checks label { display: flex; align-items: center; gap: .55rem; font-weight: 500; margin: 0; }

.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #b9c6d2; padding: 3.5rem 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.site-footer h4 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  margin-bottom: .9rem;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #b9c6d2; text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-logo { height: 54px; width: auto; margin-bottom: 1rem; }

.social-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1rem; }

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: background .15s ease;
}

.social-row a:hover { background: var(--brand); }
.social-row svg { width: 18px; height: 18px; fill: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 1.4rem;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 880px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem 0 1rem;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    width: 100%;
    text-align: center;
    padding: .8rem 0;
    border-bottom: 0;
  }

  .site-nav .btn { margin-top: .5rem; }

  .split { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding: 4.5rem 0 4rem; }
}
