@charset "utf-8";
/* CSS Document */

/* ==========================================================================
   GLOBAL / BASE STYLES (shared across ALL pages)
   ========================================================================== */

html {
  background-color: #970000;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #222;
}

.container {
  background-color: #ffffff;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.breadcrumb {
  padding: 0.75rem 1rem;
  font-size: clamp(0.95rem, 2.2vw, 1rem);
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  margin: 0 -1rem 1.25rem;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  margin: 0 0.6rem 0 0.4rem;
  color: #777;
  font-weight: bold;
}

.breadcrumb-item a {
  color: #970000;
  text-decoration: none;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
  text-decoration: underline;
  color: #700000;
}

.breadcrumb-item[aria-current="page"] {
  color: #444;
  font-weight: 500;
}

header {
  text-align: center;
  padding-bottom: 1.5rem;
}

.logo {
  margin: 0 auto 1rem;
  max-width: 120px;
}

#logo {
  width: 100%;
  height: auto;
  display: block;
}

.center {
  text-align: center;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  margin: 0.5rem 0;
}

h2 {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  margin: 1rem 0 0.5rem;
}

h3 {
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  text-align: center;
}

p, li, .description {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

a {
  color: #970000;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #700000;
  text-decoration: none;
}

a:focus {
  outline: 3px solid #970000;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.line {
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}

aside,
footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.picture,
.casket-image {
  float: none;
  width: 100%;
}

/* Small screen adjustments (shared) */
@media (max-width: 360px) {
  .container {
    padding: 0.75rem;
  }
  h1 {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
  }
  .breadcrumb {
    padding: 0.5rem 0.75rem;
    font-size: clamp(0.9rem, 2.8vw, 0.95rem);
  }
}


/* ==========================================================================
   INDEX / HOME PAGE STYLES (currently planned for update – add here later)
   ========================================================================== */

/* Placeholder – add home-specific styles when you redesign the index page */
/* e.g. hero banner, featured products grid, testimonials, etc. */


/* ==========================================================================
   CATEGORY LEVEL STYLES (e.g. cedar-casket.html – overview/list of styles)
   ========================================================================== */

.desc {
  text-align: left;
  display: block;
  clear: both;
}

.section {
  display: contents;
}

.gallery-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
}

@media (min-width: 600px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery {
  background-color: #fff;
  border: 1px solid #d0d0ff;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
}

.gallery h3 {
  margin: 0 0 0.75rem 0;
}

.gallery h3 a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.gallery h3 a:hover,
.gallery h3 a:focus {
  text-decoration: underline;
}

.gallery h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gallery figure {
  margin: 0;
  line-height: 0;
}

.gallery img {
  width: 300px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f8f8;
  display: block;
}

/* Category small screen tweaks */
@media (max-width: 360px) {
  .gallery {
    padding: 1rem;
  }
  .gallery img {
    width: 100%;
    max-width: 100%;
  }
  .gallery-container {
    gap: 1rem;
  }
}


/* ==========================================================================
   SUBCATEGORY / SINGLE PRODUCT STYLES (e.g. cedar-caskets-simple.html)
   ========================================================================== */

.product-hero {
  text-align: center;
  margin: 2rem 0 3rem;
}

.product-hero h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 1.5rem;
  color: #5a3e1b; /* Warm wood-brown – cedar feel */
}

.product-main {
  display: grid;  
  place-items: center;
}



.product-image {
  margin: 0;
  line-height: 0;
  background: #fdfaf5; /* light warm off-white */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.product-image img {
  max-width: 480px;
  height: auto;
  display: block;
  background: #fdfaf5;
}

@media (max-width: 460px) {
  .product-image img {max-width:300px
  }

.product-info p {
  font-size: clamp(1.05rem, 2.4vw, 1.18rem);
  margin: 1.25rem 0;
  text-align:left
}

.product-info strong {
  color: #5a3e1b;
}

.big-phone {
  font-size: 1.5rem;
  margin: 1.2rem 0 0.5rem;
  font-weight: 600;
}

.big-phone a {
  color: #970000;
  text-decoration: none;
  font-size: 1.7rem;
}

.big-phone a:hover,
.big-phone a:focus {
  text-decoration: underline;
  color: #700000;
}

.big-phone span {
  font-size: 1rem;
  color: #555;
  display: block;
  margin-top: 0.3rem;
}