/* =========================================================
   Ijebu-Ode Christian Cemetery Association — shared stylesheet
   Design tokens
   ========================================================= */
:root{
  --navy: #16234A;
  --navy-light: #24356B;
  --navy-soft: #EDF0F8;
  --cream: #F7F6F2;
  --white: #FFFFFF;
  --gold: #A9822F;
  --gold-soft: #F1E7CE;
  --sage: #6E9470;
  --sage-soft: #E4EEE2;
  --slate: #363C48;
  --slate-soft: #4A5162;
  --text: #232A3B;
  --text-muted: #5B6472;
  --line: #E3E1DA;

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-card: 6px;
  --radius-plaque: 10px 10px 4px 4px;
  --shadow-sm: 0 1px 3px rgba(22,35,74,0.08);
  --shadow-md: 0 8px 24px rgba(22,35,74,0.10);
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 .5em;
}
p{ margin: 0 0 1em; }
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important; }
}

/* eyebrow / label */
.eyebrow{
  display:inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6em;
}
.section-head{
  text-align:center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-head h2{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  position: relative;
  display:inline-block;
  padding-bottom: 14px;
}
.section-head h2::after{
  content:"";
  position:absolute;
  bottom:0; left:50%;
  transform: translateX(-50%);
  width: 46px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.section-head p{ color: var(--text-muted); margin-top: .9em; }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(247,246,242,0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 28px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--navy);
  white-space: nowrap;
}
.brand .mark{
  width: 40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  color: var(--navy);
  overflow:hidden;
}
.brand .mark svg{ width:20px; height:20px; }
.brand .mark img{ width:100%; height:100%; object-fit:contain; border-radius:50%; }
.brand small{
  display:block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .50rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links{
  display:flex; align-items:center; gap: 30px;
  list-style:none; margin:0; padding:0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
}
.nav-links a{
  position:relative;
  padding: 6px 2px;
  color: var(--navy-light);
}
.nav-links a:hover{ color: var(--navy); }
.nav-links a.active{ color: var(--navy); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-2px;
  height:2px; background: var(--gold);
}

.nav-actions{ display:flex; align-items:center; gap:12px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: var(--radius-card);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover{ background: var(--navy-light); border-color: var(--navy-light); }
.btn-outline{ background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover{ background: var(--navy); color: var(--white); }
.btn-outline-light{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover{ background: var(--white); color: var(--navy); }
.btn-gold{ background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover{ background: #96731f; border-color:#96731f; }
.btn-sm{ padding: 9px 16px; font-size: .74rem; }
.btn svg{ width:16px; height:16px; }

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width: 40px; height: 40px;
  align-items:center; justify-content:center;
  color: var(--navy);
}
.nav-toggle svg{ width:24px; height:24px; }

.mobile-menu{ display:none; }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  color: var(--white);
  padding: 118px 28px 90px;
  text-align:center;
  background: linear-gradient(180deg, rgba(16,24,50,.72), rgba(16,24,50,.82)), var(--navy);
  background-size: cover; background-position:center;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.25) 1px, transparent 1px),
    radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 220px 220px;
  opacity:.5;
}
.hero-inner{ position:relative; max-width: 760px; margin:0 auto; }
.hero .mark-lg{
  width:84px; height:84px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 22px;
  overflow:hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.hero .mark-lg svg{ width:30px; height:30px; }
.hero .mark-lg img{ width:100%; height:100%; object-fit:contain; border-radius:50%; background:var(--white); }
.hero h1{
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  margin-bottom: .4em;
}
.hero p.lede{
  color: rgba(255,255,255,.86);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2em;
}
.hero-page{
  padding: 78px 28px 64px;
}
.hero-photo{
  background-size: cover;
  background-position: center;
}
.hero-photo.hero-home{
  background-image: linear-gradient(180deg, rgba(16,24,50,.72), rgba(16,24,50,.85)), url('images/hero-home.jpg');
}
.hero-photo.hero-about{
  background-image: linear-gradient(180deg, rgba(16,24,50,.68), rgba(16,24,50,.86)), url('images/hero-about.jpg');
}
.hero-page h1{ color:var(--white); }
.hero-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* =========================================================
   Generic section spacing
   ========================================================= */
section{ padding: 84px 0; }
.section-alt{ background: var(--navy-soft); }
.section-tight{ padding: 60px 0; }

/* =========================================================
   Two-col intro (About/legacy blocks)
   ========================================================= */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items:center;
}
.split img{ border-radius: var(--radius-card); box-shadow: var(--shadow-md); }
.split h2{ font-size: clamp(1.6rem, 3vw, 2.1rem); text-align:left; }
.split .eyebrow{ display:block; }
.link-arrow{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:700; font-size:.85rem; letter-spacing:.03em; text-transform:uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}
.link-arrow svg{ width:16px; height:16px; transition: transform .2s ease; }
.link-arrow:hover svg{ transform: translateX(4px); }

/* =========================================================
   Cards
   ========================================================= */
.cards-3{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 26px;
}
.cards-4{
  display:grid; grid-template-columns: repeat(4,1fr); gap: 22px;
}
.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon{
  width: 46px; height:46px;
  border-radius: 10px;
  background: var(--navy-soft);
  color: var(--navy);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.card .icon svg{ width:22px; height:22px; }
.card h3{ font-size: 1.15rem; margin-bottom:.4em; }
.card p{ color: var(--text-muted); font-size:.95rem; margin-bottom: 1.3em; }
.card .details{
  font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color: var(--gold);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display:inline-block;
}

/* Fee cards (services) */
.fee-card{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.fee-card .icon{
  width:44px; height:44px; border-radius:10px;
  background: var(--sage-soft); color: var(--sage);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.fee-card .icon svg{ width:20px; height:20px; }
.fee-card h3{ font-size:1.08rem; margin-bottom:.5em; }
.fee-card p{ color:var(--text-muted); font-size:.9rem; min-height: 66px; }
.fee-card .fee-label{
  font-size:.7rem; letter-spacing:.1em; text-transform:uppercase;
  color: var(--text-muted); border-top:1px solid var(--line); padding-top:14px; margin-top:10px; display:block;
}
.fee-card .fee-amount{
  font-family: var(--font-display); font-size:1.5rem; color: var(--navy); font-weight:700;
}

/* Timeline / plaque stat cards */
.plaque-row{ display:grid; grid-template-columns: 1fr; gap: 20px; }
.plaque{
  border-radius: var(--radius-plaque);
  padding: 26px 26px 24px;
  color: var(--white);
}
.plaque.navy{ background: var(--navy); }
.plaque.sage{ background: var(--sage); }
.plaque .year{ font-family: var(--font-display); font-size:2.1rem; font-weight:700; margin-bottom:.15em; }
.plaque .tag{ font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; opacity:.85; margin-bottom:.7em; display:block; }
.plaque p{ margin:0; font-size:.92rem; opacity:.95; }

.history-box{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
}
.history-box p{ color: var(--text-muted); }
.churches-box{
  background: var(--navy-soft);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  margin-top: 22px;
}
.churches-box h4{
  font-size:1rem; display:flex; align-items:center; gap:10px; margin-bottom: 14px;
}
.churches-box ul{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:1fr 1fr; gap: 10px 20px;
  font-size:.92rem; color: var(--text);
}
.churches-box li{ display:flex; align-items:baseline; gap:8px; }
.churches-box li::before{ content:"○"; font-size:.6rem; color: var(--gold); }

/* Executive list */
.exec-list{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow:hidden;
}
.exec-row{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}
.exec-row:last-child{ border-bottom:none; }
.exec-row .name{ font-family: var(--font-display); font-size:1.08rem; color: var(--navy); font-weight:600; }
.exec-row .role{ font-size:.74rem; letter-spacing:.08em; text-transform:uppercase; color: var(--gold); margin-top:2px; }
.exec-row .phone{ display:flex; align-items:center; gap:8px; color: var(--text-muted); font-weight:600; white-space:nowrap; }
.exec-row .phone svg{ width:16px; height:16px; color: var(--sage); }

/* Notice box */
.notice{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 34px 30px;
  text-align:center;
  max-width: 760px;
  margin: 0 auto 60px;
  box-shadow: var(--shadow-sm);
}
.notice .icon-circle{
  width:42px; height:42px; border-radius:50%;
  border:1.5px solid var(--gold); color: var(--gold);
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 14px;
}
.notice .icon-circle svg{ width:20px; height:20px; }
.notice h3{ font-size:1.05rem; letter-spacing:.06em; text-transform:uppercase; }
.notice p{ color: var(--text-muted); margin:0; }

/* CTA band */
.cta-band{
  background: var(--navy);
  color: var(--white);
  text-align:center;
  padding: 76px 28px;
}
.cta-band h2{ color: var(--white); }
.cta-band .section-head p{ color: rgba(255,255,255,.78); }
.cta-band .section-head h2::after{ background: var(--gold); }

/* Gallery */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery-grid .g-item:nth-child(1){ grid-column: span 2; grid-row: span 2; }
.gallery-grid .g-item:nth-child(4){ grid-row: span 1; }
.g-item{
  position:relative;
  border-radius: var(--radius-card);
  overflow:hidden;
  background: linear-gradient(135deg, var(--navy-soft), var(--sage-soft));
  border: 3px solid var(--line);
}
.g-item img{ position:absolute; inset:0; width:98%; height:90%; object-fit:cover; }
.g-item .placeholder{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; color: var(--navy-light); text-align:center; padding: 16px;
}
.g-item .placeholder svg{ width:30px; height:30px; opacity:.55; }
.g-item .placeholder span{ font-size:.78rem; font-weight:600; opacity:.7; }
.g-item .caption{
  position:absolute; left:0; right:0; bottom:0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(22,35,74,.82), transparent);
  color: var(--white); font-size:.82rem; font-weight:700; letter-spacing:.03em;
  opacity:0; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.g-item:hover .caption{ opacity:1; transform: translateY(0); }

/* Contact page */
.contact-grid{
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 26px;
  align-items:stretch;
}
.info-card{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
}
.info-row{ display:flex; gap:16px; margin-bottom: 26px; }
.info-row:last-child{ margin-bottom:0; }
.info-row .ico{
  width:40px; height:40px; border-radius:10px; flex-shrink:0;
  background: var(--navy-soft); color: var(--navy);
  display:flex; align-items:center; justify-content:center;
}
.info-row .ico svg{ width:19px; height:19px; }
.info-row .label{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--gold); font-weight:700; margin-bottom:4px; }
.info-row .value{ color: var(--text); font-weight:600; }
.info-row .value small{ display:block; font-weight:400; color: var(--text-muted); margin-top:2px; }

.cemeteries-card{
  background: var(--navy-soft);
  border-radius: var(--radius-card);
  padding: 30px 28px;
}
.cemeteries-card h3{ font-size:1.05rem; display:flex; align-items:center; gap:10px; }
.cem-row{
  display:flex; align-items:center; gap:14px;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-top: 14px;
  border: 1px solid var(--line);
}
.cem-row .ico{ width:34px; height:34px; border-radius:8px; background: var(--sage-soft); color: var(--sage); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cem-row .ico svg{ width:16px; height:16px; }
.cem-row .t{ font-weight:700; color: var(--navy); font-size:.94rem; }
.cem-row .s{ color: var(--text-muted); font-size:.8rem; }

.cta-inline{
  display:flex; gap:14px; margin-top: 30px; flex-wrap:wrap;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background: var(--slate); color: rgba(255,255,255,.82); }
.footer-top{
  padding: 60px 0 64px;
  display:grid;
  margin-left:20px;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.footer-brand{ font-family: var(--font-display); color: var(--white); font-size:1rem; font-weight:700; margin-bottom:10px; }
.footer-col h4{
  color: var(--white); font-family: var(--font-body); font-size:.74rem;
  letter-spacing:.12em; text-transform:uppercase; margin-bottom:18px; font-weight:700;
}
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; font-size:.92rem; }
.footer-col a:hover{ color: var(--gold-soft); }
.footer-col p{ font-size:.88rem; color: rgba(255,255,255,.65); margin:0 0 10px; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .history-grid{ grid-template-columns:1fr !important; }
  .ops-grid{ grid-template-columns:1fr !important; }
  .notice-grid{ grid-template-columns:1fr !important; }
  .notice-grid .g-item{ max-width: 280px; margin: 0 auto; }
  .split{ grid-template-columns:1fr; gap:36px; }
  .split .split-media{ order:-1; }
  .cards-3{ grid-template-columns: 1fr 1fr; }
  .cards-4{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows:200px; }
  .gallery-grid .g-item:nth-child(1){ grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 760px){
  .nav-links, .nav-actions .btn-outline{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-actions{ gap: 8px; }
  .mobile-menu{
    display:none;
    flex-direction:column;
    gap:2px;
    background: var(--white);
    border-top:1px solid var(--line);
    padding: 10px 28px 20px;
  }
  .mobile-menu.open{ display:flex; }
  .mobile-menu a{
    padding: 13px 0; font-weight:700; color: var(--navy); border-bottom:1px solid var(--line);
  }
  .mobile-menu .btn{ margin-top: 14px; width:100%; }

  .cards-3{ grid-template-columns:1fr; }
  .cards-4{ grid-template-columns:1fr; }
  .plaque-row{ grid-template-columns:1fr; }
  section{ padding: 60px 0; }
  .hero{ padding: 96px 22px 64px; }
  .footer-top{ grid-template-columns:1fr; gap:32px; padding: 50px 0 34px; }
  .exec-row{ flex-direction:column; align-items:flex-start; gap:6px; padding: 18px 22px; }
  .churches-box ul{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr; grid-auto-rows:240px; }
  .gallery-grid .g-item:nth-child(1){ grid-column:span 1; grid-row:span 1; }
  .hero-actions .btn{ width:100%; }
  .hero-actions{ flex-direction:column; }
}
