/* Ronald Craig — Artist & Creator
   Design language pulled from the real "King of the River" artwork:
   deep navy night sky, amber autumn leaves, teal accents, kingfisher/
   crescent-moon motifs. Not a generic template palette. */

:root {
  --navy: #0d1b2a;
  --navy-deep: #0e0705;
  --rust: #3a130a;
  --rust-deep: #1c0705;
  --teal: #1b4b52;
  --teal-light: #4a8b8f;
  --amber: #e8a13d;
  --amber-soft: #f2c879;
  --paper: #f4ede0;
  --moon: #f7e8c9;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, 'Iowan Old Style', serif;
  background: var(--navy-deep);
  color: var(--paper);
  line-height: 1.6;
}

a { color: var(--amber-soft); }
a:hover { color: var(--amber); }

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

/* Pairs with image-protect.js — removes the visible "you can select/drag
   this" affordance to match the disabled right-click/drag behaviour. */
img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- Nav ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 5vw;
  background: rgba(6, 13, 22, 0.92);
  border-bottom: 1px solid rgba(232, 161, 61, 0.25);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}

.site-nav .brand {
  font-family: 'Iowan Old Style', Georgia, serif;
  font-size: 1.2rem;
  color: var(--moon);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  font-family: 'Iowan Old Style', Georgia, serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav ul a {
  text-decoration: none;
  color: var(--paper);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  color: var(--amber-soft);
  border-bottom-color: var(--amber);
}

/* ---------- Layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 5vw; }

.hero {
  background:
    radial-gradient(ellipse at 75% 8%, rgba(232,161,61,0.18), transparent 45%),
    linear-gradient(165deg, var(--rust) 0%, var(--rust-deep) 55%, var(--navy-deep) 100%);
  padding: 64px 5vw 56px;
  text-align: center;
}

.hero h1 {
  font-family: 'Iowan Old Style', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--moon);
  margin: 0 0 14px;
}

.hero p.tagline {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--teal-light);
  letter-spacing: 0.04em;
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

section { padding: 48px 5vw; }

section.alt { background: rgba(247, 232, 201, 0.03); }

.video-embed {
  position: relative;
  display: block;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 24px auto 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.video-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-embed:hover img {
  opacity: 0.9;
  transform: scale(1.02);
}

.video-embed .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--moon);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* Magic Mam keeps the navy-blue hero from the old site — deliberately
   different from the rust/amber used everywhere else. */
.hero.hero-navy {
  background:
    radial-gradient(ellipse at 75% 8%, rgba(74,139,143,0.18), transparent 45%),
    linear-gradient(165deg, #16283d 0%, var(--navy-deep) 70%);
}

h2 {
  font-family: 'Iowan Old Style', Georgia, serif;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--moon);
  border-bottom: 1px solid rgba(232, 161, 61, 0.25);
  padding-bottom: 10px;
  margin: 0 0 24px;
}

.quote {
  font-style: italic;
  color: var(--amber-soft);
  border-left: 3px solid var(--amber);
  padding-left: 18px;
  margin: 20px 0;
}

.card {
  background: rgba(247, 232, 201, 0.04);
  border: 1px solid rgba(74, 139, 143, 0.4);
  border-radius: 12px;
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.art-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(232, 161, 61, 0.3);
  background: rgba(0,0,0,0.2);
}
.art-frame img { width: 100%; height: 260px; object-fit: cover; }
.art-frame .caption {
  padding: 10px 14px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--teal-light);
}

.placeholder-frame {
  border-radius: 10px;
  border: 1px dashed rgba(232, 161, 61, 0.4);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  color: rgba(244, 237, 224, 0.45);
  background: rgba(255,255,255,0.02);
}

.btn {
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 30px;
  background: linear-gradient(160deg, var(--amber-soft), var(--amber));
  color: var(--navy-deep);
  font-weight: bold;
}
.btn.secondary {
  background: transparent;
  border: 1px solid var(--teal-light);
  color: var(--paper);
}

.links-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.social-row { display: flex; gap: 14px; margin-top: 20px; }
.social-row a {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--teal-light), var(--teal));
  color: var(--moon);
  text-decoration: none;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
}

/* ---------- WhatsApp floating button ---------- */

.whatsapp-fab {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 50;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 21px; height: 21px; }

/* ---------- Gallery carousel ---------- */

.carousel {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(232, 161, 61, 0.25);
}

.carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.1s ease, transform 8s ease;
  pointer-events: none;
}
.carousel .slide.active {
  opacity: 1;
  transform: scale(1.0);
  pointer-events: auto;
}
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.carousel .slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 24px 20px;
  background: linear-gradient(to top, rgba(5,3,2,0.92) 0%, rgba(5,3,2,0.55) 55%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.carousel .slide-title {
  font-family: 'Iowan Old Style', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--moon);
}
.carousel .slide-cta {
  flex-shrink: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--navy-deep);
  background: linear-gradient(160deg, var(--amber-soft), var(--amber));
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
}

.carousel .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(13,8,5,0.55);
  border: 1px solid rgba(232, 161, 61, 0.25);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 5;
  user-select: none;
  backdrop-filter: blur(2px);
  transition: background 0.2s;
}
.carousel .nav-arrow:hover { background: rgba(13,8,5,0.85); }
.carousel .nav-prev { left: 14px; }
.carousel .nav-next { right: 14px; }

.carousel .dots {
  position: absolute;
  top: 16px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 5;
}
.carousel .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(244, 237, 224, 0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel .dot.active { background: var(--amber); transform: scale(1.25); }

.carousel-hint {
  margin-top: 14px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(244, 237, 224, 0.5);
  text-align: center;
}

/* ---------- Floating game window (Initial Word) ---------- */

.game-fab {
  position: fixed;
  bottom: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--amber-soft), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 50;
  border: none;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  transition: transform 0.15s ease;
}
.game-fab:hover { transform: scale(1.08); }

.game-panel {
  position: fixed;
  bottom: 18px;
  left: 18px;
  width: 380px;
  height: 580px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  background: var(--navy-deep);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  border: 1px solid rgba(232, 161, 61, 0.25);
  z-index: 51;
  display: none;
  flex-direction: column;
}
.game-panel.open { display: flex; }
.game-panel.maximized {
  width: min(760px, calc(100vw - 24px));
  height: calc(100vh - 24px);
}
.game-panel.minimized { height: 38px; }
.game-panel.minimized iframe { display: none; }

.game-titlebar {
  height: 38px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: rgba(247, 232, 201, 0.05);
  border-bottom: 1px solid rgba(232, 161, 61, 0.15);
}

.game-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
}
.game-dot.red { background: #ff5f57; }
.game-dot.amber { background: #febc2e; }
.game-dot.green { background: #28c840; }
.game-dot:hover { filter: brightness(1.15); }

.game-title {
  flex: 1;
  text-align: center;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(244, 237, 224, 0.55);
}

.game-panel iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--navy-deep);
}

/* ---------- Footer ---------- */

footer {
  padding: 30px 5vw 60px;
  text-align: center;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  color: var(--teal-light);
}

.visit-counter {
  margin-top: 6px;
  opacity: 0.6;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .site-nav { flex-direction: column; align-items: flex-start; }
}
