/* =========================================================
   St. Albert the Great Parish — Design System
   ========================================================= */

:root {
  /* Colour palette — liturgical burgundy & gold on warm cream */
  --colour-burgundy-900: #4a0e18;
  --colour-burgundy-800: #641622;
  --colour-burgundy-700: #7c1d2b;
  --colour-burgundy-600: #93222f;
  --colour-gold-600: #a5791f;
  --colour-gold-500: #c9992d;
  --colour-gold-400: #ddb15a;
  --colour-gold-100: #f7ecd4;
  --colour-cream-100: #fbf7ef;
  --colour-cream-200: #f4ecdd;
  --colour-cream-300: #ece0c9;
  --colour-charcoal-900: #241d1a;
  --colour-charcoal-700: #4a3f38;
  --colour-charcoal-500: #6f6259;
  --colour-white: #ffffff;

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(36, 29, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(74, 14, 24, 0.12);
  --shadow-lg: 0 20px 48px rgba(74, 14, 24, 0.18);

  --container-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--colour-charcoal-900);
  background: var(--colour-cream-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--colour-burgundy-900);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a {
  color: var(--colour-burgundy-700);
  text-decoration-thickness: 1px;
}

a:hover { color: var(--colour-gold-600); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--colour-burgundy-900);
  color: var(--colour-white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 2000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--colour-gold-500);
  color: var(--colour-burgundy-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--colour-gold-400); color: var(--colour-burgundy-900); }

.btn-outline {
  background: transparent;
  color: var(--colour-white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--colour-white); }

.btn-secondary {
  background: var(--colour-burgundy-900);
  color: var(--colour-white);
}
.btn-secondary:hover { background: var(--colour-burgundy-700); color: var(--colour-white); }

.btn-small { padding: 0.55em 1.2em; font-size: 0.88rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--colour-burgundy-900);
  color: var(--colour-gold-100);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 8px;
}
.topbar a { color: var(--colour-gold-100); text-decoration: none; }
.topbar a:hover { color: var(--colour-white); text-decoration: underline; }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--colour-cream-100);
  border-bottom: 1px solid var(--colour-cream-300);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  width: 58px;
  height: 58px;
  flex: none;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--colour-burgundy-900);
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--colour-gold-600);
}

.main-nav { display: flex; }
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 10px 14px;
  color: var(--colour-charcoal-900);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  border-radius: var(--radius-sm);
}
.nav-list > li > a:hover,
.nav-list > li.is-active > a {
  color: var(--colour-burgundy-800);
  background: var(--colour-cream-200);
}

/* The single most-requested piece of info on a parish site: make it unmissable. */
.nav-highlight > a {
  background: var(--colour-gold-500);
  color: var(--colour-burgundy-900) !important;
  font-weight: 700;
}
.nav-highlight > a:hover { background: var(--colour-gold-400); }
.nav-highlight.is-active > a { background: var(--colour-gold-400); }

.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-bottom: 2px;
}
.dropdown {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--colour-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--colour-charcoal-900);
  text-decoration: none;
  font-size: 0.94rem;
}
.dropdown a:hover { background: var(--colour-cream-200); color: var(--colour-burgundy-800); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--colour-burgundy-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--colour-white);
  background-image:
    radial-gradient(120% 160% at 15% 0%, rgba(124,29,43,0.58) 0%, rgba(74,14,24,0.62) 55%, rgba(36,29,26,0.68) 100%),
    var(--hero-photo, url("../assets/images/nave-interior.jpg"));
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    conic-gradient(from 45deg at 85% 20%, rgba(201,153,45,0.22), transparent 35%),
    conic-gradient(from 220deg at 5% 90%, rgba(201,153,45,0.16), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-block: 88px 96px;
  max-width: 720px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.5);
}
.hero.hero-page .hero-inner { padding-block: 64px; max-width: 900px; }
.hero-actions .btn { text-shadow: none; }
.breadcrumb { text-shadow: none; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--colour-gold-400);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 { color: var(--colour-white); }
.hero-lede {
  font-size: 1.15rem;
  color: var(--colour-gold-100);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-crest {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 340px;
  opacity: 0.16;
}

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section-tight { padding-block: 48px; }
.section-alt { background: var(--colour-cream-200); }
.section-dark {
  background: var(--colour-burgundy-900);
  color: var(--colour-gold-100);
}
.section-dark h2, .section-dark h3 { color: var(--colour-white); }
.section-header {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-header.center { margin-inline: auto; text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--colour-gold-600);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--colour-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--colour-cream-300);
}

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--colour-gold-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-badge svg { width: 26px; height: 26px; stroke: var(--colour-burgundy-800); fill: none; }

/* Mass times */
.schedule-card {
  background: var(--colour-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.schedule-card__head {
  background: var(--colour-burgundy-900);
  color: var(--colour-white);
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.schedule-list { list-style: none; margin: 0; padding: 10px 0; }
.schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 26px;
  border-bottom: 1px solid var(--colour-cream-300);
  font-size: 0.98rem;
}
.schedule-list li:last-child { border-bottom: none; }
.schedule-list .day { font-weight: 600; color: var(--colour-charcoal-900); }
.schedule-list .time { color: var(--colour-burgundy-700); font-weight: 600; }
.schedule-note {
  font-size: 0.88rem;
  color: var(--colour-charcoal-500);
  padding: 4px 26px 18px;
}

/* News cards */
.news-card {
  background: var(--colour-white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--colour-gold-500);
  height: 100%;
}
.news-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--colour-burgundy-700);
  background: var(--colour-gold-100);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Ministry directory */
.ministry-category { margin-bottom: 40px; }
.ministry-category h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--colour-white);
  border: 1px solid var(--colour-cream-300);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--colour-charcoal-700);
}
.pill.pill-link {
  color: var(--colour-burgundy-800);
  font-weight: 600;
  text-decoration: none;
  border-color: var(--colour-gold-500);
  background: var(--colour-gold-100);
}
.pill.pill-link:hover { background: var(--colour-gold-400); }

/* Sacraments */
.sacrament-card {
  background: var(--colour-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 110px;
}
.sacrament-card h3 { margin-bottom: 8px; }
.sacrament-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--colour-cream-300);
  font-size: 0.92rem;
  color: var(--colour-charcoal-700);
}

/* Contact / Staff table */
.staff-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--colour-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.staff-table th, .staff-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--colour-cream-300);
  font-size: 0.95rem;
}
.staff-table th {
  background: var(--colour-cream-200);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--colour-burgundy-800);
}
.staff-table tr:last-child td { border-bottom: none; }

.map-frame {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Callout banner */
.callout {
  background: linear-gradient(120deg, var(--colour-gold-100), var(--colour-cream-200));
  border: 1px solid var(--colour-gold-400);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--colour-charcoal-900);
  color: var(--colour-cream-300);
  padding-block: 56px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--colour-gold-400); font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--colour-cream-300); text-decoration: none; font-size: 0.93rem; }
.footer-grid a:hover { color: var(--colour-gold-400); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 44px; height: 44px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; fill: var(--colour-cream-200); }
.footer-social a:hover { background: var(--colour-gold-500); border-color: var(--colour-gold-500); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: var(--colour-charcoal-500);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--colour-gold-100);
  opacity: 0.85;
}
.breadcrumb a { color: var(--colour-gold-100); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--colour-cream-100);
    border-bottom: 1px solid var(--colour-cream-300);
    box-shadow: var(--shadow-md);
    display: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; }
  .nav-list > li > a { padding: 12px 14px; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    display: none;
    background: var(--colour-cream-200);
    margin-top: 4px;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown > a::after { float: right; margin-top: 6px; }
  .topbar-contact { gap: 12px; }
  .header-inner { gap: 10px; }
  .brand-sub { display: none; }
}

@media (max-width: 480px) {
  .header-cta > .btn { padding: 0.6em 0.9em; font-size: 0.85rem; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-social { display: none; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 64px 72px; }
  .callout { flex-direction: column; align-items: flex-start; }
}
