/*
Theme Name: Bloom & Borough
Theme URI: https://bloomandborough.com
Author: Bloom & Borough
Description: Custom theme for Bloom & Borough, a modern event space. Built around the brand's black, gold, and olive palette with Fraunces + Jost typography.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Unlicense
Text Domain: bloom-and-borough
*/

/* ============================================
   BLOOM & BOROUGH — shared styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --ink: #121110;
  --ivory: #F3EFE6;
  --ivory-dim: #E7E1D3;
  --gold: #B9924A;
  --gold-bright: #D4AF6A;
  --olive: #4E5A3E;
  --olive-light: #6E7C57;
  --line: rgba(243, 239, 230, 0.14);
  --line-dark: rgba(18, 17, 16, 0.12);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
}

/* ---------- headings ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

p { line-height: 1.7; font-weight: 300; }

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(18, 17, 16, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 40px;
  width: auto;
  transition: height 0.4s ease;
}

.site-header.scrolled .brand img { height: 32px; }

.brand-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-text .amp { color: var(--gold-bright); font-style: italic; }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

nav.primary-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 2px;
  position: relative;
  color: var(--ivory-dim);
  transition: color 0.25s ease;
}

nav.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: right 0.3s ease;
}

nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--ivory);
}

nav.primary-nav a:hover::after,
nav.primary-nav a[aria-current="page"]::after {
  right: 0;
}

.nav-cta {
  border: 1px solid var(--gold);
  padding: 10px 20px !important;
  border-radius: 2px;
  color: var(--ivory) !important;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }
.nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ivory);
  cursor: pointer;
  padding: 8px;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  nav.primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 340px);
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    border-left: 1px solid var(--line);
  }
  nav.primary-nav.open { transform: translateX(0); }
  nav.primary-nav a { font-size: 1rem; }
  .menu-toggle { display: inline-flex; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 30px;
  border-radius: 2px;
  border: 1px solid currentColor;
  transition: all 0.3s ease;
  cursor: pointer;
  background: none;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.btn-line {
  color: var(--ivory);
  border-color: var(--line);
}
.btn-line:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.btn-dark {
  color: var(--ink);
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--ink); color: var(--ivory); }

/* ============================================
   SPRIG DIVIDER — signature element
   ============================================ */

.sprig-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto;
  padding: 0;
}

.sprig-divider .stem {
  height: 1px;
  width: clamp(40px, 10vw, 120px);
  background: linear-gradient(90deg, transparent, var(--line));
}
.sprig-divider .stem.right { background: linear-gradient(90deg, var(--line), transparent); }

.sprig-divider svg {
  width: 34px;
  height: 34px;
  color: var(--olive-light);
  opacity: 0;
  transform: scale(0.6) rotate(-8deg);
}

.sprig-divider.in-view svg {
  animation: sprig-grow 0.9s cubic-bezier(.2,.9,.3,1) forwards;
}

@keyframes sprig-grow {
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   PLACEHOLDER IMAGE BLOCKS
   (until real venue photography is added)
   ============================================ */

.ph {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, #23231e 0%, #17160f 60%, #0e0d09 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(243, 239, 230, 0.28);
  text-align: center;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(185,146,74,0.05) 0, rgba(185,146,74,0.05) 1px, transparent 1px, transparent 14px);
}
.ph span {
  position: relative;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(243, 239, 230, 0.18);
  border-radius: 2px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  margin-top: 140px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

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

.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
  margin: 0 0 18px;
}

.footer-grid p, .footer-grid a { font-size: 0.92rem; color: var(--ivory-dim); }
.footer-grid a { display: block; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--gold-bright); }

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0;
}
.footer-social a:hover { border-color: var(--gold-bright); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: rgba(243, 239, 230, 0.4);
  letter-spacing: 0.04em;
}

/* ============================================
   UTILITY
   ============================================ */

.section { padding: clamp(64px, 10vw, 130px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 16px; }
.gap-md { gap: 28px; }

.note {
  font-size: 0.82rem;
  color: rgba(243, 239, 230, 0.45);
  font-style: italic;
}
/* ============================================
   HOME PAGE
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,17,16,0.35) 0%, rgba(18,17,16,0.55) 55%, rgba(18,17,16,0.96) 100%);
}

.hero-content {
  position: relative;
  padding-bottom: clamp(56px, 9vw, 110px);
}

.hero-content h1 {
  font-size: clamp(3rem, 9vw, 6.4rem);
  color: var(--ivory);
  margin: 10px 0 22px;
}
.hero-content h1 .amp {
  color: var(--gold-bright);
  font-style: italic;
  font-weight: 300;
  padding: 0 0.12em;
  font-size: 0.7em;
}

.hero-sub {
  max-width: 480px;
  font-size: 1.08rem;
  color: var(--ivory-dim);
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-figure { order: -1; }
}
.intro-copy p { color: var(--ivory-dim); max-width: 46ch; }
.intro-ph { aspect-ratio: 4/5; border-radius: 3px; }

/* ---------- packages ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .package-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

.package-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(243,239,230,0.03), transparent);
}

.package-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(185,146,74,0.09), transparent);
  transform: translateY(-8px);
}
@media (max-width: 980px) {
  .package-card.featured { transform: none; }
}

.package-head h3 { font-size: 1.5rem; margin: 8px 0 10px; }
.package-price { color: var(--gold-bright); font-size: 1rem; margin: 0 0 4px; }
.package-price span { color: rgba(243,239,230,0.4); font-size: 0.85rem; }

.package-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--ivory-dim);
}
.package-list li {
  padding-left: 20px;
  position: relative;
}
.package-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive-light);
}
.package-list li span { color: rgba(243,239,230,0.45); }

.package-card .btn { align-self: flex-start; }

/* ---------- cta strip ---------- */
.cta-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(185,146,74,0.08), transparent 60%);
}
.cta-strip-inner {
  padding: clamp(56px, 9vw, 100px) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.cta-strip-inner h2 { max-width: 14ch; }
.page-hero {
  padding: clamp(140px, 20vw, 200px) 0 clamp(40px, 6vw, 60px);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 16ch;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
}
.story-ph { aspect-ratio: 4/5; border-radius: 3px; }
.story-copy p { color: var(--ivory-dim); max-width: 52ch; margin-bottom: 18px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) {
  .values-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
.value-card {
  padding: 32px 28px;
  border-top: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(243,239,230,0.03), transparent);
}
.value-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.value-card p { color: var(--ivory-dim); font-size: 0.95rem; }
.page-hero h1 { max-width: 14ch; }
.hero-sub-text {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--ivory-dim);
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.info-block h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
  margin: 0 0 8px;
}
.info-block a, .info-block p { margin: 0; color: var(--ivory-dim); }
.info-block a:hover { color: var(--gold-bright); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(243,239,230,0.03), transparent);
}

.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.form-row input, .form-row textarea {
  background: rgba(243,239,230,0.04);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
}

.contact-form .btn { align-self: flex-start; }

.form-status {
  font-size: 0.85rem;
  color: var(--olive-light);
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.form-status.show { opacity: 1; }

.map-ph { aspect-ratio: 21/8; border-radius: 3px; }
@media (max-width: 700px) { .map-ph { aspect-ratio: 4/5; } }
.menu-section { display: flex; flex-direction: column; gap: 56px; }

.menu-category-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.menu-category-head .stem {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.menu-item-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.menu-item-row h3 {
  font-size: 1.15rem;
  font-weight: 400;
}
.menu-price {
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 0.95rem;
  white-space: nowrap;
}
.menu-item .note { margin-top: 4px; }
