/* Home — funil comercial Rosa Branca Cosméticos. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.language-control { display: inline-flex; align-items: center; }
.language-control select {
  min-width: 44px;
  min-height: 44px;
  padding: .5rem 1.6rem .5rem .65rem;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 16px;
  font-weight: 700;
}
.site-header.is-scrolled .language-control select { border-color: var(--line); }
.language-control option { color: var(--ink); }
.language-control--drawer { display: grid; gap: .5rem; }
.language-control--drawer select { width: 100%; border-color: var(--line); color: var(--pine); }
.drawer-close {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--pine);
  font-size: 1.65rem;
  line-height: 1;
}
.drawer__foot { display: grid; gap: 1rem; align-self: end; }

[data-nav-section],
#estrutura,
#conversa { scroll-margin-top: calc(var(--header-height) + 16px); }

.home-hero {
  --hero-image-scale: 1.7;
  --hero-image-x: 29.5px;
  --hero-image-y: 19px;
  min-height: 600px;
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 48px;
  isolation: isolate;
}
.home-hero::after { display: none; }
.home-hero__background {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}
.home-hero__background img {
  width: 100%;
  height: 100%;
  transform: translate3d(var(--hero-image-x), var(--hero-image-y), 0) scale(var(--hero-image-scale));
  transform-origin: center;
  object-fit: cover;
  object-position: center;
}
.home-hero__background::after {
  --product-cutout-x: 282px;
  --product-cutout-y: 280px;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 72, 63, .98) 0, rgba(9, 72, 63, .95) 215px, rgba(9, 72, 63, .78) 245px, rgba(9, 72, 63, .14) 305px, transparent 350px),
    linear-gradient(180deg, rgba(7, 53, 47, .45) 0%, transparent 28%, rgba(7, 53, 47, .18) 100%);
  -webkit-mask-image: radial-gradient(ellipse 44px 125px at var(--product-cutout-x) var(--product-cutout-y), transparent 0 74%, rgba(0, 0, 0, .45) 88%, #000 100%);
  mask-image: radial-gradient(ellipse 44px 125px at var(--product-cutout-x) var(--product-cutout-y), transparent 0 74%, rgba(0, 0, 0, .45) 88%, #000 100%);
  content: "";
}
.home-hero .hero__grid { min-height: 510px; }
.home-hero .hero__copy { position: relative; z-index: 2; max-width: 590px; }
.home-hero .lead { max-width: 25ch; }

.process-home .section__head { max-width: 880px; }
.process-ribbon {
  display: grid;
  gap: 0;
  margin: 48px 0 0;
  list-style: none;
  counter-reset: process;
}
.process-ribbon li {
  position: relative;
  display: grid;
  min-height: 92px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0 0 1.5rem;
  border-left: 1px solid var(--petal);
  counter-increment: process;
}
.process-ribbon li:last-child { min-height: 44px; padding-bottom: 0; border-color: transparent; }
.process-ribbon li::before {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  place-items: center;
  border-radius: 50%;
  background: var(--blush);
  color: var(--pine);
  content: counter(process, decimal-leading-zero);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
}
.process-ribbon strong { display: block; padding-top: .4rem; color: var(--pine); font-size: 1.08rem; line-height: 1.45; }

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.media-frame::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--vertical { aspect-ratio: 4 / 5; border-radius: 28% 8% 24% 10% / 12% 22% 9% 20%; }
.media-frame--horizontal { aspect-ratio: 4 / 3; border-radius: 18% 6% 16% 7% / 10% 18% 8% 16%; }
.media-frame--panoramic { aspect-ratio: 16 / 9; border-radius: 11% 4% 10% 4% / 18% 10% 16% 9%; }

.authority__grid { display: grid; gap: 32px; align-items: center; }
.authority__copy .lead { margin-top: 1rem; }
.authority__visual img { object-position: center; }
.authority__metrics { grid-template-columns: 1fr; }
.authority__metrics .metric--wide { background: var(--mint); }

.services-home__layout { display: grid; gap: 32px; align-items: start; }
.services-home__intro .lead { margin-top: 1rem; }
.services-home__visual img { object-position: center; }
.solution-list {
  display: grid;
  margin: 0;
  list-style: none;
  counter-reset: solution;
}
.solution-list li {
  display: grid;
  min-height: 78px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  counter-increment: solution;
}
.solution-list li:last-child { border-bottom: 1px solid var(--line); }
.solution-list li::before {
  color: var(--petal);
  content: counter(solution, decimal-leading-zero);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
}
.services-home__closing {
  margin-top: 56px;
  padding: 48px clamp(1.5rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--mist);
  text-align: center;
}
.services-home__closing h3 { max-width: 20ch; margin: 0 auto; font-size: clamp(2rem, 8vw, 3.5rem); line-height: 1.1; }
.services-home__closing .button { margin-top: 1.5rem; }

.hair-funnel__head { max-width: 760px; margin-bottom: 32px; }
.hair-funnel__head .lead { margin-top: 1rem; }
.hair-funnel__showcase { display: grid; gap: 24px; }
.hair-funnel__line img { object-position: center; }
.hair-category-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  list-style: none;
}
.hair-category-list li {
  position: relative;
  min-height: 52px;
  padding: .8rem 1rem .8rem 2.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}
.hair-category-list li:last-child { border-bottom: 0; }
.hair-category-list li::before {
  position: absolute;
  top: 1.45rem;
  left: 1rem;
  width: 8px;
  height: 1px;
  background: var(--petal);
  content: "";
}
.hair-funnel__custom {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.hair-funnel__custom-copy .lead { margin-top: 1rem; }
.hair-funnel__custom-copy .button { margin-top: 1.5rem; }
.hair-funnel__custom-media img { object-position: center; }

.contact-cta::after { display: none; }
.contact-cta__content { max-width: 820px; text-align: center; }
.contact-cta__content :is(h2, .lead) { margin-inline: auto; }
.contact-cta__content .lead { margin-top: 1rem; }
.contact-cta__content .button-group { justify-content: center; }

@media (max-width: 374px) {
  .home-hero__background::after {
    --product-cutout-x: 255px;
    --product-cutout-y: 280px;
    background:
      linear-gradient(90deg, rgba(9, 72, 63, .98) 0, rgba(9, 72, 63, .95) 198px, rgba(9, 72, 63, .74) 228px, rgba(9, 72, 63, .12) 286px, transparent 324px),
      linear-gradient(180deg, rgba(7, 53, 47, .45) 0%, transparent 28%, rgba(7, 53, 47, .18) 100%);
  }
}

@media (min-width: 375px) and (max-width: 413px) {
  .home-hero {
    --hero-image-scale: 1.35;
    --hero-image-x: 52.5px;
    --hero-image-y: 0px;
  }
  .home-hero__background::after { --product-cutout-x: 296px; }
}

@media (min-width: 414px) and (max-width: 767px) {
  .home-hero {
    --hero-image-scale: 1.4;
    --hero-image-x: 57px;
    --hero-image-y: -7px;
  }
  .home-hero__background::after {
    --product-cutout-x: 325px;
    background:
      linear-gradient(90deg, rgba(9, 72, 63, .98) 0, rgba(9, 72, 63, .95) 238px, rgba(9, 72, 63, .72) 276px, rgba(9, 72, 63, .1) 340px, transparent 390px),
      linear-gradient(180deg, rgba(7, 53, 47, .45) 0%, transparent 28%, rgba(7, 53, 47, .18) 100%);
  }
}

@media (min-width: 768px) {
  .home-hero { min-height: 720px; padding-top: calc(var(--header-height) + 64px); }
  .home-hero__background img { transform: none; }
  .home-hero__background::after {
    -webkit-mask-image: none;
    mask-image: none;
    background:
      linear-gradient(90deg, rgba(10, 72, 63, .98) 0%, rgba(10, 72, 63, .92) 35%, rgba(10, 72, 63, .52) 56%, rgba(10, 72, 63, .08) 76%),
      linear-gradient(180deg, rgba(7, 53, 47, .55) 0%, transparent 20%);
  }
  .home-hero .hero__grid { min-height: 580px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-hero .lead { max-width: 47ch; }

  .process-ribbon {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 4rem;
  }
  .process-ribbon li,
  .process-ribbon li:last-child {
    display: block;
    min-height: 0;
    padding: 0 1.5rem 0 0;
    border-top: 1px solid var(--petal);
    border-left: 0;
  }
  .process-ribbon li::before { margin: -22px 0 1.25rem; }
  .process-ribbon strong { padding: 0; }

  .authority__grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(2.5rem, 6vw, 6rem); }
  .authority__metrics { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }

  .services-home__layout { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 5vw, 4rem); }
  .services-home__intro { grid-column: 1 / -1; max-width: 760px; }
  .solution-list li { min-height: 92px; }

  .hair-funnel__showcase { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); align-items: stretch; }
  .hair-funnel__line { height: 100%; }
  .hair-category-list { grid-template-columns: repeat(2, 1fr); }
  .hair-category-list li:nth-child(odd) { border-right: 1px solid var(--line); }
  .hair-funnel__custom { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 6rem); }
}

@media (min-width: 1180px) {
  .process-ribbon {
    grid-template-columns: repeat(7, 1fr);
    row-gap: 0;
  }

  .process-ribbon li,
  .process-ribbon li:last-child {
    padding-right: 1rem;
  }

  .process-ribbon strong {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .home-hero { min-height: 820px; }
  .home-hero h1 { max-width: 12ch; }

  .services-home__layout {
    grid-template-columns: minmax(240px, .72fr) minmax(340px, .9fr) minmax(330px, 1fr);
    gap: clamp(2.5rem, 4vw, 4.5rem);
  }
  .services-home__intro { grid-column: auto; padding-top: 1.25rem; }
  .services-home__closing { margin-top: 88px; padding-block: 72px; }

  .hair-funnel__head { margin-bottom: 48px; }
  .hair-category-list { grid-template-columns: 1fr; }
  .hair-category-list li:nth-child(odd) { border-right: 0; }
}
