:root {
  --pub-espresso: #1c1512;
  --pub-espresso-soft: #2d2420;
  --pub-cream: #fbf7f2;
  --pub-cream-dark: #f0e8de;
  --pub-caramel: #b8734a;
  --pub-caramel-dark: #9a5f3d;
  --pub-gold: #d4a24c;
  --pub-sage: #5c7a6b;
  --pub-text: #3d342f;
  --pub-text-muted: #7a6f68;
  --pub-white: #ffffff;
  --pub-radius: 16px;
  --pub-radius-sm: 10px;
  --pub-shadow: 0 20px 50px rgba(28, 21, 18, 0.12);
  --pub-shadow-sm: 0 8px 24px rgba(28, 21, 18, 0.08);
  --pub-font-display: "Fraunces", Georgia, serif;
  --pub-font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --pub-nav-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-public {
  margin: 0;
  min-height: 100vh;
  font-family: var(--pub-font-body);
  color: var(--pub-text);
  background: var(--pub-cream);
  -webkit-font-smoothing: antialiased;
}

body.site-public h1,
body.site-public h2,
body.site-public h3,
body.site-public .display-font {
  font-family: var(--pub-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pub-espresso);
}

/* ——— Navigation ——— */
.pub-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--pub-nav-height);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.pub-nav.is-scrolled {
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(28, 21, 18, 0.06);
}

body.site-landing .pub-nav:not(.is-scrolled) .pub-brand,
body.site-landing .pub-nav:not(.is-scrolled) .pub-nav__links a {
  color: rgba(255, 255, 255, 0.92);
}

body.site-landing .pub-nav:not(.is-scrolled) .pub-nav__links a:hover,
body.site-landing .pub-nav:not(.is-scrolled) .pub-nav__links a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.site-landing .pub-nav:not(.is-scrolled) .pub-nav-toggle {
  color: #fff;
}

body.site-landing .pub-nav:not(.is-scrolled) .pub-btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.pub-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--pub-nav-height);
  gap: 1rem;
}

.pub-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--pub-espresso);
  font-weight: 700;
  font-size: 1.15rem;
}

.pub-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pub-caramel), var(--pub-gold));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--pub-shadow-sm);
}

.pub-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-nav__links a {
  text-decoration: none;
  color: var(--pub-text);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.pub-nav__links a:hover,
.pub-nav__links a.is-active {
  background: var(--pub-cream-dark);
  color: var(--pub-espresso);
}

.pub-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.pub-btn:active {
  transform: scale(0.98);
}

.pub-btn--primary {
  background: linear-gradient(135deg, var(--pub-caramel), var(--pub-caramel-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(184, 115, 74, 0.35);
}

.pub-btn--primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(184, 115, 74, 0.45);
}

.pub-btn--ghost {
  background: transparent;
  color: var(--pub-espresso);
  border: 1px solid rgba(28, 21, 18, 0.12);
}

.pub-btn--ghost:hover {
  background: var(--pub-white);
  color: var(--pub-espresso);
}

.pub-btn--light {
  background: #fff;
  color: var(--pub-espresso);
}

.pub-btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.pub-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

/* Desktop: one row — links + actions (avoids stacked overlap in fixed nav height) */
@media (min-width: 992px) {
  .pub-nav__collapse {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
    flex: 1;
    min-width: 0;
  }

  .pub-nav__links {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.15rem;
  }

  .pub-nav__actions {
    flex-shrink: 0;
    margin-left: 0.25rem;
  }
}

@media (max-width: 991px) {
  .pub-nav-toggle {
    display: block;
  }

  .pub-nav__collapse {
    position: fixed;
    inset: var(--pub-nav-height) 0 auto 0;
    background: var(--pub-cream);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(28, 21, 18, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .pub-nav__collapse.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .pub-nav__links {
    flex-direction: column;
    align-items: stretch;
  }

  .pub-nav__actions {
    flex-direction: column;
    margin-top: 0.75rem;
  }

  .pub-nav__actions .pub-btn {
    width: 100%;
  }
}

/* ——— Main layout ——— */
.site-main {
  padding-top: var(--pub-nav-height);
}

.site-main--landing {
  padding-top: 0;
}

.content-wrap {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* ——— Hero ——— */
.landing-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--pub-nav-height) + 2rem) 0 4rem;
  overflow: hidden;
  background: var(--pub-espresso);
  color: #fff;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(212, 162, 76, 0.25), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(184, 115, 74, 0.3), transparent 50%),
    linear-gradient(160deg, #1c1512 0%, #2a211c 45%, #1a1410 100%);
}

.landing-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.landing-hero__content {
  position: relative;
  z-index: 1;
}

.landing-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.landing-hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.landing-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #f5d08a, #e8a865);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero__lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.landing-search {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--pub-radius);
  padding: 0.5rem;
  box-shadow: var(--pub-shadow);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  max-width: 720px;
}

.landing-search input,
.landing-search select {
  border: none;
  background: var(--pub-cream);
  border-radius: var(--pub-radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--pub-text);
}

.landing-search input:focus,
.landing-search select:focus {
  outline: 2px solid var(--pub-caramel);
  outline-offset: 0;
}

.landing-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-hero__stat strong {
  display: block;
  font-family: var(--pub-font-display);
  font-size: 1.75rem;
  color: #fff;
}

.landing-hero__stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.landing-hero__visual {
  position: relative;
}

.landing-hero__card-stack {
  position: relative;
  height: 420px;
}

.landing-hero__card {
  position: absolute;
  border-radius: var(--pub-radius);
  overflow: hidden;
  box-shadow: var(--pub-shadow);
  background: var(--pub-cream);
}

.landing-hero__card--main {
  width: 78%;
  right: 0;
  top: 0;
  height: 320px;
}

.landing-hero__card--main img,
.landing-hero__card--main .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-hero__card--float {
  width: 52%;
  left: 0;
  bottom: 0;
  padding: 1rem;
  background: #fff;
}

@media (max-width: 991px) {
  .landing-search {
    grid-template-columns: 1fr;
  }

  .landing-hero__visual {
    display: none;
  }
}

/* ——— Sections ——— */
.pub-section {
  padding: 5rem 0;
}

.pub-section--alt {
  background: var(--pub-white);
}

.pub-section__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pub-caramel);
  margin-bottom: 0.75rem;
}

.pub-section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.pub-section__lead {
  color: var(--pub-text-muted);
  max-width: 36rem;
  line-height: 1.65;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step-card {
  padding: 1.5rem;
  border-radius: var(--pub-radius);
  background: var(--pub-cream);
  border: 1px solid rgba(28, 21, 18, 0.06);
  position: relative;
}

.step-card__num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pub-espresso);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

@media (max-width: 991px) {
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Cafe cards */
.cafe-card-premium {
  border-radius: var(--pub-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(28, 21, 18, 0.06);
  box-shadow: var(--pub-shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cafe-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--pub-shadow);
}

.cafe-card-premium__media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pub-cream-dark), #e8ddd2);
}

.cafe-card-premium__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cafe-card-premium:hover .cafe-card-premium__media img {
  transform: scale(1.05);
}

.cafe-card-premium__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pub-espresso);
}

.cafe-card-premium__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cafe-card-premium__brand {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pub-caramel);
  margin-bottom: 0.35rem;
}

.cafe-card-premium__title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.cafe-card-premium__meta {
  font-size: 0.875rem;
  color: var(--pub-text-muted);
  margin-bottom: 1rem;
}

.cafe-card-premium__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* City chips */
.city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--pub-radius);
  background: #fff;
  border: 1px solid rgba(28, 21, 18, 0.08);
  text-decoration: none;
  color: var(--pub-espresso);
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.city-chip:hover {
  border-color: var(--pub-caramel);
  box-shadow: var(--pub-shadow-sm);
  color: var(--pub-espresso);
}

.city-chip small {
  font-weight: 500;
  color: var(--pub-text-muted);
}

/* Offer strip */
.offer-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--pub-radius);
  background: linear-gradient(135deg, var(--pub-espresso-soft), var(--pub-espresso));
  color: #fff;
  height: 100%;
}

.offer-card__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* Testimonials */
.testimonial-card {
  padding: 1.75rem;
  border-radius: var(--pub-radius);
  background: var(--pub-cream);
  border: 1px solid rgba(28, 21, 18, 0.06);
  height: 100%;
}

.testimonial-card__stars {
  color: var(--pub-gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--pub-caramel), var(--pub-caramel-dark));
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  opacity: 0.9;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--pub-nav-height) + 2.5rem) 0 2.5rem;
  background: var(--pub-espresso);
  color: #fff;
  margin-bottom: 0;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 40rem;
}

.page-hero--compact {
  padding-bottom: 1.75rem;
}

/* Filter bar */
.filter-bar {
  background: #fff;
  border-radius: var(--pub-radius);
  padding: 1rem;
  box-shadow: var(--pub-shadow-sm);
  margin-top: -2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

/* Auth pages */
.auth-shell {
  min-height: calc(100vh - var(--pub-nav-height));
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--pub-radius);
  padding: 2rem;
  box-shadow: var(--pub-shadow);
  border: 1px solid rgba(28, 21, 18, 0.06);
}

.auth-card .form-control,
.auth-card .form-select {
  border-radius: var(--pub-radius-sm);
  padding: 0.75rem 1rem;
  border-color: rgba(28, 21, 18, 0.12);
}

.auth-card .form-control:focus {
  border-color: var(--pub-caramel);
  box-shadow: 0 0 0 3px rgba(184, 115, 74, 0.15);
}

/* Footer */
.pub-footer {
  background: var(--pub-espresso);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.pub-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.pub-footer a:hover {
  color: #fff;
}

.pub-footer__brand {
  color: #fff;
  font-family: var(--pub-font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pub-footer__col h6 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.pub-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Legacy app compatibility inside public shell */
.cafe-card img {
  height: 220px;
  object-fit: cover;
}

.table-card {
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.table-card:hover {
  box-shadow: var(--pub-shadow-sm);
}

.alert {
  border-radius: var(--pub-radius-sm);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(28, 21, 18, 0.08);
  padding: 1.25rem 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--pub-text-muted);
  line-height: 1.65;
}

.cms-content {
  line-height: 1.7;
  color: var(--pub-text);
}

.cms-content p:last-child {
  margin-bottom: 0;
}
