/* Typography & Base */
:root {
  --bg: #2B3136; /* darker graphite background */
  --graphite: #2B3136;
  --graphite-light: #5d6d7e;
  --white: #ffffff;
  --card: #ffffff;
  --card-alt: #fbfcfd;
  --divider: rgba(0,0,0,0.06);
  --shadow: 0 6px 18px rgba(0,0,0,0.18);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", Roboto, Lato, system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  color: #f0f2f4; /* light text on dark bg */
  /* Graphite overlay over the provided background image */
  background:
    linear-gradient(rgba(43,49,54,0.88), rgba(43,49,54,0.88)),
    url('https://i.ibb.co/Zp7mhWX6/PPP.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.55;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: transparent;
  padding: 18px 0 10px;
  display: grid;
  place-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.logo { height: 68px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.logo-link { display: inline-block; }
.logo-link:focus { outline: 2px solid var(--graphite-light); outline-offset: 4px; }

/* Legal strip */
.legal-strip { background: var(--graphite); color: var(--white); }
.legal-strip .legal-text { margin: 0; padding: 18px 0; font-size: 1rem; text-align: center; }

/* Sections */
.stores { padding: 28px 0 40px; }
.section-title {
  color: #ffffff;
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.card {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-alt) 100%);
  color: #222; /* readable text on white */
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 16px 0 24px;
  border: 1px solid var(--divider);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.22); }

.card-title { margin: 0; color: var(--graphite); font-size: 1.1rem; }
.card-sub { margin: 4px 0 0; color: #555; font-size: 0.9rem; }

/* Decorative divider under legal */
.legal-strip + .stores .section-title { position: relative; }
.legal-strip + .stores .section-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 64px;
  background: linear-gradient(90deg, #fff 0, #cfd8dc 100%);
  border-radius: 2px;
  margin-top: 10px;
}

/* Generic button (if needed later) */
.btn {
  background: var(--graphite);
  color: var(--white);
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover { background: var(--graphite-light); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Accordion */
.accordion { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .accordion { grid-template-columns: 1fr 1fr; }
}
.accordion-item {
  border: 1px solid var(--divider);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--card) 0%, var(--card-alt) 100%);
}
.accordion-item summary {
  list-style: none;
  display: block;
  padding: 16px 52px 14px 18px; /* extra right space for icon */
  cursor: pointer;
  color: #222;
  position: relative;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  font-weight: 700;
  color: var(--graphite);
  position: absolute;
  right: 18px;
  top: 16px;
  transition: transform .28s ease;
}
.accordion-item[open] { box-shadow: 0 8px 20px rgba(0,0,0,0.16); border-color: rgba(54,69,79,0.25); }
.accordion-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.accordion-item summary:hover { background: #f7f8f9; }
.accordion-item[open] summary { background: #f4f6f8; border-bottom: 1px solid var(--divider); }

.store-number {
  font-weight: 700;
  color: #fff;
  background: var(--graphite);
  padding: 6px 10px;
  border-radius: 999px;
  line-height: 1;
  flex: 0 0 auto;
}
.store-address {
  color: #333;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

/* Summary content layout */
.summary-line { display: flex; gap: 14px; align-items: baseline; }
.store-meta { margin-top: 6px; color: #556; font-size: 0.92rem; }
.store-meta a { color: var(--graphite); font-weight: 600; text-decoration: none; }
.store-meta a:hover { text-decoration: underline; }

/* Smooth open/close container for animation */
.accordion-body {
  padding: 0 18px 16px;
  border-top: 1px solid var(--divider);
  height: auto; /* will be controlled inline for animation */
  overflow: hidden;
  transition: height .28s ease, opacity .28s ease;
}
.accordion-body p { margin: 10px 0 0; }
.accordion-body small { color: #666; }
.accordion-body em { color: #444; }

/* Footer */
.site-footer { background: var(--graphite); color: var(--white); margin-top: 24px; }
.site-footer .container { padding: 18px 0; text-align: center; }
.small { font-size: 0.85rem; color: #e9e9e9; }

/* Responsiveness */
@media (max-width: 640px) {
  .logo { height: 54px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
