/* ============================================
   Kokomojoemusic — styles.css
   Bonfire / beach-night theme
   ============================================ */

:root {
  --bg:          #120C08;
  --bg-alt:      #1C130B;
  --panel:       #241A10;
  --dark:        #0A0603;
  --accent:      #D9A24B;
  --accent-dark: #B8842F;
  --accent-2:    #C96A2E;
  --text:        #F5EEDF;
  --text-muted:  #C4B8A3;
  --border:      rgba(245, 238, 223, 0.14);

  --font-display: 'Anton', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-script:  'Caveat', cursive;
  --font-body:    'Inter', sans-serif;

  --section-pad: clamp(56px, 9vw, 120px);
  --container: 1180px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

section { padding: var(--section-pad) 0; }

h1, h2, h3 { line-height: 1.1; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
}

.section-sub {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(18, 12, 8, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible { color: var(--accent); }

.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 162, 75, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 0;
}

.hero-logo-image {
  position: relative;
  z-index: 2;
  width: min(640px, 88vw);
  margin: 0 auto;
}

.hero-logo-image img {
  display: block;
  width: 100%;
  height: auto;
  animation: firelight-flicker 2.6s linear infinite;
}

/* Firelight flicker: irregular brightness + warm glow pulse on the logo
   itself, always moving — never a flat on/off state. Timing stops are
   uneven on purpose so it reads as flame flicker, not a metronome. */
@keyframes firelight-flicker {
  0%   { filter: brightness(1)    drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(217, 140, 50, 0.25)); }
  7%   { filter: brightness(0.93) drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 13px rgba(217, 140, 50, 0.16)); }
  14%  { filter: brightness(1.07) drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 25px rgba(255, 180, 90, 0.38)); }
  22%  { filter: brightness(0.96) drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 15px rgba(217, 140, 50, 0.2)); }
  31%  { filter: brightness(1.04) drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(255, 180, 90, 0.32)); }
  41%  { filter: brightness(0.94) drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 13px rgba(217, 140, 50, 0.16)); }
  53%  { filter: brightness(1.09) drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 27px rgba(255, 180, 90, 0.42)); }
  64%  { filter: brightness(0.95) drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(217, 140, 50, 0.18)); }
  76%  { filter: brightness(1.05) drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 23px rgba(255, 180, 90, 0.34)); }
  86%  { filter: brightness(0.93) drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 12px rgba(217, 140, 50, 0.15)); }
  94%  { filter: brightness(1.06) drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 24px rgba(255, 180, 90, 0.36)); }
  100% { filter: brightness(1)    drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(217, 140, 50, 0.25)); }
}

/* Marquee-light sweep: a diagonal highlight masked to the logo's own alpha
   shape, so it only crosses the letters/palms, not the transparent gaps.
   Linear timing, no hold at either end — constant motion, not a pulse. */
.hero-logo-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.8) 47%,
    rgba(255, 226, 170, 1) 50%,
    rgba(255, 255, 255, 0.8) 53%,
    transparent 65%
  );
  background-size: 260% 100%;
  -webkit-mask-image: url('../assets/images/logo.png');
  mask-image: url('../assets/images/logo.png');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mix-blend-mode: screen;
  animation: marquee-sweep 2.8s linear infinite;
  pointer-events: none;
}

@keyframes marquee-sweep {
  0%   { background-position: 160% 0; }
  100% { background-position: -60% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-image::after { animation: none; }
  .hero-logo-image img {
    animation: none;
    filter: brightness(1) drop-shadow(0 4px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 20px rgba(217, 140, 50, 0.28));
  }
}

.hero-photo {
  position: relative;
  z-index: 1;
  margin: clamp(-16px, -1.5vw, 12px) auto 8px;
  max-width: min(400px, 78vw);
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5));
}

.hero-photo-placeholder {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  border: 1px dashed var(--border);
}

.hero-tagline {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}

.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.placeholder-media {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    repeating-linear-gradient(135deg, var(--panel), var(--panel) 12px, var(--bg-alt) 12px, var(--bg-alt) 24px);
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}

.placeholder-media i { font-size: 2rem; color: var(--accent); }
.placeholder-media span { font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 0.03em; }
.placeholder-media code {
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(217, 162, 75, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ========== TIP BUCKET ========== */
.tip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tip-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.tip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tip-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.tip-card i { font-size: 2rem; color: var(--accent); }

.tip-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tip-card p { color: var(--text-muted); font-size: 0.9rem; }

.tip-card .tip-handle {
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(217, 162, 75, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ========== CALENDAR ========== */
.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.calendar-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.calendar-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  flex-shrink: 0;
  padding: 10px 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-heading);
}

.calendar-date .month {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.calendar-date .day {
  font-size: 1.5rem;
  font-weight: 600;
}

.calendar-details { flex: 1; min-width: 0; }

.calendar-details h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.calendar-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.calendar-badge {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
}

.calendar-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== GALLERY ========== */
.gallery {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px dashed var(--border);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .placeholder-media {
  border-radius: 12px;
}

.gallery-item .placeholder-media i { font-size: 1.4rem; }
.gallery-item .placeholder-media span { font-size: 0.7rem; }

/* ========== CONTACT / BOOKING ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.contact-info p { color: var(--text-muted); margin-bottom: 20px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact-detail i { color: var(--accent); width: 18px; }

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.booking-form button { justify-self: start; margin-top: 4px; border: none; cursor: pointer; }

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-nav a,
.footer-credit a { color: var(--text-muted); font-size: 0.9rem; }

.footer-nav a:hover,
.footer-credit a:hover { color: var(--accent); }

.footer-social { display: flex; gap: 16px; font-size: 1.1rem; color: var(--text-muted); }

.footer-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
}

/* ========== MOBILE ========== */
@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.is-open { max-height: 400px; }

  .nav a {
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }

  .nav-cta { margin: 12px 24px; text-align: center; }

  .nav-toggle { display: flex; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .tip-cards { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

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

  .calendar-item { flex-wrap: wrap; }

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