/*
Theme Name: OLSH Welcome Theme
Theme URI: https://olsh.org.au/
Author: OpenAI
Description: A welcoming, conversion-focused custom WordPress theme prototype for Our Lady of the Sacred Heart Parish, Kensington.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.6
Text Domain: olsh-welcome
*/

:root {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --surface-alt: #f1ece3;
  --text: #27303a;
  --muted: #5d6772;
  --primary: #1f4b6e;
  --primary-2: #2b698f;
  --accent: #8f6b2b;
  --border: #d9d6cf;
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 10px 24px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.branding-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.branding-subtitle {
  color: var(--muted);
  font-size: .95rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-weight: 600;
}
.main-nav .button-link a {
  background: var(--primary);
  color: white;
  padding: .75rem 1rem;
  border-radius: 999px;
}

.hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(180deg, #fff 0%, #f7f3ec 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin: .25rem 0 1rem;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
}

.hero-card,
.card,
.notice-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 1.5rem;
}
.mass-time-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.mass-time-list li {
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
}
.mass-time-list li:last-child { border-bottom: 0; }
.mass-day { font-weight: 700; display: block; }
.mass-time { color: var(--muted); }

.button-row {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.button,
.wp-block-button__link,
button,
input[type=submit] {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: .9rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}
.button.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type=submit]:hover { opacity: .94; text-decoration: none; }

.section {
  padding: 4rem 0;
}
.section-alt { background: var(--surface-alt); }
.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 0 0 .8rem;
}
.section-intro {
  max-width: 44rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.feature-grid,
.card-grid,
.info-grid {
  display: grid;
  gap: 1.2rem;
}
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.info-grid { grid-template-columns: repeat(2, 1fr); }

.card,
.feature {
  padding: 1.4rem;
}
.feature {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature strong,
.card h3 {
  display: block;
  font-size: 1.15rem;
  margin-bottom: .4rem;
}
.muted { color: var(--muted); }

.cta-banner {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer {
  background: #1f2730;
  color: #e5e7eb;
  padding: 3rem 0;
  margin-top: 3rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 2rem;
}
.footer-title {
  font-weight: 700;
  margin-bottom: .75rem;
}
.footer-menu,
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li,
.footer-menu li { margin-bottom: .45rem; }

.page-header {
  padding: 3rem 0 1rem;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0 0 .5rem;
}
.page-content .card + .card { margin-top: 1rem; }

.entry-content { font-size: 1.05rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.8rem; }
.entry-content ul { padding-left: 1.2rem; }

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .card-grid,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner,
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav ul {
    flex-wrap: wrap;
  }
}
