/*
Theme Name: Rainbow Bridge Memorial
Theme URI: https://rainbowsbridgememorial.com/
Author: OpenAI
Description: Proper WordPress theme for Rainbow Bridge Memorial with a custom homepage and standard page support.
Version: 1.2.1
Text Domain: rbm-theme
*/

:root {
  --rbm-surface: rgba(255,255,255,0.72);
  --rbm-border: rgba(255,255,255,0.28);
  --rbm-text: #ffffff;
  --rbm-text-dark: #2f2447;
  --rbm-muted: #eee8ff;
  --rbm-accent: #7c5cff;
  --rbm-accent-dark: #5f42d8;
  --rbm-shadow: 0 12px 36px rgba(20, 10, 40, 0.18);
  --rbm-radius: 20px;
  --rbm-width: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--rbm-text);
  background: #e9e2f3;
  position: relative;
}

a {
  color: var(--rbm-accent-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.rbm-site-bg {
  position: fixed;
  inset: 0;
  background-image: url('/wp-content/uploads/2026/03/rainbow-bridge-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.rbm-topbar {
  padding: 20px 24px;
}

.rbm-topbar-inner {
  max-width: var(--rbm-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.rbm-brand a {
  color: var(--rbm-text-dark);
  text-decoration: none;
  font-size: 28px;
  font-weight: 700;
}

.rbm-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.rbm-nav a {
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid #ddd2f7;
  color: #5a43d6;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(65,36,130,0.08);
}

.rbm-page-shell {
  padding: 24px 24px 48px;
}

.rbm-page-container {
  max-width: var(--rbm-width);
  margin: 0 auto;
}

/* Homepage inner panel to match tempindex.html */
.rbm-home-panel {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  background: rgba(70, 55, 85, 0.42);
  border-radius: 18px;
  padding: 40px 32px;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
}

.rbm-home-panel h1,
.rbm-home-panel h2 {
  margin-top: 0;
  text-align: center;
  font-weight: normal;
  text-shadow: 0 2px 5px rgba(0,0,0,0.45);
  color: #ffffff;
}

.rbm-home-panel h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.rbm-home-panel h2 {
  font-size: 1.6rem;
  margin-top: 32px;
  margin-bottom: 16px;
}

.rbm-home-panel p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 14px 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  color: #ffffff;
}

.rbm-service-box {
  margin: 28px 0;
  padding: 24px;
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  text-align: center;
}

.rbm-service-time {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.rbm-service-link {
  display: inline-block;
  background: rgba(255,255,255,0.95);
  color: #6a477f;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rbm-service-link:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.rbm-home-footer {
  margin-top: 34px !important;
  text-align: center;
  font-size: 1.05rem !important;
}

.rbm-site-footer {
  padding: 24px;
  text-align: center;
  color: #f3efff;
}

.rbm-site-footer .rbm-container {
  max-width: var(--rbm-width);
  margin: 0 auto;
}

/* Standard pages */
.page .entry-content,
.page .entry-content p,
.page .entry-title {
  color: var(--rbm-text-dark);
}

/* Tribute shortcode pages */
.page .entry-content > .rbm-wrap {
  max-width: var(--rbm-width);
  margin: 0 auto;
}

.rbm-form-card,
.rbm-room,
.rbm-card {
  background: rgba(255,255,255,0.82) !important;
  border: 1px solid #e5dcfb !important;
  border-radius: var(--rbm-radius) !important;
  box-shadow: var(--rbm-shadow) !important;
}

.rbm-form-card,
.rbm-room {
  padding: 28px !important;
}

@media (max-width: 760px) {
  .rbm-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .rbm-page-shell {
    padding: 18px 18px 36px;
  }

  .rbm-home-panel {
    padding: 28px 20px;
  }

  .rbm-home-panel h1 {
    font-size: 2rem;
  }

  .rbm-home-panel h2 {
    font-size: 1.35rem;
  }

  .rbm-home-panel p {
    font-size: 1.03rem;
  }

  .rbm-content-card,
  .rbm-form-card,
  .rbm-room {
    padding: 20px !important;
  }
}