@font-face {
  font-family: 'OldLondon';
  src: url('/fonts/OldLondon.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MottoFont';
  src: url('/fonts/rage_1.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #880000;
  --secondary: #f8e5af;
  --accent: #3a3938;
  --light: #f3f2f2;
  --text: #1f2937;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: white;
  color: var(--primary);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.cdci { font-family: 'OldLondon', serif; font-weight: normal; }

/* Header */
header.site-header {
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site-header h1 {
  margin: 0;
  font-size: 1.9rem;
  font-family: 'OldLondon', serif;
  font-weight: normal;
  letter-spacing: 1px;
}
header.site-header a.brand { color: white; text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
header.site-header a.brand img { height: 40px; width: auto; border-radius: 50%; background: white; padding: 2px; }

nav.site-nav a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 2px;
}
nav.site-nav a[aria-current="page"] { border-bottom: 2px solid white; }
nav.site-nav a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  header.site-header { flex-direction: column; align-items: center; text-align: center; }
  nav.site-nav { margin-top: 12px; }
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.5)), var(--hero-image, none) center/cover no-repeat;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 1.5rem; }
.hero h2 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.5rem; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.hero p { font-size: 1.1rem; }

.logo-overlap { position: relative; margin-top: -40px; display: flex; justify-content: center; z-index: 10; }
.logo-wrap { text-align: center; animation: logoFadeIn 1s ease-out forwards; opacity: 0; transform: translateY(15px) scale(0.95); }
.logo-wrap img { width: 120px; height: auto; background: white; padding: 4px; border-radius: 50%; box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.motto { margin-top: 0.5rem; font-size: 1.8rem; font-family: 'MottoFont', serif; color: var(--primary); animation: mottoFadeIn 1s ease-out forwards; animation-delay: 0.3s; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .logo-wrap, .motto { animation: none; opacity: 1; transform: none; }
}
@keyframes logoFadeIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes mottoFadeIn { to { opacity: 1; } }

@media (max-width: 600px) {
  .logo-overlap { margin-top: -55px; }
  .logo-wrap img { width: 90px; }
  .motto { font-size: 1.1rem; }
}

/* Sections */
main { display: block; }
section.block { padding: 1rem 0.5rem; max-width: 1100px; margin: auto; }
section.block h3.block-title { text-align: center; font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--primary); }

/* Plain heading block */
.page-heading { text-align: center; padding: 2rem 1rem 0.5rem; }
.page-heading .cdci { font-size: 2.5rem; display: block; }
.page-heading h2 { margin: 0.25rem 0; color: var(--primary); }
.page-heading .sub { color: #555; margin-top: 0.25rem; }

/* Text block */
.text-block { max-width: 800px; margin: 0 auto; padding: 1rem 1rem; }
.text-block h3 { color: var(--primary); text-align: center; margin-bottom: 1rem; }
.text-block p { text-align: left; }
.text-block .link-more { text-align: right; margin-top: 0.5rem; }
.text-block .link-more a { color: var(--primary); font-weight: 600; text-decoration: none; }
.text-block .link-more a:hover { text-decoration: underline; }

/* Promo variant */
.text-block.promo-block { max-width: 1100px; }
.text-block.promo-block .promo {
  background: var(--secondary);
  color: #1f2937;
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
}
.text-block.promo-block .promo h3 { color: var(--accent); margin-top: 0; }
.text-block.promo-block .promo strong { color: var(--accent); }
.text-block.promo-block .promo p { text-align: center; }

/* Cards */
.offerings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.offerings-stacked { display: block; }
.card {
  background: white;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  text-align: center;
  margin-bottom: 1.5rem;
}
.offerings-grid .card { margin-bottom: 0; }
.card:hover { transform: translateY(-5px); }
.card h4 { margin: 0.6rem 0 0.2rem; font-size: 1.2rem; color: var(--primary); }
.card p { margin: 0.2rem 0; }
.card .item + .item { margin-top: 1rem; }

.details {
  text-align: center;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
  margin-top: 0.8rem;
  line-height: 1.5;
}
.details.show { max-height: 2000px; }
.details p { margin: 0.3rem 0; }
.details strong { display: block; margin: 12px 0 6px; }

.toggle-btn {
  display: block;
  margin: 10px auto 0;
  background: none;
  border: none;
  color: #f25918;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.toggle-btn:hover { text-decoration: underline; }

/* Lists */
.list-block { max-width: 800px; margin: 0 auto; padding: 1rem; }
.list-block h3 { color: var(--primary); text-align: center; margin-bottom: 1rem; }
.list-block ul { padding-left: 1.4rem; }
.list-block li { margin: 0.3rem 0; }

/* Contact info */
.contact-block { max-width: 800px; margin: 0 auto; padding: 1rem; text-align: center; }
.contact-block h3 { color: var(--primary); }
.contact-block .phone-row { margin: 0.3rem 0; }
.contact-block .phone-row a { color: var(--primary); text-decoration: none; font-weight: 700; }
.contact-block .phone-row a:hover { text-decoration: underline; }
.contact-block .email-group { margin-top: 1rem; }
.contact-block .email-group strong { display: block; margin-bottom: 0.3rem; }
.contact-block .email-group a { color: var(--primary); text-decoration: none; }
.contact-block .email-group a:hover { text-decoration: underline; }
.contact-block .email-row { margin: 0.15rem 0; }

/* Map */
.map-block { max-width: 1100px; margin: 1rem auto; padding: 0 1rem; }
.map-block iframe { width: 100%; height: 320px; border: 0; border-radius: 8px; }

/* Image block */
.image-block { max-width: 900px; margin: 1rem auto; padding: 0 1rem; text-align: center; }
.image-block img { max-width: 100%; height: auto; border-radius: 8px; }
.image-block figcaption { font-size: 0.9rem; color: #555; margin-top: 0.5rem; }

/* Social */
.social-block { margin: 2rem 0; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; padding: 0 1rem; }
.social-block a {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--primary);
  color: white;
  transition: transform 0.2s ease;
}
.social-block a:hover { transform: translateY(-2px); }

/* Footer */
footer.site-footer { background: var(--primary); color: white; text-align: center; padding: 1.5rem; font-size: 0.9rem; }
footer.site-footer a { color: white; }

/* Blog */
.blog-list { max-width: 900px; margin: 2rem auto; padding: 0 1rem; display: grid; gap: 1.5rem; }
.blog-card { background: white; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); overflow: hidden; }
.blog-card img { width: 100%; max-height: 220px; object-fit: cover; }
.blog-card .body { padding: 1.2rem; }
.blog-card h2 { margin: 0 0 0.3rem; }
.blog-card h2 a { color: var(--primary); text-decoration: none; }
.blog-card .date { color: #777; font-size: 0.85rem; }
.blog-post { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
.blog-post h1 { color: var(--primary); }
.blog-post .date { color: #777; margin-bottom: 1.5rem; }
.blog-post img.cover { width: 100%; border-radius: 8px; margin-bottom: 1.5rem; }
.blog-post .content p { margin: 1rem 0; }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }

.empty-state { text-align: center; color: #777; padding: 3rem 1rem; }
