/* Brown Safe interior responsive + accessibility stylesheet
   Clean consolidated version for Custom Safes page
   (Legacy inline styles migrated out of HTML)
*/

/* ---------- Base reset / globals ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body{
  font-family: "Century Gothic W01", Arial, Helvetica, sans-serif;
  color: #3a3a3a;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img{ max-width: 100%; height: auto; }

/* Links (WCAG-friendly on white) */
a{ color:#2A5D7C; }
a:hover{ text-decoration: underline; }
a:focus-visible{
  outline: 2px solid #2A5D7C;
  outline-offset: 3px;
  border-radius: 2px;
}

/* WOWSlider helper */
.disabled{ visibility:hidden; }

/* ---------- Skip link ---------- */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #2A5D7C;
  border: 2px solid #2A5D7C;
  border-radius: 8px;
  z-index: 9999;
}
.skip-link:focus{
  left: 1rem;
  top: 1rem;
}

/* ---------- Layout wrapper ---------- */
#bsis-wrapper{
  margin: 0 auto;
  width: 100%;
  max-width: 850px;
  padding: 20px 16px 0 16px;
  /* Header compensation (moved from inline HTML styles) */
  margin-top: 120px;
}
@media (max-width: 768px){
  #bsis-wrapper{ margin-top: 40px; }
}

/* Prevent accidental horizontal scroll from legacy fixed elements */
#bsis-wrapper, #cf-slideshow-outer, #wowslider-container1 { max-width: 100%; }

/* ---------- Slideshow wrapper ---------- */
#cf-slideshow-outer{
  margin: 0.625rem auto 0;
  padding: 0;
  width: 100%;
  height: auto;
  background: none !important; /* remove legacy black frame background */
}

/* Slider container visual treatment */
#wowslider-container1{
  border-radius: 8px;
  overflow: hidden;
  /* Use inset line as “border” so WOWSlider internals don't visually swallow it */
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.40),
    0 18px 40px rgba(0,0,0,0.38);
}

/* Ensure inner slider respects rounding */
#wowslider-container1 .ws_images,
#wowslider-container1 .ws_images > ul{
  border-radius: 8px;
}

/* ---------- Typography blocks ---------- */
.content-narrow{
  max-width: 830px;
  margin: 0 auto;
  padding-top: 2em;
}
@media (min-width: 1400px){
  .content-narrow{ max-width: 850px; }
}
.content-narrow p{ line-height: 1.7; }

/* Elevated Page Title Styling */
.page-title{
  text-align: center;
  margin: 0 auto 2rem auto;
  padding: 3rem 1rem 1rem 1rem;
}
.page-title__primary{
  display:block;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color:#2b2b2b;
}
.page-title__secondary{
  display:block;
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color:#6f645f;
}
@media (min-width: 1200px){
  .page-title__primary{ font-size: 3rem; letter-spacing: 3px; }
  .page-title__secondary{ font-size: 1.25rem; }
}

/* Body paragraph spacing inside wrapper (keeps legacy look consistent) */
#bsis-wrapper div p{
  color: #666666;
  padding: 0 1rem 1rem;
}

/* CTA */
.cta-phone{ padding: 1.25rem 1rem 0; }

/* Divider images */
.section-divider{
  display:block;
  width: 100%;
  max-width: 850px;
  margin: 1.5rem auto;
}

/* ---------- Safe lineup ---------- */
.safe-lineup{ padding: 2rem 1rem; }

.safe-lineup__intro{
  font-size: 1.5rem;
  font-style: italic;
  text-align:center;
  color:#6f645f;
  margin-bottom: 2rem;
}
.safe-lineup__intro span{ display:block; }

.safe-lineup__grid{
  display:flex;
  flex-wrap: nowrap;
  justify-content:center;
  gap: 28px;
}
.safe-lineup__grid .safe-card{ flex: 0 0 auto; }

@media (max-width: 900px){
  .safe-lineup__grid{
    flex-wrap: wrap;
    gap: 18px;
  }
}

.safe-card img{
  display:block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.safe-card:hover img,
.safe-card:focus-visible img{
  transform: translateY(-4px);
  opacity: 0.9;
}
.safe-card:focus-visible{
  outline: 2px solid #6f645f;
  outline-offset: 4px;
}

/* ---------- Options list ---------- */
.options{ padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 700px){
  .options{ padding-left: 4.375rem; padding-right: 0; }
}

.options-title{
  padding: 0.625rem 0.625rem 1.6em 0;
  color:#6f645f;
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0;
}

#options ul{ padding-left: 1.25rem; }
#options li{ color:#666666; padding: 0.25rem 0 0.75rem 0; }

/* Mobile: prevent double-inset feel when .options is also .content-narrow */
@media (max-width: 768px){
  #options.options.content-narrow{
    padding-left: 0;
    padding-right: 0;
  }
  #options ul{ padding-left: 1.1rem; }
}

/* ---------- Drawer inserts ---------- */
.drawer-inserts{ padding: 1.5rem 0; }

.section-title{
  padding: 0.625rem 0.625rem 0 0;
  font-size: 2rem;
  font-weight: 600;
  color:#6f645f;
  margin: 0 0 1rem 0;
}
.section-title--center{ text-align:center; }

.drawer-inserts__image{
  text-align:center;
  margin: 0 auto 1rem auto;
}
.drawer-inserts__image img{
  max-width: 100%;
  height: auto;
  display:inline-block;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce){
  * { scroll-behavior: auto !important; }
  .safe-card img{ transition: none !important; }
}
