/* FRAMEWELL Studio - page-specific */

@keyframes heroKenBurns {
  0% { transform: scale(1.04); }
  100% { transform: scale(1.1); }
}

.framed-hero {
  display: grid;
  gap: 0;
  background: var(--fw-cream);
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  overflow: hidden;
  background: var(--fw-surface);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.hero-media-fade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(253, 251, 247, 0.55) 45%, var(--fw-cream));
  pointer-events: none;
}

.crop {
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  border-color: #fff;
  border-style: solid;
  z-index: 2;
  opacity: 0.9;
}

.crop-tl { top: 0.75rem; left: 0.75rem; border-width: 2px 0 0 2px; }
.crop-tr { top: 0.75rem; right: 0.75rem; border-width: 2px 2px 0 0; }
.crop-bl { bottom: 0.75rem; left: 0.75rem; border-width: 0 0 2px 2px; }
.crop-br { bottom: 0.75rem; right: 0.75rem; border-width: 0 2px 2px 0; }

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 40rem;
  margin: -1.5rem auto 0;
  padding: 0 1.15rem 2.25rem;
  text-align: left;
}

.hero-brand {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fw-orange-deep);
  margin: 0 0 0.75rem;
}

.hero-title {
  font-size: clamp(1.85rem, 7.5vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 0.35rem;
  color: var(--fw-dark);
}

.hero-title-accent {
  font-size: clamp(1.85rem, 7.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 0.9rem;
  color: var(--fw-orange-deep);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-lead {
  font-size: 1rem;
  color: var(--fw-muted);
  max-width: 30rem;
  margin: 0 0 1.35rem;
  line-height: 1.55;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.btn-hero {
  width: 100%;
  padding: 0.95rem 1.25rem;
  font-size: 0.95rem;
}

@media (min-width: 480px) {
  .hero-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .btn-hero {
    width: auto;
  }
}

@media (min-width: 768px) {
  .framed-hero {
    min-height: calc(100svh - 6rem);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem 1.5rem 2rem;
  }

  .hero-media {
    aspect-ratio: auto;
    max-height: none;
    min-height: 34rem;
    border-radius: 1.25rem;
    margin: 0;
  }

  .hero-media img {
    animation: heroKenBurns 22s ease-in-out alternate infinite;
  }

  .hero-media-fade {
    background: linear-gradient(90deg, transparent 55%, rgba(253, 251, 247, 0.35));
    inset: 0;
    height: auto;
  }

  .crop {
    width: 1.75rem;
    height: 1.75rem;
    border-color: var(--fw-orange);
  }

  .crop-tl { top: 1rem; left: 1rem; }
  .crop-tr { top: 1rem; right: 1rem; }
  .crop-bl { bottom: 1rem; left: 1rem; }
  .crop-br { bottom: 1rem; right: 1rem; }

  .hero-copy {
    margin: 0;
    padding: 2.5rem 1.5rem 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
  }

  .hero-brand {
    font-size: 0.85rem;
  }

  .hero-title,
  .hero-title-accent {
    font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  }

  .hero-lead {
    font-size: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .framed-hero {
    padding: 1.5rem 2rem 2.5rem;
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hero-copy {
    padding-left: 3rem;
    padding-right: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img {
    animation: none !important;
  }
}

.surface-section {
  background: var(--fw-surface-2);
}

.surface-section-alt {
  background: var(--fw-surface-3);
}

.refresh-card {
  background: #fff;
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.refresh-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid var(--fw-border);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fw-orange);
  box-shadow: var(--fw-shadow-glass);
}

.refresh-weeks {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.refresh-week {
  background: var(--fw-surface);
  border-radius: var(--fw-radius);
  padding: 1rem 1.15rem;
}

.refresh-week h4 {
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  color: var(--fw-dark);
}

.refresh-week li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--fw-muted);
  margin-bottom: 0.3rem;
}

.refresh-week li::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--fw-orange);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.guarantee {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(227, 166, 106, 0.1);
  font-size: 0.88rem;
  color: var(--fw-dark);
}

.addon-grid,
.retreat-grid {
  display: grid;
  gap: 1rem;
}

.addon-card,
.retreat-card {
  background: #fff;
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius);
  padding: 1.15rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.login-shell,
.contact-shell,
.book-shell {
  max-width: 34rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-lg);
  padding: 2rem;
}

.login-shell.wide,
.book-shell {
  max-width: 40rem;
}

.demo-note {
  font-size: 0.85rem;
  color: var(--fw-muted);
  background: var(--fw-surface);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #9a6435, #e3a66a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.about-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-visual {
  border-radius: var(--fw-radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--fw-surface);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-row div {
  background: var(--fw-surface);
  border-radius: 0.85rem;
  padding: 1rem;
  text-align: center;
}

.stat-row strong {
  display: block;
  font-size: 1.35rem;
  color: var(--fw-orange);
}

.stat-row span {
  font-size: 0.8rem;
  color: var(--fw-muted);
}

@media (min-width: 768px) {
  .refresh-weeks {
    grid-template-columns: repeat(2, 1fr);
  }

  .addon-grid,
  .retreat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .refresh-weeks {
    grid-template-columns: repeat(4, 1fr);
  }

  .addon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
