/* =========================================
   Praise Church AZ — Unified Core Styles
   (Gold tiles • Centered emojis • Consistent mobile)
   ========================================= */

/* ---------- Tokens ---------- */
:root{
  --bg:#ffffff;
  --text:#0e0e0e;
  --muted:#5b5b5b;

  --gold:#D4AF37;
  --gold-deep:#c8a22f;
  --gold-light:#f9f2d9;

  --give:#C62828;

  --card:#ffffff;
  --ring:rgba(0,0,0,.08);
  --shadow-1:0 6px 18px rgba(0,0,0,.08);
  --shadow-2:0 10px 28px rgba(0,0,0,.12);
  --r-xl:20px;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;background:var(--bg);color:var(--text);
  font:400 17px/1.65 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
body.noscroll{overflow:hidden}
h1,h2,h3{
  font-family:"Playfair Display",Georgia,"Times New Roman",serif;
  margin:0 0 12px;line-height:1.15
}
h1{font-size:clamp(34px,4vw,48px)}
h2{font-size:clamp(22px,2.6vw,30px)}
p{margin:0 0 10px;color:var(--muted)}
.muted{color:var(--muted)}
.container{max-width:1150px;margin:0 auto;padding:28px 22px}

/* ---------- Header (your off-canvas header.php) ---------- */
.header{
  position:sticky;top:0;z-index:40;
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(160%) blur(8px);
  border-bottom:2px solid var(--gold);
}
.header-inner{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  grid-template-areas:"left brand right";
  align-items:center;gap:12px;padding:12px 12px;
}
.header-inner::before{content:"";grid-area:left}
.brand{grid-area:brand;justify-self:center;display:inline-flex;text-decoration:none}
.logo-header{
  height:118px;width:auto;
  filter:drop-shadow(0 0 14px rgba(212,175,55,.35)) drop-shadow(0 10px 24px rgba(0,0,0,.08));
}
.home .logo-header{display:none}
.hamburger{
  grid-area:right;justify-self:end;height:56px;width:56px;
  border-radius:12px;border:1px solid var(--ring);
  background:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow-1)
}
.hamburger span{display:block;height:2px;width:24px;background:#202020;border-radius:2px;margin:4px 0}

/* Off-canvas */
.nav-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:48}
.offcanvas{
  position:fixed;top:0;right:-360px;width:320px;height:100%;
  background:#fff;z-index:49;box-shadow:-10px 0 24px rgba(0,0,0,.14);
  border-left:1px solid var(--ring);transition:right .25s ease;
  display:flex;flex-direction:column
}
.offcanvas.open{right:0}
.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--ring)}
.offcanvas-list{list-style:none;margin:0;padding:8px 14px}
.offcanvas-list li{margin:6px 0}
.offcanvas-list a{
  display:block;padding:14px;border-radius:14px;border:1px solid var(--ring);
  text-decoration:none;color:#161616;font-weight:700
}
.offcanvas-list a:hover{background:var(--gold-light);border-color:var(--gold)}
.offcanvas-list a.give{
  color:#fff;background:linear-gradient(180deg,var(--give),#a51d1d);border-color:transparent
}

/* ---------- Hero ---------- */
.hero{text-align:center;padding:38px 0 12px}
.hero .mark{
  width:180px;height:auto;margin:0 auto;display:block;
  filter:drop-shadow(0 8px 20px rgba(0,0,0,.06))
}
.rule-gold{display:block;width:96px;height:3px;margin:10px auto 14px;background:var(--gold);border-radius:2px}
.sub{font-size:16px;color:var(--muted)}

/* ---------- Buttons (TILE STYLE restored) ---------- */
.btn{
  appearance:none;font-weight:700;font-size:16px;
  border-radius:999px;border:1px solid rgba(0,0,0,.07);
  height:56px;padding:0 22px;
  display:inline-grid;grid-auto-flow:column;place-items:center;gap:10px;
  text-decoration:none;cursor:pointer;
  box-shadow:var(--shadow-1);
  transition:transform .1s ease,box-shadow .2s ease,filter .2s ease
}
.btn:active{transform:translateY(1px)}
.btn-gold{background:linear-gradient(180deg,var(--gold) 0%,var(--gold-deep) 100%);color:#1a1a1a}
.btn-give{background:linear-gradient(180deg,var(--give) 0%,#a51d1d 100%);color:#fff}
.btn-light{background:#fff;border:1px solid var(--ring);color:#1a1a1a}
.btn:hover{box-shadow:var(--shadow-2)}
.actions{margin:18px auto 8px;display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.actions .btn{min-width:180px}

/* Emoji/icon perfect centering */
.btn .i{
  display:inline-flex;align-items:center;justify-content:center;
  font-size:20px;line-height:1;transform:translateY(1px)
}

/* ---------- Forms ---------- */
.form-grid{display:grid;gap:16px;grid-template-columns:260px 160px 1fr;align-items:end;margin-bottom:10px}
.input{width:100%;height:48px;padding:0 14px;border-radius:12px;border:1px solid var(--ring);background:#fff;color:#151515;outline:none}
.input:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(212,175,55,.18)}

/* ---------- Feature Cards (clickable tiles) ---------- */
.features{
  display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:8px
}
@media (max-width:900px){.features{grid-template-columns:1fr}}
.features .card{
  background:var(--card);border:1px solid var(--ring);border-radius:22px;padding:22px;
  box-shadow:var(--shadow-1);
  text-decoration:none;color:#111;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease
}
.features .card h3{font-family:"Playfair Display",Georgia,serif;margin:0 0 8px;color:#111}
.features .card p{color:#222;margin:0}
.features .card:hover{transform:translateY(-3px);box-shadow:var(--shadow-2);border-color:var(--gold)}

/* ---------- Footer ---------- */
.site-footer{margin-top:40px;border-top:1px solid var(--ring);background:#fff}
.site-footer .footer-inner{padding:18px 22px;text-align:center}
.site-footer .socials a{color:#1a1a1a;text-decoration:none}
.site-footer .socials a:hover{color:var(--gold);text-decoration:underline}
.site-footer .copyright{margin-top:8px;color:var(--muted)}

/* ---------- Give Page ---------- */
.donation-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:6px 0 24px}
@media (max-width:900px){.donation-grid{grid-template-columns:1fr}}
.giving-box{
  padding:20px;border:1px solid var(--ring);background:#fff;border-radius:16px;
  box-shadow:var(--shadow-1);transition:box-shadow .2s ease,transform .2s ease
}
.giving-box:hover{box-shadow:var(--shadow-2);transform:translateY(-2px)}
.donate-btn{
  display:inline-block;margin-top:10px;padding:12px 18px;font-weight:700;border-radius:999px;text-decoration:none;
  border:1px solid var(--gold);background:linear-gradient(180deg,#f7e9bf,#e7cd7a);color:#111;
  box-shadow:0 3px 0 #b18b33,0 10px 20px rgba(0,0,0,.05)
}
.donate-btn:hover{filter:brightness(.98)}
.donate-btn:active{transform:translateY(1px);box-shadow:0 2px 0 #b18b33}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .logo-header{height:102px}
  .form-grid{grid-template-columns:1fr 160px}
}
@media (max-width:640px){
  .logo-header{height:86px}
  .hamburger{height:52px;width:52px}
  .actions .btn{min-width:100%}
  .form-grid{grid-template-columns:1fr}
  .donation-grid{grid-template-columns:1fr}
}
/* === ONE ROW TILE ALIGNMENT (DESKTOP) === */

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
  margin: 28px auto 16px;
  max-width: 1200px;
  flex-shrink: 0;
}

.actions .btn {
  flex: 0 0 auto;                  /* no stretch */
  min-width: 180px;
  height: 56px;
  text-align: center;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 700;
}

/* Emoji alignment */
.actions .btn .i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transform: translateY(1px);
}

/* Mobile — stack vertically */
@media (max-width: 900px) {
  .actions {
    flex-wrap: wrap;
    gap: 12px;
    max-width: 92%;
  }
  .actions .btn {
    width: 100%;
    min-width: unset;
  }
/* Fix emoji + text alignment for all buttons */
.btn, button {
  display: flex;
  align-items: center;          /* vertical center */
  justify-content: center;      /* horizontal center */
  gap: 0.5rem;                  /* small space between emoji + text */
  text-align: center;
}

/* Make sure emoji behaves like text, not an image */
.btn span, button span, .btn::before, .btn::after {
  line-height: 1;
  vertical-align: middle;
}

/* Mobile refinement — keeps both emoji and text centered as one unit */
@media (max-width: 768px) {
  .btn, button {
    justify-content: center !important;
    text-align: center;
  }
}