/* Homepage-only layer. Load after the existing styles.css on index.html only. */
body.pmc-home {
  --home-gold: #e8b22a;
  --home-button-width: 240px;
  --home-button-min-height: 48px;
  --home-gold-deep: #9a6d08;
  --home-charcoal: #1a1a1a;
  --home-cream: #f7f3e8;
  --home-paper: #fffdf8;
  --home-muted: #5e5a51;
  --home-line: rgba(26, 26, 26, .14);
  --home-shadow: 0 22px 55px rgba(34, 27, 12, .13);
}

.pmc-home .pmc-home__skip { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; color: var(--home-charcoal); background: var(--home-cream); transform: translateY(-160%); }
.pmc-home .pmc-home__skip:focus { transform: translateY(0); }
.pmc-home .pmc-home__wrap { width: min(calc(100% - 40px), 1180px); margin-inline: auto; }
.pmc-home .pmc-home__section { padding: clamp(78px, 9vw, 128px) 0; }
.pmc-home .pmc-home__section h2,
.pmc-home .pmc-home__connect h2,
.pmc-home .pmc-home__service-strip h2 { margin: 0 0 .5em; font-family: var(--font-serif, Georgia, serif); font-size: clamp(2.2rem, 4.5vw, 4.1rem); line-height: 1.08; letter-spacing: -.035em; }
.pmc-home .pmc-home__eyebrow { margin: 0 0 14px; color: var(--home-gold-deep); font-size: .76rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.pmc-home .pmc-home__eyebrow--light { color: var(--home-cream); }
.pmc-home .pmc-home__eyebrow--gold { color: var(--home-gold); }
.pmc-home .pmc-home__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pmc-home .pmc-home__button { box-sizing: border-box; width: var(--home-button-width); max-width: 100%; min-height: var(--home-button-min-height); padding: 12px 20px; flex-shrink: 0; line-height: 1.4; text-align: center; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--home-gold); border-radius: 2px; color: var(--home-charcoal); background: var(--home-gold); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.pmc-home .pmc-home__button:hover,
.pmc-home .pmc-home__button:focus-visible { color: var(--home-charcoal); background: #f2c34e; transform: translateY(-2px); }
.pmc-home .pmc-home__button--outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.7); }
.pmc-home .pmc-home__button--outline:hover,
.pmc-home .pmc-home__button--outline:focus-visible { background: #fff; }
.pmc-home .pmc-home__button--dark { color: #fff; background: var(--color-charcoal, #2f3136); border-color: var(--color-charcoal, #2f3136); white-space: nowrap; }
.pmc-home .pmc-home__button--dark:hover,
.pmc-home .pmc-home__button--dark:focus-visible { color: #fff; background: #1f3a52; border-color: #1f3a52; }
.pmc-home .pmc-home__button--dark:active { transform: translateY(0); }
.pmc-home .pmc-home__text-link { color: var(--home-charcoal); font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-underline-offset: 5px; text-transform: uppercase; }
.pmc-home .pmc-home__text-link--light { color: var(--home-cream); }

.pmc-home .pmc-home__hero { position: relative; min-height: min(850px, 94vh); padding-top: 70px; display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--home-charcoal); }
.pmc-home .pmc-home__hero-image,
.pmc-home .pmc-home__hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.pmc-home .pmc-home__hero-image { object-fit: cover; object-position: center; }
.pmc-home .pmc-home__hero-shade { background: linear-gradient(90deg, rgba(15,13,9,.74), rgba(15,13,9,.26)), linear-gradient(0deg, rgba(15,13,9,.58), transparent 45%); }
.pmc-home .pmc-home__hero-content { position: relative; z-index: 2; padding-bottom: clamp(80px, 10vw, 132px); }
.pmc-home .pmc-home__hero h1 { max-width: 850px; margin: 0 0 22px; font-family: var(--font-serif, Georgia, serif); font-size: clamp(3rem, 7.5vw, 6.6rem); line-height: .98; letter-spacing: -.045em; }
.pmc-home .pmc-home__hero-content > p:not(.pmc-home__eyebrow) { max-width: 630px; margin: 0 0 34px; font-size: clamp(1rem, 1.6vw, 1.2rem); }

.pmc-home .pmc-home__service-strip { background: var(--home-gold); }
.pmc-home .pmc-home__service-grid { min-height: 152px; display: grid; grid-template-columns: 1.25fr 1fr 1fr; align-items: center; gap: 40px; }
.pmc-home .pmc-home__service-strip h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.pmc-home .pmc-home__service-strip .pmc-home__eyebrow { color: #654700; margin-bottom: 6px; }
.pmc-home .pmc-home__service-time { padding-left: 35px; display: flex; gap: 16px; align-items: center; border-left: 1px solid rgba(26,26,26,.25); }
.pmc-home .pmc-home__service-time span { font-size: .7rem; }
.pmc-home .pmc-home__service-time p { margin: 0; }
.pmc-home .pmc-home__service-time strong { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.pmc-home .pmc-home__about { background: var(--home-cream); }
.pmc-home .pmc-home__about-grid { display: grid; grid-template-columns: .8fr 1.35fr; gap: clamp(55px, 9vw, 130px); }
.pmc-home .pmc-home__about-copy > p { max-width: 720px; margin: 0 0 44px; color: var(--home-muted); font-size: 1.08rem; }
.pmc-home .pmc-home__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pmc-home .pmc-home__values article { padding-top: 18px; border-top: 2px solid var(--home-gold); }
.pmc-home .pmc-home__values span { color: var(--home-gold-deep); font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.pmc-home .pmc-home__values h3 { margin: 12px 0 8px; font-size: 1.4rem; }
.pmc-home .pmc-home__values p { margin: 0; color: var(--home-muted); font-size: .9rem; }

.pmc-home .pmc-home__sermons { color: var(--home-cream); background: var(--home-charcoal); }
.pmc-home .pmc-home__feature-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(48px, 9vw, 120px); }
.pmc-home .pmc-home__media { position: relative; min-height: 460px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle, rgba(232,178,42,.22), transparent 36%), linear-gradient(135deg, #27241c, #0d0d0d); box-shadow: var(--home-shadow); }
.pmc-home .pmc-home__media::before,
.pmc-home .pmc-home__media::after { position: absolute; inset: 9%; border: 1px solid rgba(232,178,42,.17); content: ""; transform: rotate(8deg); }
.pmc-home .pmc-home__media::after { transform: rotate(-7deg); }
.pmc-home .pmc-home__media img { width: 180px; opacity: .34; filter: sepia(1) saturate(.8); }
.pmc-home .pmc-home__media span { position: absolute; width: 74px; aspect-ratio: 1; padding-left: 5px; display: grid; place-items: center; border-radius: 50%; color: var(--home-charcoal); background: var(--home-gold); }
.pmc-home .pmc-home__feature-grid > div:last-child > p:not(.pmc-home__eyebrow) { max-width: 520px; margin-bottom: 32px; color: #c9c4b9; }

.pmc-home .pmc-home__events { background: var(--home-paper); }
.pmc-home .pmc-home__section-row { margin-bottom: 48px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.pmc-home .pmc-home__section-row h2 { margin-bottom: 0; }
.pmc-home .pmc-home__event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pmc-home .pmc-home__event-grid[hidden] { display: none; }
.pmc-home .pmc-home__event-card { min-height: 270px; padding: 31px; display: flex; flex-direction: column; border: 1px solid var(--home-line); background: #fff; box-shadow: 0 12px 34px rgba(34,27,12,.07); }
.pmc-home .pmc-home__event-date { width: 64px; margin-bottom: 32px; padding-bottom: 12px; display: grid; border-bottom: 3px solid var(--home-gold); color: var(--home-gold-deep); font-weight: 700; line-height: 1; text-align: center; text-transform: uppercase; }
.pmc-home .pmc-home__event-date strong { color: var(--home-charcoal); font: 700 2rem var(--font-serif, Georgia, serif); }
.pmc-home .pmc-home__event-kicker { margin: 0 0 8px; color: var(--home-gold-deep); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pmc-home .pmc-home__event-card h3 { margin: 0 0 12px; font-size: 1.4rem; }
.pmc-home .pmc-home__event-card > p:not(.pmc-home__event-kicker) { color: var(--home-muted); font-size: .9rem; }
.pmc-home .pmc-home__event-card a { margin-top: auto; align-self: start; }
.pmc-home .pmc-home__event-card--status { grid-column: 1 / -1; min-height: 190px; justify-content: center; align-items: center; text-align: center; border-style: dashed; box-shadow: none; }

.pmc-home .pmc-home__featured-events { margin-bottom: 8px; }
.pmc-home .pmc-home__featured-track { min-height: 460px; }
.pmc-home .pmc-home__featured-slide { min-height: 460px; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid var(--home-line); background: #fff; box-shadow: var(--home-shadow); }
.pmc-home .pmc-home__featured-slide[hidden] { display: none; }
.pmc-home .pmc-home__featured-image-link { min-height: 0; display: grid; place-items: center; overflow: hidden; background: var(--home-cream); }
.pmc-home .pmc-home__featured-image { width: 100%; height: min(62vh, 560px); display: block; object-fit: contain; }
.pmc-home .pmc-home__featured-content { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.pmc-home .pmc-home__featured-content h3 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; }
.pmc-home .pmc-home__featured-content > p:not(.pmc-home__event-kicker) { margin: 0 0 14px; color: var(--home-muted); }
.pmc-home .pmc-home__featured-date { font-weight: 700; }
.pmc-home .pmc-home__featured-location { font-size: .92rem; }
.pmc-home .pmc-home__featured-content .pmc-home__button { margin-top: 12px; align-self: flex-start; }
.pmc-home .pmc-home__featured-controls { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.pmc-home .pmc-home__featured-control { width: 44px; height: 44px; border: 2px solid var(--home-charcoal); border-radius: 50%; color: var(--home-charcoal); background: transparent; font: inherit; font-size: 1.25rem; cursor: pointer; }
.pmc-home .pmc-home__featured-control:hover { color: #fff; background: var(--home-charcoal); }
.pmc-home .pmc-home__featured-control:focus-visible { outline: 3px solid var(--home-gold); outline-offset: 3px; }
.pmc-home .pmc-home__featured-status { min-width: 3.5rem; color: var(--home-muted); font-weight: 700; text-align: center; }

.pmc-home .pmc-home__youth { background: var(--home-cream); }
.pmc-home .pmc-home__youth-panel { padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(28px, 5vw, 65px); background: var(--home-gold); box-shadow: var(--home-shadow); }
.pmc-home .pmc-home__youth-mark { width: 118px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; border: 2px solid var(--home-charcoal); border-radius: 50%; font: 700 2.2rem/.8 var(--font-serif, Georgia, serif); text-align: center; transform: rotate(-5deg); }
.pmc-home .pmc-home__youth-mark span { font: 700 .78rem/1 var(--font-sans, system-ui, sans-serif); letter-spacing: .12em; text-transform: uppercase; }
.pmc-home .pmc-home__youth h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.5rem); }
.pmc-home .pmc-home__youth p:last-child { max-width: 650px; margin-bottom: 0; }
.pmc-home .pmc-home__youth .pmc-home__eyebrow { color: #654700; }

.pmc-home .pmc-home__connect { padding: 80px 0; color: #fff; background: #2a2418; }
.pmc-home .pmc-home__connect-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.pmc-home .pmc-home__connect h2 { max-width: 720px; margin-bottom: 0; font-size: clamp(2.1rem, 4vw, 3.8rem); }

@media (max-width: 900px) {
  /* Show the full branded landscape on phones/tablets in either orientation.
     Keep the headline and buttons below it rather than cropping the artwork. */
  .pmc-home .pmc-home__hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .pmc-home .pmc-home__hero-image {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  .pmc-home .pmc-home__hero-shade { display: none; }
  .pmc-home .pmc-home__hero-content {
    width: min(calc(100% - 40px), 1180px);
    padding-top: 34px;
    padding-bottom: 50px;
  }
  .pmc-home .pmc-home__hero h1 {
    font-size: clamp(2.65rem, 6.3vw, 4.5rem);
  }
  .pmc-home .pmc-home__service-grid { padding: 34px 0; grid-template-columns: 1fr 1fr; }
  .pmc-home .pmc-home__service-grid > div:first-child { grid-column: 1 / -1; }
  .pmc-home .pmc-home__about-grid,
  .pmc-home .pmc-home__feature-grid { grid-template-columns: 1fr; }
  .pmc-home .pmc-home__event-grid { grid-template-columns: 1fr 1fr; }
  .pmc-home .pmc-home__featured-slide { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); }
  .pmc-home .pmc-home__youth-panel { grid-template-columns: auto 1fr; }
  .pmc-home .pmc-home__youth-panel .pmc-home__button { grid-column: 2; justify-self: start; }
}

@media (max-width: 640px) {
  .pmc-home .pmc-home__featured-track,
  .pmc-home .pmc-home__featured-slide { min-height: 0; }
  .pmc-home .pmc-home__featured-slide { grid-template-columns: 1fr; }
  .pmc-home .pmc-home__featured-image { height: min(58vh, 500px); }
  .pmc-home .pmc-home__featured-content { padding: 26px 22px 30px; }
  .pmc-home .pmc-home__wrap { width: min(calc(100% - 28px), 1180px); }
  .pmc-home .pmc-home__hero { min-height: 0; }
  .pmc-home .pmc-home__hero-content { padding-bottom: 68px; }
  .pmc-home .pmc-home__hero-content { width: min(calc(100% - 28px), 1180px); }
  .pmc-home .pmc-home__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .pmc-home .pmc-home__service-grid,
  .pmc-home .pmc-home__values,
  .pmc-home .pmc-home__event-grid { grid-template-columns: 1fr; }
  .pmc-home .pmc-home__service-grid > div:first-child { grid-column: auto; }
  .pmc-home .pmc-home__service-time { padding: 18px 0 0; border-top: 1px solid rgba(26,26,26,.22); border-left: 0; }
  .pmc-home .pmc-home__media { min-height: 340px; }
  .pmc-home .pmc-home__section-row,
  .pmc-home .pmc-home__connect-inner { align-items: flex-start; flex-direction: column; }
  .pmc-home .pmc-home__event-card--status { grid-column: auto; }
  .pmc-home .pmc-home__youth-panel { grid-template-columns: 1fr; }
  .pmc-home .pmc-home__youth-panel .pmc-home__button { grid-column: auto; }
  .pmc-home .pmc-home__youth-mark { width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .pmc-home *, .pmc-home *::before, .pmc-home *::after { transition: none !important; }
}

/* Keep section destinations clear of the fixed header. */
html {
  scroll-padding-top: calc(var(--site-alert-height, 0px) + 6rem);
}

/* Visible on both light and dark backgrounds. */
.pmc-home a:focus-visible,
.pmc-home button:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #f7f3e8;
}

/* Navbar feedback for mouse, keyboard, and pressing a link. */
.pmc-home .nav__link {
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
}

.pmc-home .nav__link:hover,
.pmc-home .nav__link:focus-visible,
.pmc-home .nav__link:active {
  color: #1a1a1a;
  background-color: #e8b22a;
  text-decoration-line: underline;
}

body.pmc-home {
  --home-gold-deep: #886008;
}

.pmc-home .pmc-home__service-strip .pmc-home__eyebrow,
.pmc-home .pmc-home__youth .pmc-home__eyebrow {
  color: #5c4000;
}


