/* ================ CSS Variables ================ */
:root {
  --navbar-height: 56px;
  --primary-green: #4a7d3a;
  --dark-green: #3a6b2a;
  --primary-orange: #d0802d;
  --dark-orange: #b56c1f;
  --primary-turquoise: #0097b2;
  --primary-brown: #702a22;
  --light-gray: #f5f5f5;
  --lighter-gray: #f8f8f8;
  --medium-gray: #f0f0f0;
  --text-gray: #4a5568;
  --text-brown: #523e2e;
  --light-orange: #a8552b;
}

/* ================ Font Faces ================ */
@font-face {
  font-family: "Jreeng";
  src: url("../fonts/jreeng.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Cocon";
  src: url("../fonts/cocon.otf") format("opentype");
  font-display: swap;
}

/* ================ Base Styles ================ */
body {
  background-color: var(--lighter-gray);
  font-family: "Cocon", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Elements using Jreeng */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.memorial-title,
.testimonial-author h5,
.card-header,
.navbar-brand,
.btn {
  font-family: "Jreeng", "Cocon", sans-serif;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "hlig" 0;
  font-variant-ligatures: none;
  text-decoration-skip-ink: none;
}

.card-header.orange {
  background-color: var(--primary-orange);
}
.card-header.turquoise {
  background-color: var(--primary-brown);
}
.card-header.green {
  background-color: var(--primary-green);
}
.card-header.dark-orange {
  background-color: var(--dark-orange);
}

.card-price.orange {
  color: var(--primary-orange);
}
.card-price.turquoise {
  color: var(--primary-brown);
}
.card-price.green {
  color: var(--primary-green);
}
.card-price.dark-orange {
  color: var(--dark-orange);
}

/* ================ Layout ================ */
.container-fluid {
  flex: 1;
  padding: 0;
  padding-bottom: 2rem;
}

.scroll-section {
  scroll-margin-top: calc(var(--navbar-height) + 24px);
}

/* ================ Components ================ */
/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  color: var(--primary-green) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-orange) !important;
  text-decoration: underline;
  text-underline-offset: 0.5rem;
}

.navbar-nav .nav-link.active {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.5rem;
  color: var(--primary-orange) !important;
}

/* Hero Section */
.hero-section {
  background-color: var(--medium-gray);
}

.hero-image {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
  max-width: 34rem; /* ← make it smaller */
  margin: 0 auto; /* optional: center it */
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.hero-image:hover {
  transform: scale(1.02);
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-title {
  color: var(--dark-green);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text {
  color: var(--text-brown);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-orange);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: var(--dark-orange);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(210, 128, 45, 0.3);
}

.btn-outline-custom {
  background-color: white;
  border-color: var(--primary-green);
  color: var(--primary-green);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background-color: var(--primary-green);
  color: white !important;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(74, 125, 58, 0.2);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.footer {
  background-color: var(--primary-turquoise);
  padding: 2rem 0;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.footer p {
  margin-bottom: 0;
}

/* Social Buttons */
.social-btn {
  background-color: var(--primary-green);
  color: white;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.social-btn:hover {
  background-color: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-btn i {
  transition: transform 0.3s ease;
}

.social-btn:hover i {
  transform: scale(1.1);
}

/* social icon on footer */
.social-icon {
  font-size: 1.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  opacity: 0.9;
}

/* Specific hover colors (optional) */
.social-icon:hover i.fa-facebook-f {
  color: #1877f2 !important;
}
.social-icon:hover i.fa-instagram {
  color: #e4405f !important;
}
.social-icon:hover i.fa-x-twitter {
  color: #000000 !important;
}
.social-icon:hover i.fa-tiktok {
  color: #040404 !important;
}
.social-icon:hover i.fa-viber {
  color: #7360f2 !important;
}

/* Utility Classes */
.hover-effect {
  transition: all 0.3s ease;
  position: relative;
}

.hover-effect:hover {
  color: var(--primary-orange) !important;
}

/* Packages more details accordion animation */
[data-bs-toggle="collapse"] i {
  transition: transform 0.2s ease;
}

[data-bs-toggle="collapse"][aria-expanded="true"] i {
  transform: rotate(180deg);
}

.card-body ul li {
  line-height: 1.4;
}

/* Memento Card Styles */
/* ===== Optimized Mementos CSS ===== */
/* Base Card Styles */
.memorial-card {
  --card-radius: 0.75rem;
  --card-padding: 1rem;
  --title-color: var(--dark-green);
  --price-color: var(--primary-brown);
  --text-color: var(--text-brown);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

/* Image Container */
.memorial-image {
  aspect-ratio: 1;
  overflow: hidden;
}

.memorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Content Area */
.memorial-content {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.memorial-title {
  color: var(--title-color);
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.memorial-desc {
  color: var(--text-color);
  font-size: clamp(0.8rem, 2.5vw, 0.85rem);
  line-height: 1.4;
}

.memorial-price {
  color: var(--price-color);
  font-weight: 700;
  font-size: clamp(0.9rem, 3vw, 1rem);
  margin-top: auto;
}

/* Mobile First Styling */
@media (max-width: 575.98px) {
  .memorial-card {
    --card-padding: 0.75rem;
    max-width: 320px;
    margin: 0 auto;
  }

  .memorial-content {
    gap: 0.25rem;
  }
}

/* Tablet+ Styles */
@media (min-width: 576px) {
  .memorial-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
  }

  .memorial-card:hover .memorial-image img {
    transform: scale(1.05);
  }
}

/* Grid Layout Adjustments */
@media (max-width: 575.98px) {
  .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 576px) {
  .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Google Maps Card - Essential CSS Only */
/* Container styling */
.map-container {
  position: relative;
  min-height: 300px; /* Default height */
}

/* Responsive iframe */
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
  .map-container {
    min-height: 250px; /* Slightly shorter on mobile */
  }

  /* Only add margin if needed (remove if not) */
  .col-lg-5:not(:first-child) {
    margin-top: 1.5rem;
  }
}

/* ===== Optimized Testimonials ===== */
.testimonial-card {
  max-width: 800px;
  background: white;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.testimonial-card.text-only {
  padding: 2.5rem;
  border-left: 5px solid var(--primary-orange);
  transition: all 0.3s ease;
}

.testimonial-card.text-only:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  position: relative;
  padding: 0;
}

.testimonial-quote-icon {
  color: var(--primary-orange);
  opacity: 0.2;
  font-size: 2.5rem;
  position: absolute;
  top: -1rem;
  left: -1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-brown);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0 1rem;
}

.testimonial-author {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1.5rem;
}

.testimonial-author h5 {
  color: var(--dark-green);
  margin-bottom: 0.25rem;
}

.testimonial-author small {
  color: var(--text-brown);
  opacity: 0.8;
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial-social-link {
  color: var(--primary-green);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
}

.testimonial-social-link:hover {
  color: var(--dark-green);
  text-decoration: underline;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary-orange);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.carousel-control-prev {
  left: -25px;
}

.carousel-control-next {
  right: -25px;
}

/* Carousel Indicators */
.carousel-indicators {
  bottom: -50px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-green);
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.2);
}

/* Mobile Responsiveness */
@media (max-width: 767.98px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }

  .testimonial-card.text-only {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
    padding: 0;
  }

  .testimonial-quote-icon {
    font-size: 2rem;
    top: -0.5rem;
    left: -0.5rem;
  }
}

/* ===== Additional Testimonial Optimizations ===== */
/* Ensure proper vertical spacing for testimonials section */
#testimonials {
  scroll-margin-top: calc(var(--navbar-height) + 20px);
}

/* Improve carousel transition for smoother experience */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* Enhance focus states for accessibility */
.testimonial-social-link:focus {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

/* Add subtle animation to indicators */
.carousel-indicators button {
  transition: all 0.3s ease;
}

/* Slightly reduce card width on larger screens for better readability */
@media (min-width: 1200px) {
  .testimonial-card.text-only {
    max-width: 750px;
  }
}

/* Ensure text doesn't get too narrow on mobile */
@media (max-width: 400px) {
  .testimonial-card.text-only {
    margin: 0 0.5rem;
    padding: 1rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .testimonial-card.text-only {
    padding: 1.25rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .carousel-indicators {
    bottom: -40px;
  }
}

@media (max-width: 575.98px) {
  .carousel-indicators {
    bottom: -40px;
  }
}

/* ================ Responsive Styles ================ */
/* ================ Hero Section Mobile Optimization ================ */
@media (max-width: 992px) {
  .hero-section {
    padding: 1.5rem 0 2rem; /* Reduced from 2rem 0 3rem */
  }

  .hero-content {
    text-align: center;
    padding-top: 1rem; /* Reduced from 1.5rem */
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem; /* Slightly reduced from 2.5rem */
    margin-bottom: 1rem; /* Reduced from 1.5rem */
  }

  .hero-text {
    margin-bottom: 1.5rem; /* Reduced from 2rem */
  }
}

/* Additional mobile optimization for very small screens */
@media (max-width: 400px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .hero-buttons .btn {
    min-width: 110px; /* Slightly reduced from 120px */
    padding: 0.4rem 0.9rem; /* Reduced from 0.5rem 1rem */
  }
}

/* Font size utility - moved last for proper cascade */
.fa-lg-lg {
  font-size: 1.25rem;
}

/* Add to your styles.css */
.address-responsive {
  max-width: 300px;
  word-break: break-word;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 768px) {
  .address-responsive {
      max-width: 220px;
  }
}

/* Small phones */
@media (max-width: 576px) {
  .address-responsive {
      max-width: 180px;
  }
}

.responsive-lead {
  font-size: 1.25rem; /* Default lead size */
  color: var(--text-brown);
}

@media (max-width: 768px) {
  .responsive-lead {
      font-size: 1rem !important; /* Smaller on mobile */
      line-height: 1.4;
  }
}