/*
Theme Name: St Luke's Revesby – Welcome Home
Theme URI: https://stlukerevesby.com/
Author: OpenAI
Description: A warm, modern, accessible and promotional WordPress theme for St Luke the Evangelist Parish, Revesby. Designed for simple navigation, families, newcomers, parish life, Mass times and spiritual engagement.
Version: 2.1.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: stlukes-welcome
*/

:root {
  --ink: #16312c;
  --muted: #5e6e69;
  --cream: #fffaf1;
  --paper: #ffffff;
  --sage: #eaf4ee;
  --green: #1f6955;
  --green-dark: #12483b;
  --gold: #c8942f;
  --gold-soft: #f6e8c4;
  --rose: #a84552;
  --sky: #eaf3f7;
  --line: #dce5e1;
  --shadow: 0 18px 50px rgba(20, 64, 52, .12);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1180px;
  --font-main: "Cormorant Garamond", Georgia, serif;
  --font-display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --font-script: "Great Vibes", cursive;
}

/* Poster-inspired typography */
.poster-script {
  margin: 0 0 20px;
  color: var(--gold-soft);
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .01em;
}
.hero h1, .page-header h1, .section-title, .promo h2 {
  font-optical-sizing: auto;
  font-weight: 500;
}
.hero h1 { text-transform: uppercase; }
.brand-copy strong { font-family: var(--font-display); font-weight: 600; letter-spacing: .015em; }
.mass-large { font-family: var(--font-display); font-weight: 500 !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--green-dark); }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: fixed !important; width: auto; height: auto; clip: auto; margin: 12px; padding: 12px 16px; z-index: 9999; background: #fff; }

.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 36px), 790px); margin-inline: auto; }
.section { padding: 84px 0; }
.section--soft { background: var(--sage); }
.section--white { background: var(--paper); }
.section--dark { color: #fff; background: var(--green-dark); }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-family: var(--font-main); font-size: .9rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-title { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.12; letter-spacing: -.025em; }
.lead { max-width: 760px; color: var(--muted); font-size: 1.18rem; }
.section--dark .lead { color: rgba(255,255,255,.78); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 12px 20px; border: 2px solid transparent; border-radius: 999px;
  background: var(--green); color: #fff; font-family: var(--font-main); font-size: 1.02rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px rgba(31,105,85,.18); transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { color: #fff; background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31,105,85,.25); }
.button--gold { background: var(--gold); color: #1b291f; }
.button--gold:hover { background: #ddb34e; color: #1b291f; }
.button--outline { color: var(--green); background: transparent; border-color: var(--green); box-shadow: none; }
.button--outline:hover { color: #fff; }
.button--light { color: var(--green-dark); background: #fff; }
.button--light:hover { color: var(--green-dark); background: var(--gold-soft); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.topbar { color: #fff; background: var(--green-dark); font-size: .87rem; }
.topbar__inner { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 18px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,250,241,.96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(22,49,44,.08); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); min-width: 250px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; color: #fff; background: var(--green); border-radius: 50% 50% 44% 56%; font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; }
.brand-copy strong { display: block; font-family: var(--font-display); font-size: 1.16rem; line-height: 1.1; }
.brand-copy span { color: var(--muted); font-size: .76rem; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 10px 11px; color: var(--ink); font-size: 1rem; font-weight: 700; text-decoration: none; border-radius: 999px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--green-dark); background: var(--sage); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; color: var(--ink); background: var(--sage); font-weight: 900; }
.header-cta { white-space: nowrap; }

.hero { position: relative; overflow: hidden; padding: 90px 0 72px; background: linear-gradient(115deg, rgba(18,72,59,.97) 0%, rgba(31,105,85,.91) 52%, rgba(31,105,85,.65) 100%); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .19; background-image: radial-gradient(circle at 15% 20%, #fff 0 2px, transparent 3px), radial-gradient(circle at 85% 65%, #fff 0 2px, transparent 3px); background-size: 44px 44px, 70px 70px; }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -220px; top: -260px; border: 90px solid rgba(255,255,255,.06); border-radius: 50%; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { max-width: 780px; margin: 0 0 22px; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.045em; }
.hero__subtitle { max-width: 680px; margin: 0 0 30px; color: rgba(255,255,255,.88); font-size: clamp(1.12rem, 2vw, 1.42rem); }
.hero__photo { position: relative; min-height: 450px; border: 8px solid rgba(255,255,255,.16); border-radius: 46% 54% 48% 52% / 42% 44% 56% 58%; background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); box-shadow: 0 30px 70px rgba(0,0,0,.2); overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; min-height: 450px; object-fit: cover; }
.hero__photo-placeholder { min-height: 450px; display: grid; align-content: center; justify-items: center; padding: 42px; text-align: center; }
.hero__photo-placeholder .cross { font-family: var(--font-display); font-size: 7rem; line-height: .8; color: var(--gold-soft); }
.hero__photo-placeholder strong { margin-top: 20px; font-size: 1.5rem; }
.hero__note { position: absolute; left: -35px; bottom: 26px; max-width: 280px; padding: 18px 20px; color: var(--ink); background: #fff; border-radius: 18px; box-shadow: var(--shadow); font-size: .92rem; }
.hero__note strong { display: block; color: var(--green-dark); font-size: 1.06rem; }

.quick-actions { position: relative; z-index: 3; margin-top: -34px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.quick-card { min-height: 158px; padding: 26px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); transition: background .2s, transform .2s; }
.quick-card:last-child { border: 0; }
.quick-card:hover { color: var(--ink); background: var(--gold-soft); transform: translateY(-4px); }
.quick-card__icon { display: block; margin-bottom: 11px; font-size: 1.75rem; }
.quick-card strong { display: block; margin-bottom: 5px; font-size: 1.08rem; }
.quick-card span { color: var(--muted); font-size: .88rem; }

.mass-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: start; }
.mass-feature { padding: 34px; color: #fff; background: var(--green); border-radius: var(--radius); box-shadow: var(--shadow); }
.mass-feature h3 { margin: 0; font-family: var(--font-display); font-size: 2rem; }
.mass-feature .mass-large { margin: 8px 0 2px; color: var(--gold-soft); font-size: 3.4rem; font-weight: 850; line-height: 1; }
.mass-feature p { margin: 8px 0 23px; color: rgba(255,255,255,.8); }
.mass-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.mass-card { padding: 23px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mass-card h3 { margin: 0 0 12px; color: var(--green-dark); font-family: var(--font-display); font-size: 1.3rem; }
.mass-card p { margin: 0; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin-top: 38px; }
.feature-card { position: relative; min-height: 300px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(20,64,52,.06); overflow: hidden; }
.feature-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -45px; bottom: -50px; background: var(--sage); border-radius: 50%; }
.feature-card__icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 28px; background: var(--gold-soft); border-radius: 18px; font-size: 1.7rem; }
.feature-card h3 { position: relative; z-index: 1; margin: 0 0 12px; font-family: var(--font-display); font-size: 1.55rem; }
.feature-card p { position: relative; z-index: 1; color: var(--muted); }
.feature-card a { position: relative; z-index: 1; font-weight: 800; }

.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.welcome-art { min-height: 480px; display: grid; place-items: center; position: relative; background: linear-gradient(145deg, var(--gold-soft), #fff); border-radius: 42px; overflow: hidden; }
.welcome-art::before { content: "☀"; position: absolute; top: 38px; right: 48px; color: var(--gold); font-size: 4.5rem; }
.welcome-art__church { font-family: var(--font-display); color: var(--green); text-align: center; }
.welcome-art__church span { display: block; font-size: 8rem; line-height: 1; }
.welcome-art__church strong { font-size: 1.3rem; }
.quote { margin: 28px 0; padding: 18px 22px; background: var(--sage); border-left: 5px solid var(--gold); border-radius: 0 14px 14px 0; font-family: var(--font-display); font-size: 1.15rem; }

.visit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.visit-step { padding: 25px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.visit-step span { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; background: var(--green); border-radius: 50%; font-weight: 900; }
.visit-step h3 { margin: 0 0 8px; font-size: 1.06rem; }
.visit-step p { margin: 0; color: var(--muted); font-size: .9rem; }

.promo { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; padding: 42px; background: var(--gold-soft); border-radius: var(--radius); }
.promo h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.3rem); }
.promo p { margin: 0; color: #57645f; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.post-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.post-card__thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--sage), var(--gold-soft)); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px; }
.post-card__meta { color: var(--rose); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.post-card h3 { margin: 8px 0 10px; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { color: var(--muted); font-size: .92rem; }

.safeguarding { display: flex; gap: 25px; align-items: flex-start; padding: 30px; color: #fff; background: var(--green-dark); border-radius: var(--radius); }
.safeguarding__icon { flex: 0 0 62px; width: 62px; height: 62px; display: grid; place-items: center; color: var(--green-dark); background: #fff; border-radius: 20px; font-size: 1.8rem; }
.safeguarding h2 { margin: 0 0 8px; font-family: var(--font-display); }
.safeguarding p { margin: 0; color: rgba(255,255,255,.8); font-size: .94rem; }
.safeguarding a { color: var(--gold-soft); }

.site-footer { padding: 64px 0 25px; color: #fff; background: #0c352c; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 45px; }
.site-footer h3 { margin: 0 0 16px; font-family: var(--font-display); font-size: 1.15rem; }
.site-footer p, .site-footer li { color: rgba(255,255,255,.72); font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.55); font-size: .8rem; }

.content-shell { padding: 72px 0; }
.page-header { padding: 66px 0; color: #fff; background: var(--green); }
.page-header h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.5rem); }
.entry-content { background: #fff; padding: clamp(28px, 5vw, 58px); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(20,64,52,.07); }
.entry-content h2, .entry-content h3 { font-family: var(--font-display); }
.entry-content h2 { margin-top: 1.8em; font-size: 2rem; }
.entry-content blockquote { margin: 30px 0; padding: 22px; background: var(--sage); border-left: 5px solid var(--gold); }

@media (max-width: 1000px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; inset: 82px 18px auto; padding: 14px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { padding: 12px 14px; }
  .hero__grid, .mass-grid, .welcome-grid { grid-template-columns: 1fr; }
  .hero__photo { min-height: 350px; max-width: 680px; }
  .hero__photo img, .hero__photo-placeholder { min-height: 350px; }
  .hero__note { left: 20px; }
  .quick-grid, .visit-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-card:nth-child(2) { border-right: 0; }
  .quick-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__links span:first-child { display: none; }
  .brand-copy span { display: none; }
  .site-branding { min-width: 0; }
  .hero { padding-top: 65px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .hero__photo { min-height: 290px; }
  .hero__photo img, .hero__photo-placeholder { min-height: 290px; }
  .hero__note { position: relative; left: auto; bottom: auto; margin: -55px 18px 0; }
  .quick-grid, .mass-list, .card-grid, .visit-grid, .posts-grid, .footer-grid { grid-template-columns: 1fr; }
  .quick-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .promo { grid-template-columns: 1fr; padding: 30px; }
  .safeguarding { display: block; }
  .safeguarding__icon { margin-bottom: 18px; }
  .footer-bottom { display: block; }
  .section { padding: 62px 0; }
}

/* Security edition: avoids inline presentation attributes in templates. */
.button--outline-light{border-color:#fff;color:#fff}
.button--outline-light:hover,.button--outline-light:focus{background:#fff;color:var(--navy,#19263a)}
