/* Lolliland — design tokens & base styles */

:root {
  /* Palette: Sunshine theme (default) */
  --bg: #FFF6E8;
  --bg-2: #FFEFD3;
  --ink: #1F1B16;
  --ink-2: #4A4239;
  --muted: #8B7E6E;
  --line: #E9DDC4;
  --card: #FFFBF1;

  --pink: #FF5A8A;
  --sun:  #FFC940;
  --sky:  #5BB8E8;
  --leaf: #5DAE6E;
  --plum: #6E4FD9;

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-script: "Caveat", cursive;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;
}

[data-theme="berry"] {
  --bg: #FBEEF3;
  --bg-2: #F5DCE6;
  --ink: #2A1322;
  --ink-2: #4E2A41;
  --muted: #8E6E83;
  --line: #ECD7E2;
  --card: #FFF6FA;
  --pink: #E84B7A;
  --sun:  #FFB845;
  --sky:  #7AA8E0;
  --leaf: #6FB58A;
  --plum: #9F5BD9;
}

[data-theme="mint"] {
  --bg: #EAF6EE;
  --bg-2: #D7EDE0;
  --ink: #14241A;
  --ink-2: #2F4439;
  --muted: #6E8779;
  --line: #CFE3D7;
  --card: #F5FBF7;
  --pink: #FF6F9C;
  --sun:  #F5C03A;
  --sky:  #4FA8D8;
  --leaf: #3F9D5C;
  --plum: #7B5BD9;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain — radial noise via SVG fallback color blocks */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,201,64,.06), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255,90,138,.05), transparent 45%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  box-shadow: 0 3px 0 var(--ink);
  text-align: center;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translate(0, 1px); box-shadow: 0 1px 0 var(--ink); }

.btn--primary { background: var(--pink); color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: rgba(0,0,0,.04); box-shadow: none; transform: none; }
.btn--lg { padding: 18px 28px; font-size: 18px; }

/* Pills/eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
}

/* Cards */
.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}

[data-card="soft"] .card {
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(31, 27, 22, 0.08);
}

/* Striped image placeholder */
.placeholder {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-2);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.placeholder svg.stripes {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.placeholder .ph-cap {
  position: relative;
  z-index: 1;
  margin: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(31, 27, 22, 0.85);
  color: #FFF6E8;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Section spacing */
section { position: relative; z-index: 1; }
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
@media (min-width: 1100px) { .section { padding: 120px 0; } }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .section-head { margin-bottom: 56px; }
}

.h-display {
  font-size: clamp(36px, 7vw, 84px);
  letter-spacing: -0.035em;
}
.h-section {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
}
.h-card {
  font-size: clamp(22px, 2.4vw, 28px);
}
.lede {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-2);
  max-width: 60ch;
}

/* Marquee strip */
.strip {
  background: var(--ink);
  color: var(--bg);
  padding: 18px 0;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.strip-track {
  display: flex;
  gap: 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 32px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.strip-track > span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.strip-star {
  color: var(--sun);
  font-size: 0.7em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Blob shape (used as decoration) */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  pointer-events: none;
  z-index: 0;
}

/* Float animations */
@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
.float { animation: float-y 5s ease-in-out infinite; }
.float--slow { animation-duration: 7.5s; }
.float--fast { animation-duration: 3.8s; }

/* Wiggle */
@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Grid items default to min-width:auto, which lets iOS date inputs push
     the column wider than the viewport. Pin to 0 so the input shrinks. */
  min-width: 0;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}
.input, .textarea, .select {
  width: 100%;
  max-width: 100%;
  /* iOS renders <input type="date"|"email"|"tel"> with intrinsic min-content
     larger than the placeholder, blowing out flex/grid columns on phones.
     min-width:0 + box-sizing:border-box + appearance:none keeps them inside
     their containers and strips the native widget that adds extra padding. */
  min-width: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-family: var(--font-body);
  outline: none;
  transition: box-shadow .15s ease;
}
/* Re-enable the calendar/clock indicator that -webkit-appearance:none hides */
.input::-webkit-date-and-time-value { text-align: left; }
.input::-webkit-calendar-picker-indicator { opacity: 0.5; cursor: pointer; }
.input:focus, .textarea:focus, .select:focus {
  box-shadow: 0 0 0 4px var(--sun);
}
.textarea { min-height: 120px; resize: vertical; }

/* Booking form sits inside a `.card` with inline padding 32px 28px — too
   tight on phones, especially with iOS native date pickers. Trim padding
   below 600 px so the form-row columns get the breathing room they need. */
@media (max-width: 599px) {
  #booking .card { padding: 20px 14px !important; }
  #booking .form-row { gap: 12px; }
}

/* Visual divider — dotted */
.dots {
  display: flex; gap: 10px;
  margin: 24px 0;
}
.dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.25;
}
.dots span:nth-child(odd) { background: var(--pink); opacity: 1; }
.dots span:nth-child(3n) { background: var(--sun); opacity: 1; }

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

/* Scroll progress bar */
.scroll-prog {
  position: fixed; top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--pink);
  z-index: 100;
  transition: width 0.05s linear;
}

/* a11y: visually hide an element while keeping it screen-reader accessible */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
