/* =========================================================
   LEGGETT FUNERAL HOME - CLEAN PUBLIC STYLESHEET
   Final cleaned version for Network Solutions rollout.
   Purpose:
   - Remove duplicate banner experiments
   - Keep one clean homepage hero
   - Keep public page styling consistent
   - Support existing obituary, guestbook, contact, churches,
     testimonials, and homepage classes
========================================================= */


/* =========================================================
   BASE
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #2b2118;
  background: linear-gradient(180deg, #fbf8f1 0%, #ffffff 45%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}


/* =========================================================
   SITE WRAPPER
========================================================= */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* =========================================================
   HEADER / LOGO / NAVIGATION
========================================================= */

.site-header {
  background:
    radial-gradient(circle at top center, rgba(255, 250, 240, 0.9) 0%, #ffffff 58%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.32);
  padding: 22px 20px 18px;
  box-shadow: 0 4px 18px rgba(43, 33, 24, 0.05);
  position: relative;
  z-index: 5;
  text-align: center;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.logo-area h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0.5px;
  color: #24180f;
  font-weight: 700;
}

.logo-area p {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 18px;
  color: #a17417;
  font-size: 1.05rem;
  font-weight: 500;
}

.logo-area p span {
  display: inline-block;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37);
}

.logo-area p span:last-child {
  background: linear-gradient(90deg, #d4af37, transparent);
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.main-nav a {
  min-width: 104px;
  text-align: center;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.8);
  border-radius: 999px;
  color: #20170f;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(43, 33, 24, 0.06);
  transition: all 0.22s ease;
}

.main-nav a:hover {
  background: #d4af37;
  color: #111827;
  border-color: #b8962e;
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(43, 33, 24, 0.12);
}

.main-nav a.active,
body.home-page .main-nav a[href="/index.html"],
body.home-page .main-nav a[href="index.html"],
body.obituaries-page .main-nav a[href="/obituaries.html"],
body.obituaries-page .main-nav a[href="obituaries.html"],
body.churches-page .main-nav a[href="/churches.html"],
body.churches-page .main-nav a[href="churches.html"],
body.testimonials-page .main-nav a[href="/testimonials.html"],
body.testimonials-page .main-nav a[href="testimonials.html"],
body.contact-page .main-nav a[href="/contact.html"],
body.contact-page .main-nav a[href="contact.html"] {
  background: #d4af37;
  border-color: #b8962e;
  color: #111827;
}


/* =========================================================
   FINAL HOMEPAGE HERO BANNER
   This is the only active hero/banner styling.
========================================================= */

.home-page .hero-banner,
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: #f7f0e4;
  border-top: 1px solid #d8b434;
  border-bottom: 1px solid #d8b434;
}

.home-page .hero-banner-image,
.hero-banner-image,
.hero-banner .banner-img,
.banner-img {
  width: 100%;
  height: 360px;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.home-page .hero-banner-image,
.hero-banner-image {
  filter: blur(2px) brightness(0.82);
  transform: scale(1.03);
}

.home-page .hero-banner-overlay,
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.home-page .hero-banner-text,
.hero-banner-text {
  max-width: 950px;
  padding: 2rem 2.5rem;
  border: 1px solid rgba(216, 180, 52, 0.65);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 18px 50px rgba(34, 24, 16, 0.18);
  backdrop-filter: blur(2px);
}

.home-page .hero-banner-text h2,
.hero-banner-text h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b48616;
  text-shadow: 0 1px 0 #fff3c6, 0 2px 8px rgba(70, 45, 10, 0.22);
}

.home-page .hero-script,
.hero-script {
  margin: 0.75rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.4vw, 1.75rem);
  font-style: italic;
  color: #2d241d;
  letter-spacing: 0.08em;
}

.home-page .hero-divider,
.hero-divider {
  margin: 0.75rem auto;
  color: #d8b434;
  font-size: 1.15rem;
}

.home-page .hero-subtext,
.hero-subtext {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(0.8rem, 1.6vw, 1.05rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #3a2c22;
}


/* =========================================================
   PAGE LAYOUT / CONTENT CARDS
========================================================= */

.page-content {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding: 0;
  flex: 1;
}

.content-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 10px 24px rgba(43, 33, 24, 0.08);
}

.content-card + .content-card {
  margin-top: 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 25px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  color: #20170f;
}

.section-header p {
  max-width: 720px;
  margin: 10px auto 0;
  line-height: 1.6;
}

.centered-section {
  text-align: center;
}


/* =========================================================
   HOMEPAGE INTRO / SCRIPTURE
========================================================= */

.homepage-content {
  margin-top: 30px;
}

.home-intro-card {
  padding: 28px 30px;
}

.home-intro-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.home-eyebrow {
  margin: 0 0 10px;
  color: #a17417;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.home-intro-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.08;
  color: #20170f;
  max-width: 780px;
}

.home-intro-copy p {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #2b2118;
}

.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.home-primary-btn,
.home-secondary-btn,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: all 0.22s ease;
}

.home-primary-btn,
.btn-primary {
  background: #d4af37;
  color: #111827;
  border: 1px solid #b8962e;
}

.home-secondary-btn,
.btn-secondary {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d4af37;
}

.home-primary-btn:hover,
.home-secondary-btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(43, 33, 24, 0.12);
}

.home-quote-card {
  background: linear-gradient(145deg, #fffaf0 0%, #ffffff 100%);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.quote-mark {
  font-size: 54px;
  line-height: 0.8;
  color: #d4af37;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
}

.home-quote-card p {
  margin: 8px auto 16px;
  max-width: 330px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.75;
  font-style: italic;
  color: #2b2118;
}

.home-quote-card strong {
  color: #a17417;
}

.scripture {
  margin-top: 30px;
  padding: 15px 20px;
  font-style: italic;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #5a4a32;
  border-top: 1px solid #e6d8b8;
}


/* =========================================================
   HOMEPAGE SERVICES
========================================================= */

.services-modern-card {
  padding: 28px 24px;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 26px;
}

.service-card {
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 0;
  box-shadow: none;
  padding: 10px 18px;
  text-align: left;
}

.service-card:last-child {
  border-right: 0;
}

.service-icon {
  color: #b98b1f;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

.service-card h3 {
  margin: 0 0 8px;
  color: #2b2118;
  font-size: 0.95rem;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: #3b3027;
  font-size: 0.86rem;
  line-height: 1.55;
}


/* =========================================================
   HOMEPAGE TESTIMONIAL STRIP
========================================================= */

.google-testimonials-card,
.home-testimonial-strip {
  margin-top: 24px;
  padding: 30px 34px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,250,240,0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(43, 33, 24, 0.08);
  text-align: center;
}

.testimonial-strip-left {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.testimonial-icon {
  color: #d4af37;
  font-size: 38px;
  line-height: 1;
}

.testimonials-eyebrow {
  color: #a17417;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 1.9px;
  text-transform: uppercase;
}

.home-testimonial-strip h2 {
  margin: 6px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  color: #2b2118;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  line-height: 1.15;
}

.testimonial-stars {
  color: #d4af37;
  font-size: 1.25rem;
  letter-spacing: 4px;
  margin: 10px 0 18px;
}

.home-testimonial-strip p {
  max-width: 790px;
  margin: 0 auto 22px;
  color: #2b2118;
  font-size: 1.02rem;
  line-height: 1.65;
}

.testimonial-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.testimonial-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #d4af37;
  border: 1px solid #b8962e;
  color: #111827;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(43, 33, 24, 0.08);
  transition: all 0.22s ease;
}

.secondary-testimonial-btn {
  background: #ffffff;
  color: #111827;
  border-color: #d4af37;
}

.testimonial-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(43, 33, 24, 0.12);
}


/* =========================================================
   CHURCHES PAGE
========================================================= */

.church-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 1100px;
  margin: 25px auto 0;
}

.church-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.church-card {
  perspective: 1000px;
  width: 100%;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 150px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.church-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 15px;
  border: 1px solid #e6d8b8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-front {
  background-color: #f7f1e3;
}

.card-back {
  background-color: #d4af37;
  color: #000;
  transform: rotateY(180deg);
}

.card-front h3,
.card-front p,
.card-back p {
  margin: 5px 0;
}


/* =========================================================
   OBITUARIES
========================================================= */

.obituary-search-box {
  margin: 20px 0;
}

.obituary-search-box input,
#searchInput {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c8b98c;
  border-radius: 8px;
  font-size: 16px;
}

.obituary-result-count {
  text-align: center;
  color: #7a6a4f;
  font-size: 14px;
  margin-top: 20px;
}

.obituary-year-header {
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #d1d5db;
}

.obituary-year-header h2 {
  margin: 0;
  font-size: 2rem;
  color: #1f2937;
}

.obituary-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #ffffff;
  border-left: 5px solid #1f2f4a;
  padding: 18px;
  margin: 18px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.obituary-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #1f2f4a;
}

.obituary-card p {
  line-height: 1.5;
}

.obituary-card-content {
  flex: 1;
}

.obituary-preview {
  line-height: 1.5;
  color: #444444;
  margin-top: 8px;
}

.obituary-photo-wrap {
  flex-shrink: 0;
}

.obituary-photo,
.obituary-thumb {
  width: 120px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.obituary-main-photo {
  max-width: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto 15px;
}

.obituary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.obituary-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.obituary-pagination button {
  padding: 8px 13px;
  border-radius: 20px;
  border: 1px solid #d4af37;
  background-color: #f7f1e3;
  color: #2b2118;
  font-weight: bold;
  cursor: pointer;
}

.obituary-pagination button:hover:not(:disabled),
.obituary-pagination .active-page {
  background-color: #d4af37;
  color: #000;
}

.obituary-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: #7a6a4f;
  font-weight: bold;
}

.empty-message {
  text-align: center;
  background: #fffaf0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 20px;
  color: #2b2118;
  line-height: 1.6;
}


/* =========================================================
   OBITUARY DETAIL PAGE
========================================================= */

.obituary-detail-header {
  text-align: center;
  margin-bottom: 24px;
}

.obituary-detail-header h2 {
  margin-bottom: 6px;
  color: #1f2f4a;
}

.obituary-text {
  line-height: 1.7;
  white-space: pre-line;
}


/* =========================================================
   GUESTBOOK
========================================================= */

.guestbook-list,
.guestbook-entries {
  max-width: 900px;
  margin: 25px auto 0;
  display: grid;
  gap: 15px;
}

.guestbook-card,
.guestbook-entry {
  background-color: #f7f1e3;
  border: 1px solid #e6d8b8;
  border-radius: 12px;
  padding: 20px;
}

.guestbook-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guestbook-card h3 {
  margin: 0;
}

.guestbook-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.guestbook-btn {
  text-decoration: none;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 13px;
  margin: 5px;
  transition: all 0.3s ease;
}

.sign-btn {
  background-color: #d4af37;
  color: #000;
  border: 1px solid #b8962e;
}

.sign-btn:hover {
  background-color: #b8962e;
  transform: translateY(-2px);
}

.view-btn {
  background-color: transparent;
  color: #2b2118;
  border: 1px solid #d4af37;
}

.view-btn:hover {
  background-color: #f7f1e3;
}

.guestbook-entry p:first-child {
  font-weight: bold;
  margin-bottom: 5px;
}

.guestbook-form {
  max-width: 600px;
  margin: 30px auto 0;
  background-color: #f7f1e3;
  border: 1px solid #e6d8b8;
  border-radius: 14px;
  padding: 30px;
}

.guestbook-form label {
  display: block;
  margin-top: 14px;
  margin-bottom: 5px;
  font-weight: bold;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #c8b98c;
  border-radius: 6px;
  font-size: 15px;
}

.guestbook-form textarea {
  min-height: 130px;
  resize: vertical;
}

.short-input {
  max-width: 160px;
}

.validation-label {
  line-height: 1.4;
}

.required-note {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.form-buttons {
  text-align: center;
  margin-top: 22px;
}

.form-buttons button,
.form-buttons a {
  display: inline-block;
  margin: 5px;
  padding: 10px 16px;
  border-radius: 22px;
  border: 1px solid #d4af37;
  background-color: white;
  color: #2b2118;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.form-buttons button:first-child {
  background-color: #d4af37;
}

.form-buttons button:hover,
.form-buttons a:hover {
  background-color: #b8962e;
  color: #000;
}


/* =========================================================
   TESTIMONIALS PAGE
========================================================= */

.testimonials-list {
  display: grid;
  gap: 18px;
  max-width: 850px;
  margin: 20px auto 0;
}

.testimonial-card {
  background-color: #f7f1e3;
  border: 1px solid #e6d8b8;
  border-left: 5px solid #d4af37;
  border-radius: 12px;
  padding: 22px;
}

.testimonial-message {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 14px;
  color: #2b2118;
}

.testimonial-name {
  margin: 0;
  font-weight: bold;
  color: #1f2f4a;
  text-align: right;
}

.testimonial-submit-card {
  margin-top: 24px;
}

.form-status {
  text-align: center;
  font-weight: bold;
  color: #1f2f4a;
}


/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-page-card {
  padding: 32px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  margin-top: 24px;
}

.contact-info-panel,
.contact-form-panel {
  background: #f7f1e3;
  border: 1px solid #e6d8b8;
  border-radius: 14px;
  padding: 24px;
}

.contact-info-panel h3,
.contact-form-panel h3 {
  margin-top: 0;
  color: #1f2f4a;
}

.contact-info-item {
  border-bottom: 1px solid #e0cfa3;
  padding: 14px 0;
}

.contact-info-item span {
  display: block;
  color: #7a6a4f;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  margin-bottom: 5px;
}

.contact-info-item strong {
  color: #2b2118;
  line-height: 1.5;
}

.contact-note {
  margin-top: 20px;
  color: #8a6f1f;
  font-style: italic;
  font-weight: bold;
}

.payment-list,
.accepted-payments {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-weight: bold;
  color: #2b2118;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c8b98c;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  margin-top: 8px;
  background: #d4af37;
  color: #111827;
  border: 1px solid #b8962e;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background: #b8962e;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer,
.site-footer.final-home-footer,
.final-home-footer {
  margin-top: 34px;
  background: linear-gradient(135deg, #2b2118 0%, #4a3320 100%);
  border-top: 3px solid #d4af37;
  color: #ffffff;
  padding: 28px 20px;
  text-align: center;
}

.footer-content h3,
.footer-grid h3 {
  margin: 0 0 10px;
  color: #d4af37;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-content p,
.footer-grid p {
  margin: 6px 0;
  color: #f8fafc;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
  text-align: left;
}

.footer-motto {
  text-align: center;
  border-left: 1px solid rgba(212, 175, 55, 0.45);
  border-right: 1px solid rgba(212, 175, 55, 0.45);
  padding: 0 24px;
}

.footer-symbol {
  color: #d4af37;
  font-size: 26px;
  margin-bottom: 8px;
}

.footer-motto p {
  color: #f6d77a;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.25rem;
}

.footer-right {
  text-align: center;
}

.footer-note {
  margin-top: 15px;
  font-style: italic;
  color: #d4af37;
}

.footer-bottom {
  margin-top: 25px;
  font-size: 14px;
  color: #cccccc;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {
  .home-intro-layout {
    grid-template-columns: 1fr;
  }

  .service-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .service-card {
    border: 1px solid rgba(212, 175, 55, 0.26);
    border-radius: 10px;
    background: #fffaf0;
  }

  .service-card:last-child {
    border-right: 1px solid rgba(212, 175, 55, 0.26);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-motto {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    padding: 18px 0;
  }
}

@media (max-width: 850px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .church-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-page .hero-banner,
  .hero-banner {
    min-height: 320px;
  }

  .home-page .hero-banner-image,
  .hero-banner-image,
  .hero-banner .banner-img,
  .banner-img {
    height: 320px;
  }

  .home-page .hero-banner-overlay,
  .hero-banner-overlay {
    padding: 1rem;
  }

  .home-page .hero-banner-text,
  .hero-banner-text {
    padding: 1.5rem 1rem;
  }

  .home-page .hero-banner-text h2,
  .hero-banner-text h2 {
    letter-spacing: 0.08em;
  }

  .obituary-card {
    flex-direction: column;
  }

  .obituary-photo,
  .obituary-thumb {
    width: 100%;
    max-width: 180px;
  }

  .guestbook-card {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 18px 14px 16px;
  }

  .logo-area h1 {
    font-size: 2.2rem;
  }

  .logo-area p {
    gap: 8px;
    font-size: 0.95rem;
  }

  .logo-area p span {
    width: 38px;
  }

  .main-nav {
    gap: 8px;
  }

  .main-nav a {
    min-width: auto;
    padding: 9px 13px;
    font-size: 0.92rem;
  }
}

@media (max-width: 650px) {
  .page-content,
  .homepage-content {
    width: min(100% - 22px, 1180px);
  }

  .content-card,
  .home-intro-card,
  .services-modern-card,
  .home-testimonial-strip {
    padding: 22px;
  }

  .service-card-grid {
    grid-template-columns: 1fr;
  }

  .home-actions,
  .testimonial-actions {
    flex-direction: column;
  }

  .home-primary-btn,
  .home-secondary-btn,
  .testimonial-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .home-page .hero-banner,
  .hero-banner {
    min-height: 280px;
  }

  .home-page .hero-banner-image,
  .hero-banner-image,
  .hero-banner .banner-img,
  .banner-img {
    height: 280px;
  }

  .hero-subtext {
    letter-spacing: 0.06em;
  }
}

/* ===============================
   Clean Hero Banner Override
   =============================== */

.home-page .clean-hero-banner {
  position: relative !important;
  min-height: 340px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-top: 2px solid #c89a24;
  border-bottom: 2px solid #c89a24;
  background: #f7efe1;
}

.home-page .clean-hero-banner .hero-banner-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  z-index: 1 !important;
}

.home-page .clean-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45, 32, 18, 0.34);
  z-index: 2;
}

.home-page .clean-hero-banner .hero-banner-overlay {
  position: relative !important;
  z-index: 3 !important;
  min-height: 340px !important;
  padding: 34px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.home-page .clean-hero-banner .hero-banner-text {
  width: min(900px, 92%);
  padding: 48px 32px;
  text-align: center;
  background: rgba(255, 248, 232, 0.92);
  border: 1px solid rgba(196, 148, 31, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.home-page .clean-hero-banner .hero-banner-text h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: 0.1em;
  color: #b68405;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

.home-page .clean-hero-banner .hero-script {
  margin: 0 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-style: italic;
  letter-spacing: 0.06em;
  color: #30251f;
}

.home-page .clean-hero-banner .hero-divider,
.home-page .clean-hero-banner .hero-subtext {
  display: none !important;
}

@media (max-width: 700px) {
  .home-page .clean-hero-banner,
  .home-page .clean-hero-banner .hero-banner-overlay {
    min-height: 285px !important;
  }

  .home-page .clean-hero-banner .hero-banner-overlay {
    padding: 24px 14px !important;
  }

  .home-page .clean-hero-banner .hero-banner-text {
    width: 94%;
    padding: 34px 18px;
  }

  .home-page .clean-hero-banner .hero-banner-text h2 {
    letter-spacing: 0.05em;
  }

  .home-page .clean-hero-banner .hero-script {
    letter-spacing: 0.03em;
  }
}

/* ===============================
   Final Clean Homepage Banner
   Removes heavy box and uses cleaner text
   =============================== */

.home-page .clean-hero-banner {
  position: relative !important;
  min-height: 340px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-top: 2px solid #c89a24;
  border-bottom: 2px solid #c89a24;
  background: #21170f;
}

.home-page .clean-hero-banner .hero-banner-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  z-index: 1 !important;
}

/* darker overlay so text stays readable without the box */
.home-page .clean-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(28, 18, 10, 0.48),
      rgba(28, 18, 10, 0.48)
    );
  z-index: 2;
}

.home-page .clean-hero-banner .hero-banner-overlay {
  position: relative !important;
  z-index: 3 !important;
  min-height: 340px !important;
  padding: 42px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.home-page .clean-hero-banner .hero-banner-text {
  width: min(980px, 92%);
  padding: 0 !important;
  text-align: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.home-page .clean-hero-banner .hero-banner-text h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: 1.08;
  letter-spacing: 0.08em;
  color: #fff7e8;
  text-transform: uppercase;
  text-shadow:
    0 3px 8px rgba(0, 0, 0, 0.65),
    0 1px 0 rgba(184, 132, 5, 0.65);
}

.home-page .clean-hero-banner .hero-script {
  margin: 0 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff2dc;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.7);
}

.home-page .clean-hero-banner .hero-divider,
.home-page .clean-hero-banner .hero-subtext {
  display: none !important;
}

@media (max-width: 700px) {
  .home-page .clean-hero-banner,
  .home-page .clean-hero-banner .hero-banner-overlay {
    min-height: 285px !important;
  }

  .home-page .clean-hero-banner .hero-banner-overlay {
    padding: 32px 14px !important;
  }

  .home-page .clean-hero-banner .hero-banner-text h2 {
    letter-spacing: 0.04em;
  }

  .home-page .clean-hero-banner .hero-script {
    letter-spacing: 0.02em;
  }
}
/* ===============================
   Final Banner Polish
   =============================== */

.home-page .clean-hero-banner {
  min-height: 315px !important;
}

.home-page .clean-hero-banner::before {
  background:
    linear-gradient(
      rgba(28, 18, 10, 0.36),
      rgba(28, 18, 10, 0.36)
    ) !important;
}

.home-page .clean-hero-banner .hero-banner-overlay {
  min-height: 315px !important;
  padding: 38px 20px !important;
}

.home-page .clean-hero-banner .hero-banner-text h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  color: #fff7e8;
  text-transform: uppercase;
  text-shadow:
    0 3px 7px rgba(0, 0, 0, 0.58),
    0 1px 0 rgba(120, 82, 18, 0.7);
}

.home-page .clean-hero-banner .hero-script {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.02em;
  color: #fff2dc;
}
