/* ============================================================
   05 SECTIONS
   Page-specific composition: nav, hero, about, gallery, video,
   team, testimonials, partners, CTA, footer + reveal motion.
   ============================================================ */

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  padding: 5px;
  /* border-bottom: var(--border-rule) solid var(--ink); */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 72px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav__links a {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: var(--border-rule) solid transparent;
  transition: border-color var(--dur) var(--ease-out);
}

.nav__links a:hover {
  border-color: var(--terracotta);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--space-2);
}

.nav__toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  transition: var(--dur) var(--ease-out);
}

.nav[data-open="true"] .nav__toggle .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav[data-open="true"] .nav__toggle .bar:nth-child(2) {
  opacity: 0;
}

.nav[data-open="true"] .nav__toggle .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-10), 8vw, var(--space-16));
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-10);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.75rem, 7vw, var(--text-5xl));
  margin-top: var(--space-5);
  font-weight: 500;
}

.hero__title .accent {
  color: var(--forest);
}

.hero__lead {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--soot);
  max-width: 46ch;
}

.hero__cta {
  margin-top: var(--space-7);
}

.hero__note {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--stone);
  letter-spacing: var(--tracking-wide);
}

/* ---------- Hero with Background Image ---------- */
.hero--bg-img {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: left;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
}

.hero--bg-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22, 18, 13, 0.6);
  /* Dark screen to ensure readability and contrast */
  z-index: 1;
}

.hero--bg-img .container {
  position: relative;
  z-index: 2;
  /* max-width: 800px; */
}

.hero--bg-img .eyebrow {
  color: var(--ochre);
}

.hero--bg-img .hero__title {
  color: var(--white);
  font-size: clamp(3.5rem, 6vw, var(--text-5xl));
}

.hero--bg-img .hero__title .accent {
  color: var(--ochre);
}

.hero--bg-img .hero__lead {
  color: var(--paper-2);
  font-size: var(--text-lg);
  margin-left: 0;
  margin-right: auto;
  max-width: 55ch;
}

.hero--bg-img .hero__cta {
  justify-content: flex-start;
}

.hero--bg-img .hero__note {
  color: var(--stone);
}

/* Hero visual: stacked color block + app placeholder */
.hero__visual {
  position: relative;
}

.hero__phone {
  position: relative;
  z-index: 2;
  aspect-ratio: 9 / 16;
  max-width: 290px;
  margin-inline: auto;
  background: var(--white);
  border: var(--border-bold) solid var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hard-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* .hero__block {
  position: absolute;
  inset: auto;
  z-index: 1;
  width: 180px;
  height: 180px;
  border: var(--border-rule) solid var(--ink);
  border-radius: var(--radius-md);
} */

/* .hero__block--ochre {
  background: var(--ochre);
  top: -18px;
  right: 8px;
} */

/* .hero__block--forest {
  background: var(--forest);
  bottom: -18px;
  left: 0;
  width: 130px;
  height: 130px;
} */

/* Mock app rows inside the hero phone */
.mockrow {
  border: var(--border-rule) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mockrow .dot {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  border: var(--border-rule) solid var(--ink);
  flex: none;
}

.mockrow .lines {
  flex: 1;
  display: grid;
  gap: 6px;
}

.mockrow .lines span {
  height: 8px;
  background: var(--paper-3);
  border-radius: var(--radius-pill);
}

.mockrow .lines span:last-child {
  width: 60%;
}

.mockmic {
  margin-top: auto;
  display: grid;
  place-items: center;
  height: 56px;
  background: var(--forest);
  color: var(--white);
  border: var(--border-rule) solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.about__body p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--soot);
}

.about__body p+p {
  margin-top: var(--space-5);
}

.about__body strong {
  color: var(--ink);
  font-weight: var(--weight-bold);
}

/* ---------- Stats ---------- */
.stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat {
  padding-right: var(--space-5);
  border-left: var(--border-bold) solid var(--forest);
  padding-left: var(--space-5);
}

.section--ink .stat {
  border-color: var(--ochre);
}

/* ---------- Gallery / Services Slider ---------- */
.gallery-slider {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding-block: var(--space-6);
  cursor: grab;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 0;
}

.gallery-group {
  display: flex;
  gap: var(--space-6);
  padding-right: var(--space-6);
}

.gallery-slide {
  flex-shrink: 0;
  width: 380px;
  max-width: 100%;
}

@media (max-width: 1200px) {
  .gallery-slide {
    width: 320px;
  }
}

@media (max-width: 768px) {
  .gallery-slide {
    width: calc(100vw - (var(--gutter) * 2));
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: var(--border-rule) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  height: 100%;
  transition: transform var(--dur) var(--ease-snap), box-shadow var(--dur) var(--ease-snap);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hard-lg);
}

.service-card__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform var(--dur-slow) var(--ease-out);
}

.service-card:hover .service-card__media img {
  transform: scale(1.06);
}

.service-card__content {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--ink);
  margin: 0;
  line-height: var(--leading-snug);
}

/* Prevent native browser dragging of images */
.gallery-slider img,
.partners-slider img {
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- Video ---------- */
.video__frame {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: var(--border-bold) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.video__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ---------- Team ---------- */
.member {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: var(--border-bold) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-snap), box-shadow var(--dur) var(--ease-snap);
  text-align: left;
}

.member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hard-lg);
}

.member__photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-bottom: var(--border-bold) solid var(--ink);
  background: var(--paper-2);
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.member:hover .member__photo img {
  transform: scale(1.05);
}

.member__content {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}

.member__name {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--ink);
  margin-top: var(--space-1);
}

.member__role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--forest);
  font-weight: var(--weight-bold);
}

/* ---------- Testimonials ---------- */
.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.quote__mark {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--forest);
}

.quote__text {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--ink);
  letter-spacing: var(--tracking-snug);
}

.quote__by {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}

.quote__by .avatar {
  width: 48px;
  height: 48px;
  font-size: var(--text-base);
}

.quote__meta b {
  display: block;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
}

.quote__meta span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ---------- Partners Slider ---------- */
.partners-slider {
  margin-top: 50px;
  overflow: hidden;
  width: 100%;
  position: relative;
  padding-block: var(--space-6);
  /* Premium fade mask for edges */
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.partners-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: partners-scroll 25s linear infinite;
}

.partners-slider:hover .partners-track {
  animation-play-state: paused;
}

.partners-group {
  display: flex;
  gap: var(--space-12);
  padding-right: var(--space-12);
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 160px;
  background: transparent;
  border: none;
  flex-shrink: 0;
}

.partner img {
  max-width: 100%;
  /* max-height: 80%; */
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  /* filter: grayscale(100%) opacity(0.7); */
  transition: filter var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.partner:hover img {
  filter: none;
  opacity: 1;
}

@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---------- Contact / CTA block ---------- */
.cta {
  text-align: center;
}

.cta__title {
  font-size: clamp(3.5rem, 6vw, var(--text-5xl));
  color: var(--white);
}

.cta .eyebrow.on-ink {
  justify-content: center;
}

.cta__sub {
  margin: var(--space-5) auto 0;
  max-width: 50ch;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(246, 239, 225, 0.85);
}

.cta__actions {
  margin-top: var(--space-8);
  justify-content: center;
}

.section--clay .cta__title {
  color: var(--white);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--white);
  color: var(--soot);
  padding-block: var(--space-10) var(--space-6);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer__cols {
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.footer__col h5 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: var(--space-4);
}

.footer__col ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.footer__col a {
  color: var(--soot);
  font-size: var(--text-sm);
}

.footer__col a:hover {
  color: var(--ink);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: var(--border-rule) solid var(--ink);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: var(--dur) var(--ease-out);
}

.social-link:hover {
  background: var(--ochre);
  color: var(--white);
  border-color: var(--ochre);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer__bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-5);
  border-top: var(--border-rule) solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--stone);
  letter-spacing: var(--tracking-wide);
}

/* Hero photo (real image) variant of the visual */
.hero__photo {
  position: relative;
  z-index: 2;
  /* max-width: 380px; */
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  /* overflow: hidden; */
  border: var(--border-rule) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  background: var(--paper-2);
}

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

.hero__badge {
  position: absolute;
  z-index: 3;
  left: -30px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--white);
  border: var(--border-rule) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: -3px 3px 0 0 var(--ochre);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
}

.hero__badge .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--forest);
}

/* ---------- Split (image + content) sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.split__media {
  aspect-ratio: 4 / 3;
}

.split--media-left .split__media {
  order: -1;
}

.split+.split {
  margin-top: var(--space-10);
}

.split__media .stat-chip {
  position: absolute;
  right: -14px;
  top: 22px;
  z-index: 3;
  background: var(--forest);
  color: var(--white);
  border: var(--border-rule) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard-sm);
  padding: var(--space-3) var(--space-4);
}

.split__media {
  position: relative;
}

.stat-chip b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--white);
  line-height: 1;
}

.stat-chip span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(246, 239, 225, 0.7);
}



@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .split--media-left .split__media,
  .split .split__media {
    order: -1;
  }
}

/* ---------- Reveal-on-scroll ----------
   Hidden state only applies once JS adds `.js` to <html>, so content
   is always visible if JS/IO is unavailable (no stuck-invisible page). */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero__visual {
    order: -1;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .stats__row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8) var(--space-6);
  }




}

@media (max-width: 920px) {
  .nav__cta .btn {
    display: none;
  }

  .logo__img {
    height: 80px;
  }
}

@media (max-width: 720px) {

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--paper);
    border-bottom: var(--border-rule) solid var(--ink);
    padding: var(--space-5) var(--gutter);
    gap: var(--space-4);
  }

  .nav__links.is-open a {
    font-size: var(--text-lg);
  }
}

@media (max-width: 600px) {
  .stats__row {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Hide stat separators when the cluster wraps */
  .hero__stat-sep {
    display: none;
  }

  /* Badge: prevent overflow beyond left edge of viewport */
  .hero__badge {
    left: var(--space-3);
    bottom: -16px;
  }

  /* CTA buttons: full-width stack */
  .cta__actions.cluster {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__actions.cluster .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Footer bottom: stack on narrow screens */
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
}

/* ---------- SKINÉTIK Hero ---------- */
/* ---------- Institut / Espace Bien-Être Gallery ---------- */
.institut-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-4);
  align-items: stretch;
}

.institut-gallery__main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}

.institut-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.institut-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-4);
}

.institut-gallery__grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1/1;
  transition: transform var(--dur) var(--ease-out);
}

.institut-gallery__grid img:hover {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .institut-gallery {
    grid-template-columns: 1fr;
  }

  .institut-gallery__main img {
    aspect-ratio: 16/9;
  }

  .institut-gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }

  .institut-gallery__grid img {
    aspect-ratio: 3/4;
  }
}

@media (max-width: 600px) {
  .institut-gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .institut-gallery__grid img {
    aspect-ratio: 1/1;
  }
}