/* Pathway Church — design refresh (Nov 2026). Loads after site.css and overrides it. */
:root {
  --deep: #3D0F1C; --dark: #2A1A1E; --sand: #F6F1EC;
  --shadow-sm: 0 8px 24px rgba(61,15,28,.07);
  --shadow-md: 0 14px 34px rgba(61,15,28,.10);
  --shadow-lg: 0 22px 50px rgba(61,15,28,.16);
  --radius: 18px;
}

/* ---------- Utility bar + header ---------- */
.utility { background: var(--accent); }
.utility-in { color: #fff; align-items: center; }
.utility-links { align-items: center; }
.utility-links a { color: #fff; }
.utility-links a:hover { color: #fff; }
.utility-social { display: inline-flex; align-items: center; gap: 4px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.35); }
.utility-social a { display: inline-flex; padding: 4px; line-height: 0; }
.site-header { border-bottom: 0; box-shadow: 0 2px 18px rgba(61,15,28,.08); }
.main-nav .btn { box-shadow: 0 6px 16px rgba(121,32,54,.25); padding-left: 24px; padding-right: 24px; }

/* ---------- Buttons ---------- */
.btn-shadow { box-shadow: 0 8px 20px rgba(121,32,54,.22); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--accent); border-color: #fff; }
.hero-full .btn-light:hover { background: var(--rose); }

/* ---------- Section rhythm ---------- */
.band-sand { background: var(--sand); }
.band-white { border-top: 0; border-bottom: 0; }
.section { padding-top: 96px; padding-bottom: 96px; }
.sec-title { text-align: center; margin: 0 auto 52px; max-width: 780px; }
.sec-title img { width: 40px; height: auto; margin: 0 auto 10px; }
.sec-title .kicker { margin-bottom: 8px; }
.sec-title h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 0; }
.center-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-weight: 700; font-size: 17px; margin: 44px 0 0; text-align: center; }
.center-links .btn { font-size: 17px; }

/* ---------- Cards get soft shadows instead of borders ---------- */
.card, .photo-card, .event-card, .list-card, .group-card, .notice { border-color: transparent; box-shadow: var(--shadow-sm); }
a.card:hover, a.photo-card:hover, .event-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.photo-card { transition: transform .2s, box-shadow .2s; }
.photo-card .body { padding: 26px; }
.photo-card .more { display: inline-block; margin-top: 14px; font-size: 16px; color: var(--accent); }
.card-top { border-top: 4px solid var(--accent) !important; }
.tile { background: var(--cream); border-radius: var(--radius); padding: 30px 26px; transition: transform .2s, box-shadow .2s; }
a.tile:hover { box-shadow: var(--shadow-md); }
.tile-icon { width: 60px; height: 60px; border-radius: 999px; background: var(--rose); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.tile h3 { margin-top: 18px; }
.pill { background: var(--accent); color: #fff; }

/* ---------- Inside pages: header band ---------- */
.page-hero { background: var(--white); padding: 64px 0 56px; margin-bottom: 8px; box-shadow: inset 0 -1px 0 var(--line); }
.page-hero-img { box-shadow: var(--shadow-lg); border-radius: var(--radius); }

/* ---------- Home: full-width hero ---------- */
.hero-full { position: relative; background: #4A1524; color: #fff; overflow: hidden; }
.hero-full .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-full::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(61,15,28,.86) 0%, rgba(74,21,36,.66) 55%, rgba(74,21,36,.38) 100%); }
.hero-full-in { position: relative; z-index: 1; padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(140px, 15vw, 190px); }
.hero-full .kicker { color: #F2D6DD; letter-spacing: 2px; }
.hero-full h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.07; max-width: 820px; margin-bottom: 22px; color: #fff; }
.hero-full .lead { color: #F4E6E9; font-size: 21px; max-width: 640px; margin-bottom: 36px; }

/* ---------- Home: next-service card ---------- */
.next-wrap { position: relative; z-index: 2; margin-top: -100px; }
.next-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 30px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.next-text { flex: 1 1 360px; min-width: 0; }
.next-text .kicker { margin-bottom: 6px; }
.next-title { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; margin: 0 0 6px; }
.next-text .small { margin-bottom: 16px; }
.countdown { display: flex; flex-wrap: wrap; gap: 14px; }
.cd-ring { width: 92px; height: 92px; border-radius: 999px; border: 2px solid var(--accent); background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cd-n { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-l { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.live-pill { display: inline-flex; align-items: center; gap: 14px; background: var(--rose); border-radius: 999px; padding: 16px 28px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 24px; }
.live-pill .dot { width: 14px; height: 14px; border-radius: 999px; background: var(--accent); animation: pw-pulse 1.6s infinite; }
@keyframes pw-pulse { 50% { opacity: .35; } }
.next-notices { margin-top: 18px; }
.next-notices .notice:last-child { margin-bottom: 0; }

/* ---------- Home: way of Jesus ---------- */
.way-circles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 44px 32px; text-align: center; }
.way-circles > div { display: flex; flex-direction: column; align-items: center; }
.way-circles .circle { width: 104px; height: 104px; border-radius: 999px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px var(--rose); }
.way-circles .icon { stroke-width: 1.6; }
.way-circles h3 { font-size: 26px; margin: 26px 0 8px; }
.way-circles p { font-size: 17px; color: var(--muted); max-width: 260px; margin: 0; }

/* ---------- Home: first Sunday + verse card ---------- */
.visit-split { align-items: stretch; gap: 56px; }
.visit-text { flex: 1 1 520px; }
.visit-text h2 { margin-bottom: 14px; }
.visit-text .lead { margin-bottom: 34px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px 32px; }
.step { display: flex; gap: 16px; }
.step-n { flex: 0 0 44px; height: 44px; border-radius: 999px; background: var(--rose); color: var(--accent); font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 21px; margin: 4px 0 6px; }
.step p { font-size: 17px; color: var(--muted); margin: 0; }
.verse-card { flex: 1 1 400px; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); background: var(--accent-dk); }
.verse-card > img { width: 100%; flex: 1 1 260px; min-height: 240px; object-fit: cover; }
.verse-panel { position: relative; background: var(--accent-dk); color: #fff; padding: 36px 36px 22px; }
.quote-mark { position: absolute; top: -20px; left: 36px; color: #E7B9C4; }
.verse { margin: 6px 0 10px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.verse[hidden] { display: none; }
.verse p { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; margin: 0; }
.verse cite { font-style: normal; font-weight: 700; font-size: 16px; color: #F2D6DD; }
.verse-dots { display: flex; justify-content: flex-end; gap: 2px; }
.verse-dots button { border: 0; background: transparent; padding: 14px 4px; cursor: pointer; line-height: 0; }
.verse-dots span { display: block; width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.4); transition: width .25s, background .25s; }
.verse-dots [aria-pressed="true"] span { width: 28px; background: #fff; }

/* ---------- Home: sermons ---------- */
.sermon-feature { display: flex; flex-wrap: wrap; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.sf-media { flex: 3 1 520px; min-width: 0; position: relative; background: var(--ink); overflow: hidden; min-height: 300px; }
.sf-media .video-thumb, .sf-media .video { border-radius: 0; width: 100%; height: 100%; min-height: 300px; aspect-ratio: auto; }
.sf-media .video-thumb img { position: absolute; inset: 0; }
.media-rail { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); z-index: 2; display: flex; flex-direction: column; gap: 4px; background: var(--deep); border-radius: 999px; padding: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.media-rail a { width: 46px; height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .15s; }
.media-rail a:first-child, .media-rail a:hover { background: var(--accent); color: #fff; }
.sf-media .video-thumb.title-card .playbtn { display: none; }
.sf-media .video-thumb .tc-text { padding-right: 96px; }
.sf-info { flex: 2 1 380px; min-width: 0; padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.sf-info h3 { font-size: clamp(28px, 2.6vw, 34px); margin: 0; }
.sf-info p { margin: 0; }
.sf-info .btn-row { margin-top: 10px; }
.sermon-earlier { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; margin-top: 24px; }
.sermon-mini { display: flex; align-items: center; gap: 20px; background: #fff; border-radius: var(--radius); padding: 20px 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.sermon-mini:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sm-date { flex: 0 0 64px; height: 72px; border-radius: 12px; background: var(--rose); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1; }
.sm-date span { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin-bottom: 4px; }
.sm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sm-kicker { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.sm-title { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.25; }
.sm-meta { font-size: 15px; color: var(--muted-2); }
.sm-go { flex: 0 0 44px; height: 44px; border-radius: 999px; border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.sermon-mini:hover .sm-go { background: var(--accent); color: #fff; }

/* ---------- Home: pastor ---------- */
.pastor-band { gap: 64px; }
.pastor-photo { flex: 1 1 340px; width: 100%; max-height: 440px; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); box-shadow: 18px 18px 0 var(--rose); }
.pastor-band h2 { margin-bottom: 14px; }
.pastor-band .lead { margin-bottom: 26px; }

/* ---------- Home: events carousel ---------- */
.events { overflow: hidden; }
.events .section-head { margin-bottom: 36px; }
.events .section-head .kicker { margin-bottom: 6px; }
.events .links { align-items: center; }
.ev-arrows { display: inline-flex; gap: 10px; margin-left: 6px; }
.ev-arrows button { width: 52px; height: 52px; border-radius: 999px; border: 2px solid var(--accent); background: #fff; color: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ev-arrows .ev-next { background: var(--accent); color: #fff; }
.ev-arrows button:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }
.ev-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 20px 60px; margin: -20px -20px -40px; scroll-padding-left: 20px; scrollbar-width: none; }
.ev-track::-webkit-scrollbar { display: none; }
.ev-card { flex: 0 0 min(290px, 82%); scroll-snap-align: start; min-height: 290px; display: flex; flex-direction: column; background: #fff; color: var(--ink); text-decoration: none; border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .25s, background .25s, box-shadow .25s, color .25s; }
.ev-card:hover { color: var(--ink); box-shadow: var(--shadow-md); }
@media (min-width: 1000px) { .ev-card { flex-basis: calc((100% - 66px) / 4); } }
/* Three or fewer events: spread them across the row */
@media (min-width: 1000px) { .ev-card:first-child:nth-last-child(-n+3), .ev-card:first-child:nth-last-child(-n+3) ~ .ev-card { flex: 1 1 0; } }
.ev-date { width: 72px; height: 82px; border-radius: 12px; background: var(--rose); display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 22px; transition: background .25s; }
.ev-date .mon { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--accent); }
.ev-date .day { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; }
.ev-title { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.25; margin-bottom: 8px; }
.ev-when { font-size: 16px; color: var(--muted-2); margin-bottom: 22px; }
.ev-more { margin-top: auto; align-self: flex-start; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 15px; padding: 8px 20px; border-radius: 999px; }
.ev-card.is-active { background: var(--accent); color: #fff; transform: translateY(-14px); box-shadow: 0 24px 48px rgba(61,15,28,.28); }
.ev-card.is-active .ev-date { background: rgba(255,255,255,.16); }
.ev-card.is-active .ev-date .mon, .ev-card.is-active .ev-when { color: #F4E6E9; }
.ev-card.is-active .ev-more { background: #fff; border-color: #fff; }

/* ---------- Home: life groups ---------- */
.group-list { display: flex; flex-direction: column; gap: 12px; }
.group-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 18px 22px; background: var(--cream); border-radius: 14px; }
.group-row .when { flex: 0 0 auto; min-width: 190px; background: #fff; color: var(--accent); font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; text-align: center; box-shadow: 0 2px 8px rgba(61,15,28,.06); }
.group-row .what { flex: 1 1 260px; min-width: 0; }
.group-row .what strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 20px; }
.group-row .what span { font-size: 16px; color: var(--muted-2); }

/* ---------- Home: give split ---------- */
.give-split { display: flex; flex-wrap: wrap; background: #fff; }
.give-split > img { flex: 1 1 480px; min-width: 0; min-height: 420px; max-height: 560px; object-fit: cover; }
.give-text { flex: 1 1 480px; min-width: 0; padding: 80px 7%; display: flex; flex-direction: column; justify-content: center; }
.give-text h2 { margin-bottom: 14px; }
.give-text .muted { max-width: 520px; margin-bottom: 30px; }

/* ---------- Every page: partners, keep in touch, footer ---------- */
.partners { background: var(--cream); border-top: 1px solid var(--line); }
.partners-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 52px; padding-top: 36px; padding-bottom: 36px; }
.partners-label { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); }
.partners a { font-family: var(--serif); font-weight: 600; font-size: 21px; color: #6B5F57; text-decoration: none; }
.partners a:hover { color: var(--accent); }
.touch-band { background: var(--accent); color: #fff; }
.touch-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 48px; padding-bottom: 48px; }
.touch-text { flex: 1 1 360px; min-width: 0; }
.touch-text h2 { font-size: 34px; margin: 0 0 6px; }
.touch-text p { margin: 0; color: #F4E6E9; }
.touch-text a { color: #fff; font-weight: 700; }
.touch-form { flex: 1 1 460px; min-width: 0; display: flex; flex-wrap: wrap; background: #fff; border-radius: 999px; padding: 5px; }
.touch-form input[type=email] { flex: 1 1 200px; min-width: 0; border: 0; border-radius: 999px; background: #fff; }
.touch-form .btn { background: var(--deep); border-color: var(--deep); }
.touch-form .btn:hover { background: var(--ink); border-color: var(--ink); }
@media (max-width: 520px) {
  .touch-form { border-radius: 18px; gap: 6px; }
  .touch-form .btn { width: 100%; }
}
.site-footer { background: var(--dark); color: #E9DCDF; }
.site-footer a { color: #E9DCDF; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-in { padding-top: 64px; padding-bottom: 36px; }
.footer-brand img { height: 84px; margin-bottom: 20px; }
.footer-brand a { color: #F2C9D3; }
.footer-col h2 { color: #fff; font-size: 20px; }
.footer-col a { color: #E9DCDF; }
.footer-base { border-top-color: #4A3439; color: #C9B6BB; }
.footer-base a { color: #C9B6BB; }

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .next-wrap { margin-top: -80px; }
  .next-card { padding: 24px 22px; }
  .cd-ring { width: 62px; height: 62px; }
  .cd-n { font-size: 22px; }
  .cd-l { font-size: 9.5px; letter-spacing: .5px; }
  .countdown { gap: 8px; flex-wrap: nowrap; }
  .way-circles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .way-circles .circle { width: 78px; height: 78px; box-shadow: 0 0 0 6px var(--rose); }
  .way-circles .icon { width: 36px; height: 36px; }
  .way-circles h3 { font-size: 22px; margin-top: 20px; }
  .way-circles p { font-size: 15.5px; }
  .notice { padding: 18px 20px; }
  .notice-text { flex-direction: column; align-items: flex-start; gap: 8px; flex-basis: 100%; }
  .media-rail { top: auto; bottom: 12px; right: 50%; transform: translateX(50%); flex-direction: row; }
  .sf-media .video-thumb .tc-text { padding-right: clamp(14px, 3vw, 28px); padding-bottom: 76px; }
  .sf-info { padding: 28px 24px; }
  .give-text { padding: 56px 24px; }
  .pastor-photo { box-shadow: 10px 10px 0 var(--rose); }
  .verse-panel { padding: 32px 24px 18px; }
}

@media print {
  .partners, .touch-band { display: none !important; }
}

/* About dropdown */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-block; }
.nav-drop-top::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub-menu { display: none; position: absolute; top: 100%; left: -18px; min-width: 180px; background: var(--white); border-radius: 12px; box-shadow: 0 14px 30px rgba(31,27,28,.14); padding: 8px 0; z-index: 20; }
.nav-drop:hover .sub-menu, .nav-drop:focus-within .sub-menu { display: block; }
.main-nav .sub-menu a:not(.btn) { display: block; padding: 10px 18px; border-bottom: 0; white-space: nowrap; }
.main-nav .sub-menu a:not(.btn):hover, .main-nav .sub-menu a[aria-current="page"]:not(.btn) { color: var(--accent); background: rgba(121,32,54,.06); border-bottom: 0; }
@media (max-width: 1060px) {
  .nav-drop > a { display: block; }
  .nav-drop-top::after { display: none; }
  .sub-menu { display: block; position: static; min-width: 0; box-shadow: none; border-radius: 0; padding: 0; background: none; }
  .sub-menu .sub-dup { display: none !important; }
  .main-nav .sub-menu a:not(.btn) { padding: 13px 0 13px 20px; border-bottom: 1px solid var(--line); font-weight: 500; }
  .main-nav .sub-menu a:not(.btn):hover, .main-nav .sub-menu a[aria-current="page"]:not(.btn) { background: none; border-bottom: 1px solid var(--line); }
}
@media print { .sub-menu { display: none !important; } }
