/* =========================================================
   BattleCreek Storage — inner pages
   Loaded on every page except the homepage.
   ========================================================= */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 50px) 0 90px;
  background-color: var(--navy);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: var(--navy-2);
  clip-path: polygon(0 100%, 0 55%, 22% 100%, 100% 0, 100% 100%);
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 56px;
}

.page-hero--text-first .page-hero-media {
  order: 2;
}

.page-hero-media img {
  width: min(100%, 460px);
  margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.page-hero h1 {
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.22;
  margin-bottom: 18px;
}

.page-hero-lead {
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.page-hero .hero-note {
  margin-top: 10px;
}

.page-hero-copy > * {
  animation: rise 0.9s var(--ease) both;
}

.page-hero-copy > *:nth-child(2) {
  animation-delay: 0.06s;
}

.page-hero-copy > *:nth-child(3) {
  animation-delay: 0.12s;
}

.page-hero-copy > *:nth-child(4) {
  animation-delay: 0.18s;
}

.page-hero-media {
  animation: rise 1s var(--ease) 0.1s both;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 18px;
  font-size: 14px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--sky);
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--gold);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--white);
}

/* ---------- Generic sections ---------- */
.band {
  position: relative;
  padding: 90px 0;
}

.band--light {
  background-color: var(--navy-2);
}

.section-head {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 14px;
}

.section-head p {
  font-size: 19px;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  margin: 40px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 22px;
  margin: 28px 0 10px;
}

.prose p {
  margin-bottom: 14px;
  font-size: 18px;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: disc;
}

.prose li {
  margin-bottom: 6px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding: 14px 16px 14px 50px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  font-size: 17px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.check-list li:hover {
  border-color: var(--sky);
  transform: translateX(4px);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--sky);
  border-bottom: 3px solid var(--sky);
  transform: translateY(-70%) rotate(-45deg);
}

/* ---------- Size picker (price groups) ---------- */
.size-group {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px;
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.size-group:last-child {
  border-bottom: 0;
}

.size-group:nth-child(even) .size-media {
  order: 2;
}

.size-media {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--navy-2);
}

.size-media img {
  width: 100%;
  max-width: 560px;
  height: auto;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}

.size-media img.is-swapping {
  opacity: 0;
  transform: scale(0.97);
}

.size-info h2,
.size-info h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
  margin-bottom: 4px;
}

.size-sub {
  margin-bottom: 18px;
  color: var(--sky);
  font-weight: 700;
}

.size-list {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.size-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  font-size: 17px;
  text-align: left;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}

.size-row:hover {
  border-color: var(--sky);
}

.size-row[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(235, 178, 32, 0.12);
}

.size-row .size-dim {
  font-weight: 700;
}

.size-row .size-price {
  justify-self: end;
  font-weight: 700;
  color: var(--gold);
}

.size-note {
  margin-bottom: 18px;
  font-size: 14px;
}

.size-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

/* ---------- Link cards (payments, specials) ---------- */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.link-card:hover {
  transform: translateY(-6px);
  border-color: var(--sky);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.link-card svg {
  width: 42px;
  height: 42px;
  color: var(--sky);
}

.link-card h2,
.link-card h3 {
  font-size: 21px;
  line-height: 1.3;
}

.link-card p {
  font-size: 16px;
}

.link-card .link-card-cta {
  margin-top: auto;
  padding-top: 6px;
  color: var(--gold);
  font-weight: 700;
}

.special-amount {
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.15;
  color: var(--white);
}

.specials-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.specials-layout img {
  width: 100%;
  max-width: 220px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

.fine-print {
  margin-top: 18px;
  font-size: 14px;
}

/* ---------- Map page ---------- */
.map-embed {
  width: 100%;
  height: 420px;
  border: 1px solid var(--white);
  border-radius: var(--radius);
}

.facility-maps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.facility-maps figure {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: var(--navy);
}

.facility-maps img {
  width: 100%;
}

.facility-maps figcaption {
  margin-top: 10px;
  font-size: 15px;
  text-align: center;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-list dt {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sky);
}

.info-list dd {
  margin: 0;
  font-size: 18px;
}

.info-list a {
  text-decoration: none;
}

.info-list a:hover {
  color: var(--gold);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}

.form-panel {
  padding: 30px 28px;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  background: var(--navy);
}

.form-panel h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.form-panel > p {
  margin-bottom: 18px;
}

.form-embed {
  min-height: 520px;
}

.form-embed iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: var(--radius);
}

.form-fallback {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 300px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  text-align: center;
}

/* ---------- Legal ---------- */
.legal {
  max-width: 820px;
}

.legal h2 {
  font-size: 26px;
  margin: 34px 0 10px;
}

.legal p,
.legal li {
  font-size: 17px;
}

.legal p {
  margin-bottom: 12px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
}

.legal a {
  color: var(--gold);
}

/* ---------- Simple pages (thank you, 404) ---------- */
.simple-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 60px) 20px 80px;
  text-align: center;
}

.simple-page h1 {
  font-size: clamp(34px, 4vw, 56px);
  margin-bottom: 16px;
}

.simple-page p {
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 19px;
}

.simple-page .hero-actions {
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .page-hero-grid,
  .two-col,
  .contact-grid,
  .size-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-hero--text-first .page-hero-media,
  .size-group:nth-child(even) .size-media {
    order: 0;
  }

  .page-hero-media img {
    width: min(100%, 360px);
  }
}

@media (max-width: 767px) {
  .page-hero {
    padding: calc(var(--header-h) + 30px) 0 70px;
  }

  .page-hero .hero-actions .btn {
    width: 100%;
  }

  .band {
    padding: 64px 0;
  }

  .size-group {
    padding: 44px 0;
  }

  .size-media {
    min-height: 0;
  }

  .size-row {
    grid-template-columns: 1fr 1fr;
    font-size: 16px;
  }

  .size-row .size-sqft {
    display: none;
  }

  .facility-maps,
  .specials-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .specials-layout img {
    max-width: 150px;
    margin-inline: auto;
  }

  .map-embed {
    height: 320px;
  }
}

/* ---------- Size guide ---------- */
.guide-list {
  display: grid;
  gap: 28px;
}

.guide-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: var(--navy);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.guide-row:hover {
  border-color: var(--sky);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.guide-row:nth-child(even) .guide-media {
  order: 2;
}

.guide-media {
  padding: 10px;
  border-radius: var(--radius);
  background: var(--navy-2);
}

.guide-media img {
  width: 100%;
}

.guide-copy h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  margin-bottom: 4px;
}

.guide-copy p {
  margin-bottom: 10px;
  font-size: 17px;
}

.guide-price {
  font-weight: 700;
  color: var(--gold);
}

@media (max-width: 767px) {
  .guide-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .guide-row:nth-child(even) .guide-media {
    order: 0;
  }
}

/* ---------- FAQ page: search + topic filters ---------- */
.faq-hero {
  max-width: 860px;
}

.faq-search {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 26px;
  padding: 8px 8px 8px 48px;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(235, 178, 32, 0.25);
}

.faq-search svg {
  position: absolute;
  left: 16px;
  width: 22px;
  height: 22px;
  color: var(--sky);
}

.faq-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 18px;
  outline: none;
}

.faq-search input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.faq-page {
  max-width: 940px;
}

.faq-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-chip {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.faq-chip:hover {
  border-color: var(--sky);
}

.faq-chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.faq-count {
  font-size: 15px;
}

.faq-item[hidden] {
  display: none;
}

.faq-page mark {
  padding: 0 2px;
  border-radius: 2px;
  background: var(--gold);
  color: var(--navy);
}

.faq-empty {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .faq-search {
    flex-wrap: wrap;
    padding: 8px;
  }

  .faq-search svg {
    display: none;
  }

  .faq-search .btn {
    width: 100%;
  }
}
