/* ==========================================================================
   Miami Beach Botanical Garden — style.css
   Modern botanical design · Staatliches + Poppins
   --------------------------------------------------------------------------
   Table of contents:
   1. Root variables
   2. Base styles
   3. Header / navigation
   4. Buttons (pills)
   5. Marquee ticker
   6. Split sections & media panels
   7. Cards & grids
   8. Page-specific sections
   9. Accordions
   10. Footer
   11. Utilities & animation
   12. Responsive breakpoints
   ========================================================================== */


/* ==========================================================================
   1. Root variables
   ========================================================================== */

:root {
  /* Colors */
  --ink:    #1C1C1C;   /* near-black text & buttons */
  --paper:  #FAF9F5;   /* off-white background — used site-wide */
  --lilac:  #9B87C4;
  --coral:  #F1968C;
  --green:  #81BA6E;
  --yellow: #E0CF7C;
  --teal:   #70C4BB;
  --footer: #111111;
  --hairline: #E8E6DF; /* light ruled borders */

  /* Fonts */
  --font-display: 'Staatliches', 'Arial Narrow', sans-serif;
  --font-body:    'Poppins', 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.75rem;
  --space-xl:  4.5rem;
  --space-2xl: 6.5rem;

  /* Shape */
  --radius:      8px;
  --radius-lg:   20px;
  --radius-pill: 100px;

  /* Motion */
  --transition: 0.25s ease;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 68px;
}


/* ==========================================================================
   2. Base styles
   ========================================================================== */

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

html {
  overflow-x: clip; /* nothing can force sideways scrolling */
  scroll-behavior: smooth;
  scroll-padding-top: 124px; /* clears the fixed 108px header when jumping to anchors */
}

body {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: clip; /* clip (not hidden) so the sticky header still sticks */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400; /* Staatliches has a single weight */
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Display sizes — Staatliches is condensed, so these stay compact */
.display-xl { font-size: clamp(3.2rem, 7vw, 5.6rem); }
.display-lg { font-size: clamp(2.8rem, 4.5vw, 4rem); }
.display-md { font-size: clamp(2rem, 3.2vw, 2.9rem); }

p {
  max-width: 65ch;
}

/* Light editorial paragraph */
.lead {
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 300;
  color: rgba(20, 15, 8, 0.66);
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition),
              border-color var(--transition);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

/* Standard section rhythm */
.section {
  padding: var(--space-2xl) 0;
}

/* Small uppercase label above headings */
.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow-lilac  { color: var(--lilac); }
.eyebrow-coral  { color: var(--coral); }
.eyebrow-green  { color: var(--green); }
.eyebrow-dim    { color: rgba(20, 15, 8, 0.48); }

/* Underlined editorial text link:  Our Story ↗ */
.text-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--lilac);
  padding-bottom: 3px;
}

.text-link:hover {
  opacity: 0.65;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 3px;
}


/* ==========================================================================
   3. Header / navigation
   ========================================================================== */

/* Header: a centered logo anchor with three tabs hugging each side.
   The header stays fixed in this state — no scroll animation. */
.site-header {
  --header-h: 108px;   /* bar height */
  --logo-h:   88px;    /* logo height */
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--ink);
}

.header-inner {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* the auto column keeps the logo page-centered */
  align-items: center;
  column-gap: 44px;                     /* breathing room between tabs and logo */
}

.nav-left  { grid-column: 1; justify-self: end; }   /* right edge of col 1, next to logo */
.nav-right { grid-column: 3; justify-self: start; } /* left edge of col 3, next to logo */

.logo {
  grid-column: 2;
  display: block;
  line-height: 0;
}

.logo-svg {
  display: block;
  height: var(--logo-h);
  width: auto;
}

/* Compact wordmark used only on mobile (hidden on desktop) */
.logo-mobile-img {
  display: none;
}

/* Nav items + dropdowns */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link,
.main-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--lilac);
}

/* Active page link (set by js/script.js) */
.main-nav .nav-link.active {
  border-bottom: 2px solid var(--lilac);
}

/* Dropdown caret */
.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 226px;
  margin-top: 8px;
  padding: 8px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(28, 28, 28, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

/* Right-hand tabs + Portals open flush to the right so they don't overflow */
.dropdown-right,
.nav-right .nav-item .dropdown {
  left: auto;
  right: 0;
}

.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item:hover > .nav-link .caret,
.nav-item:focus-within > .nav-link .caret,
.nav-item:hover > .portals-toggle .caret,
.nav-item:focus-within > .portals-toggle .caret {
  transform: rotate(180deg);
}

.dropdown a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown a:hover {
  background: rgba(155, 135, 196, 0.14);
  color: var(--lilac);
}

/* Persistent utilities pinned to the outer edges of the header:
   Newsletter on the left, Portals on the right. Positioned against
   the full-width header so they sit near the browser edges.
   Selectors are scoped to .site-header so they win over the base
   .pill { position: relative } rule that comes later in the file. */
.site-header .header-util {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 210;
}

.site-header .header-util-left {
  left: 36px;
}

.site-header .header-util-right {
  right: 36px;
}

/* Portals pill holds a caret, so align it as a flex row.
   (Scoped to the inner pill only — not the Newsletter pill itself —
   so the mobile `display:none` on .header-util still applies.) */
.header-util .pill {
  display: inline-flex;
  align-items: center;
}

.header-util .caret {
  margin-left: 8px;
}

/* Newsletter button: beige (paper) with a black outline; the lilac
   fill rises on hover (text flips to white) — same purple as before. */
.pill.newsletter-link {
  background-color: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}

.pill.newsletter-link:hover {
  color: #fff;
}

/* Mobile dropdown — hidden entirely on desktop */
.mobile-nav {
  display: none;
}

/* Hamburger — hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   4. Buttons (pills)
   ========================================================================== */

/* All pills share a "rising fill" hover: a full-size color layer
   (::before) sits parked just below the button and slides up on
   hover — the same technique as the reference project. The label
   paints above the layer; overflow:hidden clips it to the pill. */
.pill {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background-clip: padding-box; /* keeps the fill flush with the border */
  cursor: pointer;
  transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

/* The sliding fill layer */
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;                 /* under the label, over the background */
  transform: translateY(101%); /* parked below the button */
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1);
}

.pill:hover::before {
  transform: translateY(0);    /* slides up; slides back down on leave */
}

/* Solid ink pill — lilac rises over the ink */
.pill-ink {
  background-color: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.pill-ink::before {
  background-color: var(--lilac);
}

.pill-ink:hover {
  border-color: var(--lilac);
}

/* Transparent with ink border — ink rises, text flips to white */
.pill-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.pill-outline::before {
  background-color: var(--ink);
}

.pill-outline:hover {
  color: #fff;
}

/* White pill (for dark panels) — lilac rises over the white */
.pill-white {
  background-color: #fff;
  color: var(--ink);
  border-color: #fff;
}

.pill-white::before {
  background-color: var(--lilac);
}

.pill-white:hover {
  color: #fff;
  border-color: var(--lilac);
}

/* Ghost white outline (for dark panels) — white rises, text flips to ink */
.pill-ghost {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.pill-ghost::before {
  background-color: #fff;
}

.pill-ghost:hover {
  color: var(--ink);
  border-color: #fff;
}

/* Small pill (header) */
.pill-sm {
  padding: 11px 22px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}


/* ==========================================================================
   5. Marquee ticker
   ========================================================================== */

.marquee {
  background: var(--ink);
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 28s linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee span {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0 56px;
  color: rgba(255, 255, 255, 0.7);
}

.marquee .mq-star {
  color: rgba(255, 255, 255, 0.2);
  padding: 0 4px;
  letter-spacing: 0;
}

.marquee .mq-lilac  { color: var(--lilac); }
.marquee .mq-coral  { color: var(--coral); }
.marquee .mq-green  { color: var(--green); }
.marquee .mq-yellow { color: var(--yellow); }
.marquee .mq-teal   { color: var(--teal); }


/* ==========================================================================
   5b. Full-photo hero (home page)
   The pond photo fills the section with a dark overlay so the
   white text stays readable.
   ========================================================================== */

/* Wide cinematic banner photo under a centered page heading */
.hero-banner img {
  width: 100%;
  height: clamp(260px, 46vh, 480px);
  object-fit: cover;
}

/* NYBG-style hero: full-bleed photo strip + colored title divider.
   Use any divider color: divider-coral, divider-lilac, divider-green,
   divider-yellow, divider-teal. */
.hero-strip {
  display: block;
  width: 100%;
  height: clamp(300px, 56vh, 560px);
  object-fit: cover;
}

.hero-divider {
  padding: 10px 24px;
  text-align: center;
}

.hero-divider h1,
.hero-divider h2 {
  color: var(--ink);
}

.divider-coral  { background: var(--coral); }
.divider-lilac  { background: var(--lilac); }
.divider-green  { background: var(--green); }
.divider-yellow { background: var(--yellow); }
.divider-teal   { background: var(--teal); }


/* ==========================================================================
   6. Split sections & media panels
   Sections sit on the off-white background. Each .block pairs text
   with either a photo (.media-photo) or a small colored panel
   (.media-panel) holding a botanical illustration.
   ========================================================================== */

.block {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: var(--space-2xl) 48px;
}

/* Old color-block classes now share the paper background —
   color lives in the media panels, cards, and accents instead */
.block-lilac,
.block-coral,
.block-green,
.block-yellow,
.block-teal {
  background: transparent;
}

.block-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.block-text .lead {
  max-width: 460px;
  margin-bottom: 36px;
}

/* Media column (photo or colored panel) */
.block-media {
  width: 44%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Photo: rounded, softly shadowed */
.media-photo {
  width: 100%;
  max-height: 620px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(28, 28, 28, 0.14);
}

.media-photo img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
}

/* Colored panel holding a botanical illustration */
.media-panel {
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  padding: 40px;
}

.panel-lilac  { background: var(--lilac); }
.panel-coral  { background: var(--coral); }
.panel-green  { background: var(--green); }
.panel-yellow { background: var(--yellow); }
.panel-teal   { background: var(--teal); }

.media-panel .deco,
.block-media .deco {
  width: 80%;
  max-width: 420px;
  height: auto;
}

/* Taller hero variant */
.block-hero {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  min-height: calc(88vh - var(--nav-height));
}

/* Rows with hairline dividers (event lists, fact lists) */
.ruled-list {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--hairline);
}

.ruled-list > * {
  padding: 18px 0;
  border-bottom: 1.5px solid var(--hairline);
}

/* Arrow link rows */
.arrow-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.arrow-link .arrow-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.arrow-link .arrow {
  font-size: 1.1rem;
}

.arrow-link:hover {
  opacity: 0.65;
}

/* Event rows */
.event-row .event-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 6px;
}

.event-row .event-row-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.event-row .event-row-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--coral);
  flex-shrink: 0;
}

.event-row p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(20, 15, 8, 0.6);
}


/* ==========================================================================
   7. Cards & grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* --- Colored cards (white text) — the "small" color moments --- */
.color-card {
  border-radius: var(--radius-lg);
  padding: 40px 34px 36px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.color-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(28, 28, 28, 0.14);
}

.color-card-lilac { background: var(--lilac); }
.color-card-coral { background: var(--coral); }
.color-card-green { background: var(--green); }
.color-card-teal  { background: var(--teal); }
.color-card-ink   { background: var(--ink); }

.color-card .eyebrow {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
  flex: none; /* only the description below should stretch — this keeps titles aligned */
}

.color-card h3 {
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 14px;
}

.color-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
  flex: 1;
}

.color-card .card-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
  align-self: flex-start;
}

.color-card .card-link:hover {
  border-bottom-color: #fff;
}

/* --- Ruled grid (stat bar & info cells) --- */
.ruled-grid {
  border-top: 1.5px solid var(--hairline);
  display: grid;
}

.ruled-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ruled-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ruled-grid-5 { grid-template-columns: repeat(5, 1fr); }

.ruled-cell {
  padding: 36px 28px;
  border-right: 1.5px solid var(--hairline);
  border-bottom: 1.5px solid var(--hairline);
}

/* No right border on the last cell of each row */
.ruled-grid-3 .ruled-cell:nth-child(3n),
.ruled-grid-4 .ruled-cell:nth-child(4n),
.ruled-grid-5 .ruled-cell:nth-child(5n),
.ruled-cell:last-child {
  border-right: none;
}

.ruled-cell .cell-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #999;
  font-weight: 500;
  margin-bottom: 14px;
}

.ruled-cell .cell-big {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 10px;
}

.ruled-cell h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.ruled-cell p {
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(20, 15, 8, 0.6);
}

/* Centered stat cells (home page highlights) */
.stat-cell {
  text-align: center;
}

/* Colored accent numbers */
.cell-lilac  { color: var(--lilac); }
.cell-coral  { color: var(--coral); }
.cell-green  { color: var(--green); }
.cell-yellow { color: #C9B45B; } /* deeper for legibility on paper */
.cell-teal   { color: var(--teal); }

/* --- Outlined paper cards (events, photography, support) --- */
.tile-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.tile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(28, 28, 28, 0.12);
}

.tile-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.tile-card p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(20, 15, 8, 0.65);
}

.tile-card .card-link {
  margin-top: auto;
  padding-top: 24px;
  align-self: flex-start; /* underline hugs the label instead of spanning the card */
}

/* Small category tag */
.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.tag-lilac  { background: var(--lilac); }
.tag-coral  { background: var(--coral); }
.tag-green  { background: var(--green); }
.tag-teal   { background: var(--teal); }
.tag-yellow { background: #C9B45B; }

.event-date {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 15, 8, 0.5);
  margin-bottom: 8px;
}

/* Checklists with hairline dividers */
.detail-list {
  list-style: none;
  margin-top: 18px;
}

.detail-list li {
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(20, 15, 8, 0.7);
  border-bottom: 1.5px solid var(--hairline);
}

.detail-list li:last-child {
  border-bottom: none;
}

.detail-list li strong {
  font-weight: 600;
  color: var(--ink);
}


/* ==========================================================================
   8. Page-specific sections
   ========================================================================== */

/* Section header row: big title left, link right */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}

.section-head .display-md {
  max-width: 560px;
}

/* Centered section header */
.section-head-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head-center .lead {
  margin: 18px auto 0;
}

/* Paragraph-based elements (eyebrows, notes) have a max-width, so they
   need auto side margins to sit centered inside centered sections */
.section-head-center .eyebrow,
.section-head-center p,
.dark-band .eyebrow,
.dark-band p {
  margin-left: auto;
  margin-right: auto;
}

/* Embedded PDF preview (Map page) */
.pdf-preview {
  width: 100%;
  height: 440px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}

.pdf-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Two-column split (e.g. "A Living Oasis" about section) */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.split-2 .lead + .lead {
  margin-top: 20px;
}

.split-2 .text-link {
  margin-top: 32px;
}

/* Dark call-to-action band — full-bleed, flows into the footer */
.dark-band {
  background: var(--ink);
  padding: 110px 48px;
  text-align: center;
}

/* When a dark band ends the page, cancel the footer's top margin
   so the band and footer sit flush (like the membership section) */
section.dark-band {
  margin-top: var(--space-2xl);
  margin-bottom: calc(-1 * var(--space-2xl));
}

/* Newsletter row inside dark bands */
.dark-band .band-newsletter {
  max-width: 680px;
  margin: 72px auto 0;
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-band .band-newsletter .eyebrow {
  color: rgba(255, 255, 255, 0.32);
}

.dark-band .band-newsletter .newsletter-form {
  max-width: 460px;
  margin: 0 auto;
}

.dark-band .eyebrow {
  color: var(--lilac);
}

.dark-band h2 {
  color: #fff;
  margin-bottom: 24px;
}

.dark-band .lead {
  color: rgba(255, 255, 255, 0.55);
  max-width: 440px;
  margin: 0 auto 44px;
  text-wrap: balance; /* evens out the lines — no orphaned last word */
}

.dark-band .btn-group {
  justify-content: center;
}

.dark-band .contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  margin-bottom: 40px;
}

.dark-band .contact-details a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.dark-band .contact-details a:hover {
  color: var(--lilac);
}

/* Quick facts chips (Visit hero) */
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 8px;
}

.quick-facts li {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1.5px solid rgba(28, 28, 28, 0.35);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
}

/* Info pairs (Visit hours grid) */
.block-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 52px;
}

.block-info-grid h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.block-info-grid p {
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(20, 15, 8, 0.65);
}

/* Membership pricing */
.price-card .price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 6px;
}

.price-card .price span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

.price-card ul {
  list-style: none;
  margin: 18px 0 30px;
  flex: 1;
}

.price-card ul li {
  padding: 9px 0;
  font-size: 0.86rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.price-card ul li:last-child {
  border-bottom: none;
}

.price-card .badge {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

/* Event filter pills */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink);
  background-color: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

/* Rising ink fill, same treatment as the pills */
.filter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--ink);
  transform: translateY(101%);
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1);
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  transform: translateY(0);
}

.event-card.hidden {
  display: none;
}


/* ==========================================================================
   9. Accordions
   ========================================================================== */

.accordion {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  margin-bottom: 14px;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-align: left;
  padding: 18px 26px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition);
}

.accordion-trigger:hover {
  background: rgba(155, 135, 196, 0.1);
}

.accordion-trigger .accordion-icon {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
  transition: transform var(--transition);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg); /* + becomes × */
}

/* Panel animated with max-height in js/script.js */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-panel-inner {
  padding: 0 26px 26px;
  font-weight: 300;
  color: rgba(20, 15, 8, 0.7);
}

.accordion-panel-inner ul {
  list-style: none;
}

.accordion-panel-inner li {
  padding: 10px 0;
  border-bottom: 1.5px solid var(--hairline);
  font-size: 0.9rem;
}

.accordion-panel-inner li:last-child {
  border-bottom: none;
}

.accordion-panel-inner strong {
  font-weight: 500;
  color: var(--ink);
}

/* Numbered parking list — the badges correspond to the map markers */
.parking-list {
  list-style: none;
  counter-reset: parking;
}

.parking-list li {
  position: relative;
  padding: 13px 0 13px 46px;
  border-bottom: 1.5px solid var(--hairline);
  counter-increment: parking;
  font-size: 0.9rem;
}

.parking-list li:last-child {
  border-bottom: none;
}

.parking-list li::before {
  content: counter(parking);
  position: absolute;
  left: 0;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d2455c;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parking-list strong {
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
  color: var(--ink);
}

.parking-list span {
  display: block;
  line-height: 1.55;
}

/* Interactive elements always show the pointer (link) cursor */
a[href],
button,
[role="button"],
summary,
label[for],
.accordion-trigger,
.filter-btn,
.nav-link,
.m-toggle {
  cursor: pointer !important;
}


/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer {
  background: var(--footer);
  padding: 68px 48px 40px;
  border-top: 1px solid #242424;
  margin-top: var(--space-2xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: 60px;
  margin-bottom: 64px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* Footer logo (white version of the header mark) */
.footer-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 22px;
}

.footer-logo-svg {
  display: block;
  height: 96px;
  width: auto;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
}

.site-footer p {
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 300;
}

.site-footer h5 {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 22px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.footer-links a,
.site-footer p a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links a:hover,
.site-footer p a:hover {
  color: #fff;
}

/* Newsletter signup (pill input + button) */
.newsletter-form {
  display: flex;
  margin-top: 4px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  color: #fff;
  font-size: 16px; /* 16px+ stops iOS Safari from auto-zooming on tap */
  font-family: var(--font-body);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--lilac);
}

.newsletter-form button {
  padding: 14px 24px;
  background: var(--lilac);
  border: none;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--transition);
}

.newsletter-form button:hover {
  background: #8A75B8;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.22);
}

.footer-social {
  display: flex;
  gap: 28px;
}

.footer-social a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.32);
}

.footer-social a:hover {
  color: #fff;
}


/* ==========================================================================
   11. Utilities & animation
   ========================================================================== */

/* Fade-in on scroll (class .visible added by js/script.js) */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


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

.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* --- Butterfly cursor follower --- */
.butterfly-follower {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 38px;
  height: 42px;
  margin-top: -21px;
  margin-left: -19px;
  pointer-events: none;
  perspective: 300px;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.butterfly-follower.visible {
  opacity: 1;
}

.butterfly-follower img {
  width: 100%;
  height: 100%;
  will-change: transform;
}


/* ==========================================================================
   12. Responsive breakpoints
   ========================================================================== */

/* --- Tablet --- */
@media (max-width: 960px) {
  .container,
  .header-inner,
  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .block {
    flex-direction: column;
    padding: var(--space-xl) 24px;
    gap: 40px;
  }

  .block-hero {
    min-height: 0;
  }

  .block-media {
    width: 100%;
    order: 1;
  }

  .media-photo,
  .media-photo img {
    max-height: 420px;
  }

  .split-2 {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ruled-grid-3,
  .ruled-grid-4,
  .ruled-grid-5 {
    grid-template-columns: 1fr 1fr;
  }

  /* Re-flow ruled borders for the 2-column layout */
  .ruled-grid .ruled-cell {
    border-right: 1.5px solid var(--hairline);
  }

  .ruled-grid .ruled-cell:nth-child(even) {
    border-right: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }
}

/* The header carries 4 dropdown tabs + utilities, so it collapses to a
   hamburger earlier (wider breakpoint) than the page content does. */
@media (max-width: 1180px) {
  /* Collapse the split desktop nav into a hamburger dropdown;
     the logo stays centered at a fixed, readable size. */
  html {
    scroll-padding-top: 86px; /* shorter header on mobile */
  }

  .site-header {
    --header-h: 72px;
    --logo-h: 52px;
  }

  .header-inner {
    display: flex;
    justify-content: flex-start; /* logo aligned to the left on mobile */
    height: var(--header-h);
  }

  .logo {
    grid-column: auto;
  }

  /* Swap the full palm logo for the compact, readable mobile wordmark */
  .logo-svg {
    display: none;
  }

  .logo-mobile-img {
    display: block;
    height: 42px;
    width: auto;
  }

  .nav-left,
  .nav-right,
  .header-util {
    display: none;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Mobile dropdown — drops from the bottom edge of the header */
  .mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1.5px solid var(--ink);
    padding: 8px 20px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition),
                visibility var(--transition);
  }

  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Accordion groups */
  .m-group {
    border-bottom: 1px solid var(--hairline);
  }

  .m-parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .m-parent-link {
    flex: 1;
    padding: 15px 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ink);
  }

  .m-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 6px 12px 18px;
    display: flex;
    align-items: center;
  }

  .m-toggle .caret {
    transition: transform 0.2s ease;
  }

  .m-toggle[aria-expanded="true"] .caret {
    transform: rotate(180deg);
  }

  .m-sub {
    display: none;
    flex-direction: column;
    padding: 0 4px 10px 12px;
  }

  .m-sub.open {
    display: flex;
  }

  .m-sub a {
    padding: 11px 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
  }

  .m-sub a:hover {
    color: var(--lilac);
  }

  .m-parent-link.active {
    color: var(--lilac);
  }

  /* Utility links at the bottom of the mobile menu */
  .m-utils {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 4px 4px;
  }

  .m-util {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ink);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
  }

  .m-util:hover {
    color: var(--lilac);
  }
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .section {
    padding: var(--space-xl) 0;
  }

  /* Newsletter: stack the field and button so nothing gets cut */
  .newsletter-form {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .newsletter-form input {
    width: 100%;
    border-right: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);
  }

  .newsletter-form button {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-pill);
  }

  .block {
    padding: var(--space-lg) 24px;
  }

  .ruled-grid-3,
  .ruled-grid-4,
  .ruled-grid-5 {
    grid-template-columns: 1fr;
  }

  .ruled-grid .ruled-cell {
    border-right: none;
  }

  .block-info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .btn-group .pill {
    width: 100%;
  }

  .marquee span {
    padding: 0 32px;
  }

  .dark-band {
    padding: 56px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
