/* ==========================================================================
   TATCO Uganda - replica front-end styles
   ========================================================================== */

:root {
  --gold: #e0be53;
  --gold-dark: #b49843;
  --maroon: #7a1e24;
  --maroon-dark: #5c171c;
  --blue: #026191;
  --blue-dark: #014a70;
  --text-dark: #333333;
  --text-mid: #64686d;
  --text-body: #434343;
  --bg-light: #f1f1f1;
  --bg-cream: #fffaf2;
  --border: #e5e7eb;
  --white: #ffffff;
  --radius: 6px;
  --radius-lg: 10px;
  /* Layered elevation system: a tight contact shadow + a soft diffuse one,
     so depth reads as intentional rather than a single flat blur. */
  --shadow-sm: 0 1px 2px rgba(20,20,20,.06), 0 1px 3px rgba(20,20,20,.05);
  --shadow: 0 2px 6px rgba(20,20,20,.05), 0 12px 28px rgba(20,20,20,.09);
  --shadow-lg: 0 8px 16px rgba(20,20,20,.08), 0 24px 48px rgba(20,20,20,.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  animation: pageFadeIn .5s ease both;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  body { animation: none; }
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  margin: 0 0 16px;
  line-height: 1.25;
}

p { margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.icon { font-style: normal; }

/* ---------- Accessible focus states ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  border: 2px solid transparent;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.btn:active { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: #2b2200;
}
.btn-primary:hover { background: var(--gold-dark); }
.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-secondary:hover { background: var(--white); color: var(--maroon-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-dark);
}
.btn-outline:hover { background: var(--gold); color: #2b2200; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--text-dark);
  color: #cfd2d6;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar-contact a, .topbar-address {
  color: #cfd2d6;
  margin-right: 20px;
  white-space: nowrap;
}
.topbar-contact a:hover { color: var(--gold); }
.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  color: #cfd2d6;
  font-size: 11px;
  border: 1px solid #55585c;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  transition: all .25s ease;
}
.topbar-social a:hover {
  border-color: var(--gold);
  color: #2b2200;
  background: var(--gold);
  transform: translateY(-2px);
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 500;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand img { height: 56px; transition: transform .3s ease; }
.brand:hover img { transform: scale(1.06) rotate(-2deg); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  position: relative;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  padding: 10px 0;
  transition: color .25s ease;
}
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .3s cubic-bezier(.22,.61,.36,1);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--gold-dark);
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after {
  width: 100%;
}

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown .dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-body);
}
.has-dropdown .dropdown li a:hover {
  background: var(--bg-cream);
  color: var(--gold-dark);
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-dark);
  transition: transform .3s ease, color .25s ease;
}
.nav-toggle:hover { color: var(--gold-dark); }
.nav-toggle.open { transform: rotate(90deg); }

/* ---------- Breadcrumb banner (inner pages) ---------- */
.breadcrumb-banner {
  background: linear-gradient(135deg, rgba(90,20,24,.75), rgba(12,8,8,.82)), url('../img/hero-tatco44.jpg') center/cover;
  background-attachment: fixed;
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
@media (max-width: 900px) {
  .breadcrumb-banner { background-attachment: scroll; }
}
.breadcrumb-banner h1 { color: var(--white); margin-bottom: 8px; animation: fadeInUp .7s ease both; }
.breadcrumb-banner p { margin: 0; color: var(--gold); font-size: 14px; animation: fadeInUp .7s ease .15s both; }
.breadcrumb-banner p a { color: var(--white); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  color: var(--white);
  padding: 130px 0 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-tatco44.jpg') center 25%/cover;
  animation: heroKenBurns 26s ease-in-out infinite alternate;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(90,20,24,.5), rgba(12,8,8,.68));
  z-index: 1;
}
@keyframes heroKenBurns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(-1%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero .eyebrow {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
  animation: fadeInUp .7s ease both;
}
.hero h1 {
  color: var(--white);
  font-size: 46px;
  margin-bottom: 18px;
  animation: fadeInUp .7s ease .15s both;
}
.hero p { font-size: 17px; color: #eee; animation: fadeInUp .7s ease .3s both; }
.hero-buttons {
  display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap;
  animation: fadeInUp .7s ease .45s both;
}

/* ---------- Impact stats band ---------- */
.stats-section {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.07), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(255,255,255,.05), transparent 45%),
    linear-gradient(115deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  padding: 68px 0;
  overflow: hidden;
}
.stats-section::before {
  /* faint dot-grid texture for tactile richness without noise */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item {
  position: relative;
  color: var(--white);
  padding: 0 10px;
}
.stat-item::after {
  /* vertical divider between items, hidden on the last one */
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: -10px;
  width: 1px;
  background: rgba(255,255,255,.16);
}
.stat-item:last-child::after { display: none; }
.stat-icon {
  position: relative;
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--gold);
  transition: transform .35s ease, background-color .35s ease, color .35s ease, border-color .35s ease;
}
.stat-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(224,190,83,.5);
  animation: statPulse 2.6s ease-out infinite;
}
.stat-item:nth-child(2) .stat-icon::before { animation-delay: .3s; }
.stat-item:nth-child(3) .stat-icon::before { animation-delay: .6s; }
.stat-item:nth-child(4) .stat-icon::before { animation-delay: .9s; }
@keyframes statPulse {
  0% { box-shadow: 0 0 0 0 rgba(224,190,83,.5); }
  100% { box-shadow: 0 0 0 14px rgba(224,190,83,0); }
}
.stat-item.in-view .stat-icon {
  animation: statPop .6s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes statPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.stat-item:hover .stat-icon {
  transform: scale(1.08) rotate(-6deg);
  background: var(--gold);
  border-color: var(--gold);
  color: #2b2200;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}
.stat-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #cfe3ee;
  margin-top: 6px;
  font-weight: 500;
}
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat-item:nth-child(2)::after { display: none; }
}
@media (max-width: 480px) {
  .stats-section { padding: 50px 0; }
  .stat-number { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .stat-icon::before { animation: none; }
  .stat-item.in-view .stat-icon { animation: none; }
}

/* ---------- Section basics ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-cream { background: var(--bg-cream); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-header .eyebrow {
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 13px;
}
.section-header h2 { font-size: 34px; }

/* ---------- Mission / Vision / Goal cards ---------- */
.mvg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.mvg-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.mvg-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.mvg-card h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.mvg-card p { font-size: 15px; margin: 0; }

/* ---------- About brief / two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }
.two-col .eyebrow {
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 13px;
}

/* ---------- Call to action cards ---------- */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.cta-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--gold);
  transition: transform .35s ease, box-shadow .35s ease;
}
.cta-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.cta-card .cta-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg-cream);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: transform .35s ease, background-color .35s ease, color .35s ease;
}
.cta-card:hover .cta-icon {
  transform: scale(1.12) rotate(-6deg);
  background: var(--gold);
  color: #2b2200;
}
.cta-card h3 { font-size: 19px; }
.cta-card p { font-size: 14px; color: var(--text-mid); }

.cta-banner {
  background: linear-gradient(135deg, rgba(90,20,24,.78), rgba(12,8,8,.85)), url('../img/mukono.jpg') center/cover;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  padding: 70px 0;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #ddd; max-width: 600px; margin: 0 auto 24px; }
@media (max-width: 900px) {
  .cta-banner { background-attachment: scroll; }
}

/* ---------- Programs grid ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.program-media {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.program-card .program-media {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  transition: transform .5s ease;
}
.program-card:hover .program-media { transform: scale(1.08); }
.program-card .program-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.program-card h3 { font-size: 18px; }
.program-card p { font-size: 14px; color: var(--text-mid); flex: 1; }
.program-card .btn-outline { align-self: flex-start; margin-top: 10px; }

/* ---------- Partners strip ---------- */
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.partners-strip img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: .75;
  transition: all .25s ease;
}
.partners-strip img:hover { filter: none; opacity: 1; }

/* ---------- Generic content page ---------- */
.content-page { padding: 70px 0; }
.content-page .lead { font-size: 18px; color: var(--text-dark); }
.content-page ul.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.content-page ul.checklist li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--gold-dark);
  font-size: 13px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
}
.gallery-grid figure:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.gallery-grid figure:focus-visible::before { opacity: 1; }
.gallery-grid figure:focus-visible .gallery-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figure::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224,190,83,.4), rgba(122,30,36,.55));
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 1;
}
.gallery-grid figure:hover::before { opacity: 1; }
.gallery-grid .gallery-zoom-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.5);
  color: var(--white);
  font-size: 22px;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 2;
}
.gallery-grid figure:hover .gallery-zoom-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-grid figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: var(--white);
  font-size: 13px;
  padding: 24px 12px 10px;
  z-index: 2;
}

/* ---------- Gallery lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,10,10,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content {
  max-width: 88vw;
  max-height: 85vh;
  text-align: center;
  transform: scale(.92);
  transition: transform .3s ease;
}
.lightbox.open .lightbox-content { transform: scale(1); }
.lightbox-content img {
  max-width: 88vw;
  max-height: 76vh;
  border-radius: var(--radius);
  box-shadow: 0 25px 70px rgba(0,0,0,.5);
  margin: 0 auto;
}
.lightbox-caption {
  color: var(--white);
  font-size: 14px;
  margin: 16px 0 0;
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #2b2200;
  transform: scale(1.08);
}
.lightbox-nav:hover.lightbox-prev { transform: translateY(-50%) scale(1.08); }
.lightbox-nav:hover.lightbox-next { transform: translateY(-50%) scale(1.08); }
.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 26px; top: 50%; transform: translateY(-50%); }
body.lightbox-locked { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- Blog listing ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.blog-card-media { display: block; overflow: hidden; height: 200px; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.08); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-date {
  font-size: 12px;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.blog-card-body h3 { font-size: 18px; margin: 10px 0; }
.blog-card-body h3 a:hover { color: var(--gold-dark); }
.blog-card-body p { font-size: 14px; color: var(--text-mid); flex: 1; }
.blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: gap .25s ease;
}
.blog-readmore:hover { gap: 10px; }

/* ---------- Blog post detail ---------- */
.blog-post-header { max-width: 780px; margin: 0 auto 30px; text-align: center; }
.blog-post-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 13px;
}
.blog-post-header h1 { font-size: 32px; margin-top: 10px; }
.blog-post-media {
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.blog-post-media img { width: 100%; max-height: 480px; object-fit: cover; }
.blog-post-body { max-width: 780px; margin: 0 auto; }
.blog-post-body p { font-size: 16px; color: var(--text-body); line-height: 1.8; }
.blog-post-body h1, .blog-post-body h2, .blog-post-body h3,
.blog-post-body h4, .blog-post-body h5, .blog-post-body h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  margin: 1.4em 0 .5em;
}
.blog-post-body h1 { font-size: 30px; }
.blog-post-body h2 { font-size: 25px; }
.blog-post-body h3 { font-size: 21px; }
.blog-post-body a { color: var(--gold-dark); text-decoration: underline; }
.blog-post-body ul, .blog-post-body ol { padding-left: 24px; margin: 0 0 1em; color: var(--text-body); }
.blog-post-body li { margin-bottom: .4em; }
.blog-post-body ul.task-list { list-style: none; padding-left: 4px; }
.blog-post-body ul.task-list li { position: relative; padding-left: 28px; }
.blog-post-body ul.task-list li::before { content: "\2610"; position: absolute; left: 0; color: var(--gold-dark); }
.blog-post-body ul.task-list li[data-checked="true"] { color: var(--text-mid); text-decoration: line-through; }
.blog-post-body ul.task-list li[data-checked="true"]::before { content: "\2611"; }
.blog-post-body blockquote {
  margin: 1.4em 0;
  padding: 4px 20px;
  border-left: 4px solid var(--gold);
  color: var(--text-mid);
  font-style: italic;
}
.blog-post-body pre {
  background: #2b2d31;
  color: #e5e7eb;
  padding: 16px 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 1.4em 0;
}
.blog-post-body pre code { background: none; padding: 0; color: inherit; }
.blog-post-body code {
  background: #f1f2f4;
  color: #c0341c;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}
.blog-post-body hr { border: none; border-top: 2px solid var(--border); margin: 2em 0; }
.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 15px;
}
.blog-post-body th, .blog-post-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.blog-post-body th { background: var(--bg-light); font-weight: 700; }
.blog-post-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.blog-post-body figure { margin: 1.4em 0; }
.blog-post-body figure.image { text-align: center; }
.blog-post-body figcaption {
  font-size: 13px;
  color: var(--text-mid);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
.blog-post-body iframe { max-width: 100%; border-radius: var(--radius); margin: 1.4em 0; }
.blog-post-body img.align-left, .blog-post-body img[style*="float: left"] { float: left; margin: 0 20px 12px 0; }
.blog-post-body img.align-right, .blog-post-body img[style*="float: right"] { float: right; margin: 0 0 12px 20px; }
.blog-back {
  display: block;
  width: max-content;
  margin: 30px auto 0;
}
.blog-post-nav {
  max-width: 780px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.blog-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 45%;
  transition: color .25s ease;
}
.blog-nav-link:hover { color: var(--gold-dark); }
.blog-nav-next { margin-left: auto; text-align: right; justify-content: flex-end; }
@media (max-width: 640px) {
  .blog-post-header h1 { font-size: 24px; }
  .blog-post-nav { flex-direction: column; }
  .blog-nav-link { max-width: 100%; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 18px;
  border-left: 4px solid var(--gold);
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-info-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}
.contact-info-card h4 { margin-bottom: 6px; font-size: 15px; }
.contact-form { display: grid; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { justify-self: start; cursor: pointer; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 20px;
}
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }

.form-note {
  background: var(--bg-cream);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s ease;
}
.form-note.visible { display: block; opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.site-footer {
  background: #1b1b1b;
  color: #b9bbbd;
  padding-top: 60px;
  border-top: 3px solid var(--maroon);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo { height: 50px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-col h3 {
  color: var(--white);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.footer-col p { font-size: 14px; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  width: 32px; height: 32px;
  border: 1px solid #444;
  border-radius: 50%;
  font-size: 13px;
  transition: all .25s ease;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: #2b2200;
  background: var(--gold);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid #333;
  padding: 18px 0;
  font-size: 13px;
  text-align: center;
}

/* ---------- Floating donate button ---------- */
.floating-donate {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #2b2200;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(20px) scale(.9);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, background-color .25s ease;
}
.floating-donate.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.floating-donate:hover { background: var(--gold-dark); }
.floating-donate::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50px;
  border: 2px solid var(--gold);
  opacity: .6;
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--text-dark);
  color: var(--white);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) scale(.9);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, background-color .25s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--gold-dark); }

@media (prefers-reduced-motion: reduce) {
  .floating-donate::before { animation: none; }
}
@media (max-width: 640px) {
  .floating-donate span { display: none; }
  .floating-donate { padding: 14px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar-contact a:nth-child(3) { display: none; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--border); }
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: none; display: none; padding-left: 12px;
  }
  .has-dropdown:hover .dropdown { display: block; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 90px 0 70px; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(70,16,19,.8) 0%, rgba(20,9,9,.85) 55%, rgba(12,7,7,.94) 100%);
  }
  .hero h1, .hero p, .hero .eyebrow {
    text-shadow: 0 2px 6px rgba(0,0,0,.55);
  }
  .footer-grid { grid-template-columns: 1fr; }
}
