/* Sparkle Clean Co demo site — Cloudflare Pages */

:root {
  --ink: #0c2424;
  --teal: #0f6b66;
  --teal-deep: #0a4542;
  --foam: #e8f6f4;
  --mist: #f4faf9;
  --sand: #f7f3ec;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --radius: 0.75rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --shadow: 0 18px 50px color-mix(in srgb, var(--teal-deep) 14%, transparent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  color: #fff;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  opacity: 0.92;
}

.nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* —— Hero (one composition) —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--teal-deep) 35%, transparent) 0%, color-mix(in srgb, var(--ink) 72%, transparent) 100%),
    url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=2000&q=80")
      center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  padding: clamp(5.5rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem);
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.hero-line {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 400;
  opacity: 0.92;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--teal-deep);
}

.btn-primary:hover {
  background: var(--foam);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: color-mix(in srgb, #fff 55%, transparent);
}

.btn-ghost:hover {
  background: color-mix(in srgb, #fff 12%, transparent);
}

/* —— Sections —— */
.section {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  width: min(68rem, 100%);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-copy {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

.section-book {
  background: #fff;
}

.section-gallery {
  background: #fff;
}

.section-testimonials {
  background: var(--mist);
}

.section-contact {
  background: var(--sand);
}

.embed-frame.gallery iframe,
.embed-frame.testimonials iframe {
  min-height: 640px;
}

.section-more {
  background: var(--foam);
}

.embed-frame {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.8s ease-out both;
  animation-delay: 0.08s;
}

.embed-frame iframe {
  display: block;
  width: 100%;
  border: 0;
  min-height: 700px;
  background: #fff;
}

.embed-frame.contact iframe {
  min-height: 620px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.chip:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  font-size: 0.85rem;
}

.site-footer .section-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.demo-note {
  font-size: 0.8rem;
  max-width: 28rem;
}

.demo-note code {
  font-size: 0.78em;
  background: var(--foam);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-content,
  .embed-frame {
    animation: none;
  }
}
