/*
* Sealy Cuyler Funeral Home - Main Stylesheet
* Version: 2.0
* Author: Website Developer
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Lato:wght@300;400;600&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/* ===== Variables ===== */
:root {
  /* Colors */
  --primary: #2c3e50;
  /* Deep Blue */
  --primary-dark: #1a252f;
  --primary-light: #34495e;
  --secondary: #f1c40f;
  /* Gold */
  --secondary-dark: #c29d0b;
  --secondary-light: #f3d03e;
  --dark: #212529;
  --light: #fdfefe;
  --gray: #95a5a6;
  --gray-light: #ecf0f1;
  --white: #ffffff;
  --black: #000000;

  /* Fonts */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Lato', sans-serif;
}

/* ===== Global Styles ===== */
body {
  font-family: var(--font-secondary);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.btn {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-outline-light:hover {
  color: var(--dark);
  background-color: var(--white);
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

/* ===== Header Styles ===== */
.top-bar {
  font-size: 0.9rem;
}

.top-bar a:hover {
  color: var(--light) !important;
  opacity: 0.8;
}

.social-icons a {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--secondary);
}

.mobile-cta a {
  font-weight: 600;
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7));
  color: var(--white);
}

.hero-section .carousel-item {
  height: 650px;
}

.hero-section .carousel-item img {
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-section .carousel-caption {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-shadow: none;
}

.hero-section h1 {
  font-weight: 700;
  font-size: 3.5rem;
  color: var(--white);
}

.hero-section .lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Quick Links Section ===== */
.quick-link-card {
  background-color: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-light);
  transition: all 0.3s ease;
}

.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.icon-box {
  width: 80px;
  height: 80px;
  line-height: 80px;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== About Section ===== */
.about-section img {
  width: 100%;
  border-radius: 10px;
}

/* ===== Services Section ===== */
.service-card {
  background-color: var(--gray-light);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: none;
  padding: 2.5rem 2rem !important;
}

.service-card:hover {
  transform: translateY(-10px);
  background-color: var(--white);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  line-height: 80px;
  font-size: 2rem;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  margin: 0 auto;
}

/* ===== Testimonials Section ===== */
.testimonial-card {
  background-color: var(--white);
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--gray-light);
}

.testimonial-text {
  font-style: italic;
  position: relative;
  padding: 0 30px;
}

.testimonial-text::before,
.testimonial-text::after {
  font-family: 'Georgia', serif;
  font-size: 4rem;
  color: var(--secondary);
  position: absolute;
  opacity: 0.5;
}

.testimonial-text::before {
  content: '“';
  top: -20px;
  left: 0;
}

.testimonial-text::after {
  content: '”';
  bottom: -40px;
  right: 0;
}

.testimonial-author {
  margin-top: 20px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

.carousel-control-prev {
  left: -20px;
}

.carousel-control-next {
  right: -20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* ===== Contact CTA Section ===== */
.contact-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* ===== Footer Styles ===== */
.footer {
  background-color: var(--dark);
  color: var(--gray);
  padding: 4rem 0;
  font-size: 0.9rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

.footer h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--gray);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.social-icons a {
  color: var(--gray);
  font-size: 1.2rem;
  margin-right: 1rem;
}

.social-icons a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  margin-top: 2rem;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* ===== Page Banner ===== */
.page-banner {
  position: relative;
  padding: 8rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(44, 62, 80, 0.8);
}

.page-banner-content {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--secondary);
  font-weight: 600;
}

.breadcrumb-item.active {
  color: var(--gray-light);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--gray-light);
}

/* ===== Content Section ===== */
.content-section {
  padding: 80px 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.content-card {
  background-color: var(--white);
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1199.98px) {
  .hero-section .carousel-item {
    height: 500px;
  }
}

@media (max-width: 991.98px) {
  .hero-section .carousel-item {
    height: 550px;
  }

  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-section .carousel-item {
    height: 500px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .content-section {
    padding: 3rem 0;
  }

  .page-banner {
    padding: 6rem 0;
  }
}

@media (max-width: 575.98px) {
  .hero-section .carousel-item {
    height: 450px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}