/* ── Serenity Funeral Services — Global Styles ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: #ffffff;
  color: #241B2E;
  min-height: 100vh;
  
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  color: #070707;
  
}

p { line-height: 1.8; color: #030303; }
a { text-decoration: none; color: inherit; }

input, select, textarea {
  font-family: 'Jost', sans-serif;
  background: #FFFFFF;
  border: 1px solid #E4D8EE;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  color: #241B2E;
  width: 100%;
  transition: border-color .2s;
  outline: none;
}

input:focus, select:focus, textarea:focus { border-color: #8E1FB5; }
button { cursor: pointer; font-family: 'Jost', sans-serif; }
::placeholder { color: #AEA79B; }

.divider {
  width: 60px;
  height: 2px;
  background: #909090;
  margin: 12px auto;
}

.divider-left { margin-left: 0; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F7F1FB; }
::-webkit-scrollbar-thumb { background: #242324; border-radius: 3px; }

/* ── Responsive grids ──────────────────────────────────────────────────────── */
.rgrid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.rgrid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.rgrid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.rgrid-5 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; }

@media (max-width: 900px) {
  .rgrid-3, .rgrid-4 { grid-template-columns: repeat(2, 1fr); }
  .rgrid-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rgrid-2, .rgrid-3, .rgrid-4, .rgrid-5 { grid-template-columns: 1fr; }
}

/* ── Responsive section padding ───────────────────────────────────────────── */
.section-pad { padding: 80px 48px; }
.hero-pad    { padding: 100px 48px; }
.band-pad    { padding: 70px 48px; }

@media (max-width: 768px) {
  .section-pad { padding: 56px 24px; }
  .hero-pad    { padding: 64px 24px; }
  .band-pad    { padding: 48px 24px; }
}
@media (max-width: 480px) {
  .section-pad { padding: 40px 16px; }
  .hero-pad    { padding: 48px 16px; }
  .band-pad    { padding: 36px 16px; }
}

/* ── Responsive nav ────────────────────────────────────────────────────────── */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: #241B2E; margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none !important;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch !important;
    gap: 4px !important;
    background: #ffffff;
    padding: 12px 24px 20px;
    border-bottom: 1px solid #E4D8EE;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex !important; }
  .nav-links button { text-align: left; padding: 10px 4px !important; width: 100%; }
}

/* ── Responsive tables ────────────────────────────────────────────────────── */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Responsive form cards ────────────────────────────────────────────────── */
.form-card { padding: 48px; }
@media (max-width: 640px) {
  .form-card { padding: 24px; }
}

/* ── Footer grid ───────────────────────────────────────────────────────────── */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}


.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  text-decoration: none;
  font-size: 20px;

  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: .2s ease;
}

.float-btn:hover {
  transform: scale(1.08);
}

.whatsapp {
  background: #25D366;
}

.phone {
  background: #1677ff;
}

.email {
  background: #555;
}

.join-now {
  background: #111;
  color: white;
  padding: 14px 24px;
  border-radius: 30px;

  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: .2s ease;
}

.join-now:hover {
  transform: translateY(-2px);
}

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: #5b2a86; /* adjust to match your exact purple */
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.2s ease;
  opacity: 0.9;
}

#scrollTopBtn:hover {
  background-color: #000;
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  #scrollTopBtn {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 20px;
    font-size: 18px;
  }
}