/* ═══════════════════════════════════════════════════════════════
   PARISH OF STONECLOUGH - COMMON STYLES
   Shared stylesheet for all pages in the parish website
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --cream: #f8f4ed;
  --parchment: #ede5d0;
  --warm-dark: #1a1714;
  --ink: #2c2820;
  --muted: #7a6f62;
  --stone: #a89880;
  --gold: #8b6914;
  --gold-lt: #b8922a;
  --crimson: #6b1f2a;
  --crimson-lt: #8b2f3e;
  --border: #d6c9b0;
  --section-bg: #f2ece0;
}

/* ── RESET ── */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── COMMON LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HEADER / NAV ── */
header {
  background: var(--warm-dark);
  position: sticky; 
  top: 0; 
  z-index: 200;
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  max-width: 1200px; 
  margin: 0 auto;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
}

.brand {
  display: flex; 
  flex-direction: column;
  text-decoration: none;
}

.brand-main {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem; 
  font-weight: 600;
  color: var(--parchment);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem; 
  font-weight: 300;
  color: var(--gold-lt);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

nav ul {
  display: flex; 
  gap: 0.2rem; 
  list-style: none;
}

nav a {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem; 
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 244, 237, 0.65);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

nav a:hover { 
  color: var(--gold-lt); 
  background: rgba(139, 105, 20, 0.12); 
}

nav a.active { 
  color: var(--gold-lt); 
}

/* ── DROPDOWN NAV (for homepage) ── */
.nav-item { 
  position: relative; 
}

.nav-item:hover .nav-dropdown { 
  opacity: 1; 
  pointer-events: all; 
  transform: translateY(0); 
}

.nav-dropdown {
  position: absolute; 
  top: 100%; 
  left: 0;
  background: var(--warm-dark);
  border: 1px solid rgba(248, 244, 237, 0.08);
  border-top: 2px solid var(--gold);
  min-width: 220px;
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 300;
}

.nav-dropdown a {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem; 
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 244, 237, 0.6);
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 0;
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown a:hover { 
  color: var(--gold-lt); 
  background: rgba(139, 105, 20, 0.1); 
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(248, 244, 237, 0.07);
  margin: 0.35rem 0;
}

.nav-item > a::after {
  content: ' ▾';
  font-size: 0.55rem;
  opacity: 0.5;
  vertical-align: middle;
}

/* ── SECTION COMMON STYLES ── */
.section {
  padding: 4rem 0;
  background: var(--section-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-header .divider {
  width: 60px; 
  height: 2px; 
  background: var(--gold); 
  margin: 0 auto;
}

.view-all {
  text-align: center;
  margin-top: 3rem;
}

.view-all a {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  border-bottom: 2px solid var(--crimson);
  padding-bottom: 0.25rem;
  text-decoration: none;
  transition: all 0.3s;
}

.view-all a:hover {
  color: var(--crimson-lt);
  border-bottom-color: var(--crimson-lt);
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

/* ── EVENT CARDS ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.event-card {
  background: var(--parchment);
  border: 2px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,23,20,0.15);
}

.event-card-image {
  width: 100%;
  height: auto;
  display: block;
}

.event-card-content {
  padding: 1.75rem;
}

.event-tag {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.event-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem; 
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.event-card p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(139,105,20,0.2);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.event-meta-item strong {
  color: var(--crimson);
  font-weight: 500;
}

/* ── PAGE HEADER (for news-events page) ── */
.page-header {
  background: var(--warm-dark);
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.page-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem; 
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1rem;
}

.page-header p {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--gold-lt);
  letter-spacing: 0.1em;
}

/* ── FOOTER ── */
footer {
  background: var(--warm-dark);
  color: rgba(248,244,237,0.6);
  padding: 3rem 0 1.5rem;
  border-top: 2px solid var(--gold);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  width: 100%;
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start;
  flex-wrap: wrap; 
  gap: 2rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: var(--parchment);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  color: var(--gold-lt);
  letter-spacing: 0.1em;
}

.diocese-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 244, 237, 0.4);
  text-decoration: none;
  transition: color 0.15s;
}

.diocese-link:hover {
  color: var(--gold-lt);
}

.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 244, 237, 0.08);
}

.footer-col h5 {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem; 
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 244, 237, 0.3);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.footer-col ul { 
  list-style: none; 
}

.footer-col li { 
  margin-bottom: 0.3rem; 
}

.footer-col a {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem; 
  letter-spacing: 0.06em;
  color: rgba(248, 244, 237, 0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { 
  color: var(--gold-lt); 
}

.footer-bottom {
  width: 100%;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  flex-wrap: wrap; 
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 244, 237, 0.08);
}

.footer-disclaimer {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem; 
  letter-spacing: 0.04em;
  color: rgba(248, 244, 237, 0.25);
  line-height: 1.6;
  max-width: 600px;
}

/* ── COMMON ANIMATIONS ── */
@keyframes heroUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes slowZoom {
  from { 
    transform: scale(1); 
  }
  to { 
    transform: scale(1.08); 
  }
}

/* ── BUTTONS ── */
.btn {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s;
  display: inline-block;
}
.btn-primary {
  background: var(--crimson);
  color: var(--cream);
  border-color: var(--crimson);
}
.btn-primary:hover { background: var(--crimson-lt); border-color: var(--crimson-lt); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248,244,237,0.45);
}
.btn-outline:hover { border-color: var(--gold-lt); color: var(--gold-lt); }
/* Full-width primary button when used inside a sidebar card */
.sidebar-card .btn-primary { width: 100%; text-align: center; }

/* ── DIVIDER ── */
.divider {
  width: 48px; height: 1px;
  background: var(--gold);
  margin: 1.25rem 0 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   HISTORY / CONTENT PAGES — shared styles
   ═══════════════════════════════════════════════════════════════ */

/* ── PAGE HERO ── */
.page-hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2.5rem;
  animation: heroUp 0.8s 0.2s ease both; opacity: 0;
}
.breadcrumb {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248,244,237,0.5);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--gold-lt); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.5rem; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.page-hero h1 em {
  font-style: italic;
  color: rgba(248,244,237,0.65);
  display: block;
  font-size: 0.65em;
}
.page-hero-meta {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-top: 1.25rem;
  display: flex; gap: 2rem; flex-wrap: wrap;
}

/* ── CONTENT LAYOUT ── */
.content-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 2.5rem;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding: 4rem 0;
  align-items: start;
}

/* ── HISTORY BODY ── */
.history-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 400;
  color: var(--ink);
  margin: 2.5rem 0 0.5rem;
  line-height: 1.2;
}
.history-body h2:first-child { margin-top: 0; }
.history-body p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}
.history-body p strong { color: var(--ink); font-weight: 500; }

/* ── HISTORIC PHOTO ── */
.historic-photo {
  margin: 2rem 0;
  border: 1px solid var(--border);
  background: var(--warm-dark);
}
.historic-photo img {
  width: 100%;
  display: block;
}
.historic-photo figcaption {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.08em;
  color: rgba(248,244,237,0.5);
  padding: 0.75rem 1rem;
  font-style: italic;
  line-height: 1.5;
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem; top: 0.55rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1px var(--gold);
}
.timeline-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.timeline-item p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}
.timeline-item p strong { color: var(--ink); font-weight: 500; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 90px; }
.sidebar-card {
  background: var(--section-bg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-fact {
  display: flex; flex-direction: column;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}
.sidebar-fact:last-child { margin-bottom: 0; }
.fact-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.1rem;
}
.fact-value { color: var(--ink); line-height: 1.5; }
.sidebar-nav h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav ul { list-style: none; }
.sidebar-nav li { border-bottom: 1px solid var(--border); }
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav a {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.sidebar-nav a:hover { color: var(--crimson); }

/* ── HISTORY PAGE RESPONSIVE ── */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 1.5rem;
  }

  nav ul {
    display: none;
  }

  .container {
    padding: 0 1.5rem;
  }

  .footer-sitemap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }

  .page-hero {
    padding: 3.5rem 0 3rem;
  }
}

@media (max-width: 1024px) {
  .footer-sitemap {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
