/* =========================================================================
   PURBECK FITNESS HUB — "SUNRISE" DESIGN LAYER
   Loaded after styles.css. Takes the sunset circle from the logo and uses it
   as the site's visual signature: photos sit inside suns, a sun rises to fill
   the screen on the home page, a sun sets behind every closing call to action,
   and gym photos carry a sunset tint that clears to full colour on hover.
   ========================================================================= */
:root {
  --sun: linear-gradient(180deg, #FFC978 0%, #FFB454 18%, #ED6A32 48%, #D8551F 70%, #B82E50 100%);
  --night: #1b1412;
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Type: a characterful display face for headings ---------- */
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; }
h1 { line-height: 0.98; }
h2 { line-height: 1.02; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); flex: none; }

/* ---------- Home hero: big, full-bleed photos of the real gym ---------- */
.bighero { position: relative; isolation: isolate; min-height: min(94vh, 900px); display: flex; align-items: flex-end; color: var(--colour-white); overflow: hidden; background: var(--night); }
.bighero-media { position: absolute; inset: 0; z-index: -2; }
/* The stills carry a logo watermark top-right: scaling from the bottom-left keeps it out of frame */
.bighero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 8% 92%; transform: none; opacity: 0; transition: opacity 1.4s ease, transform 7s linear; }
.bighero-slide:first-child { opacity: 1; }
.js .bighero-slide:first-child:not(.is-on) { opacity: 0; }
.bighero-slide.is-on { opacity: 1; transform: none; }
.bighero-scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(0deg, rgba(20, 14, 12, 0.9) 0%, rgba(20, 14, 12, 0.45) 45%, rgba(20, 14, 12, 0.1) 100%),
  linear-gradient(90deg, rgba(20, 14, 12, 0.6) 0%, rgba(20, 14, 12, 0) 60%),
  radial-gradient(70% 60% at 100% 100%, rgba(237, 106, 50, 0.35), rgba(184, 46, 80, 0) 70%); }
.bighero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-7) var(--space-6); }
.bighero-content { max-width: 640px; min-width: 0; }
.bighero-content h1 { color: var(--colour-white); font-size: clamp(2.8rem, 6.6vw, 5.8rem); max-width: 11ch; }
.bighero-content h1 .glow { background: linear-gradient(135deg, #FFC978 0%, #FFB454 25%, #ED6A32 60%, #E0485F 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bighero-lead { margin-top: var(--space-3); font-size: 1.15rem; color: rgba(255, 255, 255, 0.9); max-width: 46ch; }
.bighero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.bighero-trust { margin-top: var(--space-3); font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.bighero-trust a { color: var(--colour-white); white-space: nowrap; }
.bighero-content > * { opacity: 0; transform: translateY(14px); animation: hero-in 620ms var(--ease-standard) forwards; }
.bighero-content > :nth-child(2) { animation-delay: 90ms; }
.bighero-content > :nth-child(3) { animation-delay: 180ms; }
.bighero-content > :nth-child(4) { animation-delay: 270ms; }
.bighero-content > :nth-child(5) { animation-delay: 360ms; }
.bighero-tour { flex: none; width: 280px; padding: 18px 20px; border-radius: 20px; background: rgba(27, 20, 18, 0.55); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bighero-tour-kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--colour-orange-soft); }
.bighero-tour-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.bighero-tour-name { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.02em; min-height: 2.3em; }
.bighero-dots { display: flex; gap: 6px; margin-top: 12px; }
.bighero-dot { flex: 1; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, 0.25); cursor: pointer; position: relative; overflow: hidden; }
.bighero-dot::before { content: ""; position: absolute; inset: -10px 0; }
.bighero-dot::after { content: ""; position: absolute; inset: 0; background: var(--sun); transform: scaleX(0); transform-origin: left; }
.bighero-dot.is-done::after { transform: scaleX(1); }
.bighero-dot.is-on::after { animation: dot-fill var(--slide-ms, 5000ms) linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }

/* ---------- Home: the sun rises and fills the screen ---------- */
.sunrise { position: relative; background: var(--night); color: var(--colour-white); }
.sunrise-stage { position: relative; min-height: 560px; padding-block: var(--space-7); overflow: hidden; display: grid; place-items: center; }
.sunrise-sun { position: absolute; inset: 0; background: var(--sun); }
.sunrise-sun img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: none; transform-origin: 22% 80%; }
.sunrise-shade { position: absolute; inset: 0; background: rgba(27, 20, 18, 0.5); pointer-events: none; }
.sunrise-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; background: linear-gradient(180deg, rgba(27, 20, 18, 0), var(--night) 92%); pointer-events: none; }
.sunrise-copy { position: relative; z-index: 2; text-align: center; max-width: 820px; padding-inline: var(--space-3); display: grid; justify-items: center; gap: var(--space-3); }
.sunrise-copy .eyebrow { margin: 0; }
.sunrise-copy h2 { color: var(--colour-white); font-size: clamp(2.2rem, 5vw, 4.2rem); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.sunrise-copy p { color: rgba(255, 255, 255, 0.9); font-size: 1.12rem; max-width: 50ch; }
/* Animated version, only when JavaScript runs and motion is allowed */
.sunrise.is-live { height: 240vh; }
.sunrise.is-live .sunrise-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding-block: 0; }
.sunrise.is-live .sunrise-sun { clip-path: circle(16vmin at 50% 105%); }
.sunrise.is-live .sunrise-sun img { filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
.sunrise.is-live .sunrise-shade { opacity: 0; }

/* ---------- Inner pages: a sun sets into the page header ---------- */
.page-hero { isolation: isolate; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; z-index: -1; right: max(-120px, -8vw); bottom: -42%; width: min(560px, 62vw); aspect-ratio: 1; border-radius: 50%; background: var(--sun); opacity: 0.92; box-shadow: 0 0 120px 20px rgba(237, 106, 50, 0.25); }
.page-hero::after { background: linear-gradient(90deg, rgba(33, 25, 22, 0.72) 0%, rgba(33, 25, 22, 0.35) 55%, rgba(33, 25, 22, 0) 80%); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }

/* ---------- Gym photos: sunset tint that clears to colour ---------- */
.service-media, .photo-strip figure, .about-media { position: relative; }
.service-media::after,
.photo-strip figure::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; pointer-events: none;
  background: var(--sun); mix-blend-mode: color; opacity: 0.88;
  transition: opacity 0.6s var(--ease-standard);
}
.service-media::after { bottom: 0; }
.photo-strip figure::after { aspect-ratio: 4 / 3; }
.service-media:hover::after, .photo-strip figure:hover::after,
.service-media.is-colour::after, .photo-strip figure.is-colour::after { opacity: 0; }
.service-media img, .photo-strip img { transition: transform 0.9s var(--ease-standard); }
.service-media:hover img, .photo-strip figure:hover img { transform: none; }
.service-media { border-radius: 999px 999px var(--radius-lg) var(--radius-lg); aspect-ratio: 1 / 1; }
.service-media img { object-position: 50% 50%; }

/* ---------- Closing call to action: a setting sun ---------- */
.final-cta { background: var(--night); isolation: isolate; padding-block: clamp(96px, 12vw, 168px) clamp(72px, 9vw, 120px); }
.final-cta-bg { display: none; }
.final-cta::before { inset: auto; left: 50%; bottom: calc(min(920px, 150vw) * -0.72); width: min(920px, 150vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--sun); box-shadow: 0 0 160px 40px rgba(237, 106, 50, 0.28); }
.final-cta-content h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.final-cta-content { position: relative; z-index: 1; }
.final-cta-content h2, .final-cta-content p { text-shadow: 0 2px 24px rgba(27, 20, 18, 0.45); }
.final-cta .btn--primary { background: var(--colour-white); color: var(--colour-charcoal); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bighero { min-height: 0; }
  .bighero-inner { flex-direction: column; align-items: stretch; padding-block: calc(var(--space-7) + 60px) var(--space-5); }
  .bighero-tour { width: 100%; order: -1; margin-bottom: var(--space-4); padding: 12px 16px; }
  .bighero-tour-name { font-size: 1.15rem; }
  .bighero-tour-name { min-height: 0; }
  .sunrise.is-live { height: 210vh; }
}
@media (max-width: 480px) {
  .bighero-content h1 { font-size: clamp(2.5rem, 11vw, 3.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .bighero-slide { transition: opacity 0.4s ease; transform: none; }
  .bighero-content > * { animation: none; opacity: 1; transform: none; }
  .bighero-dot.is-on::after { animation: none; transform: scaleX(1); }
}

.photo-strip img { aspect-ratio: 16 / 9; }

/* Mobile: slideshow still rotates on its own, but no tappable dots */
@media (max-width: 700px) {
  .bighero-dots { display: none; }
  .bighero-slide { object-position: 40% 75%; }
}

/* Show the original photos untouched (no grey/contrast tint) */
.sunrise .sunrise-sun img, .sunrise.is-live .sunrise-sun img { filter: none !important; mix-blend-mode: normal !important; }
