/* Golf Tripping — Under Construction page
   Self contained animated holding page. Uses only brand art. */

:root {
  --fairway-deep: #14502c;
  --fairway-dark: #0a2c18;
  --gold: #f2c84b;
  --gold-soft: #f6d979;
  --cream: #faf3e0;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(242, 200, 75, 0.22), transparent 55%),
    linear-gradient(165deg, var(--fairway-deep), var(--fairway-dark));
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
  padding: 24px;
}

/* Subtle drifting golf ball texture */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background-image: url("../img/bg-golfballs.png");
  background-size: 420px;
  opacity: 0.05;
  animation: drift 60s linear infinite;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-420px, -420px); }
}

.cc {
  position: relative;
  z-index: 2;
  max-width: 640px;
  /* Sits in a centered grid; the bottom margin lifts the whole block higher. */
  margin-bottom: 12vh;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.cc-logo {
  width: min(78vw, 420px);
  margin: 0 auto 76px;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.4));
  animation: sway 5s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}

.cc h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 6vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.cc h1 .glow {
  color: var(--gold-soft);
  text-shadow: 0 0 22px rgba(242, 200, 75, 0.45);
}
.cc p {
  color: rgba(250, 243, 224, 0.82);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 460px;
  margin: 0 auto 36px;
}

/* The road the car drives along */
.road {
  position: relative;
  height: 120px;
  margin-top: 8px;
  overflow: hidden;
}
.road::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 30px;
  height: 3px;
  background-image: linear-gradient(90deg, rgba(250, 243, 224, 0.55) 0 22px, transparent 22px 44px);
  background-size: 44px 3px;
  animation: dash 0.7s linear infinite;
}
@keyframes dash {
  from { background-position: 0 0; }
  to { background-position: -44px 0; }
}
.car {
  position: absolute;
  bottom: 18px;
  width: clamp(140px, 30vw, 220px);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4));
  animation: drive 8s linear infinite, bob 0.9s ease-in-out infinite;
  left: -260px;
}
/* Drive fully across and completely off the right edge, then hold off screen.
   At the loop restart (100% -> 0%) the position jumps instantly while the car
   is out of frame, so the reset is never visible and it simply reappears
   from the left after the pause. */
@keyframes drive {
  0%   { left: -260px; }
  45%  { left: calc(100% + 60px); }
  100% { left: calc(100% + 60px); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-4px) rotate(0.4deg); }
}

/* Animated loading dots */
.dots {
  display: inline-flex;
  gap: 9px;
  margin-top: 6px;
}
.dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold-soft);
  animation: bounce 1.3s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: 0.18s; }
.dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.cc-foot {
  position: fixed;
  bottom: 20px; left: 0; right: 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(250, 243, 224, 0.6);
  z-index: 2;
}
.cc-foot a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 217, 121, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cc-foot a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  *, body::before { animation: none !important; }
  .car { left: 50%; transform: translateX(-50%); }
}
