/*
 * Pacific Pathway — public site stylesheet.
 * Loaded by the public pages through components/site-head.php.
 * Admin pages still use css/style.css; nothing here is shared with them.
 */

/* Tokens, logo, header and footer live in css/site-chrome.css, loaded first. */

/* ===================== Base ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--admin-bar-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.admin-logged-in {
  padding-top: var(--admin-bar-h);
}

main {
  flex: 1 0 auto;
  display: block;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

/* The admin page editor (css/page-editor.css) styles its own dark modal */
.pe-modal h1, .pe-modal h2, .pe-modal h3, .pe-modal h4 {
  color: inherit;
  font-family: inherit;
  letter-spacing: normal;
}

p, ul, ol, blockquote, figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--lagoon);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--lagoon-deep);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ===================== Layout ===================== */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.container--medium {
  width: min(880px, 100% - 2 * var(--gutter));
}

.container--narrow {
  width: min(740px, 100% - 2 * var(--gutter));
}

.section {
  padding-block: var(--section-space);
}

.section--paper {
  background: var(--paper);
}

.section--tint {
  background: var(--lagoon-mist);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.section-head--split > div {
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}

.section-lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--coral-deep);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: #f6b4a3;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--lagoon);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  color: #fff;
  background: var(--lagoon-deep);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  box-shadow: 0 8px 20px rgba(15, 110, 106, 0.22);
}

.btn-outline {
  background: transparent;
  border-color: rgba(16, 40, 43, 0.22);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-light {
  background: var(--sand);
  color: var(--lagoon-deep);
}

.btn-light:hover {
  background: #fff;
  color: var(--lagoon-ink);
}

.btn-coral {
  background: var(--coral-deep);
}

.btn-coral:hover {
  background: #96361f;
}

.btn-small {
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--lagoon);
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  content: '\2192';
  transition: transform 0.2s var(--ease);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ===================== Accessibility helpers ===================== */
.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;
}

.honeypot-field,
.newsletter-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ===================== Home: hero ===================== */
.home-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 164, 143, 0.28), rgba(242, 164, 143, 0) 65%);
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.home-hero h1 {
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.home-hero-lead {
  max-width: 36ch;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
}

.home-hero .button-row {
  margin-top: 2.25rem;
}

.home-hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
}

.home-hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(11, 63, 61, 0.18));
}

.home-hero-art .ring {
  transform-origin: 240px 250px;
  animation: ring-pulse 6s var(--ease) infinite;
}

.home-hero-art .ring:nth-of-type(2) { animation-delay: 1.2s; }
.home-hero-art .ring:nth-of-type(3) { animation-delay: 2.4s; }

@keyframes ring-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.98); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

@media (max-width: 860px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-art {
    order: -1;
    justify-self: start;
    width: min(55%, 210px);
  }
}

@media (max-width: 480px) {
  .button-row > .btn {
    flex: 1 1 100%;
  }
}

/* ===================== Home: about ===================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.about-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.about-card h3 {
  margin-bottom: 0.9rem;
  font-size: 1.6rem;
}

.about-card p {
  color: var(--ink-soft);
}

.about-card--mission {
  background: var(--lagoon-deep);
  border-color: var(--lagoon-deep);
}

.about-card--mission h3 {
  color: #fff;
}

.about-card--mission p {
  color: rgba(250, 245, 238, 0.86);
  font-size: 1.125rem;
}

.about-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--lagoon-tint);
  color: var(--lagoon);
  font-size: 1.2rem;
}

.about-card--mission .about-icon {
  background: rgba(250, 245, 238, 0.12);
  color: #f6b4a3;
}

.offer-block {
  margin-top: 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--sand-deep);
}

.offer-block h3 {
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-grid li {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.45;
}

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

/* ===================== Home: bubble band ===================== */
.bubble-band {
  position: relative;
  overflow: hidden;
  background: var(--lagoon-deep);
  color: rgba(250, 245, 238, 0.86);
}

.bubble-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.bubble-band h2 {
  color: #fff;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
  font-weight: 500;
}

.bubble-band p {
  max-width: 52ch;
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

.bubble-band .button-row {
  margin-top: 2rem;
}

.bubble-art {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  aspect-ratio: 1;
}

.bubble-art span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(246, 180, 163, 0.45);
}

.bubble-art span:nth-child(2) {
  inset: 12%;
  border-color: rgba(250, 245, 238, 0.3);
}

.bubble-art span:nth-child(3) {
  inset: 24%;
  border: 0;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 70% 75%, rgba(226, 114, 91, 0.55), rgba(226, 114, 91, 0) 55%),
    linear-gradient(150deg, #2f8f86, #0f6e6a 60%, #0b3f3d);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), inset 0 0 40px rgba(255, 255, 255, 0.12);
}

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

  .bubble-art {
    width: min(70%, 240px);
    order: -1;
  }
}

/* ===================== Event cards ===================== */
.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.75rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.event-card:hover {
  color: inherit;
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.event-card h3 {
  font-size: 1.35rem;
}

.event-card-datetime {
  margin-top: 0.5rem;
  color: var(--lagoon);
  font-weight: 600;
  font-size: 0.95rem;
}

.event-card-description {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-description p + p {
  margin-top: 0.5rem;
}

.date-tile {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 70px;
  border-radius: 16px;
  background: var(--coral-tint);
  color: var(--coral-deep);
  line-height: 1;
}

.date-tile-month {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.date-tile-day {
  margin-top: 0.3rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
}

.date-tile--muted {
  background: var(--sand-deep);
  color: var(--muted);
}

/* ===================== Empty states ===================== */
.empty-state,
.no-posts-card {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.no-posts-card > i {
  color: var(--coral);
  font-size: 1.75rem;
}

.empty-state h3,
.no-posts-card h3,
.no-posts-card h4 {
  font-size: 1.35rem;
}

.empty-state p,
.no-posts-card p {
  max-width: 48ch;
  color: var(--muted);
}

.no-posts-card .btn {
  margin-top: 0.5rem;
}

/* ===================== Home: newsletter band ===================== */
.newsletter-band {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.newsletter-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 164, 143, 0.55), rgba(242, 164, 143, 0) 45%),
    var(--coral-tint);
}

.newsletter-band h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.4rem);
}

.newsletter-band p {
  max-width: 54ch;
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

/* ===================== Home: contact ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}

.contact-spiel {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.contact-intro .btn {
  margin-top: 1.75rem;
}

.contact-form-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.contact-form-card-title {
  font-size: 1.4rem;
}

.contact-form-card-text {
  margin-top: 0.4rem;
  color: var(--muted);
}

.contact-form-toggle-btn {
  width: 100%;
  margin-top: 1.25rem;
}

.collapsible-content {
  display: none;
}

.collapsible-content.open {
  display: block;
  margin-top: 1.5rem;
  animation: fade-up 0.3s var(--ease);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== Forms ===================== */
.form-stack {
  display: grid;
  gap: 1.15rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
}

.form-hint,
.form-field small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--sand);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.form-field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2334494c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #6b7b7c;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #d6c9b6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--lagoon);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(15, 110, 106, 0.15);
}

.form-group-title {
  margin-top: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--coral-deep);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-group-title:first-child {
  margin-top: 0;
}

.form-response {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
}

.form-response.is-success {
  background: var(--success-bg);
  color: var(--success-ink);
}

.form-response.is-error {
  background: var(--error-bg);
  color: var(--error-ink);
}

/* ===================== Inner page hero ===================== */
.page-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1.5px solid rgba(226, 114, 91, 0.25);
  box-shadow: 0 0 0 48px rgba(226, 114, 91, 0.05), 0 0 0 96px rgba(15, 110, 106, 0.04);
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page-hero-intro {
  max-width: 60ch;
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb::before {
  content: '\2190';
}

.breadcrumb:hover {
  color: var(--lagoon);
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.meta-chip i {
  color: var(--coral-deep);
}

.page-hero-actions,
.page-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1.5rem;
}

.page-body {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-space);
}

/* ===================== Events page ===================== */
.featured-event {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--lagoon-deep);
  color: rgba(250, 245, 238, 0.86);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.featured-event::after {
  content: '';
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1.5px solid rgba(246, 180, 163, 0.3);
  box-shadow: 0 0 0 40px rgba(246, 180, 163, 0.05);
  pointer-events: none;
}

.featured-event--no-date {
  grid-template-columns: minmax(0, 1fr);
}

.featured-event .date-tile {
  width: 84px;
  height: 92px;
  background: rgba(250, 245, 238, 0.1);
  color: #f6b4a3;
}

.featured-event .date-tile-day {
  color: #fff;
  font-size: 2.3rem;
}

.featured-event-body {
  position: relative;
  z-index: 1;
}

.featured-label {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--lagoon-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-event h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 500;
}

.featured-event h2 a {
  color: #fff;
  text-decoration: none;
}

.featured-event h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.featured-event-meta {
  margin-top: 0.75rem;
  color: #f6b4a3;
  font-weight: 600;
}

.featured-event-summary {
  max-width: 62ch;
  margin-top: 1rem;
}

.featured-event .text-link {
  margin-top: 1.5rem;
  color: #fff;
}

.events-group + .events-group {
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

.events-group-title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
}

.event-list {
  display: grid;
  gap: 1rem;
}

.event-list-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.event-list-item:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.event-list-details h3 {
  font-size: 1.35rem;
}

.event-list-details h3 a {
  color: var(--ink);
  text-decoration: none;
}

.event-list-details h3 a:hover {
  color: var(--lagoon);
}

/* Make the whole card clickable through the title link */
.event-list-details h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.event-list-meta {
  margin-top: 0.4rem;
  color: var(--lagoon);
  font-weight: 600;
  font-size: 0.95rem;
}

.event-list-details p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.event-list-details .text-link {
  margin-top: 0.85rem;
}

.past-events .event-list-item {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.past-events .event-list-item:hover {
  background: var(--paper);
}

@media (max-width: 560px) {
  .featured-event,
  .event-list-item {
    grid-template-columns: 1fr;
  }

  .event-list-item {
    gap: 1rem;
  }
}

/* ===================== Admin controls on public pages ===================== */
.post-admin-actions,
.event-list-admin-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: var(--lagoon-tint);
  color: var(--lagoon);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.admin-btn.edit {
  background: rgba(14, 165, 233, 0.15);
  color: #0369a1;
}

.admin-btn.delete {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.admin-btn:hover,
.admin-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 40, 43, 0.15);
}

/* ===================== Blog list ===================== */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.25rem;
}

.blog-list > .no-posts-card {
  grid-column: 1 / -1;
}

.blog-post-summary {
  position: relative;
  display: flex;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.blog-post-summary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-post-summary .card-link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  color: inherit;
  text-decoration: none;
}

.blog-post-summary h2 {
  font-size: 1.5rem;
}

.blog-post-summary .card-link:hover h2 {
  color: var(--lagoon);
}

.post-admin-actions + .card-link .post-meta {
  min-height: 38px;
  padding-right: 6rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  color: var(--coral-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.blog-post-summary p {
  color: var(--muted);
}

.blog-post-summary .text-link {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ===================== Long-form content (posts, events, story) ===================== */
.prose {
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.prose > * + * {
  margin-top: 1.1em;
}

/* Quill writes one <p> per line and <p><br></p> for blank lines, so consecutive
   paragraphs sit flush, as in the editor, and the author's blank lines set the gaps. */
.prose > p + p {
  margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.8em;
  color: var(--ink);
}

.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.4rem; }
.prose h4 { font-size: 1.2rem; }

.prose > :first-child {
  margin-top: 0;
}

.prose strong {
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--coral);
}

.prose blockquote {
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 3px solid var(--coral);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.2em;
  font-style: italic;
}

.prose img {
  border-radius: var(--radius);
}

.prose pre {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--sand-deep);
  overflow-x: auto;
  font-size: 0.92em;
}

.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 2em; }
.prose .ql-indent-2 { padding-left: 4em; }
.prose .ql-indent-3 { padding-left: 6em; }

.prose-card {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.prose-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ===================== Book page ===================== */
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.booking-info h2 {
  color: var(--lagoon);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  font-weight: 500;
}

.booking-audience {
  margin-top: 1.5rem;
}

.booking-audience p {
  color: var(--ink);
  font-weight: 700;
}

.booking-audience ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}

.booking-audience li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}

.booking-audience li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--coral);
}

.booking-offerings {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.booking-offering {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line-soft);
}

.booking-offering h3 {
  font-size: 1.3rem;
}

.booking-offering p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.booking-handle {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--lagoon-deep);
  color: rgba(250, 245, 238, 0.88);
}

.booking-handle h3 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
}

.booking-handle ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.booking-handle li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.booking-handle li i {
  color: #f6b4a3;
}

.booking-handle-note {
  margin-top: 1.25rem;
  color: #f6b4a3;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
}

.booking-available {
  margin-top: 2rem;
}

.booking-available-title {
  color: var(--ink);
  font-weight: 700;
}

.booking-available-list {
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.booking-available-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.booking-form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.booking-form-card > h2 {
  font-size: 1.7rem;
}

.booking-form-intro {
  margin: 0.6rem 0 2rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.booking-form .btn-block {
  min-height: 56px;
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

.booking-process {
  margin-top: 0.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--muted);
  font-size: 0.9rem;
}

.booking-process-title {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.booking-process ol {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding-left: 1.2rem;
}

.booking-process ol strong {
  color: var(--ink-soft);
}

@media (min-width: 901px) {
  .booking-form-card {
    position: sticky;
    top: calc(var(--header-h) + var(--admin-bar-h) + 1.5rem);
  }
}

@media (max-width: 900px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .booking-handle ul {
    grid-template-columns: 1fr;
  }
}

/* ===================== Status pages (newsletter confirm / unsubscribe) ===================== */
.status-page {
  display: grid;
  place-items: center;
  padding: 2rem var(--gutter);
}

.status-card {
  width: min(520px, 100%);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.status-card .brand {
  margin-bottom: 1.75rem;
}

.status-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  font-size: 1.5rem;
}

.status-card.success .status-icon {
  background: var(--success-bg);
  color: var(--success-ink);
}

.status-card.error .status-icon {
  background: var(--error-bg);
  color: var(--error-ink);
}

.status-card h1 {
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.2rem);
  font-weight: 500;
}

.status-card p {
  margin: 1rem 0 1.75rem;
  color: var(--ink-soft);
}

/* ===================== Newsletter floating button & modal ===================== */
.newsletter-fab-wrapper {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.newsletter-fab-wrapper.is-hidden {
  display: none;
}

.newsletter-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: var(--coral-deep);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(180, 68, 47, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.newsletter-fab svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.newsletter-fab:hover,
.newsletter-fab:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(180, 68, 47, 0.4);
}

.newsletter-fab-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(16, 40, 43, 0.78);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.newsletter-fab-dismiss:hover,
.newsletter-fab-dismiss:focus-visible {
  background: var(--ink);
}

body.newsletter-modal-open {
  overflow: hidden;
}

body.newsletter-modal-open .newsletter-fab-wrapper {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.newsletter-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.newsletter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 43, 42, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.newsletter-modal-dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--sand);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s var(--ease);
}

.newsletter-modal-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--lagoon), var(--coral));
}

.newsletter-modal.is-open .newsletter-modal-dialog {
  transform: none;
}

.newsletter-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--sand-deep);
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.newsletter-modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.newsletter-modal-content h2 {
  padding-right: 2.5rem;
  font-size: 2rem;
  font-weight: 500;
}

.newsletter-modal-subtitle {
  margin: 0.75rem 0 1.5rem;
  color: var(--ink-soft);
}

.newsletter-modal-fields {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.newsletter-modal-fields input[type="text"],
.newsletter-modal-fields input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 1rem;
}

.newsletter-modal-fields input:focus {
  outline: none;
  border-color: var(--lagoon);
  box-shadow: 0 0 0 4px rgba(15, 110, 106, 0.15);
}

.newsletter-modal-submit {
  width: 100%;
}

.newsletter-modal-privacy {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.newsletter-modal-response {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 600;
}

.newsletter-modal-response.success {
  background: var(--success-bg);
  color: var(--success-ink);
}

.newsletter-modal-response.error {
  background: var(--error-bg);
  color: var(--error-ink);
}

@media (max-width: 600px) {
  .newsletter-fab-wrapper {
    right: 1rem;
    bottom: 1rem;
  }

  .newsletter-modal {
    align-items: flex-end;
    padding: 0;
  }

  .newsletter-modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 2.25rem 1.25rem 1.75rem;
  }
}

/* ===================== Admin bar (copied from style.css so it looks the same here) ===================== */
.admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #23282d;
  color: #eee;
  z-index: 9999;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  height: 40px;
}

.admin-bar-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

.admin-bar a {
  color: #eee;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
}

.admin-bar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-bar-left,
.admin-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-bar-desktop-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-bar-desktop-links a {
  padding-top: 10px;
  padding-bottom: 10px;
}

.notification-badge {
  background-color: #c0392b;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: bold;
  margin-left: 0.5rem;
  line-height: 1;
}

.admin-bar-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #eee;
  font-size: 1.2rem;
  cursor: pointer;
}

.admin-bar-mobile-nav {
  display: none;
  background: #23282d;
  border-top: 1px solid #444;
  flex-direction: column;
  padding: 0.5rem 0;
  gap: 0;
}

.admin-bar-mobile-nav.is-open {
  display: flex;
}

.admin-bar-mobile-nav a {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #444;
}

.admin-bar-mobile-nav a:last-child {
  border-bottom: none;
}

.admin-bar-mobile-logout {
  margin: 0;
  border-top: 1px solid #444;
  padding: 0.75rem 1.25rem 0;
}

.admin-bar-mobile-logout .linklike-button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  color: #eee;
  cursor: pointer;
}

@media (max-width: 768px) {
  .admin-bar-desktop-links {
    display: none;
  }

  .admin-bar-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .admin-bar-content {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-bar-right {
    display: none;
  }
}

/* ===================== Motion preferences ===================== */
@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;
  }
}

/* ===================== Print ===================== */
@media print {
  .site-header,
  .site-footer,
  .newsletter-fab-wrapper,
  .newsletter-modal,
  .admin-bar,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
