/* Serra Atlanta — the parts theme.json cannot express. */

:root {
  --serra-radius: 12px;
  --serra-shadow: 0 1px 2px rgba(17,29,49,.05), 0 10px 30px rgba(17,29,49,.08);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
::selection { background: var(--wp--preset--color--gold-light); color: var(--wp--preset--color--ink); }
a:focus-visible, button:focus-visible, .wp-element-button:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; border-radius: 4px; }
img { height: auto; }

/* ── Header ───────────────────────────────────────────────────────── */
.serra-sticky { position: sticky; top: 0; z-index: 50; }
.admin-bar .serra-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .serra-sticky { top: 0; position: relative; } }
.serra-header { border-bottom: 1px solid var(--wp--preset--color--stone); transition: box-shadow .2s; }
.serra-sticky.is-scrolled .serra-header { box-shadow: 0 6px 20px rgba(17,29,49,.08); }
.serra-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none !important; color: var(--wp--preset--color--navy); min-width: 0; }
.serra-brand__mark { width: 46px; height: 46px; flex: none; }
.serra-brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.serra-brand__name { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.6rem; letter-spacing: .01em; }
.serra-brand__tag { font-size: .78rem; color: var(--wp--preset--color--muted); letter-spacing: .02em; }
.serra-brand--light { color: var(--wp--preset--color--white); }
.serra-brand--light .serra-brand__tag { color: var(--wp--preset--color--gold-light); }
.serra-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--navy); }
.serra-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--terracotta); }
.serra-header .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--stone) !important; border-radius: 10px;
  padding: .4rem 0 !important; box-shadow: var(--serra-shadow); min-width: 240px !important; }
.serra-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .5rem 1.1rem !important; font-weight: 500; }
@media (max-width: 1100px) { .serra-brand__tag { display: none; } }
@media (max-width: 1000px) { .serra-header__cta .is-style-outline-navy { display: none; } }
@media (max-width: 600px) { .serra-brand__name { font-size: 1.35rem; } .serra-brand__mark { width: 40px; height: 40px; } }
.wp-block-navigation__responsive-container.is-menu-open { padding: 2rem 1.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: left; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; padding: .25rem 0 .5rem 1rem !important;
  border-left: 2px solid var(--wp--preset--color--gold) !important; border-radius: 0; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.05rem; padding: .35rem 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; }
.wp-block-navigation__responsive-container.is-menu-open a { color: var(--wp--preset--color--white) !important; }

/* ── Buttons and small type ───────────────────────────────────────── */
.wp-block-button.is-style-outline-navy .wp-block-button__link { background: transparent; color: var(--wp--preset--color--navy); border: 2px solid var(--wp--preset--color--navy); padding: calc(.8em - 2px) calc(1.5em - 2px); }
.wp-block-button.is-style-outline-navy .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }
.wp-block-button.is-style-light .wp-block-button__link { background: var(--wp--preset--color--white); color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-light .wp-block-button__link:hover { background: var(--wp--preset--color--gold-light); }
.wp-block-button__link { transition: background .15s, color .15s, transform .15s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-eyebrow, .serra-eyebrow { font-family: var(--wp--preset--font-family--sans) !important; font-size: .82rem !important; font-weight: 700 !important;
  letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--terracotta); margin-bottom: .5rem; }
.serra-eyebrow a { text-decoration: none; }
.is-style-checks { list-style: none; padding-left: 0; }
.is-style-checks li { position: relative; padding-left: 2rem; margin-bottom: .55rem; }
.is-style-checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--wp--preset--color--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat; }

/* ── Sections ─────────────────────────────────────────────────────── */
.is-style-card { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--stone); border-radius: var(--serra-radius);
  box-shadow: var(--serra-shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.is-style-band { background: var(--wp--preset--color--parchment); }
.serra-page-hero { border-bottom: 1px solid var(--wp--preset--color--stone); position: relative; overflow: hidden; }
.serra-page-hero::after { content: ""; position: absolute; right: max(1rem, calc(50% - 640px)); bottom: -30px; width: 230px; height: 230px; opacity: .09; pointer-events: none;
  background: url("../images/mark-outline.svg") center/contain no-repeat; }
.serra-page-hero .wp-block-post-title { margin: 0; }
.serra-page-hero__lead { font-size: 1.25rem; color: var(--wp--preset--color--muted); max-width: 46rem; margin-top: .75rem; }
.serra-page-hero__lead p { margin: 0; }
.serra-page-content > :first-child { margin-top: 0; }
.serra-page-content h2 { margin-top: 2.5rem; }

/* Home hero: the Carmel mission at dusk */
.serra-hero { position: relative; }
.serra-hero .wp-block-cover__inner-container { width: 100%; max-width: 1180px; margin-inline: auto; }
.serra-hero h1 { color: var(--wp--preset--color--white); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; max-width: 18ch; text-wrap: balance; }
.serra-hero__lead { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 36rem; color: #f1ead9; }
.serra-hero .is-style-eyebrow { color: var(--wp--preset--color--gold-light); }
.serra-hero__credit { font-size: .72rem; color: rgba(255,255,255,.62); margin: 2.5rem 0 0 !important; }
.serra-hero__credit a { color: inherit; }

/* Feature cards (ministries, ways to help) */
.serra-cards { gap: 1.25rem !important; }
.serra-card { box-sizing: border-box; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--stone); border-radius: var(--serra-radius);
  padding: 1.5rem 1.5rem 1.25rem; box-shadow: var(--serra-shadow); display: flex; flex-direction: column; height: 100%;
  transition: transform .2s, box-shadow .2s; }
.serra-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(17,29,49,.06), 0 18px 40px rgba(17,29,49,.12); }
.serra-card h3 { font-size: 1.45rem; margin: .4rem 0 .4rem; }
.serra-card h3 a { color: inherit; text-decoration: none; }
.serra-card h3 a::after { content: ""; position: absolute; inset: 0; }
.serra-card { position: relative; }
.serra-card p { margin: 0; color: #3d434c; }
.serra-card .serra-card__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--wp--preset--color--parchment); color: var(--wp--preset--color--terracotta); }
.serra-card .serra-card__icon svg { width: 24px; height: 24px; }
.wp-block-column > .serra-card { height: 100%; }

/* Figures */
.serra-stats { text-align: center; }
.serra-stat { font-family: var(--wp--preset--font-family--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; color: var(--wp--preset--color--gold-light); margin: 0; }
.serra-stat-label { margin: .35rem 0 0; font-size: .95rem; color: var(--wp--preset--color--stone); }

/* Prayer band */
.serra-prayer { text-align: center; }
.serra-prayer p.serra-prayer__text { font-family: var(--wp--preset--font-family--serif); font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.45; font-style: italic; max-width: 46rem; margin-inline: auto; }

/* Image framing */
.serra-portrait img { border-radius: var(--serra-radius); box-shadow: var(--serra-shadow); }
.serra-frame img { border-radius: var(--serra-radius); }

/* Leadership */
.serra-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.serra-people li { background: var(--wp--preset--color--parchment); border-radius: 10px; padding: 1rem 1.15rem; }
.serra-people strong { display: block; font-family: var(--wp--preset--font-family--serif); font-size: 1.3rem; color: var(--wp--preset--color--navy); }
.serra-people span { font-size: .92rem; color: var(--wp--preset--color--muted); }

/* Events archive list */
.serra-event-row { border-bottom: 1px solid var(--wp--preset--color--stone); padding: 1.4rem 0; }
.serra-event-row .wp-block-post-title { margin: 0 0 .25rem; }
.serra-event-row .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--navy); }
.serra-event-row .wp-block-post-title a:hover { color: var(--wp--preset--color--terracotta); }
.serra-events-links { margin-top: 2rem; font-weight: 600; }

/* Footer */
.serra-footer { font-size: 1rem; }
.serra-footer .serra-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.serra-footer a { text-decoration: none; }
.serra-footer a:hover { text-decoration: underline; color: var(--wp--preset--color--white) !important; }
.serra-footer__prayer { color: var(--wp--preset--color--gold-light); }
.serra-footer h2 { margin-top: .5rem; }

@media (max-width: 781px) {
  .serra-hero h1 { max-width: none; }
  .serra-page-hero::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .serra-card, .wp-block-button__link, .serra-btn { transition: none; }
  .serra-card:hover, .wp-block-button__link:hover { transform: none; }
}

/* Numbered steps (Elijah Cup) */
.serra-steps { list-style: none; counter-reset: step; padding-left: 0; }
.serra-steps li { counter-increment: step; position: relative; padding-left: 3.2rem; margin-bottom: 1.1rem; min-height: 2.4rem; }
.serra-steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--wp--preset--color--navy); color: var(--wp--preset--color--gold-light);
  font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.25rem; }
.serra-hero__credit a { text-decoration: underline; }

/* Home: recent highlights (empty until an event has photos) */
.serra-home-highlights:not(:has(.serra-highlights)) { display: none; }
.serra-home-highlights { padding-top: 0; }
