/* ===== Premium Memorial Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

:root{
  --bg1:#f6f7ff;
  --bg2:#fdf6ff;

  --text:#0f172a;
  --muted:#64748b;

  --card: rgba(255,255,255,.72);
  --cardBorder: rgba(148,163,184,.35);

  --primary:#4f46e5;
  --primary2:#9333ea;
  --primarySoft: rgba(79,70,229,.12);

  --shadow: 0 12px 40px rgba(15, 23, 42, .08);
  --shadow2: 0 10px 25px rgba(2, 6, 23, .10);
}

/* Financial details: calm, respectful emphasis */
.fin-label {
  font-size: 12px;
  color: #64748b; /* slate */
  margin-bottom: 2px;
}

.fin-value {
  font-size: 15px;
  font-weight: 600; /* NOT heavy */
  color: #0f172a;
}


body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 400px at 15% 25%, rgba(79,70,229,.12), transparent 60%),
    radial-gradient(800px 450px at 85% 15%, rgba(147,51,234,.12), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--cardBorder);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border-radius: 18px;
}

/* Hero polish */
.hero{
  border: 1px solid rgba(148,163,184,.30);
  box-shadow: var(--shadow2);
  background:
    radial-gradient(900px 500px at 20% 30%, rgba(79,70,229,.14), transparent 55%),
    radial-gradient(900px 500px at 80% 10%, rgba(147,51,234,.14), transparent 55%),
    rgba(255,255,255,.70);
  backdrop-filter: blur(12px);
}

/* Smaller, softer WhatsApp button */
.btn-whatsapp,
a.btn-whatsapp {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b7cfa, #8b5cf6);
  box-shadow: 0 6px 14px rgba(99,102,241,.25);
}


/* Buttons */
.btn{
  border-radius: 14px;
  font-weight: 700;
  padding: 12px 14px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(255,255,255,.75);
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2,6,23,.12);
}
.btn:active{ transform: translateY(0px); }

.btn-primary{
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 16px 30px rgba(79,70,229,.20);
}
.btn-primary:hover{ opacity: .96; }

/* Nav chips */
.chip{
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(255,255,255,.65);
  transition: background .15s ease, transform .15s ease;
}
.chip:hover{
  background: rgba(255,255,255,.9);
  transform: translateY(-1px);
}

/* Typography polish */
.hero-title{
  letter-spacing: -0.02em;
}
.muted{ color: var(--muted); }

/* Biography special font (memorial feel) */
.bio-text{
  font-family: "Playfair Display", serif;
  font-size: 18px;
  line-height: 1.9;
  color: #111827;
}
.bio-text p{ margin: 0 0 14px; }

/* Inputs */
.input, textarea{
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.40);
  background: rgba(255,255,255,.85);
}
.input:focus, textarea:focus{
  outline: none;
  border-color: rgba(79,70,229,.55);
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}





:root{
  --ink:#0f172a;
  --muted:#64748b;
  --line:rgba(148,163,184,.35);
  --card:rgba(255,255,255,.78);
  --glass:rgba(255,255,255,.55);
  --primary:#2563eb;
  --accent:#a855f7;
  --soft:#f8fafc;
}

*{box-sizing:border-box}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(37,99,235,.20), transparent 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(168,85,247,.18), transparent 60%),
    radial-gradient(900px 700px at 50% 90%, rgba(14,165,233,.12), transparent 60%),
    #ffffff;
  min-height:100vh;
}

a{color:inherit}
.container{max-width:1100px;margin:0 auto;padding:22px}
.nav{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.65);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width:1100px;margin:0 auto;padding:14px 22px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.brand{
  display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.2px;
}
.badge{
  font-size:12px;color:#fff;background:linear-gradient(135deg,var(--primary),var(--accent));
  padding:6px 10px;border-radius:999px;
  box-shadow:0 10px 25px rgba(37,99,235,.18);
}
.nav-links{display:flex;gap:10px;flex-wrap:wrap}
.chip{
  padding:8px 12px;border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.75);
  text-decoration:none;
  font-size:13px;font-weight:600;
}
.chip:hover{transform:translateY(-1px)}
.hero{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.60));
  border-radius:22px;
  padding:22px;
  box-shadow:0 18px 50px rgba(15,23,42,.07);
  overflow:hidden;
  position:relative;
}
.hero:before{
  content:"";
  position:absolute; inset:-40px;
  background:
    radial-gradient(500px 250px at 15% 15%, rgba(37,99,235,.25), transparent 60%),
    radial-gradient(450px 250px at 85% 20%, rgba(168,85,247,.22), transparent 60%);
  filter: blur(12px);
  opacity:.9;
}
.hero > *{position:relative}
.hero-title{font-size:34px;font-weight:900;margin:0}
.hero-sub{color:var(--muted);font-weight:600;margin-top:6px}
.hero-note{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
  color:#334155;
}
.grid{
  display: grid;
  grid-template-columns: 1fr; /* was 2 columns before */
  gap: 18px;
  align-items: start;
}


@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
  .nav-inner{flex-direction:column;align-items:flex-start}
  .nav-links{width:100%}
  .chip{flex:1;text-align:center}
}

@media (max-width: 520px){
  .container{padding:14px}
  .hero{padding:16px;border-radius:18px}
  .hero-title{font-size:26px}
  .card{padding:14px;border-radius:16px}
  .btn{width:100%}
  .nav-links{gap:8px}
}

.card{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:18px;
  padding:16px;
  box-shadow:0 14px 35px rgba(15,23,42,.06);
}
.card h2{margin:0 0 10px;font-size:18px}
.muted{color:var(--muted)}
hr.sep{border:0;border-top:1px solid var(--line);margin:14px 0}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 14px;border-radius:12px;border:1px solid var(--line);
  background:rgba(255,255,255,.82);
  font-weight:700;font-size:13px;text-decoration:none;cursor:pointer;
}
.btn-primary{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  box-shadow:0 12px 28px rgba(37,99,235,.22);
}
.btn-danger{
  border:0;color:#fff;background:linear-gradient(135deg,#ef4444,#f97316);
}
.btn:disabled{opacity:.55;cursor:not-allowed}
.input, textarea{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  outline:none;
}
textarea{min-height:120px;resize:vertical}
.small{font-size:12px}
.success{
  padding:10px 12px;border-radius:14px;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.25);
  color:#166534;font-weight:700;
}
.error{
  padding:10px 12px;border-radius:14px;
  background:rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.22);
  color:#991b1b;font-weight:700;
}
.list{display:flex;flex-direction:column;gap:12px}
.item{
  padding:14px;border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.75);
}
.item .who{font-weight:900}
.item .rel{color:var(--muted);font-weight:700;font-size:12px}
.gallery{
  display:grid; gap:12px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px){ .gallery{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 520px){ .gallery{grid-template-columns: 1fr;} }
.ph{
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.8);
  overflow:hidden;
}
.ph img{width:100%;height:260px;object-fit:cover;display:block}
@media (max-width:520px){ .ph img{height:320px} }
.ph .cap{padding:10px 12px;font-weight:700}
.footer{
  margin:26px 0 10px;
  color:var(--muted);
  text-align:center;
  font-size:12px;
}

/* =========================
   Mobile-friendly top nav
   ========================= */

/* make the nav area sticky-ish clean (optional) */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

/* default (desktop) can stay as-is, but we’ll improve mobile */
@media (max-width: 720px) {

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Turn the menu into a horizontal scroll chips row */
  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;         /* IMPORTANT: prevent wrapping */
    overflow-x: auto;          /* allow scrolling */
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 6px;
    scrollbar-width: none;     /* hide scrollbar (Firefox) */
  }
  .nav-links::-webkit-scrollbar { display: none; }

  /* Make all chips consistent */
  .nav-links .chip {
    flex: 0 0 auto;            /* prevent shrinking */
    white-space: nowrap;       /* keep label on one line */
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
  }

  /* Slightly reduce brand size on mobile */
  .brand {
    gap: 10px;
  }
}

.hide-mobile { display: inline; }
.show-mobile { display: none; }

@media (max-width: 720px) {
  .hide-mobile { display: none; }
  .show-mobile { display: inline; }
}
@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr !important;
  }

  /* Home cards grid inside the Welcome card */
  .home-cards {
    grid-template-columns: 1fr !important;
  }
}
/* -------------------------
   Mobile nav scroll cue
   ------------------------- */
@media (max-width: 720px) {

  /* wrapper so we can place the cue */
  .nav-links-wrap {
    position: relative;
    width: 100%;
  }

  /* right-side fade + arrow cue */
  .nav-links-wrap::after {
    content: "›";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: 900;
    color: rgba(17, 24, 39, 0.55);

    /* fade overlay */
    background: linear-gradient(to right,
      rgba(255,255,255,0),
      rgba(255,255,255,0.9),
      rgba(255,255,255,1)
    );

    pointer-events: none; /* don't block clicks */
  }

  /* when user has scrolled, hide the cue */
  .nav-links-wrap.scrolled::after {
    display: none;
  }
  /* =========================
   TRIBUTE FORM (MOBILE COOL)
   ========================= */
.tribute-form.card{
  padding: 16px !important;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(2,8,23,.06);
}

.tf-grid{
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 680px){
  .tf-grid{ grid-template-columns: 1fr; }
}

.tf-label{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 6px;
  font-size: 12px;
  color: rgba(55,65,81,.9);
  font-weight: 700;
}
.tf-label span.req{ color: rgba(99,102,241,.95); font-weight: 900; }

.tribute-form .input,
.tribute-form textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.9);
  padding: 12px 14px;
  outline: none;
  transition: .18s ease;
  font-size: 14px;
}
.tribute-form .input{ height: 46px; }
.tribute-form textarea{ min-height: 160px; resize: vertical; }

.tribute-form .input:focus,
.tribute-form textarea:focus{
  border-color: rgba(99,102,241,.55);
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}

.tf-tip{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.12);
  color: rgba(30,41,59,.9);
  font-size: 12px;
  line-height: 1.5;
}

.tf-file{
  margin-top: 10px;
}
.tf-drop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,.18);
  background: rgba(255,255,255,.65);
}
.tf-drop small{ color: rgba(107,114,128,.95); line-height: 1.4; }
.tf-drop .btn-mini{
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
}

.tf-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
@media (max-width: 680px){
  .tf-actions{ flex-direction: column; align-items: stretch; }
  .tf-actions .btn{ width: 100%; justify-content: center; }
  .tf-actions .small{ text-align:center; }
}

/* Hide ugly default file input, keep accessible */
.tf-file input[type="file"]{
  position: absolute;
  left: -9999px;
}

/* Optional: make the "Choose file" label feel clickable */
.tf-drop{ cursor: pointer; }


/* clickable photo */
.ph-link { display:block; cursor: zoom-in; }

/* lightbox overlay */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
  z-index: 9999;
}

.lightbox.open{ display:flex; }

.lightbox img{
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
}

.lb-close{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
}


.ph-link { display:block; cursor: zoom-in; }

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
  z-index: 9999;
}

.lightbox.open{ display:flex; }

.lightbox img{
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
}

.lb-close{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
}

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
  z-index: 9999;
}
.lightbox.open{ display:flex; }




}


