/*
Theme Name: Trebarber Retreat
Theme URI: https://www.pitchup.com/campsites/England/South_West/Cornwall/Newquay/trebarber-retreat/
Author: Trebarber Retreat
Description: Full-screen Trebarber Retreat splash page with photo slideshow, Pitchup booking and WhatsApp contact.
Version: 3.0.0
Text Domain: trebarber-retreat
*/

:root {
  --cream: #f6e7bc;
  --cream-light: #fff8e5;
  --green: #1c351f;
  --green-2: #29482d;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--green);
  color: var(--white);
}

.site-splash {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 28px 18px;
}

.slideshow {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #18261b;
}

.slide {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.4s ease, transform 8s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1.08);
}

.site-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(9, 20, 11, 0.25), rgba(9, 20, 11, 0.58)),
    radial-gradient(circle at center, rgba(0,0,0,0.02), rgba(0,0,0,0.32));
}

.splash-card {
  width: min(760px, 100%);
  text-align: center;
  padding: 32px 34px 36px;
  border-radius: 26px;
  background: rgba(20, 39, 24, 0.54);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 22px 70px var(--shadow);
}

.logo-wrap {
  width: min(440px, 88%);
  margin: 0 auto 12px;
}

.logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.18);
}

.site-location {
  margin: 18px 0 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: clamp(14px, 2vw, 18px);
}

.site-tagline {
  max-width: 610px;
  margin: 19px auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.actions {
  margin-top: 29px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
}

.action-button {
  min-width: 190px;
  padding: 15px 25px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .015em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 11px 28px rgba(0,0,0,.3);
  filter: brightness(1.04);
}

.book-now {
  background: var(--cream);
  color: var(--green);
}

.whatsapp {
  background: #25D366;
  color: #092e17;
}

.whatsapp::before {
  content: "✆";
  margin-right: 8px;
  font-size: 19px;
}

.booking-note {
  margin: 18px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 12px;
}

.slide-dots {
  position: absolute;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}

.slide-dot.active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .site-splash { padding: 16px 12px 38px; }

  .splash-card {
    padding: 23px 18px 28px;
    border-radius: 20px;
  }

  .logo-wrap {
    width: min(360px, 96%);
  }

  .site-location {
    margin-top: 14px;
    letter-spacing: .13em;
  }

  .site-tagline {
    margin-top: 15px;
    line-height: 1.42;
  }

  .actions {
    margin-top: 23px;
    gap: 10px;
  }

  .action-button {
    width: 100%;
    min-width: 0;
  }

  .slide-dots { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .action-button {
    transition: none;
  }
}
