/* Cassady Bell — new site. Modern, black, minimal. */

@font-face {
  font-family: 'Alien Robot';
  src: url('../fonts/Alien Robot.otf') format('opentype'),
       url('../fonts/Alien Robot.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --text: #9f9f9f;
  --dim: #5a5a5a;
  --faint: #222222;
  --border: #1e1e1e;
  --border-hover: #3a3a3a;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: #000;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* viewport-fixed background layer (avoids Safari body-bg scaling bug) */
.bg {
  position: fixed;
  top: -204px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: #000 url("../images/swirl-15-bg.jpg") center top / 100% auto no-repeat;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: #fff; color: #000; }

/* ---------- Nav ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav .logo {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2a2a2a;
}

nav .links { display: flex; gap: 30px; }

nav .links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 2px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav .links a:hover { color: var(--text); }
nav .links a.active { color: var(--text); border-color: var(--border-hover); padding: 8px 10px; }

/* mobile nav */
#nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }

@media (max-width: 640px) {
  #nav-toggle { display: block; }
  nav .links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--border);
    padding: 8px 28px 16px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  nav .links.open { transform: translateY(0); }
  nav .links a { padding: 12px 2px; border: 0; font-size: 14px; }
  nav .links a.active { border: 0; padding: 12px 2px; }
}

/* ---------- Layout ---------- */
main { padding-top: var(--nav-h); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}

/* ---------- Home hero ---------- */
.hero {
  padding: 70px 28px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  width: 100%;
  height: auto;
  display: block;
}

.hero .meta {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero .meta .dot { color: var(--faint); }

/* ---------- Gallery grid ---------- */
.gallery {
  column-count: 4;
  column-gap: 14px;
}

.gallery .piece {
  break-inside: avoid;
  margin-bottom: 14px;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s;
}

.gallery .piece:hover { border-color: var(--border-hover); }

.gallery .piece img {
  width: 100%;
  height: auto;
  transition: opacity 0.25s, transform 0.5s ease;
}

.gallery .piece:hover img { opacity: 0.85; transform: scale(1.015); }

.gallery .piece figcaption {
  padding: 12px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 1100px) { .gallery { column-count: 3; } }
@media (max-width: 760px)  { .gallery { column-count: 2; column-gap: 10px; } .gallery .piece { margin-bottom: 10px; } }
@media (max-width: 480px)  { .gallery { column-count: 1; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
}

.lb-close {
  position: absolute;
  top: 18px; right: 26px;
  font-size: 34px;
  font-weight: 200;
  color: var(--dim);
  cursor: pointer;
  z-index: 201;
  line-height: 1;
}

.lb-close:hover { color: var(--text); }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  font-weight: 200;
  color: var(--dim);
  cursor: pointer;
  padding: 20px;
  user-select: none;
  z-index: 201;
}

.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-prev:hover, .lb-next:hover { color: var(--text); }

/* ---------- Simple pages ---------- */
.page { padding: 90px 0 120px; }

.page h1 {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 12px;
  color: #2a2a2a;
}

.page .lede {
  max-width: 640px;
  color: var(--dim);
  font-size: 17px;
  margin-bottom: 60px;
}

/* ---------- Long-form pages (aftercare) ---------- */
.page .content { max-width: 720px; }
.page .content h2 {
  color: #535353;
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 18px;
  letter-spacing: -0.01em;
}
.page .content h2 .sub { color: var(--dim); font-weight: 400; font-size: 16px; }
.page .content p, .page .content li {
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}
.page .content ol, .page .content ul { padding-left: 22px; margin: 0 0 18px; }
.page .content li { margin-bottom: 12px; }
.page .content ol { list-style: decimal; }
.page .content ul { list-style: disc; }
.page .content strong { color: #c8c8c8; font-weight: 700; }

/* ---------- Shop ---------- */
.shop-construction {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 70px 50px;
  margin-top: 28px;
  text-align: center;
}

.shop-construction p {
  color: var(--dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 8px;
}

@media (max-width: 480px) { .shop-construction { padding: 40px 24px; } }

.shop-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.cat-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 20px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

.cat-btn:hover { border-color: var(--border-hover); color: #9f9f9f; }

.cat-btn.active {
  border-color: #535353;
  color: #535353;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s;
}

.product:hover { border-color: var(--border-hover); }

.product img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product figcaption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #535353;
}

.product-price {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.buy {
  display: inline-block;
  margin-top: 6px;
  align-self: flex-start;
  border: 1px solid #535353;
  color: #535353;
  padding: 9px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.buy:hover { background: #535353; color: #000; }

.buy.pending { opacity: 0.35; pointer-events: none; }

/* Product detail modal */
.pm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 40;
}
.pm-backdrop.open { opacity: 1; pointer-events: auto; }

.pm {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.pm.open { opacity: 1; pointer-events: auto; }

.pm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  color: #5a5a5a;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: border-color 0.2s, color 0.2s;
}
.pm-close:hover { border-color: #3a3a3a; color: #9f9f9f; }

.pm-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 34px;
  max-width: 1000px;
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  padding: 24px;
  max-height: 90vh;
  overflow: auto;
}

.pm-media { display: flex; align-items: center; justify-content: center; }
.pm-media img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  display: block;
}

.pm-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  padding: 10px 0;
}

.pm-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #535353;
  margin: 0;
}

.pm-cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a5a5a;
  margin: -6px 0 0;
}

.pm-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #9f9f9f;
  margin: 0;
}

.pm-price {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a5a5a;
  margin: 0;
}

.pm-buy { align-self: flex-start; margin-top: 6px; }

@media (max-width: 720px) {
  .pm { padding: 24px; }
  .pm-inner { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .pm-media img { max-height: 50vh; }
}

.shop-cta {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 70px 50px;
  margin-top: 30px;
  text-align: center;
  transition: border-color 0.25s;
}

.shop-cta:hover { border-color: var(--border-hover); }

.shop-cta h2 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #535353;
}

.shop-cta p { color: var(--dim); margin: 18px 0 30px; font-size: 15px; }

.btn {
  display: inline-block;
  border: 1px solid #535353;
  color: #535353;
  padding: 14px 38px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { background: #535353; color: #000; border-color: #535353; }

/* contact map (keyless OSM, inverted dark, no marker/attribution) */
#map {
  width: 100%;
  height: 300px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 0;
}

.leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) grayscale(1) brightness(0.9) contrast(0.95);
}

.leaflet-container { background: #000; font-family: "Inter", sans-serif; }
.leaflet-control-zoom a { background: #0a0a0a; color: var(--dim); border-color: var(--border-hover); }
.leaflet-control-zoom a:hover { color: var(--text); }

/* themed pin */
.map-pin { background: transparent; border: 0; }
.map-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e5e5e5;
  border: 3px solid #000;
  box-shadow: 0 0 0 2px rgba(229, 229, 229, 0.5);
}

/* dark popup */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #0a0a0a;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.leaflet-popup-content { font-family: "Inter", sans-serif; font-size: 13px; }

/* open in maps link */
.map-open {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--border-hover);
}
.map-open:hover { color: var(--text); border-color: var(--text); }

/* ---------- Contact ---------- */
.contact-section { position: relative; }

.map-block {
  position: absolute;
  top: 100px;
  right: 28px;
  width: calc((100% - 116px) / 2);
}

@media (max-width: 900px) {
  .map-block {
    position: static;
    width: 100%;
    margin-top: 14px;
  }
  .contact-right { margin-top: 0 !important; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: -28px;
}

/* right column clears the full-size floating map */
.contact-right { margin-top: 200px; }

@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-block { margin-bottom: 44px; }

.contact-block h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}

.contact-block p, .contact-block a { font-size: 16px; color: var(--text); }
.contact-block a { border-bottom: 1px solid var(--border-hover); }
.contact-block a:hover { border-color: var(--text); }

.contact-block .note { color: var(--dim); font-size: 14px; margin-top: 10px; }

/* contact form */
form.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }

form.contact-form input,
form.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

form.contact-form input:focus,
form.contact-form textarea:focus { border-color: var(--border-hover); }

form.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Video tiles + lightbox video ---------- */
.gallery .piece video {
  width: 100%;
  height: auto;
  display: block;
}
.gallery .piece.video { position: relative; cursor: zoom-in; }
.lightbox video {
  display: none;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
}
.lightbox.show-video video { display: block; }
.lightbox.show-video img { display: none; }
