/* Anderson Monuments - Custom Styles */

:root {
  --dark-bg: #302c2a;
  --darker-bg: #1a1715;
  --accent-red: #bf0000;
  --deep-red: #b22222;
  --light-gray: #d3d3d3;
  --mid-gray: #a9a9a9;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-gray);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background-color: var(--darker-bg) !important;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #444;
}

.navbar-brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.8rem;
  color: var(--light-gray) !important;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.navbar-brand .years-badge {
  display: inline-block;
  background-color: var(--deep-red);
  color: var(--white);
  padding: 2px 10px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.7rem;
  margin-left: 10px;
  text-transform: uppercase;
  vertical-align: middle;
}

.navbar-brand .years-badge .number {
  font-size: 1.4rem;
  font-weight: bold;
  display: block;
  line-height: 1;
}

.nav-link {
  color: var(--white) !important;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s, background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-red) !important;
  background-color: #333;
}

/* Hero / Header Section */
.hero-section {
  position: relative;
  background-color: var(--dark-bg);
  padding: 0;
  overflow: hidden;
}

.hero-tagline {
  text-align: center;
  padding: 2rem 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-tagline h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3rem;
  color: var(--light-gray);
  text-transform: lowercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.hero-tagline .subtitle {
  font-size: 1.5rem;
  color: var(--deep-red);
  font-weight: 600;
}

/* Carousel */
.carousel {
  max-height: 580px;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 580px;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  background: rgba(0, 0, 0, 0.3);
}

.carousel-indicators button {
  background-color: var(--accent-red);
}

/* Info Section (Hours, Services, Why Us) */
.info-section {
  padding: 3rem 0;
  background-color: var(--darker-bg);
}

.info-section h2 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent-red);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.info-section ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.info-section ul li {
  margin-bottom: 0.3rem;
  color: var(--light-gray);
}

.hours-block {
  text-align: center;
}

.hours-block .schedule {
  font-family: 'Voltaire', sans-serif;
  font-size: 1.1rem;
  color: var(--white);
}

.hours-block .address {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-top: 1rem;
}

/* Memorial Types Section */
.memorial-types {
  padding: 3rem 0;
  background-color: var(--dark-bg);
}

.memorial-card {
  text-align: center;
  margin-bottom: 2rem;
}

.memorial-card img {
  width: 100%;
  max-width: 300px;
  height: 270px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.memorial-card h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.memorial-card p {
  color: var(--mid-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Section Headers */
.section-header {
  text-align: center;
  padding: 2rem 0 1rem;
}

.section-header h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  color: var(--light-gray);
  text-transform: lowercase;
  letter-spacing: 2px;
}

.section-header .divider {
  width: 80px;
  height: 2px;
  background-color: var(--accent-red);
  margin: 0.5rem auto;
}

/* About Page */
.about-section {
  padding: 3rem 0;
}

.about-section img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.about-section h2 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.about-section p {
  color: var(--light-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-highlight {
  border: 2px solid var(--accent-red);
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.about-highlight p {
  font-size: 1.1rem;
  color: var(--white);
  font-style: italic;
  margin: 0;
}

/* Gallery Page */
.gallery-section {
  padding: 3rem 0;
}

.gallery-section h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: var(--white);
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* Memorials Page */
.memorials-section {
  padding: 3rem 0;
}

.memorial-style {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #444;
}

.memorial-style:last-child {
  border-bottom: none;
}

.memorial-style h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.memorial-style p {
  color: var(--mid-gray);
  line-height: 1.8;
}

.memorial-style img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.color-grid .color-swatch {
  text-align: center;
}

.color-grid .color-swatch img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.color-grid .color-swatch p {
  font-size: 0.85rem;
  margin-top: 0.3rem;
  color: var(--light-gray);
  text-transform: capitalize;
}

/* Signs Page */
.signs-section {
  padding: 3rem 0;
}

.signs-section h2 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.signs-section p {
  color: var(--mid-gray);
  line-height: 1.8;
}

.signs-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.signs-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
}

/* Contact Page */
.contact-section {
  padding: 3rem 0;
}

.contact-section h2 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-info {
  background-color: var(--darker-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}

.contact-info p {
  color: var(--light-gray);
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: var(--accent-red);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  background-color: var(--darker-bg);
  padding: 2rem;
  border-radius: 8px;
}

.contact-form .form-control {
  background-color: #3a3633;
  border: 1px solid #555;
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-form .form-control:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 0.2rem rgba(191, 0, 0, 0.25);
  background-color: #3a3633;
  color: var(--white);
}

.contact-form .form-control::placeholder {
  color: #888;
}

.btn-primary {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
}

.btn-primary:hover {
  background-color: #a00;
  border-color: #a00;
}

/* Footer */
.site-footer {
  background-color: var(--darker-bg);
  padding: 1.5rem 0;
  border-top: 1px solid #444;
  text-align: center;
}

.site-footer p {
  color: var(--mid-gray);
  font-size: 0.85rem;
  margin: 0;
}

.site-footer a {
  color: var(--accent-red);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Lightbox Modal */
.lightbox-modal .modal-content {
  background-color: transparent;
  border: none;
}

.lightbox-modal .modal-body {
  padding: 0;
  text-align: center;
}

.lightbox-modal .modal-body img {
  max-width: 100%;
  max-height: 90vh;
}

.lightbox-modal .btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  filter: invert(1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-tagline h1 {
    font-size: 2rem;
  }

  .hero-tagline .subtitle {
    font-size: 1.2rem;
  }

  .carousel-item img {
    height: 300px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .gallery-grid img {
    height: 150px;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }
}

/* Map container */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Celebrating years badge in sidebar */
.years-sidebar {
  text-align: center;
  margin-bottom: 2rem;
}

.years-sidebar .badge-box {
  display: inline-block;
  background-color: var(--deep-red);
  color: var(--white);
  padding: 15px 25px;
  text-align: center;
}

.years-sidebar .badge-box .big-number {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
}

.years-sidebar .badge-box .label {
  font-family: 'Voltaire', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  display: block;
}

.years-sidebar .badge-box .est {
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}
