/* Sbu's Chillers Cafe — fresh WhatchMe Dev interface, mobile first. */

:root {
  --espresso: #241811;
  --espresso-soft: #35251b;
  --ink: #20160f;
  --muted: #6a5747;
  --cream: #fbf4e8;
  --paper: #fffdf8;
  --caramel: #c8753f;
  --caramel-dark: #a75a2d;
  --line: #eadcc9;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(58, 38, 24, 0.09);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--cream); }

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Heavily blurred cafe photo behind the whole site — no white veil. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../assets/cafe-backdrop-blurred.webp") center / cover no-repeat;
  pointer-events: none;
}

a { color: var(--caramel-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--espresso); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; }

.wrap {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px;
  background: var(--espresso);
  color: #fff8ec;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Preview notice */
.preview-bar {
  background: var(--espresso);
  color: #e8d8c5;
  font-size: 0.78rem;
}
.preview-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.5rem;
}
.preview-bar p { margin: 0; }
.preview-bar__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e6a45f;
  animation: glow 2.6s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.18); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(36, 24, 17, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 248, 236, 0.12);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.65rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: #fff8ec;
  text-decoration: none;
}
.brand__logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand__name {
  font-weight: 750;
  font-size: 0.98rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand small { color: #c6b4a2; font-size: 0.7rem; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}
.header-contact {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--caramel);
  color: #fff8ec;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.header-contact:hover { background: var(--caramel-dark); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: grid;
  place-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 248, 236, 0.25);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff8ec;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  right: -1rem;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 1rem 1rem;
  background: var(--espresso);
  border-top: 1px solid rgba(255, 248, 236, 0.12);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
}
.site-nav.is-open { display: flex; animation: drop 0.24s ease both; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  color: #e8d8c5;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: rgba(255, 248, 236, 0.1); color: #fff; }

/* Hero and page headings */
.hero,
.page-head {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2.25rem;
}
.hero { border-bottom: 1px solid var(--line); }
.page-head { gap: 0.8rem; padding-bottom: 1.25rem; }
.hero__content, .page-head { max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--caramel-dark);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--caramel);
}
h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 9vw, 3.7rem);
  font-weight: 800;
  color: var(--espresso);
}
h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 780;
  color: var(--espresso);
}
h3 { margin-bottom: 0.55rem; font-size: 1.1rem; color: var(--espresso); }
.lead { font-size: 1.06rem; color: #39291d; font-weight: 500; }
.muted-note { color: var(--muted); font-size: 0.84rem; }

/* Solid black text on the photo — no white halo. */
.hero__content, .page-head, .section__head, .more-photos h3 {
  color: #000;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}
.hero__content h1, .page-head h1, .section__head h2, .more-photos h3 { color: #000; }
.hero__content .lead, .page-head .lead, .hero__content .muted-note, .page-head .muted-note { color: #111; }
.hero__content .btn, .page-head .btn { text-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.btn-row--compact { margin-top: 0.9rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--caramel); color: #fff8ec; box-shadow: 0 8px 20px rgba(167, 90, 45, 0.22); }
.btn--primary:hover { background: var(--caramel-dark); color: #fff; box-shadow: 0 12px 26px rgba(167, 90, 45, 0.3); }
.btn--ghost { border-color: rgba(36, 24, 17, 0.24); color: var(--espresso); }
.btn--ghost:hover { border-color: var(--caramel); color: var(--caramel-dark); }

.hero__figure { width: fit-content; margin: 0; }
.hero__figure img {
  width: min(100%, 190px);
  filter: drop-shadow(0 10px 22px rgba(58, 38, 24, 0.28));
}

/* Sections */
.section { padding-block: 3rem; }
.section--tint {
  background: rgba(200, 117, 63, 0.06);
  border-block: 1px solid var(--line);
}
.section__head { margin-bottom: 1.6rem; }
.section__head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 1rem; }
.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(58, 38, 24, 0.14); }
.card p:last-child { margin-bottom: 0; }
.card__label {
  margin-bottom: 0.5rem;
  color: var(--caramel-dark);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(200, 117, 63, 0.13);
  color: var(--caramel-dark);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.placeholder {
  margin-top: 1.2rem;
  padding: 1.2rem 1.35rem;
  border: 1px dashed rgba(167, 90, 45, 0.55);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.7);
  color: #5d4838;
}
.placeholder p:last-child { margin-bottom: 0; }

.address-line { font-weight: 600; color: var(--espresso); }
.copy-btn {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--caramel-dark);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.copy-btn:hover { border-color: var(--caramel); background: rgba(200, 117, 63, 0.08); }
.hours { margin: 0; padding: 0; list-style: none; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { font-weight: 700; color: var(--espresso); }

.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: #4a382c; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(200, 117, 63, 0.16);
  color: var(--caramel-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Small photo gallery */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  width: min(100%, 420px);
  margin-inline: auto;
}
.post-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #efe2cf;
}
.post-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.post-figure:hover img { transform: scale(1.04); }
.more-photos { margin-top: 1.6rem; }
.more-photos h3 { margin-bottom: 0.8rem; text-align: center; color: var(--muted); font-size: 0.92rem; }

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  padding-top: 2.75rem;
  background: var(--espresso);
  color: #e8d8c5;
}
.site-footer h2 {
  margin-bottom: 0.8rem;
  color: #d8b997;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer p { color: #d6c4b1; font-size: 0.9rem; }
.site-footer a { color: #f4e7d6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 1.75rem; }
.footer-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.footer-links { display: grid; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 0.9rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 248, 236, 0.14);
  color: #bfa995;
  font-size: 0.76rem;
}
.build-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.25rem 0.4rem;
  margin: -0.25rem -0.4rem;
  border-radius: 10px;
  color: #f4e7d6;
  text-decoration: none;
  transition: background 0.2s ease;
}
.build-credit:hover { background: rgba(255, 248, 236, 0.1); }
.build-credit img { width: 18px; height: 18px; border-radius: 5px; }
.build-credit strong { color: #f4e7d6; text-decoration: underline; text-underline-offset: 0.18em; }
.build-credit:hover strong { color: #fff; }

/* Medium screens */
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 720px); }
  .hero__figure img { width: min(100%, 230px); }
}

/* Desktop */
@media (min-width: 820px) {
  .header-inner { padding-block: 0.85rem; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 0.15rem;
    margin-left: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .site-nav a { min-height: 42px; padding: 0.35rem 0.7rem; font-size: 0.88rem; }
  .header-actions { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1.15fr) auto; align-items: center; gap: 3rem; padding-block: 4.5rem 3rem; }
  .hero__figure img { width: min(100%, 250px); }
  .section { padding-block: 4rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1100px) {
  .hero__figure img { width: 270px; }
}

/* Entrances and accessibility */
.hero__content, .hero__figure { animation: rise 0.6s ease both; }
.hero__figure { animation-delay: 0.12s; }
.site-header { animation: drop 0.5s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
