/* The Brass Begonia - Gilded Quietude
   Mobile-first. Palette + type per TBB Brand Guide 2026.06.19. */

:root {
  --navy: #1B1F4F;
  --navy-deep: #0E1130;
  --navy-tint: #2A2F65;
  --brass: #B0894B;
  --brass-muted: #8E6F3D;
  --ivory: #F4EAD0;
  --cream: #FBF0D6;
  --paper: #FFFCF5;
  --serif: "Bodoni Moda", "Playfair Display", "Bodoni MT", Didot, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --script: Caveat, cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy-deep);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brass-muted); }

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--navy);
  border-bottom: 1px solid var(--brass);
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.site-header .brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  row-gap: 0.15rem;
}

@media (min-width: 640px) {
  .site-header { padding: 0.65rem 1.4rem; }
  .site-nav { gap: 1.5rem; }
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.site-nav a:hover { color: var(--cream); border-bottom-color: var(--brass); }
.site-nav a[aria-current="page"] { color: var(--brass); border-bottom-color: var(--brass); }

/* ---------- Hero ---------- */

.hero {
  background:
    url("../assets/leaf-texture.png") no-repeat center / cover,
    linear-gradient(175deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-tint) 130%);
  color: var(--ivory);
  text-align: center;
  padding: 2rem 1.5rem 2.4rem;
  position: relative;
}

/* hairline frame, echoing the printed sign and banner borders */
.hero::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(176, 137, 75, 0.55);
  pointer-events: none;
}

.hero .wordmark {
  width: min(340px, 82vw);
  height: auto;
  margin: -1rem auto -2.2rem;
  animation: rise 1.1s ease-out both;
}

.hero .rule,
.section-head .rule {
  width: 68px;
  height: 1px;
  background: var(--brass);
  border: 0;
  margin: 1.15rem auto;
}

.hero .rule { margin: 0.8rem auto; }

.hero p.tag {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  animation: rise 1.1s 0.25s ease-out both;
}

.hero p.sub {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.85rem;
  animation: rise 1.1s 0.45s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */

main { max-width: 1160px; margin: 0 auto; padding: 0 1rem 3rem; }

.section-head { text-align: center; padding: 2.6rem 1rem 1.6rem; }

.section-head h1,
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-head p.lede {
  max-width: 34rem;
  margin: 0.4rem auto 0;
  color: var(--navy-tint);
}

/* ---------- Featured carousel ---------- */

.carousel {
  position: relative;
  margin: 0 auto 2rem;
  max-width: 860px;
}

.carousel .c-track {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid var(--brass);
  padding: 6px;
}

@media (min-width: 640px) { .carousel .c-track { aspect-ratio: 16 / 10; } }

.carousel .c-track img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.carousel .c-track img.active { opacity: 1; }

.carousel .c-prev,
.carousel .c-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14, 17, 48, 0.55);
  border: none;
  color: var(--ivory);
  font-size: 1.7rem;
  line-height: 1;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel .c-prev:hover,
.carousel .c-next:hover { background: rgba(14, 17, 48, 0.85); }
.carousel .c-prev { left: 6px; }
.carousel .c-next { right: 6px; }

.carousel .c-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.carousel .c-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.carousel .c-dots button.active { background: var(--brass); }

/* ---------- Gallery ---------- */

.gallery {
  columns: 2;
  column-gap: 0.6rem;
}

.gallery figure {
  break-inside: avoid;
  margin: 0 0 0.6rem;
  position: relative;
  cursor: pointer;
  background: var(--navy-deep);
  animation: rise 0.8s ease-out both;
}

/* staggered reveal for the first screenful */
.gallery figure:nth-child(1) { animation-delay: 0.05s; }
.gallery figure:nth-child(2) { animation-delay: 0.12s; }
.gallery figure:nth-child(3) { animation-delay: 0.19s; }
.gallery figure:nth-child(4) { animation-delay: 0.26s; }
.gallery figure:nth-child(5) { animation-delay: 0.33s; }
.gallery figure:nth-child(6) { animation-delay: 0.4s; }

.gallery img {
  width: 100%;
  transition: opacity 0.3s;
}

.gallery figure:hover img { opacity: 0.82; }

.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 0.7rem 0.55rem;
  background: linear-gradient(transparent, rgba(14, 17, 48, 0.72));
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery figure:hover figcaption { opacity: 1; }
.gallery figcaption:empty { display: none; }

@media (min-width: 640px)  { .gallery { columns: 3; column-gap: 0.8rem; } .gallery figure { margin-bottom: 0.8rem; } }
@media (min-width: 1000px) { .gallery { columns: 4; } }

/* ---------- Instagram strip ---------- */

.ig-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.ig-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--navy-deep);
}

.ig-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s, transform 0.4s;
}

.ig-grid a:hover img { opacity: 0.85; transform: scale(1.03); }

.ig-grid .play {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 0;
  height: 0;
  border-left: 11px solid var(--ivory);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  filter: drop-shadow(0 1px 2px rgba(14, 17, 48, 0.6));
}

@media (min-width: 640px)  { .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; } }
@media (min-width: 1000px) { .ig-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 17, 48, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 94vw;
  max-height: 86vh;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.55);
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 2rem;
  line-height: 1;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.lightbox button:hover { opacity: 1; color: var(--brass); }
.lightbox .lb-close { top: 0.4rem; right: 0.4rem; }
.lightbox .lb-prev  { left: 0;  top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 0; top: 50%; transform: translateY(-50%); }

/* ---------- Prose pages (about / shop / visit) ---------- */

.prose {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 0.3rem;
}

.prose p { margin-bottom: 1.05rem; }

.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 1.9rem 0 0.7rem;
  padding-left: 0.7rem;
  border-left: 2px solid var(--brass);
}

.prose .script {
  font-family: var(--script);
  font-size: 1.45rem;
  color: var(--brass-muted);
}

.figure-inset { margin: 1.6rem auto; max-width: 26rem; }
.figure-inset img {
  border: 1px solid var(--brass);
  padding: 6px;
  background: var(--paper);
  mix-blend-mode: multiply; /* melts the render's white ground into the page cream */
}
.figure-inset figcaption {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--brass-muted);
  margin-top: 0.55rem;
}

/* ---------- Buy steps / CTA ---------- */

.steps { counter-reset: step; margin: 1.4rem 0; list-style: none; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.3rem 3rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--brass-muted);
}

.steps li strong { color: var(--navy); }

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  margin: 2rem 0 1rem;
}

@media (min-width: 640px) { .cta-row { flex-direction: row; justify-content: center; } }

.btn {
  display: inline-block;
  width: 100%;
  max-width: 22rem;
  text-align: center;
  padding: 0.95rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

@media (min-width: 640px) { .btn { width: auto; } }

.btn-primary { background: var(--navy); color: var(--ivory); border: 1px solid var(--navy); }
.btn-primary:hover { background: var(--navy-tint); }
.btn-outline { background: none; color: var(--navy); border: 1px solid var(--brass); }
.btn-outline:hover { background: var(--cream); }

.note-card {
  background: var(--cream);
  border: 1px solid var(--brass);
  padding: 1.1rem 1.3rem;
  font-size: 0.88rem;
  margin: 1.6rem 0;
}

/* ---------- Events list ---------- */

.events-list { list-style: none; margin: 1.2rem 0; }

.events-list .event {
  display: flex;
  gap: 1.2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(176, 137, 75, 0.35);
}

.events-list .event:first-child { border-top: 1px solid rgba(176, 137, 75, 0.35); }

.events-list .date {
  flex-shrink: 0;
  min-width: 8.5rem;
  font-family: var(--serif);
  color: var(--brass-muted);
}

.events-list .what strong { color: var(--navy); }
.events-list .what em { color: var(--brass-muted); font-size: 0.88rem; }

.events-empty { color: var(--navy-tint); }

/* ---------- Reviews ---------- */

.review-band {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 1.3rem 0;
  border-top: 1px solid rgba(176, 137, 75, 0.35);
  border-bottom: 1px solid rgba(176, 137, 75, 0.35);
  padding: 1.1rem 0;
  text-align: center;
}

.review-band .fact { flex: 1; }

.review-band strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--navy);
}

.review-band span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-muted);
}

.review-stars { color: var(--navy); margin-bottom: 0.8rem; }
.review-stars .stars { color: var(--brass); letter-spacing: 0.15em; }

.review-cards { margin: 1.2rem 0; }

.review-cards .review {
  border-left: 2px solid var(--brass);
  padding: 0.2rem 0 0.2rem 1rem;
  margin: 0 0 1.1rem;
}

.review-cards .review footer {
  font-family: var(--script);
  font-size: 1.15rem;
  color: var(--brass-muted);
  margin-top: 0.3rem;
}

/* ---------- Contact form ---------- */

.contact-form { margin: 1.4rem 0 0.6rem; }

.contact-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 1rem 0 0.3rem;
}

.contact-form label .opt {
  font-weight: 400;
  color: var(--brass-muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--navy-deep);
  background: var(--paper);
  border: 1px solid var(--brass);
  border-radius: 0;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: -1px;
}

.contact-form textarea { min-height: 8.5rem; resize: vertical; }

.contact-form .btn { margin-top: 1.3rem; }

.form-status {
  display: none;
  margin-top: 1.2rem;
  background: var(--cream);
  border: 1px solid var(--brass);
  padding: 1rem 1.2rem;
}

.form-status.show { display: block; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--ivory);
  text-align: center;
  padding: 2.6rem 1.5rem 2.2rem;
  margin-top: 2rem;
}

.site-footer .script {
  font-family: var(--script);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.site-footer .signoff {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--brass);
  margin-bottom: 1.3rem;
}

.site-footer nav { display: flex; justify-content: center; gap: 1.4rem; margin-bottom: 1.2rem; flex-wrap: wrap; }

.site-footer nav a {
  color: var(--ivory);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer nav a:hover { color: var(--brass); }

.site-footer .fine {
  font-size: 0.72rem;
  color: rgba(244, 234, 208, 0.55);
  letter-spacing: 0.04em;
}

/* ---------- Lightbox caption + scroll reveal ---------- */

.lightbox .lb-cap {
  position: absolute;
  bottom: 1.1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--ivory);
}

.lightbox .lb-cap:empty { display: none; }

.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.will-reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero .wordmark, .hero p, .gallery figure { animation: none; }
  .will-reveal { opacity: 1; transform: none; transition: none; }
}
