/* ==========================================================================
   Castelbio — Sicilian Grove Design System
   Olive-led palette: deep olive for type/links/structure,
   terracotta retained as the warm action accent for primary CTAs.
   ========================================================================== */

:root {
  /* Palette */
  --terracotta: #C4704B;
  --terracotta-dark: #A85A38;
  --terracotta-light: #D4926F;
  --olive: #5A6E2E;           /* deepened: AA on cream (5.0:1) */
  --olive-dark: #3D4B1E;      /* AAA on cream — body link safe */
  --olive-light: #8BA356;
  --olive-surface: #E8EAD9;   /* tinted panel background */
  --saffron: #D4A853;
  --cream: #F5F0E8;
  --cream-dark: #EDE7DB;
  --linen: #FAF7F2;
  --earth: #2C2418;
  --earth-mid: #4A3D2E;
  --stone: #8B7D6B;
  --stone-light: #B5A998;
  --white: #FFFCF7;

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Sizes */
  --container: 1120px;
  --container-narrow: 720px;
  --radius: 6px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 36, 24, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 36, 24, 0.1);
  --shadow-lg: 0 8px 24px rgba(44, 36, 24, 0.12);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--earth);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--olive); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--earth);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

/* ==========================================================================
   Layout
   ========================================================================== */

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

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  padding: 5rem 0;
  background: var(--cream);
}

.section-dark {
  padding: 5rem 0;
  background: var(--earth);
  color: var(--cream);
}

.section-dark h2,
.section-dark h3 { color: var(--cream); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--stone);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--terracotta);
}
.btn-outline:hover {
  background: var(--terracotta);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--earth);
  border-color: var(--stone-light);
}
.btn-ghost:hover {
  border-color: var(--earth);
  color: var(--earth);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #20BD5A;
  border-color: #20BD5A;
  color: #fff;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--earth);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-logo:hover { color: var(--olive-dark); }

.site-logo .logo-icon {
  color: var(--olive);
  flex-shrink: 0;
}

.footer-brand .logo-icon {
  display: inline;
  vertical-align: middle;
  color: var(--olive-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--earth-mid);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--olive);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--olive-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-cta {
  padding: 0.5rem 1.2rem;
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
  background: var(--terracotta-dark);
  color: var(--white);
}

.lang-switch {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--stone);
  border: 1px solid var(--stone-light);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  text-decoration: none;
}

.lang-switch:hover {
  color: var(--earth);
  border-color: var(--earth);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--earth);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--earth);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 36, 24, 0.3) 0%,
    rgba(44, 36, 24, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
}

.hero-content h1 {
  color: var(--cream);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-content p {
  color: var(--cream-dark);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--stone);
  font-size: 0.95rem;
}

/* ==========================================================================
   Editorial accents (olive design language)
   ========================================================================== */

.section-narrow {
  padding: 4rem 0 1rem;
}

.events-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.events-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0.4rem 0 1rem;
  color: var(--earth);
}

.events-header .lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--earth-mid);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  font-style: italic;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-dark);
  position: relative;
  padding: 0 1.4rem;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0.9rem;
  height: 1px;
  background: var(--olive);
}

.eyebrow::before { left: 0; }
.eyebrow::after { right: 0; }

.olive-rule {
  display: block;
  width: 72px;
  height: 1px;
  background: var(--olive);
  margin: 1.5rem auto 0;
  position: relative;
}

.olive-rule::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--olive);
  border-radius: 50%;
}

/* Olive-tinted section wrapping the calendar */
.section-calendar {
  padding: 2rem 0 5rem;
  background:
    linear-gradient(180deg, rgba(232, 234, 217, 0) 0%, rgba(232, 234, 217, 0.5) 30%, rgba(232, 234, 217, 0.5) 70%, rgba(232, 234, 217, 0) 100%);
  position: relative;
}

.section-calendar::before,
.section-calendar::after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6E2E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2C9 5 5 8 5 12c0 4 3 7 7 7s7-3 7-7c0-4-4-7-7-10z'/%3E%3Cpath d='M12 19v3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.5;
}

.section-calendar::before { margin-bottom: 1.5rem; }
.section-calendar::after { margin-top: 2rem; }

/* ==========================================================================
   Events Calendar
   ========================================================================== */

.events-calendar {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  margin: 0 auto 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 920px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cal-month-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--earth);
  margin: 0;
  text-align: center;
  flex: 1;
  text-transform: capitalize;
}

.cal-nav {
  background: var(--olive-surface);
  color: var(--olive-dark);
  border: 1px solid transparent;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cal-nav:hover:not(:disabled) {
  background: var(--olive);
  color: var(--white);
}

.cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--cream-dark);
}

.cal-dow span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone);
  padding: 0.3rem 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.cal-cell {
  aspect-ratio: 1 / 1;
  max-height: 110px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--earth);
  position: relative;
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
  font-variant-numeric: tabular-nums;
}

.cal-cell.cal-muted {
  color: var(--stone-light);
  opacity: 0.5;
}

.cal-cell.cal-past {
  color: var(--stone-light);
}

.cal-cell.cal-today {
  background: var(--cream);
  font-weight: 700;
  color: var(--terracotta-dark);
}

.cal-cell.cal-today::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius);
  pointer-events: none;
}

.cal-cell.cal-has-event {
  background: var(--olive);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(90, 110, 46, 0.25);
}

.cal-cell.cal-has-event:hover,
.cal-cell.cal-has-event:focus-visible {
  background: var(--olive-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 110, 46, 0.4);
  outline: none;
}

.cal-cell.cal-has-event.cal-today {
  background: var(--olive);
  color: var(--white);
}

.cal-cell.cal-has-event.cal-today::before {
  border-color: var(--terracotta);
  border-width: 2px;
}

/* Private booking — venue closed to public */
.cal-cell.cal-private {
  background: var(--cream-dark);
  color: var(--stone);
  cursor: pointer;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: var(--stone-light);
  text-decoration-thickness: 1px;
}

.cal-cell.cal-private:hover,
.cal-cell.cal-private:focus-visible {
  background: var(--stone-light);
  color: var(--earth);
  transform: translateY(-1px);
  outline: none;
}

.cal-lock {
  position: absolute;
  bottom: 5px;
  color: var(--stone);
  line-height: 0;
}

.cal-cell.cal-private:hover .cal-lock,
.cal-cell.cal-private:focus-visible .cal-lock {
  color: var(--earth);
}

.cal-cell.cal-selected {
  background: var(--olive) !important;
  color: var(--white) !important;
  box-shadow: 0 2px 8px rgba(90, 110, 46, 0.35);
}

.cal-cell.cal-selected::before {
  border-color: var(--olive-dark);
}

.cal-day {
  line-height: 1;
}

.cal-dot {
  position: absolute;
  bottom: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
}

.cal-cell.cal-selected .cal-dot {
  background: var(--white);
}

.cal-legend {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--olive);
  display: inline-block;
}

/* Event detail panel — opens below calendar when a day is selected */
.event-detail-panel {
  margin-bottom: 2rem;
  animation: detailReveal 0.3s ease-out;
}

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

.event-detail-card {
  background: var(--white);
  border-left: 4px solid var(--olive);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-md);
}

.event-detail-card.is-private {
  border-left-color: var(--stone);
  background: var(--linen);
}

.event-detail-date-private {
  background: var(--stone) !important;
}

.event-private-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0.7rem;
  background: var(--cream-dark);
  color: var(--earth-mid);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.event-private-badge svg {
  flex-shrink: 0;
}

.event-card.is-private {
  background: var(--linen);
  border: 1px solid var(--cream-dark);
  box-shadow: none;
  opacity: 0.92;
}

.event-card.is-private:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.event-date-private {
  background: var(--stone) !important;
}

.event-card.is-private .event-info h3 {
  color: var(--earth-mid);
  font-weight: 600;
}

.event-detail-card + .event-detail-card {
  margin-top: 1rem;
}

.event-detail-card.has-poster {
  display: grid;
  grid-template-columns: minmax(220px, 32%) 1fr;
  gap: 1.6rem;
  padding: 1.2rem;
  align-items: start;
}

.event-detail-card.has-poster .event-detail-content {
  min-width: 0;
}

.event-detail-poster {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: zoom-in;
}

.event-thumb {
  cursor: zoom-in;
}

.event-detail-poster:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.event-detail-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.event-detail-poster::after {
  content: '⤢';
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(44, 36, 24, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.25s ease, background 0.25s ease;
  pointer-events: none;
}

.event-detail-poster:hover::after,
.event-detail-poster:focus-visible::after {
  opacity: 1;
  background: var(--olive);
}

/* Poster lightbox overlay */
.poster-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, 0);
  backdrop-filter: blur(0);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.poster-lightbox.open {
  display: flex;
  background: rgba(20, 16, 10, 0.92);
  backdrop-filter: blur(6px);
  animation: posterFade 0.25s ease;
}

@keyframes posterFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.poster-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: posterZoom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes posterZoom {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.poster-lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1001;
  backdrop-filter: blur(8px);
}

.poster-lightbox-close:hover,
.poster-lightbox-close:focus-visible {
  background: var(--olive);
  border-color: var(--olive);
  transform: scale(1.05);
  outline: none;
}

@media (max-width: 768px) {
  .poster-lightbox { padding: 0.5rem; }
  .poster-lightbox img { max-height: 85vh; }
  .poster-lightbox-close { width: 40px; height: 40px; top: 0.8rem; right: 0.8rem; }
}

.event-detail-head {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.event-detail-date {
  flex-shrink: 0;
  width: 70px;
  padding: 0.6rem;
  background: var(--olive);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.event-detail-date .day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.event-detail-date .month {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.event-detail-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
}

.event-detail-meta {
  color: var(--stone);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.event-detail-desc {
  color: var(--earth-mid);
  font-size: 0.95rem;
  margin: 0.8rem 0 0;
  line-height: 1.65;
}

.event-detail-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

/* RSVP form (revealed inside the detail card) */
.rsvp-form-host:not(:empty) {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--cream-dark);
}

.rsvp-form h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--olive-dark);
  margin-bottom: 1rem;
}

.rsvp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.rsvp-row-full {
  display: block;
  margin-bottom: 0.8rem;
}

.rsvp-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--earth-mid);
  gap: 0.3rem;
}

.rsvp-form input,
.rsvp-form textarea {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--earth);
  background: var(--linen);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(90, 110, 46, 0.12);
}

.rsvp-form textarea {
  resize: vertical;
  min-height: 60px;
}

.rsvp-hint {
  font-size: 0.75rem;
  color: var(--stone);
  font-weight: 400;
  margin-top: 0.2rem;
}

.rsvp-error {
  background: #FEF2F2;
  color: #B91C1C;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.rsvp-actions {
  margin-top: 0.6rem;
  text-align: right;
}

.rsvp-success {
  text-align: center;
  padding: 1.5rem 1rem;
}

.rsvp-success svg {
  color: var(--olive);
  margin: 0 auto 0.6rem;
  display: block;
}

.rsvp-success h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--olive-dark);
  margin-bottom: 0.5rem;
}

.rsvp-success p {
  color: var(--earth-mid);
  margin-bottom: 0.5rem;
}

.rsvp-success-detail {
  color: var(--olive-dark);
  font-size: 0.9rem;
}

.events-list-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--earth);
  margin: 2.5rem 0 1rem;
}

/* ==========================================================================
   Events
   ========================================================================== */

.events-grid {
  display: grid;
  gap: 1.5rem;
}

.event-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  border-left: 4px solid transparent;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--olive);
}

.event-card:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

.event-card.is-private { cursor: default; }
.event-card.is-private:hover { border-left-color: var(--stone); transform: none; }

.event-thumb {
  flex-shrink: 0;
  width: 96px;
  background: var(--cream);
  overflow: hidden;
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card.has-thumb .event-date {
  min-width: 70px;
  padding: 0.8rem 0.6rem;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 1.2rem;
  background: var(--olive);
  color: var(--white);
  text-align: center;
}

.event-date .day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.event-date .month {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-info {
  padding: 1.2rem 1.5rem;
  flex: 1;
}

.event-info h3 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.event-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--stone);
  margin-bottom: 0.5rem;
}

.event-desc {
  color: var(--earth-mid);
  font-size: 0.9rem;
}

.event-price {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: var(--cream);
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--olive-dark);
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* ==========================================================================
   Products
   ========================================================================== */

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.product-card:last-child { border-bottom: none; }

.product-card:nth-child(even) { direction: rtl; }
.product-card:nth-child(even) > * { direction: ltr; }

.product-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product-img img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.product-img-portrait img {
  aspect-ratio: 4/5;
}

/* ==========================================================================
   Gallery grid (catering + events atmosphere)
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 0.8rem;
  margin-top: 2rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-tall {
  grid-row: span 2;
}

.gallery-item-wide {
  grid-column: span 2;
}

/* Quad layout — 2x2 with 2 tall items */
.gallery-grid-quad {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
}

.culinary-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1rem;
}

.culinary-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  letter-spacing: -0.015em;
  margin: 0.4rem 0 0.8rem;
}

.culinary-header .lede {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--earth-mid);
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 1.2rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery-item-tall,
  .gallery-item-wide { grid-row: auto; grid-column: auto; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone);
  margin-bottom: 0.3rem;
}

.contact-item p,
.contact-item a {
  font-size: 1.05rem;
  color: var(--earth);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

.pano-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.pano-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pano-card-img {
  aspect-ratio: 16/9;
  background: var(--earth);
}

.pano-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
  transition: filter 0.25s ease;
}

.pano-card:hover .pano-card-img img,
.pano-card:focus-visible .pano-card-img img {
  filter: brightness(0.55);
}

.pano-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--white);
  pointer-events: none;
}

.pano-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.25s ease, background 0.25s ease;
}

.pano-card:hover .pano-card-icon,
.pano-card:focus-visible .pano-card-icon {
  transform: scale(1.1);
  background: rgba(196, 112, 75, 0.85);
}

.pano-card-cta {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
  .pano-card-img { aspect-ratio: 4/3; }
  .pano-card-icon { width: 56px; height: 56px; }
}

/* ==========================================================================
   Membership Form
   ========================================================================== */

.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--earth-mid);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--earth);
  background: var(--linen);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(90, 110, 46, 0.12);
}

.form-group input:focus:not(:focus-visible),
.form-group select:focus:not(:focus-visible) {
  outline: none;
}

.form-group input::placeholder {
  color: var(--stone-light);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.form-check input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--olive);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-check label {
  font-size: 0.9rem;
  color: var(--earth-mid);
  line-height: 1.5;
}

.form-check a {
  text-decoration: underline;
}

.form-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.form-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--stone);
  font-style: italic;
}

.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.form-success h3 {
  color: var(--olive);
  margin-bottom: 0.8rem;
}

.form-error {
  background: #FEF2F2;
  color: #B91C1C;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   QR Code
   ========================================================================== */

.qr-section {
  text-align: center;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--cream-dark);
}

.qr-code {
  display: inline-block;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 1rem 0;
}

.qr-code img {
  width: 180px;
  height: 180px;
}

/* ==========================================================================
   Reviews Badge
   ========================================================================== */

.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  font-weight: 500;
}

.reviews-stars {
  color: var(--saffron);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  text-align: center;
  padding: 5rem 0;
  background:
    linear-gradient(135deg, rgba(90, 110, 46, 0.10) 0%, rgba(196, 112, 75, 0.06) 100%),
    var(--cream);
}

.cta-section h2 {
  margin-bottom: 0.8rem;
}

.cta-section p {
  color: var(--stone);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--earth);
  color: var(--stone-light);
  padding: 3rem 0 1.5rem;
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--stone-light);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid var(--earth-mid);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: var(--stone-light);
}
.footer-bottom a:hover { color: var(--cream); }

/* ==========================================================================
   WhatsApp Float
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* No-JS fallback: show everything if JS doesn't load */
noscript ~ .fade-in,
html:not(.js-loaded) .fade-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Privacy
   ========================================================================== */

.privacy-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.privacy-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.privacy-content p {
  margin-bottom: 1.2rem;
  color: var(--earth-mid);
}

/* ==========================================================================
   Loading / Empty States
   ========================================================================== */

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--stone);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--olive);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--stone);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: var(--saffron);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.review-text {
  color: var(--earth-mid);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--earth);
}

.review-source {
  font-size: 0.75rem;
  color: var(--stone);
}

/* ==========================================================================
   Instagram Grid
   ========================================================================== */

.insta-embed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.insta-embed-grid .instagram-media {
  margin: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  border-radius: var(--radius-lg) !important;
}

.insta-cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Tabular nums
   ========================================================================== */

.event-date .day,
.event-date .month,
.dc-number,
.event-meta {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Honeypot — invisible to humans, auto-filled by bots
   ========================================================================== */

.honeypot-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Isla Studio web design standards
   ========================================================================== */

:root { color-scheme: light; }

a, button, input[type="submit"], .btn { touch-action: manipulation; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--linen);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }

  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .product-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card:nth-child(even) { direction: ltr; }

  .form-grid { grid-template-columns: 1fr; }

  .card-grid { grid-template-columns: 1fr; }

  .event-card { flex-direction: column; }

  .event-date {
    flex-direction: row;
    gap: 0.5rem;
    min-width: unset;
    padding: 0.8rem 1.2rem;
  }

  .event-date .day { font-size: 1.3rem; }

  .section { padding: 3rem 0; }

  /* Calendar mobile — tight enough that 7 cells fit at 320–430px viewport */
  .events-calendar { padding: 0.9rem; }
  .cal-grid { gap: 0.2rem; }
  .cal-dow { gap: 0.2rem; }
  .cal-cell {
    font-size: 0.85rem;
    padding: 0.15rem;
    min-height: 36px;        /* override desktop 52 — cells were overflowing the grid */
    max-height: 56px;
  }
  .cal-dow span { font-size: 0.65rem; padding: 0.2rem 0; }
  .cal-dot { width: 5px; height: 5px; bottom: 4px; }
  .cal-lock svg { width: 9px; height: 9px; }
  .cal-month-title { font-size: 1.1rem; }
  .cal-nav { width: 32px; height: 32px; }
  .cal-nav svg { width: 16px; height: 16px; }
  .cal-legend { font-size: 0.78rem; gap: 0.35rem; }
  .event-detail-card { padding: 1.2rem; }
  .event-detail-card.has-poster {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .event-detail-poster {
    max-width: 60%;
    margin: 0 auto;
  }
  .event-detail-head { gap: 0.8rem; }
  .event-detail-date { width: 56px; padding: 0.4rem; }
  .event-detail-date .day { font-size: 1.3rem; }
  .rsvp-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .rsvp-actions { text-align: center; }
  .rsvp-actions .btn { width: 100%; }
  .event-detail-actions .btn { flex: 1; }
  .event-thumb { width: 72px; }
  .event-card.has-thumb { flex-direction: row; }

  .reviews-grid { grid-template-columns: 1fr; }

  .insta-embed-grid { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
