/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400;1,400&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --first-color: #d61c1c;
  --first-color-alt: #b31717;
  --first-color-glow: rgba(214, 28, 28, 0.3);
  --first-color-light: hsla(0, 85%, 50%, .15);
  --beige-color: hsl(0, 0%, 86%);
  --beige-color-light: hsl(0, 0%, 94%);
  --beige-color-alt: hsl(0, 0%, 72%);
  --brown-color: hsl(0, 0%, 20%);
  --brown-dark: hsl(0, 0%, 10%);
  --title-color: hsl(0, 0%, 95%);
  --text-color: hsl(0, 0%, 70%);
  --text-color-light: hsl(0, 0%, 55%);
  --body-color: hsl(0, 0%, 6%);
  --body-color-alt: hsl(0, 0%, 8%);
  --container-color: hsl(0, 0%, 10%);
  --container-color-alt: hsl(0, 0%, 12%);
  --border-color: hsla(0, 0%, 30%, .4);
  --border-color-light: hsla(0, 0%, 40%, .2);
  --white-color: hsl(0, 0%, 98%);
  --glass-bg: hsla(0, 0%, 10%, .7);
  --glass-border: hsla(0, 0%, 100%, .1);

  /*========== Font and typography ==========*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Chakra Petch", sans-serif;
  --serif-font: "Playfair Display", serif;
  --biggest-font-size: 2rem;
  --big-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== Transitions ==========*/
  --transition-fast: .3s ease;
  --transition-smooth: .5s cubic-bezier(.4, 0, .2, 1);
  --transition-bounce: .6s cubic-bezier(.34, 1.56, .64, 1);

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (width >= 1150px) {
  :root {
    --biggest-font-size: 4.5rem;
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: auto;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  overflow-x: hidden;
}

input,
button {
  background: none;
  border: none;
  outline: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  line-height: 120%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section:nth-child(even) {
  background-color: #0d0d0d;
}

.section:nth-child(odd) {
  background-color: #080808;
}

.parallax-bg {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--body-color);
}

/* Fix iOS/Mobile: background-attachment:fixed não funciona em touch/Safari */
@media (hover: none) and (pointer: coarse), screen and (max-width: 768px) {
  .parallax-bg {
      background-attachment: scroll !important;
      background-size: auto 100vh !important;
      background-position: top center !important;
    }
}

.section__title {
  text-align: center;
  font-size: var(--big-font-size);
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--title-color) 0%, var(--first-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main {
  /*
   * overflow-x: clip NÃO cria scroll container (diferente de overflow: hidden),
   * portanto NÃO quebra position: sticky — crítico para iOS Safari.
   * Ainda previne scroll horizontal de animações GSAP.
   */
  overflow-x: clip;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.scroll-header {
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px hsla(0, 0%, 0%, .3);
}

.scroll-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
}

.scroll-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--first-color), transparent);
  background-size: 200% 100%;
  animation: header-shimmer 3s ease-in-out infinite;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--second-font);
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  color: var(--title-color);
  letter-spacing: 3px;
  transition: color var(--transition-fast);
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.nav__toggle:hover,
.nav__close:hover {
  color: var(--first-color);
}

/* Navigation for mobile devices */
@media screen and (width < 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background: var(--body-color);
    width: 80%;
    height: 100vh;
    padding: 6rem 3rem 0;
    border-left: 1px solid var(--glass-border);
    transition: right var(--transition-smooth);
    z-index: var(--z-fixed);
  }
}

.show-menu {
  right: 0;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--text-color);
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--first-color);
  transition: width var(--transition-fast);
}

.nav__link:hover::after,
.active-link::after {
  width: 100%;
}

.nav__link:hover,
.active-link {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/*=============== HOME SECTION ===============*/
.home {
  position: sticky;  /* fica fixo no topo enquanto o portal abre sobre ele */
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1; /* Abaixo do wrapper do portal */
}

.home__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.home__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.65);
}

.home__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,8,3,0.78) 0%, rgba(10,8,3,0.5) 40%, rgba(10,8,3,0.2) 65%, transparent 100%);
}

.home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

.home::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to top, #000 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

.home__container {
  position: relative;
  padding-top: 4rem;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.home__title {
  font-size: var(--biggest-font-size);
  letter-spacing: 4px;
  line-height: 110%;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white-color) 0%, var(--first-color) 50%, var(--first-color-alt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home__description {
  color: hsl(0, 0%, 85%);
  max-width: 540px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  margin-bottom: 2rem;
  line-height: 170%;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.9),
    0 2px 16px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(0, 0, 0, 0.5);
}

.home__img {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.home__logo {
  width: 350px;
  max-width: 80%;
  opacity: 0.9;
  filter: drop-shadow(0 0 50px var(--first-color-glow));
  animation: floatLogo 6s ease-in-out infinite;
}

/* === HERO MOBILE ENHANCEMENTS === */
@media screen and (max-width: 1149px) {
  .home__container {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }

  .home__title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    text-shadow: 0 2px 30px rgba(214, 28, 28, 0.15);
  }

  .home__data {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  /* Decorative accent line below title */
  .home__data::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--first-color), transparent);
    margin-bottom: 1.25rem;
    order: 2;
  }

  .home__title {
    order: 1;
  }

  .home__description {
    order: 3;
    font-size: var(--small-font-size);
    padding-inline: 1rem;
    margin-bottom: 2.5rem;
    max-width: 420px;
  }

  .home .button {
    order: 4;
    font-size: .75rem;
    padding: .875rem 1.5rem;
    align-self: center;
    max-width: 90%;
  }

  /* Make the logo visually impactful on mobile */
  .home__img {
    order: -1;
    margin-bottom: 2rem;
  }

  .home__logo {
    width: 250px;
    max-width: 65%;
  }
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  align-items: center;
  column-gap: .75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: var(--body-color);
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  font-size: var(--small-font-size);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: .5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 24px var(--first-color-glow);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(0,0%,100%,.3), transparent);
  transition: left .7s ease;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--first-color-glow);
}

.button i {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.button:hover i {
  transform: rotate(45deg);
}

/*=============== ABOUT SECTION ===============*/
/* Ocultei o divisor que fica entre o vídeo e o Sobre para fluxo limpo */
.apple-sequence-wrapper + .section-divider {
  display: none !important;
}

.about {
  position: relative;
  z-index: 10; /* Elevado para a transição Curtain Wipe sobre o vídeo */
  margin-top: -100vh; /* Sobrepõe exatamente os 100vh extras do vídeo, criando o palco do Crossfade! */
  background-color: transparent; /* DEVE ser transparente para vermos a redução do vídeo ocorrendo magicamente por baixo dos tijolos! */
}

/* Máscara de Degrade para a transição da textura da parede do Sobre vindo do fundo preto */
.about.parallax-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px; /* Aumentado para 350px para um degradê super cinemático longo */
  background: linear-gradient(to bottom, var(--body-color) 0%, transparent 100%);
  z-index: 1; /* Garante que esconde o que tá por baixo da base da imagem */
  pointer-events: none;
}

/* Máscara Escura Geral: Rebaixa os tons claros e garante leitura perfeita */
.about.parallax-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45); /* Escurece a imagem globalmente */
  z-index: 1;
  pointer-events: none;
}

.about__container {
  position: relative;
  z-index: 2; /* Garante que o texto fique ACIMA da máscara de degrade ::before */
  grid-template-columns: 1fr;
  row-gap: 3rem;
}

.about__data {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--second-font);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-bold);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--first-color);
  margin-bottom: 1rem;
  opacity: .9;
}

.about__eyebrow i {
  font-size: 1rem;
}

.about__description {
  color: var(--text-color);
  line-height: 180%;
  margin-bottom: 2.5rem;
  font-family: var(--serif-font);
  font-style: italic;
}

.about__counters {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 2rem;
}

.about__counter {
  text-align: center;
}

.about__counter-icon {
  font-size: 1.25rem;
  color: var(--first-color);
  margin-bottom: .4rem;
  opacity: .7;
  display: block;
}

.about__counter-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .1rem;
}

.about__counter-divider {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--first-color), transparent);
  opacity: .35;
  flex-shrink: 0;
}

.about__number {
  font-family: var(--second-font);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  color: var(--first-color);
  display: inline;
  text-shadow: 0 4px 16px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,1);
}

.about__percent,
.about__plus {
  font-family: var(--second-font);
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  color: var(--first-color);
  text-shadow: 0 4px 16px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,1);
}

.about__subtitle {
  font-family: var(--second-font);
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  letter-spacing: 1px;
  margin-top: .5rem;
  line-height: 150%;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 1px 2px rgba(0,0,0,1);
  font-weight: 500;
}

.about__cta-btn {
  margin-top: 2.5rem;
  /* Mobile: centralizado (herda align-items: center do pai) */
  align-self: center;
}

.about__img {
  position: relative;
  max-width: 400px;
  margin-inline: auto;
  border-radius: 1rem;
  overflow: visible;
  box-shadow: 0 0 40px var(--first-color-glow), 0 8px 30px rgba(0, 0, 0, 0.4);
}

.about__img-frame {
  position: absolute;
  inset: -10px;
  border: 1px solid var(--first-color);
  border-radius: 1.35rem;
  opacity: .18;
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--transition-fast);
}

.about__img:hover .about__img-frame {
  opacity: .35;
}

.about__img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 8, 3, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(214, 28, 28, 0.35);
  border-radius: 2rem;
  padding: .5rem 1.5rem;
  text-align: center;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  white-space: nowrap;
}

.about__img-badge-label {
  font-family: var(--second-font);
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  color: var(--first-color);
  letter-spacing: 4px;
  line-height: 1;
}

.about__img-badge-sub {
  font-family: var(--second-font);
  font-size: .6rem;
  letter-spacing: 2px;
  color: var(--text-color-light);
  text-transform: uppercase;
}

.about__img-barber {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: block;
  transition: transform var(--transition-smooth);
}

.about__img:hover .about__img-barber {
  transform: scale(1.05);
}

.about__img-overlay {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  background: linear-gradient(180deg, transparent 55%, hsla(20, 15%, 8%, .75) 100%);
  pointer-events: none;
  z-index: 2;
}

/*=============== WORKS SECTION ===============*/
.work {
  background-color: var(--body-color);
  position: relative;
  z-index: 4;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.work__description {
  text-align: center;
  color: var(--text-color);
  max-width: 600px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  margin-bottom: 2.5rem;
  line-height: 170%;
  font-family: var(--serif-font);
  font-style: italic;
}

.work__container {
  position: relative;
}

.work__card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.work__card:hover {
  border-color: rgba(214, 28, 28, .3);
  box-shadow: 0 0 20px rgba(214, 28, 28, .12), 0 8px 32px rgba(0, 0, 0, .5);
}

.work__img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.work__card:hover .work__img {
  transform: scale(1.08);
  filter: brightness(.65);
}

/* Overlay sempre visível com gradiente suave no rodapé */
.work__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .78) 100%);
  opacity: 1;
  transition: background var(--transition-fast);
}

.work__card:hover .work__overlay {
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, .92) 100%);
}

/* Tag sempre visível */
.work__tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--first-color);
  color: var(--body-color);
  font-family: var(--second-font);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-bold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: .35rem;
  transform: translateY(0);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.work__tag i {
  font-size: .85rem;
}

.work__card:hover .work__tag {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(214, 28, 28, .45), 0 2px 10px rgba(0, 0, 0, .4);
  background: var(--first-color-alt);
}

.work__navigation {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
  margin-top: 2rem;
}

.work__nav-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--container-color);
  border: 1px solid var(--border-color);
  color: var(--title-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.work__nav-btn:hover {
  background: var(--first-color);
  color: var(--body-color);
  border-color: var(--first-color);
  box-shadow: 0 4px 20px var(--first-color-glow);
}

/*=============== PARALLAX BACKGROUND ===============*/
/* Definição consolidada — sem duplicatas */
.parallax-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 3, 0.65);
  z-index: 0;
}

.parallax-bg .section__title,
.parallax-bg .service__container,
.parallax-bg .about__container {
  position: relative;
  z-index: 2;
}
.service__container {
  grid-template-columns: 1fr;
  row-gap: 3rem;
}

.service__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

.service__card {
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 1rem;
  padding: 1.6rem 2rem; /* Increased padding by ~30% */
  background: rgba(10, 8, 3, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: .75rem;
  border-left: 3px solid var(--first-color);
  transition: background 0.2s, border-left-color 0.2s, transform var(--transition-fast);
  overflow: visible;
}

.service__card::before {
  content: '';
  position: absolute;
  left: -3px; /* Adjust for the border-left */
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--first-color);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service__card:hover {
  border-color: var(--first-color);
  transform: translateY(-4px) translateX(4px);
  background: rgba(10, 8, 3, 0.55);
  border-left-color: var(--first-color);
  box-shadow: 0 0 20px var(--first-color-glow), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.service__card:hover::before {
  opacity: 1;
}

.service__card--featured {
  border-color: var(--first-color);
  background: rgba(10, 8, 3, 0.5);
  box-shadow: 0 0 0 1px var(--first-color-glow);
}

.service__card--featured::before {
  background: var(--first-color);
  opacity: 1;
}

.service__badge {
  position: absolute;
  top: .5rem;
  right: .75rem;
  background: var(--first-color);
  color: var(--body-color);
  font-family: var(--second-font);
  font-size: .625rem;
  font-weight: var(--font-bold);
  letter-spacing: 1px;
  padding: .15rem .5rem;
  border-radius: .25rem;
}

.service__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  border-radius: .5rem;
  color: var(--body-color);
  font-size: 1.25rem;
}

.service__info {
  flex: 1;
}

.service__name {
  font-size: var(--small-font-size);
  letter-spacing: 1px;
  margin-bottom: .25rem;
}

.service__detail {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.service__price {
  font-family: var(--second-font);
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  color: var(--first-color);
  white-space: nowrap;
}

/* Testimonials */
.service__testimonials {
  background: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  min-width: 0; /* Fixes Swiper width issue inside CSS Grid */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service__testimonial-swiper {
  width: 100%;
  flex: 1;
}

.service__testimonial-title {
  text-align: center;
  font-size: var(--h3-font-size);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: var(--title-color);
}

.service__testimonial-card {
  padding: 1rem;
  height: auto;
  display: flex;
  flex-direction: column;
}

.service__testimonial-quote {
  font-size: 2.5rem;
  color: var(--first-color);
  opacity: .4;
  display: block;
  margin-bottom: .5rem;
}

.service__testimonial-description {
  color: var(--text-color);
  line-height: 175%;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service__testimonial-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service__testimonial-stars {
  display: flex;
  column-gap: .15rem;
  color: var(--first-color);
  font-size: .875rem;
}

.service__testimonial-name {
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  color: var(--title-color);
  letter-spacing: 1px;
}

.service__testimonial-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.service__testimonial-pagination .swiper-pagination-bullet {
  background: var(--text-color-light);
  opacity: .5;
  transition: all var(--transition-fast);
}

.service__testimonial-pagination .swiper-pagination-bullet-active {
  background: var(--first-color);
  opacity: 1;
  width: 24px;
  border-radius: 4px;
}

/*=============== EXPERTS SECTION ===============*/
.expert__description {
  text-align: center;
  color: var(--text-color);
  max-width: 540px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  margin-bottom: 2.5rem;
  line-height: 170%;
  font-family: var(--serif-font);
  font-style: italic;
}

.expert__container {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.expert__card {
  text-align: center;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.expert__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.expert__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(214, 28, 28, 0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.expert__card:hover::after {
  opacity: 1;
}

.expert__img-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--container-color);
}

.expert__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-smooth), filter 0.3s;
  filter: grayscale(25%) contrast(1.08);
}

.expert__card:hover .expert__img {
  transform: scale(1.08);
  filter: grayscale(0%) contrast(1.1);
}

.expert__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, hsla(0, 0%, 0%, .8) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.expert__card:hover .expert__overlay {
  opacity: 1;
}

.expert__social {
  display: flex;
  column-gap: .75rem;
}

.expert__link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--white-color);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  transform: translateY(12px);
}

.expert__card:hover .expert__link {
  transform: translateY(0);
}

.expert__link:hover {
  background: var(--first-color);
  border-color: var(--first-color);
  color: var(--body-color);
}

.expert__name {
  font-size: var(--h3-font-size);
  letter-spacing: 1px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(214, 28, 28, 0.5);
  padding-bottom: 6px;
  display: inline-block;
  text-shadow: 0 0 20px var(--first-color-glow);
}

.expert__profession {
  font-family: var(--serif-font);
  font-style: italic;
  font-size: 13px;
  color: var(--first-color);
  letter-spacing: 1px;
}

/*=============== CONTACT SECTION ===============*/
.contact__description {
  text-align: center;
  color: var(--text-color);
  max-width: 540px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  margin-bottom: 2.5rem;
  line-height: 170%;
  font-family: var(--serif-font);
  font-style: italic;
}

.contact__container {
  grid-template-columns: 1fr;
  row-gap: 2rem;
}

.contact__cta {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  align-items: center;
}

.contact__map {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.contact__map iframe {
  display: block;
  filter: grayscale(.8) brightness(.8) contrast(1.1);
  transition: filter var(--transition-smooth);
}

.contact__map:hover iframe {
  filter: grayscale(.2) brightness(.9) contrast(1);
}

.contact__info {
  display: grid;
  gap: 1.5rem;
}

.contact__block {
  display: flex;
  align-items: flex-start;
  column-gap: 1rem;
  padding: 1.5rem;
  background: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: .75rem;
  transition: border-color var(--transition-fast);
}

.contact__block:hover {
  border-color: var(--first-color);
}

.contact__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-top: .15rem;
}

.contact__title {
  font-size: var(--small-font-size);
  letter-spacing: 2px;
  margin-bottom: .5rem;
}

.contact__address {
  font-size: var(--small-font-size);
  color: var(--text-color);
  font-style: normal;
  line-height: 170%;
}

.contact__address--link {
  display: block;
  transition: color var(--transition-fast);
}

.contact__address--link:hover {
  color: var(--first-color);
}

/*=============== FOOTER ===============*/
.footer {
  padding-top: 4rem;
  background: var(--body-color-alt);
  border-top: 1px solid var(--border-color);
}

.footer__container {
  grid-template-columns: 1fr;
  row-gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__logo {
  font-family: var(--second-font);
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  color: var(--title-color);
  letter-spacing: 3px;
  display: inline-block;
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}

.footer__logo:hover {
  color: var(--first-color);
}

.footer__description {
  color: var(--text-color);
  line-height: 170%;
  margin-bottom: 1rem;
}

.footer__email {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  color: var(--first-color);
  font-size: var(--small-font-size);
  transition: color var(--transition-fast);
}

.footer__email:hover {
  color: var(--first-color-alt);
}

.footer__title {
  font-size: var(--small-font-size);
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  color: var(--title-color);
}

.footer__list {
  display: grid;
  row-gap: .75rem;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  font-size: var(--small-font-size);
  color: var(--text-color);
  transition: all var(--transition-fast);
}

.footer__link:hover {
  color: var(--first-color);
  transform: translateX(4px);
}

.footer__link i {
  font-size: 1rem;
}

.footer__social {
  display: flex;
  column-gap: .75rem;
}

.footer__social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-color);
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--first-color);
  border-color: var(--first-color);
  color: var(--body-color);
  transform: translateY(-4px);
  box-shadow: 0 4px 16px var(--first-color-glow);
  animation: social-pulse 0.5s ease;
}

.footer__copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.footer__copy-link {
  color: var(--text-color-light);
  transition: color var(--transition-fast);
}

.footer__copy-link:hover {
  color: var(--first-color);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 8px;
  background: var(--body-color);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--first-color);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--first-color);
  color: var(--body-color);
  font-size: 1.25rem;
  border-radius: .5rem;
  z-index: var(--z-tooltip);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px var(--first-color-glow);
}

.scrollup:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--first-color-glow);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (width < 340px) {
  .container {
    margin-inline: 1rem;
  }

  .about__counters {
    column-gap: 1.5rem;
  }

  .expert__container {
    grid-template-columns: 1fr;
  }

  .service__card {
    padding: 1rem;
    column-gap: .75rem;
  }
  
  .service__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
  }
}

/* Mobile services: single column with compact spacing */
@media screen and (min-width: 340px) and (max-width: 575px) {
  .service__card {
    padding: 1.2rem 1rem;
    column-gap: .75rem;
  }

  .service__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .service__price {
    font-size: var(--h3-font-size);
  }

  /* Stack contact info cards */
  .contact__info {
    gap: 1rem;
  }

  .contact__block {
    padding: 1.25rem;
  }
}

/* For medium devices */
@media screen and (width >= 576px) {
  .home__container {
    max-width: 540px;
    margin-inline: auto;
  }

  .about__container {
    max-width: 540px;
    margin-inline: auto;
  }

  .work__img {
    height: 400px;
  }

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

  /* Card destaque ocupa largura total */
  .service__card--featured {
    grid-column: 1 / -1;
  }

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

  .service__container {
    max-width: 540px;
    margin-inline: auto;
  }

  .contact__container {
    max-width: 540px;
    margin-inline: auto;
  }

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

@media screen and (min-width: 768px) {
  .expert__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .expert__img {
    height: 320px;
  }

  .contact__container {
    max-width: 720px;
    grid-template-columns: 1fr 1fr;
  }

  /* Filiais organizadas em grid 2x2 */
  .contact__info {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* For large devices */
@media screen and (width >= 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .nav {
    height: calc(var(--header-height) + 1rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 2.5rem;
  }

  .home__container {
    max-width: 1120px;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    padding-top: 6rem;
  }

  .home__description {
    margin-inline: 0;
  }

  .home__img {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home__logo {
    width: 400px;
  }

  .about__container {
    max-width: 1120px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 4rem;
  }

  .about__data {
    text-align: left;
    align-items: flex-start;
  }

  .about__counters {
    justify-content: flex-start;
  }

  .about__cta-btn {
    align-self: flex-start;
  }

  .about__img {
    max-width: unset;
  }

  .about__img-barber {
    height: 500px;
    object-fit: cover;
  }

  .work__img {
    height: 450px;
  }

  .service__container {
    max-width: 1120px;
    grid-template-columns: 3fr 2fr;
    align-items: start;
    column-gap: 3rem;
  }

  .expert__img {
    height: 360px;
  }

  .contact__container {
    max-width: 1120px;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  .contact__cta {
    align-items: flex-start;
  }

  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    column-gap: 3rem;
  }
}

/*=============== APPLE-SEQUENCE WRAPPER ===============*/
/*
 * Wrapper cria 400dvh de espaço de scroll logo abaixo do hero (100vh).
 * Sem margin negativo — o hero fica completamente separado e intocado.
 * Portal: scroll 0-100vh (enquanto hero sai pelo topo).
 * Frames: scroll 100-400dvh (apple-sequence sticky na viewport).
 */
.apple-sequence-wrapper {
  position: relative;
  height: 460vh; /* Encurtado de 600dvh: Elimina o imenso vão vazio antes da Seção sobre, mantendo a precisão matemática do crossfade! */
  margin-top: -100vh;
  z-index: 2;
}

/*=============== MOBILE CINEMATIC TREATMENT — APPLE SEQUENCE ===============*/
/*
 * Tratamento premium exclusivo para telas ≤768px.
 * Desktop permanece 100% intacto — todas as regras aqui são isoladas.
 *
 * Conceito: O vídeo deve parecer parte da interface, não um bloco encaixado.
 * Técnicas: overflow intencional, máscaras de 4 bordas, vinheta reforçada,
 * tipografia com área segura, layout narrativo em 4 atos.
 */
@media screen and (max-width: 768px) {

  /* ── WRAPPER: Altura ampla para garantir um scroll devagar e ultra-smooth ─ */
  .apple-sequence-wrapper {
    height: 650dvh; /* Aumentado para fazer as funções sine.inOut brilharem! */
  }

  /* ── CANVAS: Matemática JS agora garante 110% de preenchimento. ── */
  .apple-sequence__bg {
    /* Nada de transform = nada de bordas "vazando". Todo o viewport é devorado. */
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* ── OVERLAY: Vinheta cinematográfica 4-BORDAS agressiva ── */
  .apple-sequence__bg-overlay {
    background:
      /* Radial blend */
      radial-gradient(ellipse 100% 100% at 50% 50%,
        transparent 35%,
        hsla(0, 0%, 6%, 0.7) 60%,
        var(--body-color) 90%
      ),
      /* Vertical linear fade */
      linear-gradient(180deg,
        var(--body-color) 0%,
        var(--body-color) 15%,
        transparent 35%,
        transparent 65%,
        var(--body-color) 85%,
        var(--body-color) 100%
      );
    box-shadow: inset 0 0 100px 60px var(--body-color); /* Suaviza infinitamente a junção */
  }

  /* ── FRAMES: Posicionamento com área segura de leitura ───────── */
  .apple-sequence__frame {
    top: 46%; /* Centralizado verticalmente com compensação óptica */
    padding-inline: 1.75rem;
  }

  /* Frame 1 — Headline: Impacto centralizado */
  .apple-sequence__frame--1 {
    top: 44%;
  }

  /* Frame 2 — Stats: Layout vertical compacto */
  .apple-sequence__frame--2 {
    top: 44%;
  }

  /* Frame 3 — Tagline: Abaixo da placa para não competir com ela, servindo como assinatura */
  .apple-sequence__frame--3 {
    top: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    left: 0;
  }

  /* ── TIPOGRAFIA REFINADA MOBILE ──────────────────────────────── */

  /* Eyebrow — Elegante e discreto */
  .apple-sequence__eyebrow {
    font-size: 0.6rem;
    letter-spacing: 5px;
    margin-bottom: 1.25rem;
    text-shadow:
      0 0 15px rgba(214, 28, 28, 0.7),
      0 2px 10px rgba(0, 0, 0, 1);
  }

  /* Headline — Impactante mas legível */
  .apple-sequence__headline {
    font-size: clamp(2rem, 10vw, 3.2rem);
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-shadow:
      0 10px 40px rgba(0, 0, 0, 1),
      0 4px 20px rgba(0, 0, 0, 0.9),
      0 0 15px rgba(0, 0, 0, 0.8);
  }

  /* Efeito Metálico Premium para as palavras em ênfase (ex: BRAVUS) */
  .apple-sequence__headline em {
    background: linear-gradient(135deg, #ffffff 0%, #c4c4c4 40%, #ffffff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(214, 28, 28, 0.5)) drop-shadow(0 4px 10px rgba(0,0,0,1));
    font-style: normal;
  }

  /* Stats — Compacto e impactante */
  .apple-sequence__stats {
    flex-direction: column;
    gap: 1.25rem;
  }

  .apple-sequence__stat {
    gap: 0.3rem;
  }

  .apple-sequence__stat-number {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    text-shadow:
      0 2px 15px rgba(214, 28, 28, 0.6),
      0 6px 30px rgba(0, 0, 0, 1),
      0 2px 10px rgba(0, 0, 0, 0.9);
  }

  .apple-sequence__stat-label {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.65);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 1), 0 2px 10px rgba(0, 0, 0, 0.9);
  }

  .apple-sequence__stat-divider {
    width: 32px;
    height: 1px;
    opacity: 0.3;
  }



  /* Ornament — Menor e mais sutil no mobile */
  .apple-sequence__ornament {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  /* Decorative line — Proporcional */
  .apple-sequence__line {
    width: 80px;
    margin-top: 1.5rem;
  }

  /* Progress bar — Mais sutil no mobile */
  .apple-sequence__progress {
    height: 2px;
  }
}

/*=============== APPLE-STYLE SCROLL SEQUENCE ===============*/
/*
 * position: sticky — browser nativo, zero conflito com Lenis.
 * clip-path inicia em circle(0% at 50% 100%):
 *   centro na borda inferior da tela → portal "de baixo para cima".
 */
.apple-sequence {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #000;
  overflow: hidden;
  clip-path: circle(0% at 50% 100%);
  will-change: clip-path;
}

.apple-sequence__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.apple-sequence__bg-canvas {
  width: 100%;
  height: 100%;
  display: block;
  /* Evita subpixel rendering no mobile */
  image-rendering: auto;
  will-change: contents;
}

.apple-sequence__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(15,15,15,0.7) 65%, var(--body-color) 95%),
    linear-gradient(180deg, var(--body-color) 0%, rgba(15,15,15,0.65) 15%, transparent 35%, transparent 65%, rgba(15,15,15,0.65) 85%, var(--body-color) 100%);
  box-shadow: inset 0 0 100px 60px var(--body-color);
  pointer-events: none;
}

.apple-sequence__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

/* === FRAMES === */
.apple-sequence__frame {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding-inline: 2rem;
  opacity: 0;
  will-change: opacity, transform;
  /* Promove cada frame numa layer GPU separada — zero reflow entre eles */
  contain: layout style;
}

/* Frame 1 — Ghost background text (decorativo) */
/* Frame 1 — span para animar "A arte da" separado */
.apple-sequence__hl-line1 {
  display: inline;
  will-change: opacity, transform;
}

/* Frame 1 — Headline */
.apple-sequence__eyebrow {
  font-family: var(--second-font);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-bold);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--first-color);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 18px rgba(214, 28, 28, 0.35);
}

.apple-sequence__headline {
  font-family: var(--second-font);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: var(--font-bold);
  line-height: 105%;
  letter-spacing: -1px;
  color: var(--white-color);
  text-shadow: 0 4px 24px rgba(0,0,0,0.7);
}

.apple-sequence__headline em {
  font-family: var(--serif-font);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--first-color);
  text-shadow: 0 0 30px rgba(214, 28, 28, 0.4);
}

/* Frame 2 — Stats */
.apple-sequence__stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.apple-sequence__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.apple-sequence__stat-number {
  font-family: var(--second-font);
  font-size: clamp(1.8rem, 8vw, 4.5rem);
  font-weight: var(--font-bold);
  color: var(--first-color);
  line-height: 1;
  text-shadow: 0 2px 16px rgba(214,28,28,0.4);
}

.apple-sequence__stat-label {
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  color: var(--text-color);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.apple-sequence__stat-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--first-color), transparent);
  opacity: 0.4;
}

/* Frame 3 — Ornamento decorativo */
.apple-sequence__ornament {
  display: block;
  font-size: 1.4rem;
  color: var(--first-color);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 10px rgba(214, 28, 28, 0.6));
  will-change: opacity, transform;
}

/* Frame 3 — Tagline (Layout tipo Poster Monumental) */
.apple-sequence__tagline-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  width: 100%;
}

.tagline-small {
  font-family: var(--second-font);
  font-size: clamp(0.65rem, 2.5vw, 0.85rem);
  font-weight: var(--font-bold);
  letter-spacing: 0.35em;
  color: var(--white-color);
  text-transform: uppercase;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}
@keyframes bloodShine {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.tagline-big {
  font-family: var(--serif-font);
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -1px;
  
  /* Red Metallic Shine Effect */
  background: linear-gradient(
    135deg, 
    var(--first-color) 0%, 
    #ff4545 25%, 
    #ffffff 50%, 
    #ff4545 75%, 
    var(--first-color) 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  
  text-transform: lowercase;
  filter: drop-shadow(0 0 20px rgba(214, 28, 28, 0.7)) drop-shadow(0 4px 15px rgba(0, 0, 0, 0.9));
  animation: bloodShine 5s linear infinite;
  /* Por padrão, pausada — libera GPU enquanto o frame não está visível */
  animation-play-state: paused;
}

/* Ativa apenas quando GSAP seta opacity:1 no frame pai */
.apple-sequence__frame--3[style*="opacity: 1"] .tagline-big,
.apple-sequence__frame--3.is-visible .tagline-big {
  animation-play-state: running;
}

.tagline-spacer {
  height: 2.5rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(214, 28, 28, 0.5), transparent);
  margin: 0.5rem 0;
}

.apple-sequence__line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--first-color), transparent);
  margin-top: 2.5rem;
  transform-origin: center;
  will-change: transform, opacity;
}

/* Progress Bar */
.apple-sequence__progress {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.05);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.apple-sequence__progress.active {
  opacity: 1;
}

.apple-sequence__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--first-color), #ff6b6b);
  border-radius: 0 2px 2px 0;
  will-change: width;
}

@media screen and (min-width: 1150px) {
  .apple-sequence__stats {
    gap: 4rem;
  }

  .apple-sequence__stat-divider {
    height: 70px;
  }
}

/*=============== SCROLL REVEAL ANIMATIONS ===============*/
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) !important;
}

/* Directional variants */
.about__data.reveal {
  transform: translateX(-60px);
}

.about__img.reveal {
  transform: translateX(60px);
}

.contact__cta.reveal {
  transform: translateX(-40px);
}

.contact__info.reveal {
  transform: translateX(40px);
}

.service__card:nth-child(1) { transition-delay: 0s; }
.service__card:nth-child(2) { transition-delay: 0.1s; }
.service__card:nth-child(3) { transition-delay: 0.2s; }
.service__card:nth-child(4) { transition-delay: 0.3s; }
.service__card:nth-child(5) { transition-delay: 0.4s; }

.expert__card:nth-child(1) { transition-delay: 0s; }
.expert__card:nth-child(2) { transition-delay: 0.1s; }
.expert__card:nth-child(3) { transition-delay: 0.2s; }
.expert__card:nth-child(4) { transition-delay: 0.3s; }

/*=============== SECTION DIVIDER ===============*/
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
  position: relative;
  z-index: 3;
  background: var(--body-color);
}
.divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--first-color), transparent);
  animation: divider-pulse 3s ease-in-out infinite;
}
.divider-ornament {
  color: var(--first-color);
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.6;
  animation: divider-pulse 3s ease-in-out infinite;
}

/*=============== PARALLAX REVEAL & BACKGROUNDS ===============*/
.parallax-reveal {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Mobile: cover seguro, sem fixed que quebra no iOS/Safari */
@media (hover: none) and (pointer: coarse), screen and (max-width: 768px) {
  .parallax-reveal {
      background-attachment: scroll !important;
      background-size: auto 60vh !important;
      background-position: top center !important;
    }
  /* Focal points distintos para About e Service no mobile */
  #about.parallax-bg {
      background-position: 50% 0% !important;
    }
  #service.parallax-bg {
      background-position: 50% 0% !important;
    }
}

.parallax-reveal {
  height: 300px;
}

.parallax-reveal__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .parallax-reveal {
    height: 200px;
  }
}

/*=============== PREMIUM KEYFRAMES ===============*/
@keyframes divider-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

@keyframes social-pulse {
  0% { transform: translateY(-4px) scale(1); }
  50% { transform: translateY(-4px) scale(1.12); }
  100% { transform: translateY(-4px) scale(1); }
}

@keyframes header-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* For 2K resolutions */
@media screen and (width >= 1700px) {
  .container {
    max-width: 1400px;
  }

  .home__logo {
    width: 500px;
  }
}

/*=============== LENIS SMOOTH SCROLL ===============*/
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

/* Mobile: scroll nativo suave (Lenis desabilitado via JS) */
@media (hover: none) and (pointer: coarse) {
  html {
    scroll-behavior: smooth !important;
  }
}

/*=============== PRELOADER ===============*/
.preloader-active {
  overflow: hidden !important;
  height: 100vh;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--body-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader--hide {
  animation: preloader-exit 0.8s cubic-bezier(.4, 0, .2, 1) forwards;
}

.preloader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader__logo {
  width: 400px;
  max-width: 75vw;
  animation: preloader-breathe 2.5s ease-in-out infinite;
}

.preloader__bar {
  width: 180px;
  height: 2px;
  background: hsla(0, 0%, 100%, .08);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.preloader__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--first-color), #ff6b6b);
  border-radius: 1px;
  animation: preloader-fill 2s ease-in-out forwards;
}

@keyframes preloader-breathe {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(214, 28, 28, 0.3));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 50px rgba(214, 28, 28, 0.6));
  }
}

@keyframes preloader-fill {
  0% { width: 0%; }
  30% { width: 50%; }
  70% { width: 80%; }
  100% { width: 100%; }
}

@keyframes preloader-exit {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-100%); }
}

/*=============== CUSTOM CURSOR ===============*/
@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--first-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.15s ease;
  }

  .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(214, 28, 28, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s, border-color 0.3s;
  }

  .cursor-dot.active,
  .cursor-outline.active {
    opacity: 1;
  }

  .cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(3);
    background: transparent;
    border: 1.5px solid var(--first-color);
  }

  .cursor-hover .cursor-outline {
    width: 48px;
    height: 48px;
    border-color: var(--first-color);
    opacity: .6;
  }
}

/*=============== FOCUS VISIBLE ===============*/
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 3px;
  border-radius: 4px;
}

/*=============== MOBILE OVERFLOW & CONTAINER REPAIR ===============*/
@media screen and (max-width: 768px) {
  html, body {
    overflow-x: clip !important;
    max-width: 100vw;
  }
  
  .container {
    width: 90% !important;
    margin-inline: auto !important;
  }
  
  .service__card, .expert__card, .about__data, .contact__block {
    max-width: 100%;
    box-sizing: border-box;
  }
}

