:root {
  --navy: #0d2648;
  --navy-deep: #081a33;
  --cream: #f7f1e6;
  --cream-muted: #e9e1d1;
  --gold: #d9a957;
  --gold-dark: #c99236;
  --gold-text: #a87a28;
  --ink: #13233d;
  --body: #2c3a52;
  --rule: #e6dcc8;
  --serif: Fraunces, Georgia, serif;
  --sans: Montserrat, "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
}

a {
  color: var(--navy);
}
a:hover {
  color: var(--gold-dark);
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--gold-text);
  text-transform: uppercase;
}

.heading {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.05;
  color: var(--navy);
}
.heading em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-dark);
}

.lede {
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.7;
  color: var(--body);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 30px;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--cream);
  color: var(--navy);
}
.btn-outline {
  border: 1.5px solid rgba(247, 241, 230, 0.75);
  color: var(--cream);
  padding: 15px 30px;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-navy {
  background: var(--navy);
  color: var(--cream);
  padding: 15px 28px;
}
.btn-navy:hover {
  background: var(--gold-dark);
  color: var(--navy);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--cream);
}
.wordmark img {
  height: 46px;
  width: auto;
}
.wordmark-text {
  border-left: 1px solid rgba(217, 169, 87, 0.6);
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.wordmark-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2em;
  color: var(--cream);
}
.wordmark-sub {
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 35%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  /* A soft navy pool behind the text block, plus a top band for the nav and
     a fade into solid navy at the bottom. The upper photo stays bright. */
  background: radial-gradient(
      ellipse 60% 48% at 50% 70%,
      rgba(8, 26, 51, 0.62) 0%,
      rgba(8, 26, 51, 0.35) 55%,
      rgba(8, 26, 51, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 26, 51, 0.7) 0%,
      rgba(8, 26, 51, 0.1) 20%,
      rgba(8, 26, 51, 0.1) 38%,
      rgba(13, 38, 72, 0.6) 58%,
      rgba(13, 38, 72, 0.9) 82%,
      #0d2648 100%
    );
}
.nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 0;
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-links a.nav-cta {
  color: var(--navy);
  background: var(--gold);
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 999px;
}
.nav-links a.nav-cta:hover {
  background: var(--cream);
  color: var(--navy);
}
/* Past the hero, the nav pins to the top as a compact solid bar. Screen
   only, so a page printed while scrolled still prints the nav in place. */
@media screen {
  .nav-stuck .nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--navy);
    box-shadow: 0 2px 12px rgba(8, 26, 51, 0.3);
    border-bottom: 2px solid var(--gold-dark);
    animation: nav-drop 0.2s ease-out;
  }
  .nav-stuck .nav {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .nav-stuck .wordmark img {
    height: 36px;
  }
}
/* On phones the full nav is two rows. Pinned, it drops to one: the logo
   mark alone (still a tap back to the top) beside the links. */
@media screen and (max-width: 640px) {
  .nav-stuck .nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
  }
  .nav-stuck .wordmark img {
    height: 32px;
  }
  .nav-stuck .wordmark-text {
    display: none;
  }
  .nav-stuck .nav-links {
    flex-wrap: nowrap;
    gap: 16px;
  }
  .nav-stuck .nav-links a {
    white-space: nowrap;
  }
  .nav-stuck .nav-links a.nav-cta {
    padding: 10px 16px;
  }
}
/* The narrowest phones can't fit all four, so the pinned bar drops the one
   link that leaves the site. It's still in the full nav at the top. */
@media screen and (max-width: 359px) {
  .nav-stuck .nav-links a[href*="facebook"] {
    display: none;
  }
}
@keyframes nav-drop {
  from {
    transform: translateY(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-stuck .nav-bar {
    animation: none;
  }
}
.hero-body {
  position: relative;
  padding-top: 300px;
  padding-bottom: 88px;
  text-align: center;
}
.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--gold);
}
.hero-kicker span {
  width: 56px;
  height: 1px;
  background: rgba(217, 169, 87, 0.7);
}
.hero h1 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}
.hero-tagline {
  margin: 22px auto 0;
  max-width: 640px;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--cream-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.gold-rule {
  height: 4px;
  background: var(--gold-dark);
}

/* Welcome */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 104px;
  padding-bottom: 104px;
}
.welcome-copy {
  flex: 1 1 520px;
  min-width: 0;
}
.welcome-copy .lede {
  max-width: 600px;
}
.verse {
  flex: 1 1 360px;
  min-width: 0;
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  border-radius: 16px;
  padding: 44px 40px;
  text-align: center;
}
.verse img {
  height: 58px;
  width: auto;
}
.verse blockquote {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
}
.verse .small-caps {
  font-variant: small-caps;
}
.verse figcaption {
  margin-top: 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--gold);
}

/* Visit */
.visit {
  background: #fff;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.visit .container {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  padding-top: 104px;
  padding-bottom: 104px;
}
.schedule {
  flex: 1.3 1 520px;
  min-width: 0;
}
.times {
  margin-top: 36px;
  border-top: 2px solid var(--navy);
}
.times .eyebrow {
  margin: 22px 0 4px;
}
.times ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.times li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.times li:last-child {
  border-bottom: 0;
}
.times .name {
  font-weight: 600;
  font-size: 19px;
}
.times .time {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  color: var(--navy);
  white-space: nowrap;
}
.times .time small {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-text);
}
.visit-cards {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card {
  background: var(--cream);
  border-radius: 16px;
  padding: 36px;
}
.card-title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  color: var(--navy);
}
.card-text {
  margin: 6px 0 0;
  font-size: 18px;
  color: var(--body);
}
.card .btn {
  margin-top: 24px;
}
/* The address links to the church's map listing (the pin), while the button
   goes straight to turn-by-turn directions. It keeps its plain look and only
   shows it's a link on hover. */
.address-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.address-link:hover .card-title {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.phone {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  color: var(--navy);
  text-decoration: none;
}
.card-note {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

/* About */
.about {
  gap: 64px;
}
.about-logo {
  flex: 0 1 300px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.about-logo img {
  width: 100%;
  max-width: 300px;
  height: auto;
}
.about-copy {
  flex: 1 1 520px;
  min-width: 0;
}
.about-copy .lede {
  max-width: 640px;
}
.pastors {
  margin-top: 28px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.pastors .eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
}
.pastors-names {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: #c9d2df;
}
.footer a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
}
.footer a:hover {
  color: var(--gold);
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 64px;
  padding-bottom: 40px;
}
.footer-brand {
  flex: 1 1 320px;
  min-width: 0;
}
.footer-brand .wordmark img {
  height: 44px;
}
.footer-brand .wordmark-name {
  font-size: 16px;
}
.footer-brand .wordmark-sub {
  font-size: 9px;
}
.footer-tagline {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--cream);
}
.footer-tagline em {
  color: var(--gold);
}
.footer-col {
  flex: 0 1 260px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.7;
}
.footer-col:last-child {
  flex-basis: 200px;
}
.footer-col address {
  font-style: normal;
}
.footer .address-link {
  display: inline;
  color: inherit;
  font-weight: inherit;
}
.footer .address-link:hover {
  color: var(--gold);
}
.footer-col .eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 8px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.footer-legal {
  border-top: 1px solid rgba(201, 210, 223, 0.18);
}
.footer-legal p {
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 14px;
  color: #9fb0c8;
}
/* The QR code only prints; on screen it would point at the page you're on. */
.print-qr {
  display: none;
}

/* On phones, Plan a Visit should land with directions in view, so the
   Find us card moves up between the heading and the service times. */
@media (max-width: 999px) {
  /* Narrow screens crop the photo's sides; anchor it left so the pastor
     stays in frame. */
  .hero-bg {
    object-position: 0% 50%;
  }
  /* Stacked, the text starts higher and crosses the pastor's shirt, so the
     darkening starts just below his face. */
  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(8, 26, 51, 0.7) 0%,
      rgba(8, 26, 51, 0.15) 18%,
      rgba(8, 26, 51, 0.2) 28%,
      rgba(13, 38, 72, 0.72) 42%,
      rgba(13, 38, 72, 0.85) 70%,
      #0d2648 100%
    );
  }
  .visit .container {
    flex-direction: column;
  }
  .schedule,
  .visit-cards {
    display: contents;
  }
  .visit-head {
    order: 1;
  }
  .card-find {
    order: 2;
  }
  .times {
    order: 3;
    margin-top: 0;
  }
  .card-call {
    order: 4;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .nav {
    justify-content: center;
  }
  .nav-links {
    justify-content: center;
    gap: 4px 20px;
  }
  .hero-body {
    padding-top: 160px;
    padding-bottom: 64px;
  }
  .hero-kicker span {
    width: 32px;
  }
  .split,
  .visit .container {
    padding-top: 72px;
    padding-bottom: 72px;
    gap: 40px;
  }
  .verse {
    padding: 36px 24px;
  }
  .verse blockquote {
    font-size: 22px;
  }
  .card {
    padding: 28px 24px;
  }
  .times .time {
    font-size: 26px;
  }
  .times .name {
    font-size: 17px;
  }
}

/* Print: a two-page handout in dark ink on white. Browsers drop background
   colors by default, which would leave the cream-on-navy text invisible, so
   nothing here relies on a fill. Links and buttons do nothing on paper and
   are hidden; the logo mark's white figure would vanish too, so only the
   full-color logo prints. */
@media print {
  /* Chrome prints the date, title, URL, and page number in the page margin,
     and leaves them out when the margin is too small to hold them. A quarter
     inch keeps them off and still clears most printers' unprintable edge;
     the body padding brings the first page back to a half inch, and the
     sides of every later page too. */
  @page {
    margin: 0.25in;
  }
  html {
    scroll-behavior: auto;
  }
  body {
    padding: 0.25in;
    background: #fff;
    color: var(--ink);
  }
  .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .heading {
    margin-top: 6px;
    font-size: 26px;
  }
  .lede {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
  }
  .heading,
  .eyebrow,
  .visit-head {
    break-after: avoid;
  }

  .hero-bg,
  .hero-shade,
  .nav-links,
  .hero-actions,
  .wordmark img,
  .verse img,
  .card .btn,
  .footer-main {
    display: none;
  }
  .hero {
    background: none;
    color: var(--ink);
    overflow: visible;
  }
  .nav {
    padding: 0;
    justify-content: center;
  }
  .wordmark-text {
    border-left: 0;
    padding-left: 0;
    align-items: center;
  }
  .wordmark-name {
    color: var(--navy);
  }
  .wordmark-sub {
    color: var(--gold-text);
  }
  .hero-body {
    padding: 10px 0 16px;
  }
  .hero-kicker {
    color: var(--gold-text);
  }
  .hero-kicker span {
    background: var(--gold-text);
  }
  .hero h1 {
    margin-top: 6px;
    font-size: 42px;
    color: var(--navy);
  }
  .hero h1 em {
    color: var(--gold-dark);
  }
  .hero-tagline {
    margin-top: 8px;
    font-size: 16px;
    color: var(--body);
  }
  .gold-rule {
    height: 0;
    border-top: 3px solid var(--gold-dark);
  }

  .split,
  .about {
    flex-wrap: nowrap;
    gap: 32px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .welcome-copy {
    flex: 1.4 1 0;
  }
  .verse {
    flex: 1 1 0;
    background: none;
    color: var(--navy);
    border: 1.5px solid var(--navy);
    padding: 22px 20px;
    break-inside: avoid;
  }
  .verse blockquote {
    margin-top: 0;
    font-size: 19px;
  }
  .verse figcaption {
    margin-top: 10px;
    color: var(--gold-text);
  }

  /* Paper is wide enough for the desktop two-column layout, but its width
     falls inside the phone breakpoint, so undo that reordering. */
  .visit {
    background: none;
  }
  .visit .container {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 36px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .schedule,
  .visit-cards {
    display: flex;
  }
  .schedule {
    flex: 1.4 1 0;
    flex-direction: column;
  }
  .visit-cards {
    flex: 1 1 0;
    gap: 16px;
  }
  .times {
    margin-top: 14px;
    break-inside: avoid;
  }
  .times .eyebrow {
    margin: 10px 0 0;
  }
  .times li {
    padding: 5px 0;
  }
  .times .name {
    font-size: 15px;
  }
  .times .time {
    font-size: 20px;
  }
  .card {
    background: none;
    border: 1px solid var(--rule);
    padding: 16px 18px;
    break-inside: avoid;
  }
  .card-title {
    font-size: 20px;
  }
  .card-text,
  .card-note {
    font-size: 14px;
  }
  .phone {
    font-size: 24px;
  }

  .about {
    padding-bottom: 14px;
    break-inside: avoid;
  }
  .about-logo {
    flex: 0 0 130px;
  }
  .about-copy {
    flex: 1 1 0;
  }
  .pastors {
    margin-top: 12px;
    padding: 8px 14px;
    background: none;
  }
  .pastors-names {
    font-size: 18px;
  }

  .footer {
    background: none;
    border-top: 1px solid var(--rule);
  }
  .footer-legal {
    border-top: 0;
  }
  .footer-legal p {
    padding: 12px 0 0;
    color: var(--body);
    font-size: 12px;
  }
  /* A flyer reader can't click anything, so the site address goes in the
     hero's empty top corner as a QR code, where it adds no height. */
  .print-qr {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 96px;
    margin: 0;
    text-align: center;
  }
  .print-qr img {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto;
  }
  .print-qr figcaption {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.3;
    color: var(--body);
  }
  .print-qr strong {
    display: block;
    color: var(--navy);
  }
}
