/* Butterfly Picnic — site styles
   Palette is drawn from the brand (purple butterfly) and the product (parks, candles, linen).
   Mobile-first: base rules are the phone layout; @media (min-width) adds the desktop. */

:root {
  --plum: #8f469b;        /* brand purple from the vector logo — buttons, links, accents */
  --plum-deep: #3d1f44;   /* deep aubergine — headings, price board, footer */
  --wisteria: #d9b8ea;    /* soft tint panels */
  --wisteria-light: #f3e8f8;
  --meadow: #7f9a7a;      /* park green — secondary */
  --meadow-light: #e2eadf;
  --honey: #d9a441;       /* candle/brass — prices, highlights */
  --linen: #f8f5f1;       /* page ground */
  --paper: #ffffff;
  --ink: #241a2b;
  --ink-soft: #5b4f63;
  --line: #e9ddf0;
  --danger: #b43d3d;
  --ok: #3f7d4e;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --wrap: 1120px;
  --gutter: 20px;
  --shadow: 0 10px 30px rgba(143, 70, 155, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--linen);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--honey); outline-offset: 2px;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 7vw, 3.9rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-variation-settings: "opsz" 96; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
em.soft { font-style: italic; font-weight: 300; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: 56px 0; }
.section-tint { background: var(--wisteria-light); }
.section-meadow { background: var(--meadow-light); }
.section-dark { background: var(--plum-deep); color: #f3ecf8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #e9d8ff; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1.2; transition: background .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn-primary:hover { background: #7a3a84; border-color: #7a3a84; }
.btn-outline { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-outline:hover { background: var(--wisteria-light); }
.btn-honey { background: var(--honey); color: var(--plum-deep); border-color: var(--honey); }
.btn-honey:hover { filter: brightness(1.05); }
.btn-lg { font-size: 1.1rem; padding: 16px 28px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 46px; width: auto; }
.footer-logo { height: 52px; width: auto; margin-bottom: 10px; }
.nav { display: none; flex-direction: column; gap: 4px; position: absolute; left: 0; right: 0; top: 72px; background: var(--linen); padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); }
.nav.open { display: flex; }
.nav a { padding: 10px 4px; text-decoration: none; font-weight: 600; color: var(--ink); }
.nav a:hover { color: var(--plum); }
.nav .nav-cta { margin-top: 8px; text-align: center; color: #fff; }
.nav-toggle { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--plum-deep); }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 22px; padding: 0; border: 0; background: transparent; }
  .nav .nav-cta { margin: 0; }
}

/* Hero */
.hero { padding: 40px 0 48px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 1.2rem; margin-bottom: 26px; }
.hero-note { font-size: .95rem; color: var(--ink-soft); margin-top: 18px; }
.butterfly { position: absolute; width: 90px; height: auto; right: -8px; top: -20px; opacity: .16; pointer-events: none; animation: flutter 1.6s ease-out 1; }
@keyframes flutter {
  0% { transform: translate(40px, 30px) rotate(-12deg) scale(.6); opacity: 0; }
  60% { transform: translate(-6px, -4px) rotate(4deg) scale(1.04); opacity: 1; }
  100% { transform: translate(0,0) rotate(0) scale(1); opacity: .9; }
}
@media (min-width: 860px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
  .butterfly { width: 150px; right: 3vw; top: 14px; opacity: .16; z-index: 0; }
  .hero-grid { position: relative; z-index: 1; }
}

/* Photo slots — real photos drop into /assets/img/ with the names in IMAGES.md.
   Until then the fallback illustration keeps the layout whole. */
.photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--wisteria-light); aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.wide { aspect-ratio: 16 / 10; }
.photo.square { aspect-ratio: 1; }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-stack .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

/* Cards and grids */
.grid-2 { display: grid; gap: 20px; }
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card h3 { margin-top: 4px; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover h3 { color: var(--plum); }
.card .photo { margin: -24px -24px 18px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: none; aspect-ratio: 16 / 11; }

/* Price board — echoes the chalk boards Paulina already uses on Instagram */
.board { background: var(--plum-deep); color: #f6f0fb; border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow); }
.board h3 { color: #fff; font-size: 1.6rem; margin-bottom: 4px; }
.board .sub { color: var(--wisteria); margin-bottom: 18px; }
.board table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.board td { padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.18); }
.board td:last-child { text-align: right; font-family: var(--font-display); font-size: 1.35rem; color: var(--honey); }
.board tr:last-child td { border-bottom: 0; }
.board .fine { font-size: .9rem; color: #cbb8dd; margin: 14px 0 0; }
.board ul { padding-left: 18px; margin: 16px 0 0; color: #e8def2; }
.board li { margin-bottom: 4px; }
.board .btn { margin-top: 20px; }

/* Lists */
.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--meadow); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Steps (a real sequence, so numbering is information) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--honey); color: var(--plum-deep); font-family: var(--font-display); font-size: 1.3rem; display: grid; place-content: center; }
.steps strong { display: block; font-size: 1.1rem; color: var(--plum-deep); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--plum); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field .hint { font-size: .9rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid #cfc4da; border-radius: var(--radius); background: #fff; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input[type="checkbox"], .field input[type="radio"] { width: auto; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.choice { display: grid; gap: 10px; }
.choice label { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--plum); background: var(--wisteria-light); }
.choice input { margin-top: 4px; }
.choice .price { font-family: var(--font-display); color: var(--plum); font-size: 1.15rem; white-space: nowrap; }
.choice .hint { display: block; font-size: .9rem; color: var(--ink-soft); }
.msg { padding: 12px 14px; border-radius: var(--radius); font-size: .95rem; }
.msg-error { background: #fbe9e9; color: var(--danger); }
.msg-ok { background: #e6f2e9; color: var(--ok); }
.msg-info { background: var(--wisteria-light); color: var(--plum-deep); }

/* Booking layout */
.book-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .book-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } .summary { position: sticky; top: 86px; } }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary td:last-child { text-align: right; overflow-wrap: anywhere; }
.summary table { table-layout: fixed; }
.summary td:first-child { width: 34%; }
.summary tr.total td { border-bottom: 0; font-weight: 800; font-size: 1.25rem; color: var(--plum-deep); padding-top: 12px; }
.summary .fine { font-size: .85rem; color: var(--ink-soft); margin: 12px 0 0; }
.availability { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.availability button { font: inherit; font-size: .92rem; padding: 9px 0; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.availability button[disabled] { color: #b8aec2; background: #f3eff7; cursor: not-allowed; text-decoration: line-through; }
.availability button.selected { background: var(--plum); color: #fff; border-color: var(--plum); }
.availability .dow { text-align: center; font-size: .8rem; color: var(--ink-soft); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cal-head button { font: inherit; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery .photo { aspect-ratio: 1; border-radius: var(--radius); box-shadow: none; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* Band CTA */
.band { background: var(--plum); color: #fff; padding: 44px 0; }
.band h2 { color: #fff; }
.band p { color: #e9d8ff; }

/* Footer */
.site-footer { background: var(--plum-deep); color: #d9cbe6; padding: 48px 0 24px; margin-top: 40px; }
.site-footer a { color: #f1e7fa; text-decoration: none; display: block; padding: 3px 0; }
.site-footer p a { display: inline; padding: 0; text-decoration: underline; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin-bottom: 6px; }
.footer-head { font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .9rem; }
.footer-base p { max-width: none; }

/* Admin */
.admin table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.admin th, .admin td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { background: var(--wisteria-light); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.tag-paid { background: #e6f2e9; color: var(--ok); }
.tag-pending { background: #fff4d6; color: #8a6400; }
.tag-expired, .tag-cancelled { background: #f1eef3; color: var(--ink-soft); }
.tag-refunded { background: #fbe9e9; color: var(--danger); }
.admin .row-actions button { font: inherit; font-size: .85rem; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; margin-right: 4px; }
